From ec9f12898d3fa6c57485c9f43af15203bb867639 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 14 十一月 2025 17:28:09 +0800
Subject: [PATCH] 修改

---
 src/views/work/sealManagement/apply/index.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/views/work/sealManagement/apply/index.vue b/src/views/work/sealManagement/apply/index.vue
index e37873c..e8e6c03 100644
--- a/src/views/work/sealManagement/apply/index.vue
+++ b/src/views/work/sealManagement/apply/index.vue
@@ -28,6 +28,7 @@
       </el-form>
     </div>
     <el-radio-group v-model="data.tabName" style="margin-bottom: 30px" @change="changBtn">
+      <el-radio-button label="all" v-if="data.userType == 0 || data.userType == 6">全部</el-radio-button>
       <el-radio-button label="apply" >我申请的</el-radio-button>
       <el-radio-button label="approval">待审批的</el-radio-button>
     </el-radio-group>
@@ -46,16 +47,15 @@
       </el-table-column>
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="160" >
         <template #default="scope">
-          <div v-if="data.tabName === 'apply'">
+          <div v-if="data.tabName === 'apply' || data.tabName === 'all'">
             <el-button link type="primary"  @click="openDialog('review',scope.row)">查看</el-button>
-            <el-button link type="primary"  @click="openDialog('edit',scope.row)" v-hasPermi="['sealApply:list:edit']">编辑</el-button>
+            <el-button link type="primary" v-if="scope.row.status == 1" @click="openDialog('edit',scope.row)" v-hasPermi="['sealApply:list:edit']">编辑</el-button>
             <el-button link type="danger"  @click="handleDelete(scope.row)" v-hasPermi="['sealApply:list:del']">删除</el-button>
           </div>
-          <div v-else>
+          <div v-if="data.tabName === 'approval'">
             <el-button link type="primary"  @click="openDialog('review',scope.row)">查看</el-button>
             <el-button link type="primary"  @click="openApplyDialog(scope.row)" v-hasPermi="['sealApply:list:apply']">审批</el-button>
           </div>
-
         </template>
       </el-table-column>
     </el-table>
@@ -117,11 +117,12 @@
     nextCheck:null,
     applyUserId: null
   },
-  tabName:'apply',
+  tabName:'',
   companyList: [],
   isAdmin: false,
   userId: null,
   showDialog: false,
+  userType: null,
   applyForm: {
     useSealId: null,
     approveUserId: null,
@@ -137,6 +138,8 @@
   const userInfo = JSON.parse(Cookies.get('userInfo'))
   console.log("userInfo",userInfo)
   data.isAdmin = userInfo.userType === 0;
+  data.userType = userInfo.userType
+  data.tabName = userInfo.userType == 0 || userInfo.userType == 6 ?'all':'apply'
   data.userId = userInfo.id
   data.queryParams.applyUserId = userInfo.id
   if(data.isAdmin){

--
Gitblit v1.9.2