Kaynağa Gözat

不同类型展示不同的提示词

mork 2 ay önce
ebeveyn
işleme
0071a17f24
1 değiştirilmiş dosya ile 18 ekleme ve 2 silme
  1. 18 2
      src/views/KDYJS.vue

+ 18 - 2
src/views/KDYJS.vue

@@ -545,7 +545,7 @@ export default {
       this.drawer_title = item.address
       let interfaceUrl = webConfig.KDYJS_URL + "/kdyjs/shop/bannedThings?address=" + item.address + "&lon=" + item.lon + "&lat=" + item.lat + "&distance=200"
       let interfacePro = fetch(interfaceUrl).then(response => response.json())
-      console.log(11111111111111111)
+      // console.log(11111111111111111)
       let arr = this.judgeWMSLayer(item)
       arr.push(interfacePro);
       let listKeysArr = Object.keys(toRaw(this.searchWFSLayer));
@@ -676,7 +676,23 @@ export default {
           
           let arr = interfaceResult.content.foundPlace.banned.split(",").map(num => Number(num))
           // 餐饮
-          if (arr.indexOf(0) > -1) that.analysisResult["餐饮服务项目"] = false;
+          // if (arr.indexOf(0) > -1) that.analysisResult["餐饮服务项目"] = false;
+          let str = "";
+          if (arr.indexOf(-1) > -1 || arr.indexOf(-2) > -1 || arr.indexOf(-3) > -1) {
+            that.analysisResult["餐饮服务项目"] = false;
+            if (arr.indexOf(-1) > -1){
+              str+="居民住宅楼、"
+            }
+            if (arr.indexOf(-2) > -1){
+              str+="未配套设立专用烟道的商住综合楼、"
+            }
+            if (arr.indexOf(-3) > -1){
+              str+="商住综合楼内与居住层相邻的商业楼层、"
+            }
+          }
+          let curv = str.substring(0,str.length-1)
+          let cyStr = "该地址位于《"+curv+"》,在此开设产生油烟、异味、废气的餐饮服务,可能涉及相关五环境管控要求。"
+          this.JZText.cy = cyStr;
           // 互联网
           if (arr.indexOf(1) > -1) {
             that.analysisResult["互联网上网服务营业场所"] = false