Commit 634bd785 by 陈羽

update: 交互优化

parent f5c7b7d4
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</div> </div>
<div class="select-tree-wrap m-t-10"> <div class="select-tree-wrap m-t-10">
<!--:load="loadNode"--> <!--:load="loadNode"-->
<el-tree :filter-node-method="filterNode" clearable :data="groupData" :default-checked-keys="checkedKeys" node-key="relationId" ref="groupTree" check-strictly show-checkbox default-expand-all :props="defaultProps" :expand-on-click-node="false" @check="checkGroup"> <el-tree :filter-node-method="filterNode" clearable :data="groupData" :default-checked-keys="checkedKeys" node-key="relationId" ref="groupTree" show-checkbox default-expand-all :props="defaultProps" :expand-on-click-node="false" @check="checkGroup">
<div class="custom-tree-node" slot-scope="{ data }"> <div class="custom-tree-node" slot-scope="{ data }">
<p> <p>
<span :class="['font-14 p-r-10 iconfont', 'iconqiye-tianchong', data.isBind == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ data.label }}</span> <span :class="['font-14 p-r-10 iconfont', 'iconqiye-tianchong', data.isBind == 1 ? 'color-2f54eb' : 'color-dedfe6']"></span><span class="font-14 color-606266">{{ data.label }}</span>
...@@ -187,6 +187,8 @@ export default { ...@@ -187,6 +187,8 @@ export default {
//循环所有项 //循环所有项
let branchArr = data.filter(child => { let branchArr = data.filter(child => {
if ((father.relationId == child.parentRelationId && father.isBind) || child.isBind) { if ((father.relationId == child.parentRelationId && father.isBind) || child.isBind) {
child.wxEnterpriseName = child.wxEnterpriseName ? child.wxEnterpriseName : father.wxEnterpriseName;
child.isBind = true;
child.disabled = true; child.disabled = true;
} }
return father.relationId == child.parentRelationId; //返回每一项的子级数组 return father.relationId == child.parentRelationId; //返回每一项的子级数组
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment