|
|
|
@ -61,7 +61,7 @@ |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="(item, index) in optionsData.policeList" |
|
|
|
v-for="(item, index) in optionsData.policeList" |
|
|
|
:key="index" |
|
|
|
:key="index" |
|
|
|
:label="item.name" |
|
|
|
:label=showpoliceList(item.name,item.empNo) |
|
|
|
:value="item.empNo" |
|
|
|
:value="item.empNo" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
@ -229,6 +229,13 @@ const open = (type = 'add') => { |
|
|
|
popupRef.value?.open() |
|
|
|
popupRef.value?.open() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const showpoliceList = (name:string,empNo:string) => { |
|
|
|
|
|
|
|
return name + empNo |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const setFormData = async (data: Record<string, any>) => { |
|
|
|
const setFormData = async (data: Record<string, any>) => { |
|
|
|
for (const key in formData) { |
|
|
|
for (const key in formData) { |
|
|
|
if (data[key] != null && data[key] != undefined) { |
|
|
|
if (data[key] != null && data[key] != undefined) { |
|
|
|
|