From e520d6f233851374356bb49c4cf724d1d3565b05 Mon Sep 17 00:00:00 2001
From: songhuangfeng123 <shf18767906695@163.com>
Date: 星期四, 19 五月 2022 09:01:49 +0800
Subject: [PATCH] fix

---
 src/views/oneFromanother/index.vue |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/views/oneFromanother/index.vue b/src/views/oneFromanother/index.vue
index dec2dd1..e3ada87 100644
--- a/src/views/oneFromanother/index.vue
+++ b/src/views/oneFromanother/index.vue
@@ -76,8 +76,11 @@
             <el-radio-button label="已自查">已自查</el-radio-button>
           </el-radio-group>
             </el-col>
-            <el-col :span="14" style="text-align:right;">
+            <el-col :span="14" v-if="radio1=='待自查'" style="text-align:right;">
                 <el-button class="btns" type="primary" size="small" @click="sendBath()">管理专业</el-button>
+            </el-col>
+              <el-col :span="14" v-if="radio1=='已自查'" style="text-align:right;">
+                <el-button class="btns" type="primary" size="small" @click="sendBath()">撤销</el-button>
             </el-col>
         </el-row>
          <el-table ref="dataTable" :data="tableData" style="width: 100%" @selection-change="handleSelectionChange">
@@ -98,8 +101,9 @@
             <el-table-column prop="curWarningLevel" label="下发单位" align="center"></el-table-column>
             <el-table-column prop="date" label="流程操作" align="center">
                 <template slot-scope="scope">
-                    <el-button @click="handleClick(scope.row)" type="text" size="small">不存在</el-button>
-                    <el-button @click="handleClick(scope.row)" type="text" size="small">存在</el-button>
+                    <el-button @click="handleClick(scope.row)" type="text"  size="small">不存在</el-button>
+                    <el-button @click="handleClick(scope.row)" type="text" v-if="radio1=='已自查'" size="small">追查结果</el-button>
+                    <el-button @click="handleClick(scope.row,'存在')" type="text"  v-if="radio1=='待自查'" size="small">存在</el-button>
                 </template>
             </el-table-column>
         </el-table>
@@ -116,6 +120,7 @@
             >
             </el-pagination>
         </div>
+        
     </div>
 </template>
 <script>
@@ -133,6 +138,13 @@
                 this.$router.push({
                     path:'/manage'
                 })
+            },
+            handleClick(data,val){
+                if(val=='存在'){
+                    this.$router.push({
+                        path:'/exist'
+                    })
+                }
             }
         }
     }

--
Gitblit v1.9.2