|
|
@ -1,25 +1,32 @@ |
|
|
|
<!-- |
|
|
|
地图线路管理 |
|
|
|
|
|
|
|
目录位置:三维地图管理 -> 地图线路管理 |
|
|
|
目录位置:三维地图管理 -> 地图线路管理(防区管理) |
|
|
|
功能概述:管理所在场景下的区域,如雷达防区测试区域 |
|
|
|
--> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<!--查询区域--> |
|
|
|
<div class="jeecg-basic-table-form-container"> |
|
|
|
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol"> |
|
|
|
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" |
|
|
|
:wrapper-col="wrapperCol"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-col :lg="8"> |
|
|
|
<a-form-item label="线路名称" name="name"> |
|
|
|
<a-input placeholder="请输入线路名称" v-model:value="queryParam.name"></a-input> |
|
|
|
<a-form-item label="防区名称" name="name"> |
|
|
|
<a-input placeholder="请输入防区名称" v-model:value="queryParam.name"></a-input> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
<a-col :lg="8"> |
|
|
|
<a-form-item label="所属区域" name="sceneId"> |
|
|
|
<ApiTreeSelect :api="sceneIdTree" v-model:value="queryParam.sceneId"></ApiTreeSelect> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons"> |
|
|
|
<a-col :lg="6"> |
|
|
|
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button> |
|
|
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button> |
|
|
|
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" |
|
|
|
style="margin-left: 8px">重置</a-button> |
|
|
|
<!-- <a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px"> |
|
|
|
{{ toggleSearchStatus ? '收起' : '展开' }} |
|
|
|
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" /> |
|
|
@ -46,8 +53,7 @@ |
|
|
|
</a-menu-item> |
|
|
|
</a-menu> |
|
|
|
</template> |
|
|
|
<a-button |
|
|
|
>批量操作 |
|
|
|
<a-button>批量操作 |
|
|
|
<Icon icon="mdi:chevron-down"></Icon> |
|
|
|
</a-button> |
|
|
|
</a-dropdown> |
|
|
@ -66,7 +72,8 @@ |
|
|
|
</template> |
|
|
|
<template #fileSlot="{ text }"> |
|
|
|
<span v-if="!text" style="font-size: 12px; font-style: italic">无文件</span> |
|
|
|
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" @click="downloadFile(text)">下载</a-button> |
|
|
|
<a-button v-else :ghost="true" type="primary" preIcon="ant-design:download-outlined" size="small" |
|
|
|
@click="downloadFile(text)">下载</a-button> |
|
|
|
</template> |
|
|
|
</BasicTable> |
|
|
|
<!-- 表单区域 --> |
|
|
@ -82,11 +89,22 @@ |
|
|
|
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './MsMapLine.api'; |
|
|
|
import { downloadFile } from '/@/utils/common/renderUtils'; |
|
|
|
import MsMapLineModal from './components/MsMapLineModal.vue'; |
|
|
|
import { BasicForm, ApiSelect, JAreaLinkage, JPopup, JAreaSelect, FormActionType, JCheckbox, JInput, JEllipsis } from '/@/components/Form'; |
|
|
|
import { BasicForm, ApiSelect, JAreaLinkage, JPopup, JAreaSelect, FormActionType, JCheckbox, JInput, JEllipsis, ApiTreeSelect } from '/@/components/Form'; |
|
|
|
import { defHttp } from '/@/utils/http/axios'; |
|
|
|
import { useUserStore } from '/@/store/modules/user'; |
|
|
|
const userStore = useUserStore(); |
|
|
|
const formRef = ref(); |
|
|
|
const queryParam = reactive<any>({}); |
|
|
|
// const toggleSearchStatus = ref<boolean>(false); |
|
|
|
const registerModal = ref(); |
|
|
|
//远程树 |
|
|
|
const sceneIdTree = () => defHttp.get<Recordable[]> |
|
|
|
({ url: "/military/msMapScene/queryTreeByCode", |
|
|
|
params:{ |
|
|
|
sceneId: userStore.userInfo?.sceneId + "*" |
|
|
|
} }).then(res=>{ return [res];}) |
|
|
|
; |
|
|
|
// (params?: Recordable) => defHttp.get({ url: "/military/msMapScene/queryTreeByCode", params }).then(res=>{ return [res];}), |
|
|
|
//注册table数据 |
|
|
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ |
|
|
|
tableProps: { |
|
|
@ -100,6 +118,8 @@ |
|
|
|
fixed: 'right', |
|
|
|
}, |
|
|
|
beforeFetch: (params) => { |
|
|
|
//调整到api中判断所属场景 |
|
|
|
// params.sceneId = userStore.userInfo?.sceneId + "*" |
|
|
|
return Object.assign(params, queryParam); |
|
|
|
}, |
|
|
|
}, |
|
|
|