【修改】修改用户部门
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user