Browse Source

值班人员,增加驻点的搜索条件

wangqin
刘朋 9 months ago
parent
commit
dd1daab358
  1. 21
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue

21
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue

@ -37,7 +37,7 @@
<InputSearch <InputSearch
style="width: 402px;" style="width: 402px;"
:formList="searchFormList" :formList="searchFormList"
:formConfigOptions="{ labelWidth: '72px' }" :formConfigOptions="{ labelWidth: '100px' }"
placeholder="请输入姓名、电话,回车搜索" placeholder="请输入姓名、电话,回车搜索"
type="input" type="input"
:params="params" :params="params"
@ -133,6 +133,7 @@ import request from "@/utils/request";
import { setLoading } from "@screen/utils/index.js" import { setLoading } from "@screen/utils/index.js"
import { delay, exportFile, confirm, uploadFile } from "@screen/utils/common"; import { delay, exportFile, confirm, uploadFile } from "@screen/utils/common";
import { Message } from "element-ui"; import { Message } from "element-ui";
import { getSelectOptionsStation } from "@screen/pages/control/event/businessDataManagement/utils.js";
export default { export default {
name: 'DutyOfficer', name: 'DutyOfficer',
@ -173,12 +174,21 @@ export default {
{ {
label: "值班日期:", label: "值班日期:",
key: "date", key: "date",
required: true, required: false,
type: "datePicker", type: "datePicker",
options: { options: {
valueFormat: "yyyy-MM-dd" valueFormat: "yyyy-MM-dd"
} }
}, },
{
label: "驻点:",
key: "station",
type: "select",
options: {
clearable: true,
options: [],
},
},
], ],
operateRecordVisible: false, operateRecordVisible: false,
modifyDutyInformationTableVisible: false, modifyDutyInformationTableVisible: false,
@ -189,8 +199,15 @@ export default {
}, },
created() { created() {
this.getData(); this.getData();
this.getOptions();
}, },
methods: { methods: {
async getOptions() {
const result = await getSelectOptionsStation(2);
this.searchFormList[1].options.options = result;
},
handleOperateRecord(bool, data) { handleOperateRecord(bool, data) {
this.operateRecordVisible = bool; this.operateRecordVisible = bool;
this.dialogData = data; this.dialogData = data;

Loading…
Cancel
Save