|
|
@@ -73,7 +73,7 @@ import * as MapconfigApi from '@/api/basic/mapconfig/index'
|
|
|
import * as HardwareApi from '@/api/hw/hardware/information/index'
|
|
|
import * as MarsDeptApi from '@/api/system/marsdept'
|
|
|
import { handleTree } from '@/utils/tree'
|
|
|
-import {getNotUsedMap} from "@/api/basic/mapconfig/index";
|
|
|
+
|
|
|
defineOptions({ name: 'LotoStationForm' })
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
@@ -107,7 +107,7 @@ const mapOptions = ref([]) // 地图选项
|
|
|
const hardWareList = ref([]) // 硬件列表
|
|
|
|
|
|
/** 打开弹窗 */
|
|
|
-const open = async (type: string, id?: number) => {
|
|
|
+const open = async (type: string, id?: number,mapId?:number) => {
|
|
|
dialogVisible.value = true
|
|
|
dialogTitle.value = t('action.' + type)
|
|
|
formType.value = type
|
|
|
@@ -126,7 +126,7 @@ const open = async (type: string, id?: number) => {
|
|
|
marsOptions.value = handleTree(deptRes.list)
|
|
|
|
|
|
// 获取地图数据 (getNotUsedMap这个接口可以筛选已经被使用的就不再出现 未被使用的才出现)
|
|
|
- const mapRes = await MapconfigApi.getNotUsedMap()
|
|
|
+ const mapRes = await MapconfigApi.getNotUsedMap(mapId)
|
|
|
mapOptions.value = mapRes
|
|
|
|
|
|
// 获取硬件数据
|