Quellcode durchsuchen

排班提醒排序问题

Shannon_mu vor 3 Jahren
Ursprung
Commit
ec7121b8dd
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  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 '--';
         }
     }
 };