Browse Source

名字和警号一起展示

master
laishajiang 2 years ago
parent
commit
ca545089ae
  1. 9
      src/views/duty/edit.vue
  2. 2
      src/views/duty/index.vue

9
src/views/duty/edit.vue

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

2
src/views/duty/index.vue

@ -2,7 +2,7 @@
<div class="index-lists">
<el-card class="!border-none" shadow="never">
<el-form ref="formRef" class="mb-[-16px]" :model="queryParams" :inline="true">
<el-form-item label="警号" prop="holidayName">
<el-form-item label="警号" prop="holidayName" style="width: 180px;">
<el-input class="w-[280px]" v-model="queryParams.empNo" />
</el-form-item>
<el-form-item label="机构名称" prop="holidayName">

Loading…
Cancel
Save