“dzb”
2022-11-02 12fd8f6b04b26ef02bccdf5fd0bcefb59541c7f6
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();