Commit 556f4d24 authored by yanzhengyang's avatar yanzhengyang

选择用户公共组件修改BUG

parent 72435f36
......@@ -14,11 +14,15 @@
<el-collapse v-model="activeNames">
<el-collapse-item :title="item[deptKey]" :name="item.deptId" v-for="(item, index) in filteredDeptList" :key="index" style="margin-left: 20px">
<div v-for="it in (Array.isArray(item[nameListKey]) ? item[nameListKey] : [item[nameListKey]])" :key="it[nameIdKey]">
<el-checkbox-group v-model="checked1" >
<el-checkbox
v-model="checked1"
:label="it[nameKey]"
:key="it[nameIdKey]"
:label="it"
:disabled="props.selectionMode === 'single' && checked1.length >= 1"
size="large"/>
size="large">
{{it[nameKey]}}
</el-checkbox>
</el-checkbox-group>
</div>
</el-collapse-item>
</el-collapse>
......@@ -32,7 +36,7 @@
</div>
<div class="box-right-content">
<div class="content-item" v-for="(item, index) in selectedItems" :key="index">
<span style="width: 100px;font-size: 14px;font-weight: 400">{{ item }}</span>
<span style="width: 100px;font-size: 14px;font-weight: 400">{{ item[nameKey] }}</span>
<el-button icon="Delete" @click="removeItem(index)" type="primary" circle></el-button>
</div>
</div>
......
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