From 12fd8f6b04b26ef02bccdf5fd0bcefb59541c7f6 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期三, 02 十一月 2022 17:04:23 +0800 Subject: [PATCH] :预警研判 --- src/views/operate/baseSetting/violation/createUser/index.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/operate/baseSetting/violation/createUser/index.vue b/src/views/operate/baseSetting/violation/createUser/index.vue index 01669a3..b55af77 100644 --- a/src/views/operate/baseSetting/violation/createUser/index.vue +++ b/src/views/operate/baseSetting/violation/createUser/index.vue @@ -19,9 +19,6 @@ <!-- 鐖剁骇id --> <el-form-item class="optionItem" label="鐖剁骇:" prop="parentId"> <el-select v-model="things.parentId" placeholder="璇烽�夋嫨鎵�灞炵被鍨�" :disabled="things.level===1"> - <!-- <el-option v-for="item in parentList" :key="item.id" :label="item.name" :value="item.id" - v-if="things.level===1"> - </el-option> --> <el-option :value="mylabel"> <el-tree ref="tree" :check-strictly="true" :data="parentList" :props="defaultProps" show-checkbox @check-change="handleCheck" default-expand-all node-key="id"> @@ -109,7 +106,12 @@ }, defaultProps: { children: 'children', - label: 'name' + label: 'name', + disabled:(data,node)=>{ + if (data.level<this.things.level-1) { + return !data.leaf + } + } }, mylabel:'' } @@ -210,6 +212,7 @@ }, // 妗堜欢绾у埆鍙樺寲 async resetParentList(index) { + this.things.parentId='' this.selectOrg.orgsid = []; if (index === 1) { // this.getTypeThird(); -- Gitblit v1.8.0