【修改】修改用户部门

This commit is contained in:
zhoulingpo
2023-05-11 14:39:23 +08:00
parent a805f6885f
commit 930f97b050
2 changed files with 35 additions and 8 deletions
+3 -3
View File
@@ -125,7 +125,7 @@
size="medium"
closable
v-for="item in checkedList"
:key="item.usid || item.USID || item.id"
:key="item.usid || item.USID || item.id || item.orgCode"
@close="handleRemove(item)">{{ item.uname || item.USNAME || item.name || item.orgName}}
</el-tag>
<el-button
@@ -745,7 +745,7 @@ export default {
const selected = selection.length && selection.indexOf(row) !== -1 // 为true时选中,为 0 时(false)未选中
if (selected) {
selection.map(selItem => {
const id = selItem.USID
const id = selItem.USID || selItem.orgCode
if (!this.checkedIdList.includes(id)) {
this.checkedIdList.push(id)
this.checkedList.push(row)
@@ -758,7 +758,7 @@ export default {
selectionRowAll (selection) {
if (selection.length > 0) {
selection.map(selItem => {
const id = selItem.USID
const id = selItem.USID || selItem.orgCode
if (!this.checkedIdList.includes(id)) {
this.checkedIdList.push(id)
this.checkedList.push(selItem)