diff --git a/web/src/components/FileField.vue b/web/src/components/FileField.vue index b1a7506..98a199e 100644 --- a/web/src/components/FileField.vue +++ b/web/src/components/FileField.vue @@ -1,5 +1,5 @@ diff --git a/web/src/views/Market.vue b/web/src/views/Market.vue index 44164b9..4c7b0d2 100644 --- a/web/src/views/Market.vue +++ b/web/src/views/Market.vue @@ -8,7 +8,7 @@ import { getJSON, postJSON } from '../api' const hints = { MARKET_GPKG: '市场边界,默认 source/GridMap.gpkg', - GRID_5G_GPKG: '大文件请填本地路径,不要上传', + GRID_5G_GPKG: '大文件请直接填写本地路径', BUILDING_INFO_GPKG: '建筑信息', AOI_CSV: 'AOI 报表', GIS_PROJECT_SOURCE: 'QGIS 工程模板', @@ -21,7 +21,7 @@ const draft = reactive({ chosen: [], maxWorkers: 4, scale: 5, - summary: true, + summary: false, maxRaster: 25, summaryRaster: 100, clipMode: 'intersects', @@ -37,6 +37,7 @@ const success = ref('') const submitting = ref(false) const editingBoundary = ref(false) const editingProject = ref(false) +const settingsOpen = ref(false) const loadingMarkets = ref(false) const lastTask = ref(null) let marketTicket = 0 @@ -54,6 +55,17 @@ const clipOptions = [ { label: '中心点在市场内', value: 'center' }, ] +function fileActions(item) { + if (item.key === 'MARKET_GPKG') return [{ label: '编辑图层', key: 'boundary', disabled: !draft.paths.MARKET_GPKG }] + if (item.key === 'GIS_PROJECT_SOURCE') return [{ label: '编辑工程', key: 'project', disabled: !draft.paths.GIS_PROJECT_SOURCE }] + return [] +} + +function onFileAction(item, key) { + if (item.key === 'MARKET_GPKG' && key === 'boundary') editingBoundary.value = true + if (item.key === 'GIS_PROJECT_SOURCE' && key === 'project') editingProject.value = true +} + async function ensureCatalog() { const data = await getJSON('/api/catalog') sources.value = data.sources @@ -177,7 +189,7 @@ onUnmounted(() => { {{ error }} {{ success }}

1 · 导入数据

-
+
{ :label="item.label" :extension="item.extension" :hint="item.hint" - > - - + :actions="fileActions(item)" + @action="onFileAction(item, $event)" + />
{ @changed="loadMarkets(draft.paths.MARKET_GPKG)" /> -

2 · 选择市场与参数

+
+

2 · 选择市场

+ 设置 +
{{ marketError }}
@@ -219,8 +231,15 @@ onUnmounted(() => {

请先导入可用的市场边界。

- -
+ + - - 生成全量汇总包 + + -
- - -
- - - - - - - - - - - - -
-
-
-
+ + + + + + + + + + + + + + +