Browse Source

站点下拉框更改

aqm-ops-supervision-platform
wbc 5 days ago
parent
commit
46b74e22f8
  1. 2
      src/api/common/index.ts
  2. 2
      src/views/checkManage/order/index.vue
  3. 6
      src/views/station/device/api.ts
  4. 6
      src/views/station/device/index.vue

2
src/api/common/index.ts

@ -2,7 +2,7 @@ import { defHttp } from '@/utils/http/axios';
enum Api {
getHangzhouRegions = '/air/stationInfo/getHangzhouRegions',
getStationList = '/air/deviceInfo/getStationList',
getStationList = '/air/stationInfo/getStationList',
}
export function getStationList() {

2
src/views/checkManage/order/index.vue

@ -5,7 +5,7 @@
<a-button type="primary" @click="showModal(1)">新增</a-button>
</template>
</BasicTable>
<addModal ref="addModalRef" />
<addModal ref="addModalRef" @success="reload()"/>
</PageWrapper>
</template>

6
src/views/station/device/api.ts

@ -4,7 +4,7 @@ import { defHttp } from '@/utils/http/axios';
enum Api {
root = '/air/deviceInfo',
list = '/air/deviceInfo/list',
getStationList = '/air/deviceInfo/getStationList',
getDeviceStationList = '/air/deviceInfo/getStationList',
}
export function list(params: any) {
@ -27,6 +27,6 @@ export function removeByIds(ids: IDS) {
return defHttp.deleteWithMsg({ url: `${Api.root}/${ids.join(',')}` });
}
export function getStationList() {
return defHttp.get({ url: Api.getStationList });
export function getDeviceStationList() {
return defHttp.get({ url: Api.getDeviceStationList });
}

6
src/views/station/device/index.vue

@ -20,9 +20,9 @@
<script setup lang="ts">
import { PageWrapper } from '@/components/Page';
import { BasicTable, useTable } from '@/components/Table';
import { list, removeByIds } from './api';
import { list, removeByIds,getDeviceStationList } from './api';
import { formSchemas, columns } from './data';
import {getStationList,getHangzhouRegions} from '@/api/common/index'
import {getHangzhouRegions} from '@/api/common/index'
defineOptions({ name: 'device' });
const [registerTable, { reload }] = useTable({
@ -59,7 +59,7 @@
//
//
const getStationOptions =async()=>{
const res = await getStationList()
const res = await getDeviceStationList()
formSchemas[1].componentProps.options = res
}
const getHangzhouOptions =async()=>{

Loading…
Cancel
Save