From 87fc01b9305ddbd6d74ad3ac7d1d2560e26af399 Mon Sep 17 00:00:00 2001 From: WX <1377869194@qq.com> Date: 星期四, 14 九月 2023 18:05:50 +0800 Subject: [PATCH] 修改标绘查询接口 --- src/views/plotting/plottingInquire.vue | 98 ++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 88 insertions(+), 10 deletions(-) diff --git a/src/views/plotting/plottingInquire.vue b/src/views/plotting/plottingInquire.vue index 539affe..2f7a134 100644 --- a/src/views/plotting/plottingInquire.vue +++ b/src/views/plotting/plottingInquire.vue @@ -35,7 +35,7 @@ <template #append>km</template> </el-input> </div> --> - <div class="inquireContent_input_right"> + <div class="inquireContent_input_right" v-show="!chartIsshow"> <div class="label">鑼冨洿妗嗗唴鏈�澶у儚绱犲��</div> <el-select v-model="ScopeBox.pixel" @@ -46,6 +46,23 @@ > <el-option v-for="item in pixeloptions" + :key="item.value" + :label="item.label" + :value="item.value" + /> + </el-select> + </div> + <div class="inquireContent_input_right" v-show="chartIsshow"> + <div class="label">鑺傜偣鏁�</div> + <el-select + v-model="ScopeBox.nodes" + class="m-2" + placeholder="鍍忕礌鍊�" + size="small" + @change="nodesChange" + > + <el-option + v-for="item in nodesoptions" :key="item.value" :label="item.label" :value="item.value" @@ -171,6 +188,7 @@ const ScopeBox = ref({ Scop: "", pixel: "1", + nodes: "16", }); let layerValue = ref(""); const layeroptions = [ @@ -225,6 +243,52 @@ label: "256脳256", }, ]; +const nodesoptions = [ + { + value: "16", + label: "16", + }, + { + value: "32", + label: "32", + }, + { + value: "64", + label: "64", + }, + { + value: "96", + label: "96", + }, + { + value: "128", + label: "128", + }, + { + value: "192", + label: "192", + }, + { + value: "256", + label: "256", + }, + { + value: "384", + label: "384", + }, + { + value: "512", + label: "512", + }, + { + value: "768", + label: "768", + }, + { + value: "1024", + label: "1024", + }, +]; let resultList = ref([]); let dialogShow = ref(false); //鍏抽棴 @@ -238,13 +302,22 @@ }; //鍍忕礌閫夋嫨 const pixelChange = (val) => { - if (store.state.plottingInquireData.entitiesData.icon == "d.png") { - selectPoint({ - pixel: val, - wkt: store.state.plottingInquireData.entitiesData.wkt, - }); - } + // if (store.state.plottingInquireData.entitiesData.icon == "d.png") { + + // } + selectPoint({ + pixel: val, + wkt: store.state.plottingInquireData.entitiesData.wkt, + }); }; +//鑺傜偣閫夋嫨 +const nodesChange = (val) => { + selectPolyline({ + nodes: val, + wkt: store.state.plottingInquireData.entitiesData.wkt, + }); +}; +//鑺傜偣閫夋嫨 //涓嬭浇csv const download = () => { saveFSDZJsonToExcel(resultList.value, "123", ""); @@ -257,13 +330,16 @@ if (dt.code !== 200) { return ElMessage.error("鏌ヨ閿欒"); } - + console.log(dt); dt.result.forEach((e) => { if (e.code != 200) { e.avg = "-"; e.max = "-"; e.min = "-"; } + e.avg = e.avgList.toString(); + e.max = e.maxList.toString(); + e.min = e.minList.toString(); e.lng = store.state.plottingInquireData.entitiesData.lng; e.lat = store.state.plottingInquireData.entitiesData.lat; resultList.value.push(e); @@ -280,7 +356,9 @@ e.max = "-"; e.min = "-"; } - + e.avg = e.avgList.toString(); + e.max = e.maxList.toString(); + e.min = e.minList.toString(); e.lng = store.state.plottingInquireData.entitiesData.lng; e.lat = store.state.plottingInquireData.entitiesData.lat; resultList.value.push(e); @@ -344,7 +422,7 @@ if (nVal.entitiesData.icon == "x.png") { chartIsshow.value = true; selectPolyline({ - pixel: ScopeBox.value.pixel, + nodes: ScopeBox.value.nodes, wkt: nVal.entitiesData.wkt, }); } -- Gitblit v1.9.3