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,6 +598,9 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
// //
public deleteSubData(indexs) { public deleteSubData(indexs) {
if(indexs.length === 0){
this.$message.warning("请选择要删除的数据!")
}else{
this.$confirm('确认删除所选数据', '确认数据', { this.$confirm('确认删除所选数据', '确认数据', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -611,10 +614,12 @@ export default class LeadershipStructure extends BaseRecordComponent<any> {
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,14 +273,12 @@ 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 === 2) { } else if (data.status === 0) {
return `<span class="color_0">${'废弃'}</span>` return `<span class="color_0">${'废弃'}</span>`
} }
} }
}
}); });
this.tableColumn.push({ name: '编制人', key: "compileUserName" }); this.tableColumn.push({ name: '编制人', key: "compileUserName" });
this.tableColumn.push({ name: '编制时间', key: "compileTime" }); this.tableColumn.push({ name: '编制时间', key: "compileTime" });