| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-radio-group v-model="form.type" class="levelOfRisk"> |
| | | <el-radio v-for="(item,index) in levelOfRisk" :label="item.value" :key="index"><span class="levelOfRisk-type">{{item.name }}</span> |
| | | <el-radio v-for="(item,index) in levelOfRisk" :label="item.value" :key="index"><span class="levelOfRisk-type">{{ |
| | | item.name |
| | | }}</span> |
| | | </el-radio> |
| | | </el-radio-group> |
| | | |
| | |
| | | <script> |
| | | |
| | | import mapApi from '@/api/mapApi' |
| | | import WfsHelper from '@components/helpers/WfsHelper' |
| | | |
| | | export default { |
| | | name: 'SolidWasteSearch', |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | setBounced (item) { |
| | | console.log(item) |
| | | const bound = this.L.geoJSON([item], {}).getBounds() |
| | | var layer = window.serviceLayerHelper.getByLayerId(item.StoragePlaceId) |
| | | layer && layer.openPopup() |
| | | this.$store.state.map.flyToBounds(bound) |
| | | setBounced (val) { |
| | | console.log(val) |
| | | const bound = this.L.geoJSON([val], {}).getBounds() |
| | | // var layer = window.layerFactory.flyByLayerId(val.id, bound) |
| | | window.map.flyToBounds(bound) |
| | | // layer && layer.openPopup() |
| | | }, |
| | | handlePipelineType (val) { |
| | | this.solidWasteTypeOptions.forEach(item => { |
| | |
| | | }, |
| | | // 点击搜索实现数据的搜索展示 |
| | | async handleSearch (data) { |
| | | // console.log(this.form.keyword) |
| | | const result = await mapApi.getSolidWaste(data) |
| | | console.log(result) |
| | | this.searchDataDisplay = result.Result.DataInfo |
| | | // // console.log(this.form.keyword) |
| | | // const result = await mapApi.getSolidWaste(data) |
| | | // console.log(result) |
| | | // this.searchDataDisplay = result.Result.Result |
| | | var wfsHelper = new WfsHelper() |
| | | wfsHelper.addTypeName('固废') |
| | | wfsHelper.addLike('name', this.form.keyword) |
| | | const res = await mapApi.getSolidWaste(wfsHelper.getUrl(), {}) |
| | | console.log(res) |
| | | // if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { |
| | | this.searchDataDisplay = res.Result.Result |
| | | // } |
| | | } |
| | | } |
| | | } |