Kaynağa Gözat

首页问题

Shannon_mu 3 yıl önce
ebeveyn
işleme
337f4f4cdb

+ 1 - 1
operationSupport/src/views/newWorkBench/components/collectionRate.vue

@@ -108,7 +108,7 @@ export default {
                     this.dataObj = {
                         receivableAmount: data.receivableAmount,
                         receivedAmount: data.receivedAmount,
-                        uncollected: data.receivableAmount - data.receivedAmount || 0
+                        uncollected: parseInt((data.receivableAmount - data.receivedAmount || 0).toFixed(2))
                     };
                 } else {
                     this.dataObj = {

+ 1 - 1
operationSupport/src/views/newWorkBench/components/householdIdentity.vue

@@ -9,7 +9,7 @@
         <div class="model-content">
             <zz-echart :option="clientOptions" class="chart"></zz-echart>
             <div class="totals">
-                <span>{{ 0 }}</span>
+                <span>{{ total }}</span>
                 <span class="numbers">总人数</span>
             </div>
         </div>

+ 10 - 12
operationSupport/src/views/newWorkBench/editWorkbench.vue

@@ -61,6 +61,7 @@ export default {
         return {
             model: 1,
             oldValue: {},
+            activeRout: {},
             modelSelect: [
                 {
                     model_id: 1,
@@ -165,23 +166,18 @@ export default {
             //拖拽结束执行的事件
             // console.log('dragend', e);
         },
-        close() {
+        close(sun) {
             let tagsList = this.$store.getters['getTagsList'];
-            let activeRout = this.$route;
-            if (tagsList.length > 1) {
-                tagsList.forEach((item, index) => {
-                    if (item.title == activeRout.meta.title || item.path == activeRout.path) {
-                        tagsList.splice(index, 1);
+            tagsList.forEach((item, index) => {
+                if (item.title == this.activeRout.meta.title || item.path == this.activeRout.path) {
+                    tagsList.splice(index, 1);
+                    if (sun !== 1) {
                         this.$router.push({
                             path: '/'
                         });
                     }
-                });
-            } else {
-                this.$router.push({
-                    path: '/'
-                });
-            }
+                }
+            });
         },
         saveWork() {
             let simeCom = JSON.stringify({ model: this.model, pageLoction: this.$refs[this.model + '_model'].sumit() });
@@ -215,10 +211,12 @@ export default {
         }
     },
     destroyed() {
+        this.close(1);
         this.$store.dispatch('collapse', false);
     },
     created() {
         this.$store.dispatch('collapse', true);
+        this.activeRout = this.$route;
         this.getData();
         this.communityNameList();
     }