| | |
| | | console.log(tab, event) |
| | | if (tab.label === '分析') { |
| | | // 关闭弹窗 |
| | | window.layerFactory.clickSwitch = false |
| | | window.mapManager.clickDialogSwitch = false |
| | | } else { |
| | | // 打开弹窗 |
| | | window.layerFactory.clickSwitch = true |
| | | window.mapManager.clickDialogSwitch = true |
| | | } |
| | | }, |
| | | // 根据返回数据 确认展示图片 |
| | |
| | | // 搜索功能 |
| | | async handleSearch () { |
| | | // console.log(this.form.dataType.sname, this.form.keyword) |
| | | // console.log(this.form) |
| | | this.list = [] |
| | | this.wfsHelper.clearFilter() |
| | | // todo 现在管网还没区分开类型,后面改 |
| | | this.wfsHelper.setTypeName([this.form.dataType.typeName]) |
| | | if (this.form.keyword) { |
| | | this.wfsHelper.addLike('name', this.form.keyword) |
| | | this.wfsHelper.addLike('pipename', this.form.keyword) |
| | | } |
| | | const filter = this.form.dataType.filter |
| | | if (filter) { |
| | | this.wfsHelper.setFilter(filter) |
| | | } |
| | | // const _this = this |
| | | const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {}) |
| | | console.log(res) |
| | | if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { |
| | | this.total = res.totalFeatures |
| | | this.list = res.features |