Commit 39ae8167 authored by 王晓倩's avatar 王晓倩

下拉框可输入

parent 1936e422
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
v-model="queryParams.alarmType" v-model="queryParams.alarmType"
placeholder="请选择报警类型" placeholder="请选择报警类型"
clearable clearable
filterable
size="small" size="small"
> >
<el-option <el-option
...@@ -160,7 +161,7 @@ ...@@ -160,7 +161,7 @@
<el-input v-model="form.orderName" placeholder="请输入工单名称" style="width: 590px" /> <el-input v-model="form.orderName" placeholder="请输入工单名称" style="width: 590px" />
</el-form-item> </el-form-item>
<el-form-item label="指定执行人员" prop="appointInspector"> <el-form-item label="指定执行人员" prop="appointInspector">
<el-select v-model="form.appointInspector" placeholder="请选择执行人员" clearable size="small" @change="setUserId" style="width: 590px"> <el-select v-model="form.appointInspector" placeholder="请选择执行人员" clearable filterable size="small" @change="setUserId" style="width: 590px">
<el-option <el-option
v-for="item in inspector" v-for="item in inspector"
:key="item.userId" :key="item.userId"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="设备类型" prop="deviceType"> <el-form-item label="设备类型" prop="deviceType">
<el-select v-model="queryParams.deviceType" placeholder="请选择设备类型" clearable size="small"> <el-select v-model="queryParams.deviceType" placeholder="请选择设备类型" filterable clearable size="small">
<el-option label="流量计" value="3" /> <el-option label="流量计" value="3" />
<el-option label="压力表" value="4" /> <el-option label="压力表" value="4" />
</el-select> </el-select>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="设备类型" prop="deviceType"> <el-form-item label="设备类型" prop="deviceType">
<el-select v-model="queryParams.deviceType" placeholder="请选择设备类型" clearable size="small"> <el-select v-model="queryParams.deviceType" placeholder="请选择设备类型" filterable clearable size="small">
<el-option label="流量计" value="3" /> <el-option label="流量计" value="3" />
<el-option label="压力表" value="4" /> <el-option label="压力表" value="4" />
</el-select> </el-select>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="设备类型" prop="deviceType"> <el-form-item label="设备类型" prop="deviceType">
<el-select v-model="queryParams.deviceType" placeholder="请选择设备类型" size="small"> <el-select v-model="queryParams.deviceType" placeholder="请选择设备类型" filterable size="small">
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="135px"> <el-form ref="form" :model="form" :rules="rules" label-width="135px">
<el-col :span="11"> <el-col :span="11">
<el-form-item label="所属管道" prop="pipeId"> <el-form-item label="所属管道" prop="pipeId">
<el-select v-model="form.pipeId" placeholder="请选择所属管道" style="width: 100%" > <el-select v-model="form.pipeId" placeholder="请选择所属管道" filterable style="width: 100%" >
<el-option <el-option
v-for="item in options" v-for="item in options"
:key="item.pipeId" :key="item.pipeId"
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
<el-col :span="11"> <el-col :span="11">
<el-form-item label="设备类型" prop="deviceType"> <el-form-item label="设备类型" prop="deviceType">
<el-select v-model="form.deviceType" placeholder="请选择设备类型" style="width: 100%" > <el-select v-model="form.deviceType" placeholder="请选择设备类型" filterable style="width: 100%" >
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="设备" prop="deviceId"> <el-form-item label="设备" prop="deviceId">
<el-select v-model="queryParams.deviceId" placeholder="请选择设备"> <el-select v-model="queryParams.deviceId" placeholder="请选择设备" filterable>
<el-option <el-option
v-for="dict in devices" v-for="dict in devices"
:key="dict.deviceId" :key="dict.deviceId"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="关联管道" prop="relationPipeId"> <el-form-item label="关联管道" prop="relationPipeId">
<el-select v-model="queryParams.relationPipeId" placeholder="请选择关联管道"> <el-select v-model="queryParams.relationPipeId" placeholder="请选择关联管道" filterable>
<el-option <el-option
v-for="dict in pipes" v-for="dict in pipes"
:key="dict.pipeId" :key="dict.pipeId"
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="关联设备" prop="relationDeviceId"> <el-form-item label="关联设备" prop="relationDeviceId">
<el-select v-model="queryParams.relationDeviceId" placeholder="请选择关联设备"> <el-select v-model="queryParams.relationDeviceId" placeholder="请选择关联设备" filterable>
<el-option <el-option
v-for="dict in devices" v-for="dict in devices"
:key="dict.deviceId" :key="dict.deviceId"
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="设备id" prop="deviceId"> <el-form-item label="设备id" prop="deviceId">
<!--<el-input v-model="form.deviceId" placeholder="请输入设备id" />--> <!--<el-input v-model="form.deviceId" placeholder="请输入设备id" />-->
<el-select v-model="form.deviceId" placeholder="请选择设备"> <el-select v-model="form.deviceId" placeholder="请选择设备" filterable>
<el-option <el-option
v-for="dict in devices" v-for="dict in devices"
:key="dict.deviceId" :key="dict.deviceId"
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
</el-form-item> </el-form-item>
<el-form-item label="关联管道id" prop="relationPipeId"> <el-form-item label="关联管道id" prop="relationPipeId">
<!--<el-input v-model="form.relationPipeId" placeholder="请输入关联管道id" />--> <!--<el-input v-model="form.relationPipeId" placeholder="请输入关联管道id" />-->
<el-select v-model="form.relationPipeId" placeholder="请选择关联管道"> <el-select v-model="form.relationPipeId" placeholder="请选择关联管道" filterable>
<el-option <el-option
v-for="dict in pipes" v-for="dict in pipes"
:key="dict.pipeId" :key="dict.pipeId"
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
</el-form-item> </el-form-item>
<el-form-item label="关联设备id" prop="relationDeviceId"> <el-form-item label="关联设备id" prop="relationDeviceId">
<!-- <el-input v-model="form.relationDeviceId" placeholder="请输入关联设备id" />--> <!-- <el-input v-model="form.relationDeviceId" placeholder="请输入关联设备id" />-->
<el-select v-model="form.relationDeviceId" placeholder="请选择关联设备"> <el-select v-model="form.relationDeviceId" placeholder="请选择关联设备" filterable>
<el-option <el-option
v-for="dict in devices" v-for="dict in devices"
:key="dict.deviceId" :key="dict.deviceId"
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
<el-row :gutter="50"> <el-row :gutter="50">
<span>新增设备</span> <span>新增设备</span>
<!--<el-input placeholder="请输入设备名称" style="width: 260px;margin-left: 20px;"></el-input>--> <!--<el-input placeholder="请输入设备名称" style="width: 260px;margin-left: 20px;"></el-input>-->
<el-select v-model="subForm.deviceId" placeholder="请选择设备名称"> <el-select v-model="subForm.deviceId" placeholder="请选择设备名称" filterable>
<el-option <el-option
v-for="dict in devices" v-for="dict in devices"
:key="dict.deviceId" :key="dict.deviceId"
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
<el-col :span="20" style="float: left;box-shadow: rgb(233, 229, 229) 3px 3px 7px 2px;padding-top: 20px;padding-left: 15px;"> <el-col :span="20" style="float: left;box-shadow: rgb(233, 229, 229) 3px 3px 7px 2px;padding-top: 20px;padding-left: 15px;">
<el-form-item label="关联管道:" prop="pipeCode"> <el-form-item label="关联管道:" prop="pipeCode">
<!--<el-input v-model="item.sss" placeholder="请输入关联管道名称" style="width: 40%;margin-left: 20px;"></el-input>--> <!--<el-input v-model="item.sss" placeholder="请输入关联管道名称" style="width: 40%;margin-left: 20px;"></el-input>-->
<el-select v-model="item.relationPipeId" placeholder="请选择关联管道名称"> <el-select v-model="item.relationPipeId" placeholder="请选择关联管道名称" filterable>
<el-option <el-option
v-for="dict in pipes" v-for="dict in pipes"
:key="dict.pipeId" :key="dict.pipeId"
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</el-form-item> </el-form-item>
<el-form-item label="关联设备:" prop="pipeCode"> <el-form-item label="关联设备:" prop="pipeCode">
<!-- <el-input v-model="item.qqq" placeholder="请输入关联设备名称" style="width: 40%;margin-left: 20px;"></el-input>--> <!-- <el-input v-model="item.qqq" placeholder="请输入关联设备名称" style="width: 40%;margin-left: 20px;"></el-input>-->
<el-select v-model="item.relationDeviceId" placeholder="请选择关联设备名称"> <el-select v-model="item.relationDeviceId" placeholder="请选择关联设备名称" filterable>
<el-option <el-option
v-for="dict in devices" v-for="dict in devices"
:key="dict.deviceId" :key="dict.deviceId"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="管道类型" prop="pipeType"> <el-form-item label="管道类型" prop="pipeType">
<el-select v-model="queryParams.pipeType" placeholder="请选择管道类型" size="small"> <el-select v-model="queryParams.pipeType" placeholder="请选择管道类型" filterable clearable size="small">
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="计划状态" prop="planStatus"> <el-form-item label="计划状态" prop="planStatus">
<el-select v-model="queryParams.planStatus" placeholder="请选择计划状态" clearable size="small"> <el-select v-model="queryParams.planStatus" placeholder="请选择计划状态" filterable clearable size="small">
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
<el-input v-model="form2.orderName" placeholder="请输入工单名称" style="width: 590px" /> <el-input v-model="form2.orderName" placeholder="请输入工单名称" style="width: 590px" />
</el-form-item> </el-form-item>
<el-form-item label="指定执行人员" prop="appointInspector"> <el-form-item label="指定执行人员" prop="appointInspector">
<el-select v-model="form2.appointInspector" placeholder="请选择执行人员" clearable size="small" style="width: 590px" > <el-select v-model="form2.appointInspector" placeholder="请选择执行人员" filterable clearable size="small" style="width: 590px" >
<el-option <el-option
v-for="item in inspector" v-for="item in inspector"
:key="item.userId" :key="item.userId"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<el-input v-model="queryParams.troubleName" placeholder="请输入隐患名称" style="width: 170px"/> <el-input v-model="queryParams.troubleName" placeholder="请输入隐患名称" style="width: 170px"/>
</el-form-item> </el-form-item>
<el-form-item label="隐患类型" prop="troubleType"> <el-form-item label="隐患类型" prop="troubleType">
<el-select v-model="queryParams.troubleType" placeholder="请选择隐患类型" clearable size="small" style="width: 170px"> <el-select v-model="queryParams.troubleType" placeholder="请选择隐患类型" filterable clearable size="small" style="width: 170px">
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="处理状态" prop="dealStatus"> <el-form-item label="处理状态" prop="dealStatus">
<el-select v-model="queryParams.dealStatus" placeholder="请选择状态" clearable size="small" style="width: 170px"> <el-select v-model="queryParams.dealStatus" placeholder="请选择状态" filterable clearable size="small" style="width: 170px">
<el-option label="未生成工单" value="-1" /> <el-option label="未生成工单" value="-1" />
<el-option label="暂未处理" value="0" /> <el-option label="暂未处理" value="0" />
<el-option label="不需处理" value="1" /> <el-option label="不需处理" value="1" />
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="隐患类型" prop="troubleType"> <el-form-item label="隐患类型" prop="troubleType">
<el-select v-model="form1.troubleType" placeholder="请选择隐患类型" style="width: 220px"> <el-select v-model="form1.troubleType" placeholder="请选择隐患类型" filterable style="width: 220px">
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="隐患级别" prop="troubleLevel"> <el-form-item label="隐患级别" prop="troubleLevel">
<el-select v-model="form1.troubleLevel" placeholder="请选择隐患级别" style="width: 220px"> <el-select v-model="form1.troubleLevel" placeholder="请选择隐患级别" filterable style="width: 220px">
<el-option <el-option
v-for="dict in levelOptions" v-for="dict in levelOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="上报人" prop="reportMan"> <el-form-item label="上报人" prop="reportMan">
<el-select v-model="form1.reportMan" placeholder="请选择上报人" style="width: 220px"> <el-select v-model="form1.reportMan" placeholder="请选择上报人" filterable style="width: 220px">
<el-option <el-option
v-for="item in userList" v-for="item in userList"
:key="item.userId" :key="item.userId"
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
<el-input v-model="form2.orderName" placeholder="请输入工单名称" style="width: 600px" /> <el-input v-model="form2.orderName" placeholder="请输入工单名称" style="width: 600px" />
</el-form-item> </el-form-item>
<el-form-item label="指定执行人员" prop="appointInspector" > <el-form-item label="指定执行人员" prop="appointInspector" >
<el-select v-model="form2.appointInspector" placeholder="请选择执行人员" clearable size="small" style="width: 600px"> <el-select v-model="form2.appointInspector" placeholder="请选择执行人员" filterable clearable size="small" style="width: 600px">
<el-option <el-option
v-for="item in inspector" v-for="item in inspector"
:key="item.userId" :key="item.userId"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="app-container basicsInfo"> <div class="app-container basicsInfo">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
<!-- <el-form-item label="工单类型" prop="orderType"> <!-- <el-form-item label="工单类型" prop="orderType">
<el-select v-model="queryParams.orderType" placeholder="请选择工单类型" clearable size="small"> <el-select v-model="queryParams.orderType" placeholder="请选择工单类型" filterable clearable size="small">
<el-option <el-option
v-for="dict in ordertypeOptions" v-for="dict in ordertypeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="工单状态" prop="orderStatus"> <el-form-item label="工单状态" prop="orderStatus">
<el-select v-model="queryParams.orderStatus" placeholder="请选择工单状态" clearable size="small"> <el-select v-model="queryParams.orderStatus" placeholder="请选择工单状态" filterable clearable size="small">
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<el-input v-model="form.orderName" placeholder="请输入工单名称" style="width: 600px" /> <el-input v-model="form.orderName" placeholder="请输入工单名称" style="width: 600px" />
</el-form-item> </el-form-item>
<el-form-item label="指定执行人员" prop="appointInspector"> <el-form-item label="指定执行人员" prop="appointInspector">
<el-select v-model="form.appointInspector" placeholder="请选择执行人员" clearable size="small" @change="setUserId" style="width: 600px"> <el-select v-model="form.appointInspector" placeholder="请选择执行人员" filterable clearable size="small" @change="setUserId" style="width: 600px">
<el-option <el-option
v-for="item in inspector" v-for="item in inspector"
:key="item.userId" :key="item.userId"
......
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
<el-input v-model="form.orderName" placeholder="请输入工单名称" /> <el-input v-model="form.orderName" placeholder="请输入工单名称" />
</el-form-item> </el-form-item>
<el-form-item label="指定执行人员" prop="appointInspector"> <el-form-item label="指定执行人员" prop="appointInspector">
<el-select v-model="form.appointInspector" placeholder="请选择执行人员" clearable size="small" @change="setUserId"> <el-select v-model="form.appointInspector" placeholder="请选择执行人员" filterable clearable size="small" @change="setUserId">
<el-option <el-option
v-for="item in inspector" v-for="item in inspector"
:key="item.userId" :key="item.userId"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="app-container basicsInfo"> <div class="app-container basicsInfo">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
<!-- <el-form-item label="工单类型" prop="orderType"> <!-- <el-form-item label="工单类型" prop="orderType">
<el-select v-model="queryParams.orderType" placeholder="请选择工单类型" clearable size="small"> <el-select v-model="queryParams.orderType" placeholder="请选择工单类型" filterable clearable size="small">
<el-option <el-option
v-for="dict in ordertypeOptions" v-for="dict in ordertypeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="工单状态" prop="orderStatus"> <el-form-item label="工单状态" prop="orderStatus">
<el-select v-model="queryParams.orderStatus" placeholder="请选择工单状态" clearable size="small"> <el-select v-model="queryParams.orderStatus" placeholder="请选择工单状态" filterable clearable size="small">
<el-option <el-option
v-for="dict in typeOptions" v-for="dict in typeOptions"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<font>{{form.orderId}}</font> <font>{{form.orderId}}</font>
</el-form-item> </el-form-item>
<el-form-item label="设备列表" prop="deviceId" v-if="form.orderType == '1'"> <el-form-item label="设备列表" prop="deviceId" v-if="form.orderType == '1'">
<el-select v-model="form.deviceId" placeholder="请选择设备" clearable size="small" filterable style="width: 600px" > <el-select v-model="form.deviceId" placeholder="请选择设备" filterable clearable size="small" filterable style="width: 600px" >
<el-option <el-option
v-for="device in form.deviceInfoList" v-for="device in form.deviceInfoList"
:key="device.deviceId" :key="device.deviceId"
......
...@@ -217,7 +217,7 @@ ...@@ -217,7 +217,7 @@
<font>{{form.orderId}}</font> <font>{{form.orderId}}</font>
</el-form-item> </el-form-item>
<el-form-item label="设备列表" prop="deviceCode" v-if="form.orderType == '1'"> <el-form-item label="设备列表" prop="deviceCode" v-if="form.orderType == '1'">
<el-select v-model="form.deviceId" placeholder="请选择设备" clearable size="small" filterable > <el-select v-model="form.deviceId" placeholder="请选择设备" filterable clearable size="small" filterable >
<el-option <el-option
v-for="device in form.deviceInfoList" v-for="device in form.deviceInfoList"
:key="device.deviceId" :key="device.deviceId"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment