下拉框回显
This commit is contained in:
@ -350,8 +350,8 @@
|
||||
}
|
||||
|
||||
}
|
||||
const getCompDeptInfo = async (id)=> {
|
||||
const res = await getCompDept(id)
|
||||
const getCompDeptInfo = async (id, deptId)=> {
|
||||
const res = await getCompDept(id, deptId)
|
||||
formState.bDeptName = res?.dept?.name
|
||||
formState.bDeptId = res?.dept?.id
|
||||
|
||||
@ -431,11 +431,11 @@
|
||||
|
||||
|
||||
|
||||
const handleSuccess = (val) => {
|
||||
const handleSuccess = (val, deptId) => {
|
||||
formState.empName = val[0].name
|
||||
formState.empId = val[0].id
|
||||
formState.tel = val[0].mobile
|
||||
getCompDeptInfo(formState.empId)
|
||||
getCompDeptInfo(formState.empId, deptId)
|
||||
}
|
||||
const handleSuccessDept = (val, info) => {
|
||||
formState.bDeptName = val[0].name
|
||||
|
||||
Reference in New Issue
Block a user