linwenxin 6 mēneši atpakaļ
vecāks
revīzija
f8bd361f3a
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 4 2
      src/views/userManagement/masterManagement/index.vue

+ 4 - 2
src/views/userManagement/masterManagement/index.vue

@@ -995,8 +995,10 @@ export default {
         edit: {
           btnType: 'text',
           conditions: ({ row, index, column }) => {
-            return ['OK', 'FAIL', 'STOP', 'QUIT'].includes(row.examineStatus)
-            // WAIT_WORKER
+            return (
+              ['OK', 'FAIL', 'STOP', 'QUIT'].includes(row.examineStatus) ||
+              (['MAJOR', 'MERCHANT'].includes(row.attr) && ['WAIT_WORKER'].includes(row.examineStatus))
+            )
           },
           click: ({ row, index, column }) => {
             this.$refs.tabPage.addTab({