Browse Source

feat: 修改按钮弹出权限

aXin-0810 2 năm trước cách đây
mục cha
commit
05bcc9d26b
1 tập tin đã thay đổi với 12 bổ sung10 xóa
  1. 12 10
      src/views/deposit_home/refund_list.vue

+ 12 - 10
src/views/deposit_home/refund_list.vue

@@ -10,6 +10,7 @@
       :tableAttributes="tableAttributes"
       :tableEvents="tableEvents"
       :columnParsing="columnParsing"
+      :replaceOrNotMap="false"
     >
     </template-page>
     <div class="app-container" v-if="showSurrender == 1">
@@ -272,9 +273,10 @@ export default {
     },
     operation() {
       return (h, { row, index, column }) => {
+        console.log(row)
         return (
           <div class="operation-btns">
-            {row.examineStatus == '待审核' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
+            {row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
               <el-button
                 type="text"
                 class="textColor"
@@ -285,8 +287,8 @@ export default {
                 审批
               </el-button>
             ) : null}
-            {row.dataState == '待复核' &&
-            row.examineStatus == '审核通过' &&
+            {row.dataState == 'WAIT_REVIEW' &&
+            row.examineStatus == 'OK' &&
             this.$checkBtnRole('examine', this.$route.meta.roles) ? (
               <el-button
                 type="text"
@@ -299,12 +301,12 @@ export default {
               </el-button>
             ) : null}
 
-            {row.examineStatus == '保存' ||
-            row.examineStatus == '审核通过' ||
-            row.examineStatus == '审核不通过' ||
-            row.dataState == '待复核' ||
-            row.dataState == '复核' ||
-            row.dataState == '补充' ? (
+            {row.examineStatus == 'SAVE' ||
+            row.examineStatus == 'OK' ||
+            row.examineStatus == 'FAIL' ||
+            row.dataState == 'WAIT_REVIEW' ||
+            row.dataState == 'REVIEW' ||
+            row.dataState == 'AMEND' ? (
               <el-button
                 type="text"
                 class="textColor"
@@ -315,7 +317,7 @@ export default {
                 详情
               </el-button>
             ) : null}
-            {row.examineStatus == '审核通过' && !row.isRefundDeposit ? (
+            {row.examineStatus == 'OK' && !row.isRefundDeposit ? (
               <el-popconfirm
                 style="margin-left: 10px"
                 title="二次退押吗?"