无等级网格版合并
This commit is contained in:
		| @@ -43,7 +43,12 @@ | ||||
|           <el-tree :data="treeObj.treeList" :props="treeObj.defaultProps" node-key="id" ref="tree" | ||||
|                    :check-strictly="true" show-checkbox | ||||
|                    :default-checked-keys="treeObj.checkedKeys" default-expand-all | ||||
|             @check="onCheckChange"> | ||||
|                    @check="onCheckChange"> | ||||
|             <template slot-scope="{node,data}"> | ||||
|               <el-tooltip :content="node.label"> | ||||
|                 <div class="el-tree-node__label" v-text="node.label"/> | ||||
|               </el-tooltip> | ||||
|             </template> | ||||
|           </el-tree> | ||||
|         </div> | ||||
|         <div class="dialog-footer" slot="footer"> | ||||
| @@ -131,7 +136,7 @@ export default { | ||||
|       }); | ||||
|     }, | ||||
|  | ||||
|     onCheckChange (e) { | ||||
|     onCheckChange(e) { | ||||
|       this.$nextTick(() => { | ||||
|         this.$refs.tree.getCheckedKeys().forEach(v => { | ||||
|           this.$refs.tree.setChecked(v, false) | ||||
| @@ -140,12 +145,8 @@ export default { | ||||
|       }) | ||||
|     }, | ||||
|  | ||||
|     format (list) { | ||||
|     format(list) { | ||||
|       return list.map(item => { | ||||
|         if (item.girdLevel !== '2') { | ||||
|           item.disabled = true | ||||
|         } | ||||
|  | ||||
|         if (item.girdList && item.girdList.length) { | ||||
|           item.girdList = this.format(item.girdList) | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user