Bläddra i källkod

新增根据地块索引号过滤地图服务

songxy 9 månader sedan
förälder
incheckning
f89ff27845
3 ändrade filer med 361 tillägg och 348 borttagningar
  1. 2 1
      BJYSYBZ_C/package.json
  2. 19 9
      BJYSYBZ_C/src/views/BjWlydManageView/components/FourContent.vue
  3. 340 338
      BJYSYBZ_C/yarn.lock

+ 2 - 1
BJYSYBZ_C/package.json

@@ -31,7 +31,8 @@
     "vue-photo-preview": "^1.1.3",
     "vue-router": "^3.2.0",
     "vuex": "^3.4.0",
-    "wkx": "^0.5.0"
+    "wkx": "^0.5.0",
+    "zdzy_project": "file:"
   },
   "devDependencies": {
     "@vue/cli-plugin-babel": "~4.5.0",

+ 19 - 9
BJYSYBZ_C/src/views/BjWlydManageView/components/FourContent.vue

@@ -252,8 +252,7 @@ export default {
   },
   mounted() {
     this.$vm.$emit('setGdDetailType', 24);
-    this.initHZ();
-    this.getTsxzListData();
+    this.queryData();
   },
   methods: {
     tagBoxInit(state) {
@@ -287,21 +286,21 @@ export default {
         refreshP += ` and dkbh like '%${this.query.name}%'`;
       }
       if (this.query.gddw) {
-        const gddws = await this.queryGddwGroupByGddw(this.query.gddw)
-        if (gddws.length > 0) {
+        const dksyhs = await this.getXcryDksyhListByAll(this.query.gddw)
+        if (dksyhs.length > 0) {
           let pstr_n = '';
-          gddws.forEach((it,index) => {
+          dksyhs.forEach((it,index) => {
             pstr_n += "'"
-            pstr_n += it['gddw']
-            if (index === gddws.length - 1) {
+            pstr_n += it
+            if (index === dksyhs.length - 1) {
               pstr_n += "'";
             } else {
               pstr_n += "',"
             }
           })
-          refreshP += ` and gddw in (${pstr_n})`;
+          refreshP += ` and dksyh in (${pstr_n})`;
         } else {
-          refreshP += ` and gddw in ('${this.query.gddw}')`;
+          refreshP += ` and dksyh in ('${this.query.gddw}')`;
         }
       }
       if (this.query.small) {
@@ -357,6 +356,17 @@ export default {
         this.config.total = data['total'];
       });
     },
+    async getXcryDksyhListByAll() {
+      const urlApi = `/app/xc/getXcryDksyhListByAll`;
+      let p = {
+        ...this.query
+      };
+      if (this.userInfo && this.userInfo['nickName'] == '滨江地块监督') {
+        p['gddw'] = ''
+      }
+      const result = await this.$ajax.get(urlApi, p, this, false);
+      return result['data']
+    },
     // 点击上一页、下一页以及指定页
     pageToMe(index) {
       this.config.page.index = index;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 340 - 338
BJYSYBZ_C/yarn.lock


Vissa filer visades inte eftersom för många filer har ändrats