Selaa lähdekoodia

审核、提交按钮功能修改

maxiaoxiao 1 viikko sitten
vanhempi
commit
7b76946fa4
1 muutettua tiedostoa jossa 10 lisäystä ja 2 poistoa
  1. 10 2
      src/views/remote/farmland/details.vue

+ 10 - 2
src/views/remote/farmland/details.vue

@@ -119,7 +119,11 @@
       <el-button
         type="primary"
         v-show="route.query.dataType != 'normal'"
-        :disabled="!steps.find((x) => x.auditflowStep.includes('SH'))"
+        :disabled="
+          !steps.find((x) =>
+            x.auditflowStep.includes(route.query.dataType + 'SH')
+          )
+        "
         @click="operate('SH')"
         >审核</el-button
       >
@@ -133,7 +137,11 @@
       <el-button
         type="success"
         v-show="['XJ', 'SJ'].includes(route.query.dataType)"
-        :disabled="!steps.find((x) => x.auditflowStep.includes('TJ'))"
+        :disabled="
+          !steps.find((x) =>
+            x.auditflowStep.includes(route.query.dataType + 'TJ')
+          )
+        "
         @click="operate('TJ')"
         >提交</el-button
       >