this.$confirm('请确认是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
})
.then(() => {
let info = {
'id': data.id,
};
let copySearchForm = Object.assign({}, this.searchData);
let copyOperationTools = Object.assign({}, this.operationTools);
let js = parseInt(copyOperationTools.total) - (parseInt(copySearchForm.rows) * parseInt(copySearchForm.page));
delPersonnelControl(info).then(res => {
this.$alert(res.data, '提示', {
confirmButtonText: '确定'
});
if (res.status == 'OK') {
if (js == 1) {
this.searchData.page = copySearchForm.page - 1
}
if (parseInt(this.searchData.page) < 0) {
this.searchData.page = 0;
}
this.loading = true;
this.dataList = [];
let clickTime = this.$moment();
this.getPersonnel(this.searchData, clickTime);
}
})
})
.catch(() => {
});