| | |
| | | <!-- 父级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"> |
| | |
| | | }, |
| | | defaultProps: { |
| | | children: 'children', |
| | | label: 'name' |
| | | label: 'name', |
| | | disabled:(data,node)=>{ |
| | | if (data.level<this.things.level-1) { |
| | | return !data.leaf |
| | | } |
| | | } |
| | | }, |
| | | mylabel:'' |
| | | } |
| | |
| | | }, |
| | | // 案件级别变化 |
| | | async resetParentList(index) { |
| | | this.things.parentId='' |
| | | this.selectOrg.orgsid = []; |
| | | if (index === 1) { |
| | | // this.getTypeThird(); |