| | |
| | | <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" |
| | |
| | | > |
| | | <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" |
| | |
| | | const ScopeBox = ref({ |
| | | Scop: "", |
| | | pixel: "1", |
| | | nodes: "16", |
| | | }); |
| | | let layerValue = ref(""); |
| | | const layeroptions = [ |
| | |
| | | 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); |
| | | //关闭 |
| | |
| | | }; |
| | | //像素选择 |
| | | 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", ""); |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | if (nVal.entitiesData.icon == "x.png") { |
| | | chartIsshow.value = true; |
| | | selectPolyline({ |
| | | pixel: ScopeBox.value.pixel, |
| | | nodes: ScopeBox.value.nodes, |
| | | wkt: nVal.entitiesData.wkt, |
| | | }); |
| | | } |