Quellcode durchsuchen

指挥中心权限

Shannon_mu vor 3 Jahren
Ursprung
Commit
d278888617

+ 16 - 9
commandCenter/src/views/commandDispatch/index.vue

@@ -88,6 +88,7 @@ export default {
             },
             showPointArr: [1, 2, 3, 4, 5],
             point: [],
+            showOK: false,
             imgUrl: require('@/assets/img/homeIcon/bg_bottom.png')
         };
     },
@@ -103,16 +104,11 @@ export default {
             return showArr;
         },
         menuListShow() {
-            if (
-                !!this.$store.getters['getMenuList'] &&
-                !!this.$store.getters['getMenuList'][0] &&
-                !!this.$store.getters['getMenuList'][0].children &&
-                !!this.$store.getters['getMenuList'][0].children[0].name == '添加点位'
-            ) {
-                return true;
-            } else {
-                return false;
+            let arrs = this.$store.getters['getMenuList'] || [];
+            if (arrs.length !== 0) {
+                this.mapfitet(arrs);
             }
+            return this.showOK;
         }
     },
     watch: {
@@ -126,6 +122,17 @@ export default {
         }
     },
     methods: {
+        mapfitet(arr) {
+            for (let a = 0; a < arr.length; a++) {
+                if (arr[a].children !== null) {
+                    this.mapfitet(arr[a].children);
+                } else {
+                    if (arr[a].linkPath == 'isPointShow') {
+                        this.showOK = true;
+                    }
+                }
+            }
+        },
         addPoint() {
             if (this.openCur == 1) {
                 this.openCur = null;

+ 8 - 6
commandCenter/src/views/financialAnalysis/smallModuleIndex/collectionRate.vue

@@ -13,12 +13,14 @@
                     :clearable="false"
                 >
                 </el-date-picker>
-                <el-option
-                    :label="item.label"
-                    :value="item.value"
-                    v-for="(item, index) in $publicArray.chargeType()"
-                    :key="index"
-                ></el-option>
+                <el-select v-model="mixins_query.chargeType" placeholder="所有费用" clearable class="saveColumn-select" @change="getData">
+                    <el-option
+                        :label="item.label"
+                        :value="item.value"
+                        v-for="(item, index) in $publicArray.chargeType()"
+                        :key="index"
+                    ></el-option>
+                </el-select>
             </div>
         </div>
         <div class="model-content">

+ 1 - 0
commandCenter/src/views/financialAnalysis/smallModuleIndex/deposit.vue

@@ -61,6 +61,7 @@ export default {
                 if (status == 0 && !!data.length) {
                     this.clientOptions = ringType(colors, this.eachartObj(data), {}, { type: 'number', total: data.total });
                 } else {
+                    this.total = 0;
                     this.clientOptions = ringType(
                         colors,
                         [