部门选择

This commit is contained in:
liuye
2023-01-04 14:11:52 +08:00
parent 1b40e7408b
commit d170312ce2
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ export default {
}) })
}, },
checkClick(index) { checkClick(index) {
if (this.isSingle) { if (this.isSingle && this.isRequire == 1) {
this.list.map((e, i) => { this.list.map((e, i) => {
e.isCheck = i == index; e.isCheck = i == index;
}) })

View File

@@ -32,7 +32,7 @@
<!-- <div v-if="deptId" class="gateway-name">{{deptName || '部门'}}</div> <!-- <div v-if="deptId" class="gateway-name">{{deptName || '部门'}}</div>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="deptId" /> <u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="deptId" />
<span v-else>部门<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" /></span> --> <span v-else>部门<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" /></span> -->
<AiPagePicker type="dept" :selected.sync="deptList" single nodeKey="id" @select="getListInit"> <AiPagePicker type="dept" :selected.sync="deptList" single nodeKey="id" @select="getListInit" isRequire="0">
<span class="label" v-if="deptList.length">{{deptList[0].name}}</span> <span class="label" v-if="deptList.length">{{deptList[0].name}}</span>
<span v-else>部门</span> <span v-else>部门</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left:4px;"/> <u-icon name="arrow-down" color="#666" size="28" style="margin-left:4px;"/>