|
@ -266,6 +266,7 @@ export default { |
|
|
this.formData.wagaCode = res.wagaCode; |
|
|
this.formData.wagaCode = res.wagaCode; |
|
|
}, |
|
|
}, |
|
|
async getTreeData(type) { |
|
|
async getTreeData(type) { |
|
|
|
|
|
console.log("getTreeData-type >>>>> ", type); |
|
|
let cate = |
|
|
let cate = |
|
|
type === "1" |
|
|
type === "1" |
|
|
? "sz_xs_c_classfy" |
|
|
? "sz_xs_c_classfy" |
|
@ -290,17 +291,16 @@ export default { |
|
|
this.formData.wagaName = data.wagaName; |
|
|
this.formData.wagaName = data.wagaName; |
|
|
this.formData.createUid = data.createUid; |
|
|
this.formData.createUid = data.createUid; |
|
|
this.formData.createName = data.createName; |
|
|
this.formData.createName = data.createName; |
|
|
this.getTreeData(data.category); |
|
|
await this.getTreeData(data.category); |
|
|
if (data?.items) { |
|
|
if (data?.items) { |
|
|
// 匹配xcTreeData |
|
|
// 匹配xcTreeData |
|
|
this.matchXcTreeData(_xcTreeData, data.items); |
|
|
this.matchXcTreeData(this.xcTreeData, data.items); |
|
|
this.tableData = data.items; |
|
|
this.tableData = data.items; |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.formData.createUid = this.userId; |
|
|
this.formData.createUid = this.userId; |
|
|
this.formData.createName = this.userName; |
|
|
this.formData.createName = this.userName; |
|
|
} |
|
|
} |
|
|
this.xcTreeData = _xcTreeData; |
|
|
|
|
|
}, |
|
|
}, |
|
|
handleChangeCategory() { |
|
|
handleChangeCategory() { |
|
|
this.tableData = [ |
|
|
this.tableData = [ |
|
|