Browse Source

Merge branch 'master' of http://39.106.8.246:3003/sagacloud/sagacloud-sagacare-weChat

anxiaoxia 1 year ago
parent
commit
f175acf963
2 changed files with 11 additions and 3 deletions
  1. 1 1
      src/common/utils.js
  2. 10 2
      src/packagesEnv/pages/intelligentControl/home2.wpy

+ 1 - 1
src/common/utils.js

@@ -1108,7 +1108,7 @@ function getMapSpaceIcon(type) {
     type === '938' ||
     type === '170'
     || type === '915') {
-    typeName = '休闲活动区(吸烟室)'
+    typeName = '休闲活动区(吸烟室)'
   }
   else if (type === '690'
     || type === '932'

+ 10 - 2
src/packagesEnv/pages/intelligentControl/home2.wpy

@@ -691,7 +691,7 @@ wepy.component({
         item.icon = utils.getMapSpaceIcon(item.roomFuncType).icon;
         item.typeName = utils.getMapSpaceIcon(item.roomFuncType).typeName;
         item.selectIcon = item.icon;
-        if (item.typeName == '开办公区') {
+        if (item.typeName == '开办公区') {
           item.circleColor = '#6B96D9';
         } else if (item.typeName == '个人办公区') {
           item.circleColor = '#AC8BE8';
@@ -778,11 +778,19 @@ wepy.component({
       if (!sign) {
         // 如果是父亲传进来的areaId  不执行下面的触发
         console.log('this.selectArea==', this.selectArea);
-        // this.$emit('mapChangeSpaceInfo', area); // 传给父组件,以请求数据
+        this.$emit('mapChangeSpaceInfo', area); // 传给父组件,以请求数据
       }
     },
     // 获取选中的空间
     selectAreaFun(currentSelect) {
+      if (!currentSelect.isCompanyControl) {
+        wx.showToast({
+          title: '不可选区域',
+          duration: 1000,
+          icon: 'none'
+        });
+        return;
+      }
       this.selectArea = null;
       this.doSelectArea(currentSelect);
     },