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