fix:工作推进机制问题修复

dev
zhushengzhe 2023-09-05 18:08:26 +08:00
parent e6946df36d
commit 1eb0cdccf7
2 changed files with 20 additions and 17 deletions

View File

@ -598,22 +598,27 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
// //
public deleteSubData(indexs) { public deleteSubData(indexs) {
this.$confirm('确认删除所选数据', '确认数据', { if(indexs.length === 0){
this.$message.warning("请选择要删除的数据!")
}else{
this.$confirm('确认删除所选数据', '确认数据', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
for (let i = this.updateParams.members.length - 1; i >= 0; i--) { for (let i = this.updateParams.members.length - 1; i >= 0; i--) {
if (indexs.includes(i)) { if (indexs.includes(i)) {
this.updateParams.members.splice(i, 1) this.updateParams.members.splice(i, 1)
}
} }
} this.updateParams.members.forEach((item, index) => {
this.updateParams.members.forEach((item, index) => { item.index = index + 1;
item.index = index + 1; });
this.$message.success("删除成功")
}).catch(() => {
//
}); });
}).catch(() => { }
//
});
} }
public changes(data, item) { public changes(data, item) {

View File

@ -273,12 +273,10 @@ export default class ManagementSystem extends BaseRecordComponent<any> {
}); });
this.tableColumn.push({ this.tableColumn.push({
name: '状态', key: "status",width:"80px", render: (data) => { name: '状态', key: "status",width:"80px", render: (data) => {
if (data.status) { if (data.status === 1) {
if (data.status === 1) { return `<span class="color_1">${'在用'}</span>`
return `<span class="color_1">${'在用'}</span>` } else if (data.status === 0) {
} else if (data.status === 2) { return `<span class="color_0">${'废弃'}</span>`
return `<span class="color_0">${'废弃'}</span>`
}
} }
} }
}); });