Explorar el Código

fix(规则管理): 根据路由路径动态显示报工类型、规则类型和模板样式字典值

yusheng hace 5 meses
padre
commit
5989b19564
Se han modificado 1 ficheros con 15 adiciones y 3 borrados
  1. 15 3
      src/views/rulesManagement/releaseRules/index.vue

+ 15 - 3
src/views/rulesManagement/releaseRules/index.vue

@@ -283,7 +283,12 @@
             showOverflowTooltip: true,
             showOverflowTooltip: true,
             minWidth: 110,
             minWidth: 110,
             formatter: (row) => {
             formatter: (row) => {
-              return this.getDictValue('记录规则报工类型', row.reportWorkType);
+              return this.getDictValue(
+                this.$route.path == '/releaseRules/experimentReleaseRules'
+                  ? '实验报工类型'
+                  : '记录规则报工类型',
+                row.reportWorkType
+              );
             }
             }
           },
           },
           {
           {
@@ -293,7 +298,12 @@
             showOverflowTooltip: true,
             showOverflowTooltip: true,
             minWidth: 110,
             minWidth: 110,
             formatter: (row) => {
             formatter: (row) => {
-              return this.getDictValue('记录规则类型', row.classify);
+              return this.getDictValue(
+                this.$route.path == '/releaseRules/experimentReleaseRules'
+                  ? '实验规则类型'
+                  : '记录规则类型',
+                row.classify
+              );
             }
             }
           },
           },
           {
           {
@@ -304,7 +314,9 @@
             minWidth: 110,
             minWidth: 110,
             formatter: (row) => {
             formatter: (row) => {
               return this.getDictValue(
               return this.getDictValue(
-                '记录表模板样式',
+                this.$route.path == '/releaseRules/experimentReleaseRules'
+                  ? '实验模板样式'
+                  : '记录表模板样式',
                 row.recordTemplateStyle
                 row.recordTemplateStyle
               );
               );
             }
             }