From 39fc2d6754953e41a7334a2166347baacfcfb40a Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期六, 11 十月 2025 18:21:18 +0800
Subject: [PATCH] 对接口

---
 admin/src/views/business/jkCabinet.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/admin/src/views/business/jkCabinet.vue b/admin/src/views/business/jkCabinet.vue
index d6f7b5c..a15d6d7 100644
--- a/admin/src/views/business/jkCabinet.vue
+++ b/admin/src/views/business/jkCabinet.vue
@@ -31,7 +31,7 @@
     <template v-slot:table-wrap>
       <ul class="toolbar" v-permissions="['business:jkcabinet:create', 'business:jkcabinet:delete']">
         <li><el-button type="primary" @click="$refs.operaJkCabinetWindow.open('鏂板缓璁惧')" icon="el-icon-plus" v-permissions="['business:jkcabinet:create']">鏂板缓</el-button></li>
-        <li><el-button @click="deleteByIdInBatch" icon="el-icon-delete" v-permissions="['business:jkcabinet:delete']">鍒犻櫎</el-button></li>
+        <li><el-button type="warning" @click="$refs.alcoholTest.open('鏂板缓閰掔簿妫�娴嬮厤缃�', form)">閰掔簿妫�娴嬮厤缃�</el-button></li>
       </ul>
       <el-table
         :height="tableHeightNew"
@@ -52,8 +52,8 @@
         </el-table-column>
         <el-table-column label="杩愯鐘舵��" min-width="100px">
           <template slot-scope="{row}">
-            <el-link type="success" v-if="row.runStatus === 0">鍦ㄧ嚎</el-link>
-            <el-link type="danger" v-if="row.runStatus === 1">绂荤嚎</el-link>
+            <el-link type="success" :underline="false" v-if="row.runStatus === 0">鍦ㄧ嚎</el-link>
+            <el-link type="danger" :underline="false" v-if="row.runStatus === 1">绂荤嚎</el-link>
           </template>
         </el-table-column>
         <el-table-column label="鐘舵��" min-width="100px">
@@ -75,8 +75,7 @@
           fixed="right"
         >
           <template slot-scope="{row}">
-            <el-button type="text">鏃ュ織</el-button>
-            <el-button type="text">缁戝畾閽ュ寵</el-button>
+            <el-button type="text" @click="$refs.cabinetDetails.open(row.name + '-鏌滄牸淇℃伅', row.id)">缁戝畾閽ュ寵</el-button>
             <el-button type="text" @click="$refs.operaJkCabinetWindow.open('缂栬緫閽ュ寵鏌滃熀鏈俊鎭〃', row)" v-permissions="['business:jkcabinet:update']">缂栬緫</el-button>
             <el-button type="text" @click="deleteById(row)" v-permissions="['business:jkcabinet:delete']">鍒犻櫎</el-button>
           </template>
@@ -93,6 +92,8 @@
     <OperaJkCabinetWindow ref="operaJkCabinetWindow" @success="handlePageChange"/>
     <!-- 鏌滃瓙璇︽儏 -->
     <CabinetDetails ref="cabinetDetails" />
+    <!-- 鏂板閰掔簿妫�娴� -->
+    <AlcoholTest ref="alcoholTest" @success="GetCabinetConfig" />
   </TableLayout>
 </template>
 
@@ -102,11 +103,12 @@
 import Pagination from '@/components/common/Pagination'
 import OperaJkCabinetWindow from '@/components/business/OperaJkCabinetWindow'
 import CabinetDetails from '@/components/business/cabinetDetails'
-import { updateStatusById } from '@/api/business/jkCabinet'
+import AlcoholTest from '@/components/business/alcoholTest'
+import { updateStatusById, getCabinetConfig } from '@/api/business/jkCabinet'
 export default {
   name: 'JkCabinet',
   extends: BaseTable,
-  components: { TableLayout, Pagination, OperaJkCabinetWindow, CabinetDetails },
+  components: { TableLayout, Pagination, OperaJkCabinetWindow, CabinetDetails, AlcoholTest},
   data () {
     return {
       // 鎼滅储
@@ -115,7 +117,8 @@
         name: '',
         status: '',
         rumStatus: ''
-      }
+      },
+      form: null
     }
   },
   created () {
@@ -126,6 +129,7 @@
       'field.main': 'id'
     })
     this.search()
+    this.GetCabinetConfig()
   },
   methods: {
     changeStatus(status, id) {
@@ -133,6 +137,12 @@
         .then(res => {
           this.search()
         })
+    },
+    GetCabinetConfig() {
+      getCabinetConfig()
+        .then(res => {
+          this.form = res
+        })
     }
   }
 }

--
Gitblit v1.9.3