|
|
|
@ -108,7 +108,7 @@ |
|
|
|
|
<el-button type="primary" round @click="delAllSelection">批量删除</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<el-table :data="userData" class="table" stripe header-align="center" @selection-change="handleSelectionChange" row-key="userId"> |
|
|
|
|
<el-table :data="userData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" row-key="userId"> |
|
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"></el-table-column> |
|
|
|
|
<el-table-column prop="account" label="用户账号" align="center"></el-table-column> |
|
|
|
@ -385,20 +385,14 @@ export default { |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$post(this.api.delUserAccounts,delList).then(res => { |
|
|
|
|
if(res.code == '200') { |
|
|
|
|
this.multipleSelection = []; |
|
|
|
|
if(delList.length == this.userData.length){ |
|
|
|
|
if(this.page > 1){ |
|
|
|
|
this.page = this.page-1 |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
if(delList.length == this.userData.length){ |
|
|
|
|
if(this.page > 1){ |
|
|
|
|
this.page = this.page-1 |
|
|
|
|
} |
|
|
|
|
this.$message.success('删除成功') |
|
|
|
|
this.getData() |
|
|
|
|
}else{ |
|
|
|
|
this.$message.success(res.message) |
|
|
|
|
} |
|
|
|
|
this.$message.success('删除成功') |
|
|
|
|
this.$refs.table.clearSelection() |
|
|
|
|
this.getData() |
|
|
|
|
}).catch(res => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|