Преглед изворни кода

审核、提交按钮功能修改

maxiaoxiao пре 1 недеља
родитељ
комит
7b76946fa4
1 измењених фајлова са 10 додато и 2 уклоњено
  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
       >