| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="50" align="center" /> |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | key="targetid" |
| | | prop="targetid" |
| | | /> |
| | | <el-table-column label="序号" align="center" key="id" prop="id" /> |
| | | <el-table-column |
| | | label="通用库名称" |
| | | align="center" |
| | |
| | | addgeneralclassify(this.classifyform).then((res) => { |
| | | this.getDeptTree(); |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.classifyform = {}; |
| | | this.dialogFormVisible = false; |
| | | }); |
| | | }, |
| | | remove(a, b) { |
| | |
| | | reset() { |
| | | this.indexform = { |
| | | suitWay: undefined, |
| | | targetid: undefined, |
| | | id: undefined, |
| | | targetdesc: undefined, |
| | | baseTagList: [], |
| | | targetoptionList: [], |
| | |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map((item) => item.targetid); |
| | | this.ids = selection.map((item) => item.id); |
| | | this.single = selection.length != 1; |
| | | this.multiple = !selection.length; |
| | | }, |
| | |
| | | this.targetoptionList |
| | | ); |
| | | if (valid) { |
| | | if (this.indexform.targetid != undefined) { |
| | | if (this.indexform.id != undefined) { |
| | | this.indexform.isoperation = 2; |
| | | editgeneral(this.indexform).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const userIds = row.targetid || this.ids; |
| | | const userIds = row.id || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认删除通用库名称为"' + row.targetname + '"的数据项?') |
| | | .then(function () { |