Browse Source

排班提醒排序问题

Shannon_mu 3 years ago
parent
commit
ec7121b8dd
1 changed files with 7 additions and 1 deletions
  1. 7 1
      operationSupport/src/views/patrolManagement/patrolRoute.vue

+ 7 - 1
operationSupport/src/views/patrolManagement/patrolRoute.vue

@@ -23,7 +23,7 @@
                 @page-change="pageChange"
             >
                 <template slot-scope="scope" slot="periodValue">{{
-                    scope.row.periodType == 1 ? `每周${scope.row.periodValue}` : `每隔${scope.row.periodValue}天`
+                    scope.row.periodType == 1 ? `每周${periodValueType(scope.row.periodValue)}` : `每隔${scope.row.periodValue}天`
                 }}</template>
                 <template slot-scope="scope" slot="opt">
                     <div class="opt">
@@ -142,6 +142,12 @@ export default {
             this.isLook = 'index';
             this.thisObj = {};
             this.mixins_search();
+        },
+        periodValueType(value) {
+            if (!!value) {
+                return value.split(',').sort().toString();
+            }
+            return '--';
         }
     }
 };