| | |
| | | > |
| | | <!-- <el-tab-pane label="图层属性" name="first">User</el-tab-pane> --> |
| | | <el-tab-pane label="查询结果" name="second"> |
| | | <div class="chart_box" v-if="chartIsshow"> |
| | | <Bar-graph :width="'100%'" :height="'260px'"></Bar-graph> |
| | | </div> |
| | | <div class="inquireContent_input" v-if="!chartIsshow"> |
| | | <div class="inquireContent_input" v-show="pixelIsShow"> |
| | | <!-- <div class="inquireContent_input_left"> |
| | | <div class="label">范围框</div> |
| | | <el-input |
| | |
| | | <template #append>km</template> |
| | | </el-input> |
| | | </div> --> |
| | | <div class="inquireContent_input_right" v-show="pixelIsShow"> |
| | | <div class="inquireContent_input_right"> |
| | | <div class="label">范围框内最大像素值</div> |
| | | <el-select |
| | | v-model="ScopeBox.pixel" |
| | |
| | | /> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="chart_box" v-if="chartIsshow"> |
| | | <Bar-graph :width="'100%'" :height="'260px'"></Bar-graph> |
| | | </div> |
| | | <div class="inquireContent_msg" v-if="!chartIsshow"> |
| | | <div class="inquireContent_msg_k"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="download"> |
| | | <div class="download" v-if="!chartIsshow"> |
| | | <el-button link @click="download">下载分析结果</el-button> |
| | | </div> |
| | | </el-tab-pane> |
| | |
| | | let resultList = ref([]); |
| | | //像素选择 |
| | | const pixelChange = (val) => { |
| | | selectPoint({ |
| | | pixel: val, |
| | | wkt: `POINT (${store.state.plottingInquireData.entitiesData.lng} ${store.state.plottingInquireData.entitiesData.lat})`, |
| | | }); |
| | | if (store.state.plottingInquireData.entitiesData.icon == "d.png") { |
| | | selectPoint({ |
| | | pixel: val, |
| | | wkt: store.state.plottingInquireData.entitiesData.wkt, |
| | | }); |
| | | } |
| | | }; |
| | | //下载csv |
| | | const download = () => { |
| | |
| | | e.max = "-"; |
| | | e.min = "-"; |
| | | } |
| | | console.log(store.state.plottingInquireData.entitiesData.lng); |
| | | console.log(store.state.plottingInquireData.entitiesData.lat); |
| | | |
| | | e.lng = store.state.plottingInquireData.entitiesData.lng; |
| | | e.lat = store.state.plottingInquireData.entitiesData.lat; |
| | | resultList.value.push(e); |
| | |
| | | const selectPolyline = async (res) => { |
| | | const dt = await selectByPolyline(res); |
| | | console.log(dt); |
| | | // dt.result.forEach((e) => { |
| | | // if (e.code != 200) { |
| | | // e.avg = "-"; |
| | | // e.max = "-"; |
| | | // e.min = "-"; |
| | | // } |
| | | |
| | | // // e.lng = store.state.plottingInquireData.entitiesData.lng; |
| | | // // e.lat = store.state.plottingInquireData.entitiesData.lat; |
| | | // // resultList.value.push(e); |
| | | // }); |
| | | }; |
| | | const setLayerLocation = () => { |
| | | var entities = Viewer.entities._entities._array; |
| | |
| | | inquireData.value = nVal.entitiesData; |
| | | if (nVal.entitiesData.icon == "x.png") { |
| | | chartIsshow.value = true; |
| | | // selectPolyline({ |
| | | // pixel: ScopeBox.value.pixel, |
| | | // wkt: `POINT (${nVal.entitiesData.lng})`, |
| | | // }) |
| | | selectPolyline({ |
| | | pixel: ScopeBox.value.pixel, |
| | | wkt: nVal.entitiesData.wkt, |
| | | }); |
| | | } |
| | | if (nVal.entitiesData.icon == "m.png") { |
| | | if (nVal.entitiesData.name == oVal.entitiesData.name) { |