Browse Source

修复地图公司社区切换问题

Shannon_mu 2 năm trước cách đây
mục cha
commit
33f8d3ccb4

+ 0 - 1
commandCenter/src/components/common/Header.vue

@@ -148,7 +148,6 @@ export default {
             this.time.thisTime = this.$moment().format('YYYY/MM/DD');
         },
         selectChange() {
-            console.log(this.communityValue);
             let thisValue = this.$refs.multipleValue.getCheckedNodes()[0];
             // 选择是否为公司
             if (!!thisValue && thisValue.data.type == 'org') {

+ 0 - 1
commandCenter/src/components/common/numberActive.vue

@@ -23,7 +23,6 @@ export default {
     },
     methods: {
         numberGrow(ele) {
-          debugger;
             let _this = this;
             let step = (_this.value * 10) / (_this.time * 1000);
             let current = 0;

+ 11 - 8
commandCenter/src/views/commandDispatch/index.vue

@@ -124,8 +124,8 @@ export default {
             handler(newVal, oldVal) {
                 this.mixins_query.communityId = !!newVal.type ? null : newVal.value.join();
                 this.mixins_query.companyIds = !!newVal.type ? newVal.value.join() : null;
-                this.showMap = !!newVal.type ? true : false;
-                if (newVal.type == null || newVal.type == undefined) {
+                this.showMap = !!newVal.type;
+                if (!this.showMap && !!newVal.value) {
                     this.getData();
                     this.getImg();
                 }
@@ -267,16 +267,19 @@ export default {
                 .catch(() => {});
         }
     },
-
-    created() {
-        debugger;
+    mounted() {
         const { type, value } = this.globalCommunity;
         this.mixins_query.communityId = !!type ? null : !!value ? value.join() : null;
         this.mixins_query.companyIds = !!type ? value.join() : null;
-        if (!!type) {
-            this.showMap = true;
+        if (!!value) {
+            this.showMap = !!type;
+            if (!this.showMap) {
+                this.getData();
+                this.getImg();
+            }
         }
-    }
+    },
+    created() {}
 };
 </script>
 <style lang="scss" scoped>

+ 1 - 2
commandCenter/src/views/operationalServices/assembly/orderClassification.vue

@@ -58,8 +58,7 @@ export default {
     },
     getData () {
       this.$http.get('/sc-community/statisticWorkOrderCategory', this.mixins_query).then(({ data, msg, status }) => {
-        if (status == 0 && !!data.datas) {
-          debugger
+        if (status == 0 && !!data.datas) { 
           this.clientOptions = ringType([], this.eachartObj(data), {}, { type: '%', total: data.total });
         }
       });

+ 0 - 1
commandCenter/src/views/operationalServices/assembly/scoringOperationPersonnel.vue

@@ -73,7 +73,6 @@ export default {
             }
             this.clientOptions = columnOptionsChartName('(分)', name, Resdate, [], 10);
           } else if (data.length == 0) {
-            debugger
             this.clientOptions = columnOptionsChartName('(分)', ['name1'], [{ name: 'name1', data: 0 }], [], 10);
           }
         })

+ 81 - 98
commandCenter/src/views/operationalServices/assembly/todayTask.vue

@@ -1,110 +1,93 @@
 <template>
-  <div class="modelBlock">
-    <div class="model-title">
-      <div class="model-title-text">今日任务</div>
-    </div>
-    <div class="model-contents">
-      <!-- @click="$router.push({ path: item.path })" -->
-      <!-- <div class="number">{{ houseData[item.fontObj] }}</div>
-        <div class="text">{{ item.name }}</div> -->
-      <div
-        class="blockmuen"
-        :style="item.style"
-        v-for="(item, index) in blockArr"
-        :key="index"
-      >
-        <div v-if="index== 1 ? true :index ==0 ? true :flase ">
-          <span
-            class="text"
-            style="margin-right: 20px;"
-          >{{item.name}}</span>
-          <span
-            class="number"
-            style="font-size: 30px; position: relative;
-    top: 4px;"
-          >{{item.resData}}</span>
+    <div class="modelBlock">
+        <div class="model-title">
+            <div class="model-title-text">今日任务</div>
         </div>
-        <div v-else>
-          <div
-            class="number"
-            style="font-size: 20px;
-    margin-bottom: 10px;"
-          >{{item.resData}}</div>
-          <div class="text">{{item.name}}</div>
+        <div class="model-contents">
+            <!-- @click="$router.push({ path: item.path })" -->
+            <!-- <div class="number">{{ houseData[item.fontObj] }}</div>
+        <div class="text">{{ item.name }}</div> -->
+            <div class="blockmuen" :style="item.style" v-for="(item, index) in blockArr" :key="index">
+                <div v-if="index == 1 ? true : index == 0 ? true : false">
+                    <span class="text" style="margin-right: 20px">{{ item.name }}</span>
+                    <span class="number" style="font-size: 30px; position: relative; top: 4px">{{ item.resData }}</span>
+                </div>
+                <div v-else>
+                    <div class="number" style="font-size: 20px; margin-bottom: 10px">{{ item.resData }}</div>
+                    <div class="text">{{ item.name }}</div>
+                </div>
+            </div>
         </div>
-
-      </div>
     </div>
-  </div>
 </template>
 <script>
-import index from './allcommunit'
+import index from './allcommunit';
 export default {
-  mixins: [index],
-  data () {
-    return {
-      houseData: [],
-      blockArr: [
-        {
-          style: 'background: linear-gradient(135deg, #488fff 0%, #65dcff 100%);width: 100%; grid-area: 1/1 / span 1 / span 2; height:80px',
-          name: '工单',
-          resData: ''
-        },
-        {
-          style: 'background: linear-gradient(315deg, #884DD2 0%, #DF63CC  100%);width: 100%; grid-area: 1/3 / span 1 / span 2;height:80px',
-          name: '投诉',
-          resData: ''
-        },
-        {
-          style: 'background: linear-gradient(135deg, #5EEDCC 0%, #24C3F1 100%);',
-          name: '已完成',
-          resData: ''
-        },
-        {
-          style: 'background: linear-gradient(135deg, #F0646C 0%, #F4994E 100%);',
-          name: '未完成',
-          resData: ''
-        },
-        {
-          style: 'background: linear-gradient(135deg, #5EEDCC  0%, #24C3F1 100%);',
-          name: '已处理',
-          resData: ''
-        },
-        {
-          style: 'background: linear-gradient(135deg, #F0646C 0%, #F4994E 100%);',
-          name: '未处理',
-          resData: ''
-        }
-      ],
-      mixins_query: {
-        communityId: '',
-        date: ''
-      }
-    };
-  },
-  methods: {
-    // 获取房屋信息
-    getData () {
-      this.$http.get('/sc-community/statisticTodayTask', this.mixins_query).then(({ data, msg, status }) => {
-        if (status == 0) {
-          this.blockArr[0].resData = data.workOrder.total;
-          this.blockArr[1].resData = data.feedback.total;
-          this.blockArr[2].resData = data.workOrder.completeTotal;
-          this.blockArr[3].resData = data.workOrder.unfinishedTotal;
-          this.blockArr[4].resData = data.feedback.completeTotal;
-          this.blockArr[5].resData = data.feedback.unfinishedTotal;
+    mixins: [index],
+    data() {
+        return {
+            houseData: [],
+            blockArr: [
+                {
+                    style: 'background: linear-gradient(135deg, #488fff 0%, #65dcff 100%);width: 100%; grid-area: 1/1 / span 1 / span 2; height:80px',
+                    name: '工单',
+                    resData: ''
+                },
+                {
+                    style: 'background: linear-gradient(315deg, #884DD2 0%, #DF63CC  100%);width: 100%; grid-area: 1/3 / span 1 / span 2;height:80px',
+                    name: '投诉',
+                    resData: ''
+                },
+                {
+                    style: 'background: linear-gradient(135deg, #5EEDCC 0%, #24C3F1 100%);',
+                    name: '已完成',
+                    resData: ''
+                },
+                {
+                    style: 'background: linear-gradient(135deg, #F0646C 0%, #F4994E 100%);',
+                    name: '未完成',
+                    resData: ''
+                },
+                {
+                    style: 'background: linear-gradient(135deg, #5EEDCC  0%, #24C3F1 100%);',
+                    name: '已处理',
+                    resData: ''
+                },
+                {
+                    style: 'background: linear-gradient(135deg, #F0646C 0%, #F4994E 100%);',
+                    name: '未处理',
+                    resData: ''
+                }
+            ],
+            mixins_query: {
+                communityId: '',
+                date: ''
+            }
+        };
+    },
+    methods: {
+        // 获取房屋信息
+        getData() {
+            this.$http.get('/sc-community/statisticTodayTask', this.mixins_query).then(({ data, msg, status }) => {
+                if (status == 0) {
+                    this.blockArr[0].resData = data.workOrder.total;
+                    this.blockArr[1].resData = data.feedback.total;
+                    this.blockArr[2].resData = data.workOrder.completeTotal;
+                    this.blockArr[3].resData = data.workOrder.unfinishedTotal;
+                    this.blockArr[4].resData = data.feedback.completeTotal;
+                    this.blockArr[5].resData = data.feedback.unfinishedTotal;
+                }
+            });
         }
-      });
+    },
+    created() {
+        var date = new Date();
+        let year = date.getFullYear();
+        let month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
+        let resdate = date.getDate();
+        this.mixins_query.date = year + '-' + month + '-' + resdate;
+        this.getData();
     }
-  },
-  created () {
-    var date = new Date();
-    let year = date.getFullYear();
-    let month = (date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1);
-    let resdate = date.getDate();
-    this.mixins_query.date = year + '-' + month + '-' + resdate;
-    this.getData();
-  }
 };
 </script>
 <style lang="scss" scoped>

+ 0 - 1
commandCenter/src/views/videoSurveillance/index.vue

@@ -115,7 +115,6 @@ export default {
         },
 
         checkChange(nodeObj, SelectedObj) {
-            debugger;
             this.videoUrlList = [];
             this.$refs.tree.getCheckedNodes().map((item) => {
                 if (item.type == 'device') {