| | |
| | | </el-col> |
| | | <el-col v-if=" |
| | | checkPermi(['standard:standardLibrary:delStandardTree']) && |
| | | (node.data.children === null || |
| | | node.data.children === undefined) |
| | | data.level == 7 |
| | | " :span="2" style="text-align: right"> |
| | | <el-button size="mini" type="text" @click.stop="editTreeName(node.data)" v-if="!auditId"> |
| | | <i class="el-icon-edit"></i> |
| | |
| | | </el-col> |
| | | <el-col v-if=" |
| | | checkPermi(['standard:standardLibrary:delStandardTree']) && |
| | | (node.data.children === null || |
| | | node.data.children === undefined) |
| | | data.level == 7 |
| | | " :span="2" style="text-align: right"> |
| | | <el-button size="mini" type="text" @click.stop="remove(node, data)" v-if="!auditId"> |
| | | <i class="el-icon-delete"></i> |
| | |
| | | import bindSupplierDensityDialogAsk from "./components/bindSupplierDensityDialogAsk.vue"; |
| | | import BatchCopy from "./components/BatchCopy.vue"; |
| | | export default { |
| | | name: 'StandardLibrary', |
| | | // name: 'StandardLibrary', |
| | | components: { |
| | | BatchCopy, |
| | | bindSupplierDensityDialogAsk, |
| | |
| | | this.selectTree = ""; |
| | | // 拼接树路径 |
| | | this.selectTree = this.getReversedTreePath(node); |
| | | delStandardTree({ tree: this.selectTree }).then((res) => { |
| | | delStandardTree({ |
| | | tree: this.selectTree, |
| | | level: data.level, |
| | | id: data.value |
| | | }).then((res) => { |
| | | this.$message.success("已删除"); |
| | | let arr = this.selectTree.split(" - "); |
| | | this.deleteStandard(this.list, arr[arr.length - 1]); |