派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-28 0347d81ad6cc8dd93244d64aef13fa69a727d5d6
src/components/base-page/enterprise-emergency/events-reported/ReportLocationSection.vue
@@ -116,22 +116,22 @@
                        style="width: 100%">
                    <el-table-column
                            show-overflow-tooltip
                            prop="properties.pipecode"
                            prop="properties.code"
                            label="附属设施编号">
                    </el-table-column>
                    <el-table-column
                            show-overflow-tooltip
                            prop="properties.measattribute"
                            prop="properties.name"
                            label="附属设施名称">
                    </el-table-column>
                    <!--                    <el-table-column-->
                    <!--                            show-overflow-tooltip-->
                    <!--                            prop="properties.measattribute"-->
                    <!--                            label="附属设施名称">-->
                    <!--                    </el-table-column>-->
                    <el-table-column
                            show-overflow-tooltip
                            prop="properties.code"
                            label="附属设施名称">
                    </el-table-column>
                    <el-table-column
                            show-overflow-tooltip
                            prop="properties.datasource"
                            prop="properties.type"
                            label="附属设施类型">
                    </el-table-column>
                    <el-table-column width="40" fixed="right" label="操作">
@@ -206,7 +206,7 @@
        console.log(AffFacSearch)
        this.wfsHelper.clearFilter()
        this.wfsHelper.setTypeName(['sewer:view_pipeline'])
        this.wfsHelper.addLike('code', AffFacSearch)
        this.wfsHelper.addLike('pipecode', AffFacSearch)
        // this.wfsHelper.addEquals('type', '\'' + AffFacSearch + '\'')
        const resAffFac = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {})
        console.log(resAffFac)
@@ -256,8 +256,8 @@
        const size = window.map.getSize()
        var point = window.map.latLngToContainerPoint(e.latlng, window.map.getZoom())
        const wmsParams = Object.assign({
          LAYERS: 'pipeline_group',
          QUERY_LAYERS: 'pipeline_group',
          LAYERS: 'sewer:pipeline',
          QUERY_LAYERS: 'sewer:pipeline',
          WIDTH: size.x,
          HEIGHT: size.y,
          X: Math.round(point.x),
@@ -332,8 +332,8 @@
      const size = window.map.getSize()
      var point = window.map.latLngToContainerPoint(e.latlng, window.map.getZoom())
      const wmsParams = Object.assign({
        LAYERS: 'pipeline_fs',
        QUERY_LAYERS: 'pipeline_fs',
        LAYERS: 'sewer:view_pipeline',
        QUERY_LAYERS: 'sewer:view_pipeline',
        WIDTH: size.x,
        HEIGHT: size.y,
        X: Math.round(point.x),
@@ -352,11 +352,10 @@
        EXCEPTIONS: 'application/vnd.ogc.se_inimage'
      })
      AjaxUtils.get4JsonDataByUrl(WMS_URL, wmsParams, (res) => {
        console.log(res)
        // console.log(res)
        for (let i = 0; i < res.data.features.length; i++) {
          this.tableDataAffFac.push(res.data.features[i])
        }
        console.log(this.tableDataAffFac)
      })
    },
    // 管线搜索