优化树表代码生成模板

This commit is contained in:
Ricky 2021-04-15 10:39:09 +08:00
parent cbcee86d2c
commit de73cf300b
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ export default {
handleAdd(row) { handleAdd(row) {
this.reset(); this.reset();
this.getTreeselect(); this.getTreeselect();
if (row != null && row.dkAreaCode) { if (row != null && row.${treeCode}) {
this.form.${treeParentCode} = row.${treeCode}; this.form.${treeParentCode} = row.${treeCode};
} else { } else {
this.form.${treeParentCode} = 0; this.form.${treeParentCode} = 0;