Эх сурвалжийг харах

记录规则时间展示格式修改

lucw 9 сар өмнө
parent
commit
8e535d4d9c

+ 8 - 2
src/views/rulesManagement/releaseRules/index.vue

@@ -158,14 +158,20 @@
             label: '启用日期',
             align: 'center',
             showOverflowTooltip: true,
-            minWidth: 110
+            minWidth: 110,
+            formatter: (row) => {
+              return this.$util.toDateString(row.startDate, 'yyyy-MM-dd');
+            }
           },
           {
             prop: 'stopDate',
             label: '停用日期',
             align: 'center',
             showOverflowTooltip: true,
-            minWidth: 110
+            minWidth: 110,
+            formatter: (row) => {
+              return this.$util.toDateString(row.stopDate, 'yyyy-MM-dd');
+            }
           },
           {
             prop: '',

+ 2 - 1
vue.config.js

@@ -42,8 +42,9 @@ module.exports = {
         // target: 'http://192.168.1.251:18186',
 
         // target: 'http://192.168.1.251:18087',
+        target: 'http://192.168.1.251:18086',
 
-        target: 'http://192.168.1.116:18086',
+        // target: 'http://192.168.1.116:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {