forked from xxhjsb/hbt-prevention-ui
Merge branch 'feature1.2' of https://git.hanbangtang.com/xxhjsb/hbt-prevention-ui into kongyeqing
commit
fbd7bb3596
|
|
@ -601,6 +601,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: '取消',
|
||||||
|
|
@ -614,10 +617,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) {
|
||||||
//
|
//
|
||||||
|
|
|
||||||
|
|
@ -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" });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue