From 9ab353d083dd22a90a8a0f09b9b7b756d58cc1bd Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期四, 14 九月 2023 15:38:43 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.22:9001/r/mom-before --- src/components/view/standard.vue | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/components/view/standard.vue b/src/components/view/standard.vue index c75c027..7984cb2 100644 --- a/src/components/view/standard.vue +++ b/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() -- Gitblit v1.9.3