| | |
| | | <el-main> |
| | | <el-card shadow="never"> |
| | | <el-tabs tab-position="top" class="custom-tabs"> |
| | | |
| | | <el-tab-pane label="å·¥ä½"> |
| | | <el-container> |
| | | <el-aside width="200px" v-loading="showGrouploading"> |
| | |
| | | <el-header> |
| | | <div class="left-panel"> |
| | | <el-button type="primary" icon="el-icon-plus" @click="add"></el-button> |
| | | <el-button type="danger" plain icon="el-icon-delete" :disabled="selection.length == 0" |
| | | @click="batch_del"></el-button> |
| | | <el-button type="danger" plain icon="el-icon-delete" |
| | | :disabled="selection.length == 0" @click="batch_del"></el-button> |
| | | <el-button type="primary" plain :disabled="selection.length == 0">åé
è§è²</el-button> |
| | | <el-button type="primary" plain :disabled="selection.length == 0">å¯ç éç½®</el-button> |
| | | </div> |
| | |
| | | </div> |
| | | </el-header> |
| | | <el-main class="nopadding"> |
| | | <scTable ref="table" :apiObj="apiObj" @selection-change="selectionChange" stripe remoteSort |
| | | remoteFilter> |
| | | <scTable ref="table" :apiObj="apiObj" @selection-change="selectionChange" stripe |
| | | remoteSort remoteFilter> |
| | | <el-table-column type="selection" width="50"></el-table-column> |
| | | <el-table-column label="ID" prop="id" width="80" sortable='custom'></el-table-column> |
| | | <el-table-column label="ID" prop="id" width="80" |
| | | sortable='custom'></el-table-column> |
| | | <el-table-column label="头å" width="80" column-key="filterAvatar" |
| | | :filters="[{ text: 'å·²ä¸ä¼ ', value: '1' }, { text: 'æªä¸ä¼ ', value: '0' }]"> |
| | | <template #default="scope"> |
| | |
| | | <el-table-column label="ç»å½è´¦å·" prop="userName" width="150" sortable='custom' |
| | | column-key="filterUserName" |
| | | :filters="[{ text: 'ç³»ç»è´¦å·', value: '1' }, { text: 'æ®éè´¦å·', value: '0' }]"></el-table-column> |
| | | <el-table-column label="å§å" prop="name" width="150" sortable='custom'></el-table-column> |
| | | <el-table-column label="æå±è§è²" prop="groupName" width="200" sortable='custom'></el-table-column> |
| | | <el-table-column label="å å
¥æ¶é´" prop="date" width="170" sortable='custom'></el-table-column> |
| | | <el-table-column label="å§å" prop="name" width="150" |
| | | sortable='custom'></el-table-column> |
| | | <el-table-column label="æå±è§è²" prop="groupName" width="200" |
| | | sortable='custom'></el-table-column> |
| | | <el-table-column label="å å
¥æ¶é´" prop="date" width="170" |
| | | sortable='custom'></el-table-column> |
| | | <el-table-column label="æä½" fixed="right" align="right" width="160"> |
| | | <template #default="scope"> |
| | | <el-button-group> |
| | |
| | | @click="table_show(scope.row, scope.$index)">æ¥ç</el-button> |
| | | <el-button text type="primary" size="small" |
| | | @click="table_edit(scope.row, scope.$index)">ç¼è¾</el-button> |
| | | <el-popconfirm title="ç¡®å®å é¤åï¼" @confirm="table_del(scope.row, scope.$index)"> |
| | | <el-popconfirm title="ç¡®å®å é¤åï¼" |
| | | @confirm="table_del(scope.row, scope.$index)"> |
| | | <template #reference> |
| | | <el-button text type="primary" size="small">å é¤</el-button> |
| | | </template> |
| | |
| | | ] |
| | | } |
| | | }, |
| | | created () { |
| | | this.$API.basicdata.getWorkstationGroup.get().then(res => { |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | methods: { |
| | | table_add() { |
| | | var newRow = { |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | <style></style> |