mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
受众的调整
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
<el-button type="primary" size="medium" @click="queryUserData">搜索</el-button>
|
||||
<el-button type="primary" class="findBtn" size="medium" @click="reset">重置</el-button>
|
||||
</div>
|
||||
<el-table ref="userTable" :data="userData" v-loading="userDataLoading" tooltip-effect="dark" @selection-change="userSelectionChange">
|
||||
<el-table ref="groupUserTable" :data="userData" v-loading="userDataLoading" tooltip-effect="dark" @selection-change="userSelectionChange">
|
||||
<el-table-column type="selection" align="center" width="55"></el-table-column>
|
||||
<el-table-column label="姓名" prop="realName" align="center"></el-table-column>
|
||||
<el-table-column prop="userNo" label="工号" align="center"></el-table-column>
|
||||
@@ -388,15 +388,22 @@
|
||||
if(this.multipleSelection.length == 0){
|
||||
this.$message({ type: "error", message: '请先选择要删除的数据' ,offset:50});
|
||||
}
|
||||
for (let i = 0; i < this.multipleSelection.length; i++) {
|
||||
for (let j = 0; j < this.tableData.length; j++) {
|
||||
if (this.tableData[j].aid === this.multipleSelection[i].aid) {
|
||||
this.tableData.splice(j, 1)
|
||||
break
|
||||
let $this=this;
|
||||
//console.log(this.multipleSelection,'this.multipleSelection');
|
||||
this.multipleSelection.forEach(item=>{
|
||||
var delIdx=-1;
|
||||
$this.tableData.forEach((row,rowIdx)=>{
|
||||
if(row.id==item.id){
|
||||
delIdx=rowIdx;
|
||||
}
|
||||
});
|
||||
if(delIdx>-1){
|
||||
$this.tableData.splice(delIdx, 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.queryTableData();
|
||||
});
|
||||
this.multipleSelection=[];
|
||||
this.$refs.multipleTable.clearSelection();
|
||||
|
||||
},
|
||||
openImportDialog(){
|
||||
this.selectFile = '';
|
||||
|
||||
Reference in New Issue
Block a user