This commit is contained in:
parent
3ed03ea44f
commit
b22a5822f3
|
|
@ -231,6 +231,18 @@ export default {
|
|||
label: item.subName,
|
||||
}
|
||||
})
|
||||
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
proId: e,
|
||||
})
|
||||
|
||||
this.formLabel[2].f_selList = []
|
||||
this.formLabel[2].f_selList = teamList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.teamName,
|
||||
}
|
||||
})
|
||||
}
|
||||
if (val === 'subId') {
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
|
|
|
|||
|
|
@ -584,14 +584,24 @@ export default {
|
|||
label: item.subName,
|
||||
}
|
||||
})
|
||||
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
proId: e,
|
||||
})
|
||||
|
||||
this.formLabel[5].f_selList = []
|
||||
this.formLabel[5].f_selList = teamList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.teamName,
|
||||
}
|
||||
})
|
||||
}
|
||||
if (val === 'subId') {
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
subId: e,
|
||||
})
|
||||
|
||||
console.log(teamList, 'teamList')
|
||||
|
||||
this.formLabel[5].f_selList = []
|
||||
this.formLabel[5].f_selList = teamList.rows?.map((item) => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
:columnsList="columnsList"
|
||||
:selectable="(row) => row.einStatus === 1"
|
||||
:request-api="getExitPersonListAPI"
|
||||
@sel-change="handleSelChange"
|
||||
>
|
||||
<template slot="idNumber" slot-scope="{ data }">
|
||||
{{ desensitizeIdNumber(data.idNumber) }}
|
||||
|
|
@ -166,6 +167,7 @@ import {
|
|||
getPostTypeSelectListCommonFun,
|
||||
getLotProjectSelectListCommonFun,
|
||||
} from '@/utils/getCommonData'
|
||||
import { getSubSelectListAPI, getTeamSelectListAPI } from '@/api/common'
|
||||
import { formLabel, columnsList, dialogConfig } from './config'
|
||||
|
||||
import {
|
||||
|
|
@ -317,6 +319,47 @@ export default {
|
|||
this.$refs.exitPersonListRef.getPersonEntryAndExitRecordList()
|
||||
})
|
||||
},
|
||||
|
||||
// 下拉选的change事件
|
||||
async handleSelChange(e, val) {
|
||||
if (val === 'proId') {
|
||||
const subList = await getSubSelectListAPI({
|
||||
proId: e,
|
||||
})
|
||||
|
||||
this.formLabel[3].f_selList = subList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.subName,
|
||||
}
|
||||
})
|
||||
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
proId: e,
|
||||
})
|
||||
|
||||
this.formLabel[5].f_selList = []
|
||||
this.formLabel[5].f_selList = teamList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.teamName,
|
||||
}
|
||||
})
|
||||
}
|
||||
if (val === 'subId') {
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
subId: e,
|
||||
})
|
||||
|
||||
this.formLabel[4].f_selList = []
|
||||
this.formLabel[4].f_selList = teamList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.teamName,
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
async created() {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
:showRightTools="true"
|
||||
ref="contractWitnessTableRef"
|
||||
:columnsList="columnsList"
|
||||
@sel-change="handleSelChange"
|
||||
:request-api="getPersonContractListAPI"
|
||||
>
|
||||
<template slot="btn" slot-scope="{ queryParams }">
|
||||
|
|
@ -149,6 +150,7 @@ import {
|
|||
getTeamSelectListCommonFun,
|
||||
getLotProjectSelectListCommonFun,
|
||||
} from '@/utils/getCommonData'
|
||||
import { getSubSelectListAPI, getTeamSelectListAPI } from '@/api/common'
|
||||
|
||||
import debounce from 'lodash/debounce'
|
||||
export default {
|
||||
|
|
@ -280,6 +282,46 @@ export default {
|
|||
handleCloseDialogOuter() {
|
||||
this.dialogConfig.outerVisible = false
|
||||
},
|
||||
|
||||
// 下拉选的change事件
|
||||
async handleSelChange(e, val) {
|
||||
if (val === 'proId') {
|
||||
const subList = await getSubSelectListAPI({
|
||||
proId: e,
|
||||
})
|
||||
|
||||
this.formLabel[4].f_selList = subList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.subName,
|
||||
}
|
||||
})
|
||||
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
proId: e,
|
||||
})
|
||||
|
||||
this.formLabel[5].f_selList = []
|
||||
this.formLabel[5].f_selList = teamList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.teamName,
|
||||
}
|
||||
})
|
||||
}
|
||||
if (val === 'subId') {
|
||||
const teamList = await getTeamSelectListAPI({
|
||||
subId: e,
|
||||
})
|
||||
|
||||
this.formLabel[5].f_selList = teamList.rows?.map((item) => {
|
||||
return {
|
||||
value: item.id,
|
||||
label: item.teamName,
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
async created() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue