|
|
|
@ -109,7 +109,7 @@ |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<!-- 添加或修改企业扩展属性,包括大象key等对话框 --> |
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
|
|
|
|
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="open" width="500px" append-to-body> |
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
|
|
|
|
<el-form-item label="属性" prop="key"> |
|
|
|
|
<el-input v-model="form.key" placeholder="请输入属性"/> |
|
|
|
@ -141,6 +141,8 @@ export default { |
|
|
|
|
loading: true, |
|
|
|
|
// 选中数组 |
|
|
|
|
ids: [], |
|
|
|
|
//选中删除key |
|
|
|
|
deleteKeys: [], |
|
|
|
|
// 非单个禁用 |
|
|
|
|
single: true, |
|
|
|
|
// 非多个禁用 |
|
|
|
@ -220,6 +222,7 @@ export default { |
|
|
|
|
// 多选框选中数据 |
|
|
|
|
handleSelectionChange(selection) { |
|
|
|
|
this.ids = selection.map(item => item.companyid) |
|
|
|
|
this.deleteKeys = selection.map(item => item.companyid+item.key+item.value) |
|
|
|
|
this.single = selection.length !== 1 |
|
|
|
|
this.multiple = !selection.length |
|
|
|
|
}, |
|
|
|
@ -267,8 +270,9 @@ export default { |
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
|
handleDelete(row) { |
|
|
|
|
const companyids = row.companyid || this.ids |
|
|
|
|
const deleteKey = row.companyid+row.key+row.value || this.deleteKeys |
|
|
|
|
this.$modal.confirm('是否确认删除企业扩展属性,包括大象key等编号为"' + companyids + '"的数据项?').then(function() { |
|
|
|
|
return delProp(companyids) |
|
|
|
|
return delProp(deleteKey) |
|
|
|
|
}).then(() => { |
|
|
|
|
this.getList() |
|
|
|
|
this.$modal.msgSuccess('删除成功') |
|
|
|
|