1 个回答

<el-tree
ref="tree"
id="fixtree"
:props="defaultProps"
node-key="unifiedId"
:check-on-click-node="true"
:load="loadNode"
:filter-node-method="filterNode"
:check-strictly="true"
:default-checked-keys="peoples"
lazy
@check-change="getChecked">
<span class="custom-tree-node" slot-scope="{ data, node}">
<span v-if="data.type === false">

  <img v-if="data.choiceStatus === false" class="organization-img" src="../assets/images/zu.png" alt="" />
  <img v-else class="organization-img" src="../assets/images/zus.png" alt="" />
  <span :style="data.choiceStatus === true ? 'color: #C9CACB;' : ''">{{ data.name }}</span>

</span>
<span v-if="data.type === true">

  <img v-if="data.name" class="organization-img" src="../assets/images/user.png" alt="">
  <span>{{ data.name }}</span>
  <span
  v-if="node.checked"  //是否显示勾
  class="el-icon-check"
  ></span>

</span>
</span>
</el-tree>

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题