| | |
| | | dataType: '', |
| | | keyword: '', |
| | | eventNameList: [ |
| | | { name: '金陵石化' }, |
| | | { name: '南京化学' } |
| | | { name: '扬子石化' }, |
| | | { name: '仪征化纤' } |
| | | ] |
| | | }, |
| | | // 搜索到的数据绑定的active的样式 |
| | |
| | | async handleSearch () { |
| | | this.list = [] |
| | | this.wfsHelper.clearFilter() |
| | | // todo 现在企业应急还没区分开类型,后面改 |
| | | // console.log(this.form.dataType) |
| | | // this.wfsHelper.setTypeName([this.form.dataType.typeName]) |
| | | this.wfsHelper.setTypeName(['sewer:emergency']) |
| | | this.wfsHelper.setMaxFeatures(100) |
| | | if (this.form.dataType) { |
| | | this.wfsHelper.addEquals('orgname', '\'' + this.form.eventName + '\'') |
| | | this.wfsHelper.addEquals('type', '\'' + this.form.dataType.name + '\'') |
| | | } |
| | | if (this.form.keyword) { |
| | | this.wfsHelper.setFilter(this.form.keyword) |
| | | this.wfsHelper.addLike('name', this.form.keyword) |
| | | } |
| | | const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {}) |
| | | console.log(res) |
| | | // console.log(res) |
| | | if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) { |
| | | this.list = res.features |
| | | } |