设备搜索bug
This commit is contained in:
parent
8eac28fd1a
commit
cdc393d461
|
|
@ -19,6 +19,7 @@ enum Api {
|
|||
getCamraInfo = '/appmana/survDeviceDeploy/stationInfoWithCamera',
|
||||
cameraStartApi = '/appmana/survDeviceDeploy/cameraStart',
|
||||
cameraStopApi = '/appmana/survDeviceDeploy/cameraStop',
|
||||
getDeviceCateList = '/appmana/fDictDeviceCate/getDeviceCateList',
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -163,3 +164,10 @@ export const cameraStart = (params) => {
|
|||
export const cameraStop = (params) => {
|
||||
return defHttp.post({ url: Api.cameraStopApi, params }, { isTransformResponse: false });
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const getDeviceCateList = (params) => defHttp.get({ url: Api.getDeviceCateList, params });
|
||||
|
|
|
|||
|
|
@ -21,15 +21,15 @@
|
|||
</a-col>
|
||||
|
||||
<a-col :xs="24" :sm="8" :md="6" :lg="8" :xl="6" :xxl="6" style="margin-left:-10px;margin-top: 16px;">
|
||||
<a-form-item label="选择设备类型" name="deviceCode">
|
||||
<a-form-item label="选择设备类型" name="deployType">
|
||||
<ApiSelect
|
||||
:api="getDeviceList"
|
||||
:api="getDeviceCateList"
|
||||
showSearch
|
||||
v-model:value="queryParam.deviceCode"
|
||||
v-model:value="queryParam.deployType"
|
||||
optionFilterProp="label"
|
||||
resultField="list"
|
||||
labelField="deviceName"
|
||||
valueField="deviceCode"
|
||||
labelField="cateName"
|
||||
valueField="deployType"
|
||||
placeholder="请选择"
|
||||
/>
|
||||
</a-form-item>
|
||||
|
|
@ -108,13 +108,12 @@
|
|||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns } from './SurvDeviceDeploy.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl,deviceInit} from './SurvDeviceDeploy.api';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl,deviceInit,getDeviceCateList} from './SurvDeviceDeploy.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import SurvDeviceDeployModal from './components/SurvDeviceDeployModal.vue'
|
||||
import ControlModal from './components/ControlModal.vue'
|
||||
import { ApiSelect} from '/@/components/Form/index';
|
||||
import { getStationList } from '../station/SurvStationInfo.api'
|
||||
import { getDeviceList } from '../device/SurvDeviceInfo.api';
|
||||
import { useDrawer } from '/@/components/Drawer';
|
||||
import ZhiBiaoList from './components/ZhiBiaoList.vue';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue