Procházet zdrojové kódy

fix(工单): 巡点检部门显示

liujt před 5 měsíci
rodič
revize
ef7d78ef03

+ 3 - 3
src/views/maintenance/equipment/workOrder/index.vue

@@ -156,7 +156,7 @@
             showOverflowTooltip: true,
             minWidth: 120,
             formatter: (row) => {
-              if (row.type == 0) {
+              if (row.executeUserType == 0) {
                 return row.executeUsers.map((i) => i.groupName).join(',');
               }
               return '';
@@ -168,7 +168,7 @@
             align: 'center',
             showOverflowTooltip: true,
             formatter: (row) => {
-              if (row.type == 0) {
+              if (row.executeUserType == 0) {
                 return row.executeUsers.map((i) => i.userName).join(',');
               }
               return '';
@@ -181,7 +181,7 @@
             showOverflowTooltip: true,
             minWidth: 110,
             formatter: (row) => {
-              if (row.type == 1) {
+              if (row.executeUserType == 1) {
                 return row.executeUsers.map((i) => i.teamName).join(',');
               }
               return '';

+ 3 - 3
src/views/maintenance/patrol/workOrder/index.vue

@@ -128,7 +128,7 @@
             showOverflowTooltip: true,
             minWidth: 120,
             formatter: (row) => {
-              if (row.type == 0) {
+              if (row.executeUserType == 0) {
                 return row.executeUsers.map((i) => i.groupName).join(',');
               }
               return '';
@@ -140,7 +140,7 @@
             align: 'center',
             showOverflowTooltip: true,
             formatter: (row) => {
-              if (row.type == 0) {
+              if (row.executeUserType == 0) {
                 return row.executeUsers.map((i) => i.userName).join(',');
               }
               return '';
@@ -153,7 +153,7 @@
             showOverflowTooltip: true,
             minWidth: 110,
             formatter: (row) => {
-              if (row.type == 1) {
+              if (row.executeUserType == 1) {
                 return row.executeUsers.map((i) => i.teamName).join(',');
               }
               return '';