|
@@ -45,7 +45,7 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
- <el-form-item v-show="ifShow" label="设备状态" prop="deviceStatus">
|
|
|
+ <el-form-item v-show="ifShow" label="设备状态" label-width="85px" prop="deviceStatus">
|
|
|
<el-select
|
|
|
v-model="queryParams.deviceStatus"
|
|
|
placeholder="设备状态"
|
|
@@ -53,8 +53,8 @@
|
|
|
class="!w-240px"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="dict in getIntDictOptions(DICT_TYPE.PMS_DEVICE_STATUS)"
|
|
|
- :key="dict.id"
|
|
|
+ v-for="dict in getStrDictOptions(DICT_TYPE.PMS_DEVICE_STATUS)"
|
|
|
+ :key="dict.value"
|
|
|
:label="dict.label"
|
|
|
:value="dict.value"
|
|
|
/>
|
|
@@ -62,13 +62,19 @@
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item v-show="ifShow" label="资产性质" prop="assetProperty">
|
|
|
- <el-input
|
|
|
+ <el-select
|
|
|
v-model="queryParams.assetProperty"
|
|
|
- placeholder="请输入资产性质"
|
|
|
+ placeholder="资产性质"
|
|
|
clearable
|
|
|
- @keyup.enter="handleQuery"
|
|
|
- class="!w-200px"
|
|
|
- />
|
|
|
+ class="!w-240px"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in getStrDictOptions(DICT_TYPE.PMS_ASSET_PROPERTY)"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
@@ -187,7 +193,7 @@
|
|
|
import download from '@/utils/download'
|
|
|
import { IotDeviceApi, IotDeviceVO } from '@/api/pms/device'
|
|
|
import IotDeviceForm from './IotDeviceForm.vue'
|
|
|
-import {DICT_TYPE, getIntDictOptions} from "@/utils/dict";
|
|
|
+import {DICT_TYPE, getIntDictOptions, getStrDictOptions} from "@/utils/dict";
|
|
|
import {dateFormatter} from "@/utils/formatTime";
|
|
|
import PmsTree from "@/views/system/tree/PmsTree.vue";
|
|
|
import DeptTree from "@/views/system/user/DeptTree.vue";
|