src/components/view/standard.vue
@@ -1167,6 +1167,28 @@ handler(newval,oldVal){ if(newval){ let treeOptions = JSON.parse(JSON.stringify(this.list)); if(treeOptions.length<1){ let obj={ name: '成品', } let obj2={ name: '半成品', } treeOptions.push(obj) treeOptions.push(obj2) } if(treeOptions.length===1){ if(treeOptions[0].name==='成品'){ treeOptions.push({ name: '半成品', }) } if(treeOptions[0].name==='半成品'){ treeOptions.push({ name: '成品', }) } } this.replaceProp(treeOptions) this.formTypeOptions=treeOptions this.restaurants=this.loadFatherType()