Browse Source

审核状态不允许刷脸激活

XhuiCoder 1 năm trước cách đây
mục cha
commit
9e33147a0b
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      pages/lr/list.vue

+ 4 - 4
pages/lr/list.vue

@@ -4,9 +4,9 @@
       <uni-search-bar :radius="100" @confirm="search" placeholder="请输入身份证号或手机号搜索" v-model="form.lrZjhm"></uni-search-bar>
       <uni-list>
         <uni-swipe-action>
-          <!-- 草稿和拒绝状态需要刷脸激活,其他状态不需要 -->
-          <!-- :disabled="item.lzzt !== '0' && item.lzzt !== '4'" -->
-          <uni-swipe-action-item v-for="(item,index) in dataList" :key="index" :right-options="options" @click="swipeClick(item.id)">
+          <!-- 刷脸激活:['0','3','4','6'];无刷脸激活:['1','2','5','7']-->
+          <uni-swipe-action-item v-for="(item,index) in dataList" :key="index" :right-options="options"
+            :disabled="['1','2','5','7'].includes(item.lzzt)" @click="swipeClick(item.id)">
             <uni-list-item :to="'/pages/lr/info?id='+ item.id" :title="item.lrXm"
               :thumb="item.lrTx ? config.baseUrl+item.lrTx : config.baseUrl+config.head" :note="item.lrCydh" thumbSize="lg" :showArrow="false">
               <template v-slot:footer>
@@ -82,7 +82,7 @@
       this.userInfo = getUser()
       if (['04', '07'].includes(this.userInfo.userType)) {
         this.form.createUserId = this.userInfo.userId
-      } 
+      }
       this.getList()
     },
     onPullDownRefresh() {