Commit 0b3d06b6 authored by 仇晓婷's avatar 仇晓婷

wuliao

parent 6922aee2
...@@ -126,16 +126,6 @@ export default { ...@@ -126,16 +126,6 @@ export default {
} }
}); });
} }
// this.$Modal.confirm({
// title: "删除",
// content: "<p>您确定要删除吗?</p>",
// onOk: () => {
// onCancel: () => {
// this.$Message.success("取消删除");
// }
// });
// }
}, },
watch: { watch: {
root: { root: {
......
...@@ -76,7 +76,8 @@ export default { ...@@ -76,7 +76,8 @@ export default {
categoryId: 0, categoryId: 0,
rootCategoryId: 0, rootCategoryId: 0,
ids: [], ids: [],
addChange: true addChange: true,
codeRuleId:0,
}, },
downName: "请选择类型", downName: "请选择类型",
modal: false, modal: false,
...@@ -85,7 +86,7 @@ export default { ...@@ -85,7 +86,7 @@ export default {
detail: null, detail: null,
showMenu: true, showMenu: true,
dataList: [], dataList: [],
codeRuleId: "" // codeRuleId: ""
}; };
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
...@@ -97,9 +98,9 @@ export default { ...@@ -97,9 +98,9 @@ export default {
}, },
methods: { methods: {
clickItem(val) { clickItem(val) {
this.codeRuleId = val; this.nodeInfo.codeRuleId = val;
this.model8 = val; this.model8 = val;
this.loadTree(this.codeRuleId); this.loadTree( this.nodeInfo.codeRuleId);
this.cityList.forEach(e => { this.cityList.forEach(e => {
if (val == e.id) { if (val == e.id) {
this.downName = e.name; this.downName = e.name;
...@@ -116,7 +117,7 @@ export default { ...@@ -116,7 +117,7 @@ export default {
this.cityList = r.result.items; this.cityList = r.result.items;
this.downName = this.cityList[0].name; this.downName = this.cityList[0].name;
this.model8 = this.cityList[0].id; this.model8 = this.cityList[0].id;
this.nodeInfo.codeRuleId = this.cityList[0].id; // this.nodeInfo.codeRuleId = this.cityList[0].id;
this.loadTree(this.nodeInfo.codeRuleId); this.loadTree(this.nodeInfo.codeRuleId);
}); });
}, },
...@@ -130,15 +131,6 @@ export default { ...@@ -130,15 +131,6 @@ export default {
}, },
ok(row) { ok(row) {
this.loadTree(this.codeRuleId); this.loadTree(this.codeRuleId);
// this.modal = false;
// this.curId = 0;
// if (row) {
// this.dataList.map((e, index) => {
// if (e.id == row.id) {
// this.$set(this.$refs.dataTable.dataColumns, index, row);
// }
// });
// }
}, },
cancel() { cancel() {
this.curId = 0; this.curId = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment