| | |
| | | import WfsHelper from '@components/helpers/WfsHelper' |
| | | import AjaxUtils from '@utils/AjaxUtils' |
| | | import { LayerFsss } from '@src/conf/layers/LayerFsss' |
| | | import { locate } from '../../helpers/LocateHelper' |
| | | |
| | | // console.log(LayerFsss, 8888888888) |
| | | export default { |
| | |
| | | keyword: '' |
| | | }, |
| | | dataType: '', |
| | | classification: LayerFsss.layers, |
| | | list: [], |
| | | activeNum: -1 |
| | | } |
| | |
| | | deep: true |
| | | } |
| | | }, |
| | | computed: { |
| | | classification () { |
| | | const layers = LayerFsss.layers |
| | | console.log(layers) |
| | | const filtered = layers.filter(function (value, index, array) { |
| | | console.log(value) |
| | | return value.name !== '流向' |
| | | }) |
| | | return filtered |
| | | } |
| | | }, |
| | | methods: { |
| | | getImgSrc () { |
| | | const icon = this.dataType.icon |
| | | return icon ? 'assets/images/map/' + icon : '' |
| | | }, |
| | | |
| | | handleClose (done) { |
| | | // this.$confirm('确认关闭?').then(_ => { done() }).catch(_ => {}) |
| | | }, |
| | |
| | | }, |
| | | handleLocation (val, index) { |
| | | this.activeNum = index |
| | | window.layerFactory.flyByFeature(val, this.dataType.code) |
| | | locate(val, this.dataType) |
| | | } |
| | | } |
| | | } |