From e2a5b9e3359c074e14759165394bed299592cc9a Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 29 五月 2026 10:05:08 +0800
Subject: [PATCH] 配置文件

---
 admin/src/components/business/OperaJkCabinetWindow.vue |   71 ++++++++++++++++++++++++++++++++++-
 1 files changed, 69 insertions(+), 2 deletions(-)

diff --git a/admin/src/components/business/OperaJkCabinetWindow.vue b/admin/src/components/business/OperaJkCabinetWindow.vue
index 19370db..bccbb33 100644
--- a/admin/src/components/business/OperaJkCabinetWindow.vue
+++ b/admin/src/components/business/OperaJkCabinetWindow.vue
@@ -42,6 +42,18 @@
           <span style="margin-left: 20px;">鍗曚綅锛氬垎閽�</span>
         </div>
       </el-form-item>
+      <el-form-item label="閰掔簿妫�娴�" prop="doubleAuth">
+        <div style="width: 100%; display: flex; align-items: center;">
+          <el-switch
+            v-model="form.alcoholStatus"
+            active-color="#13ce66"
+            inactive-color="#ff4949"
+            :active-value="0"
+            :inactive-value="1">
+          </el-switch>
+          <span style="margin-left: 20px; color: #999999;">寮�鍚悗锛岄渶瑕侀厭绮炬娴嬮�氳繃鍚庯紝鎵嶈兘寮�闂�</span>
+        </div>
+      </el-form-item>
       <el-form-item label="鍙岄噸楠岃瘉" prop="doubleAuth">
         <div style="width: 100%; display: flex; align-items: center;">
           <el-switch
@@ -50,8 +62,19 @@
             inactive-color="#ff4949"
             :active-value="1"
             :inactive-value="0">
+
           </el-switch>
           <span style="margin-left: 20px; color: #999999;">寮�鍚弻閲嶈璇佸悗锛岄挜鍖欓鍙栨椂鍏堟牎楠岄獙璇佷汉韬唤锛屽啀鏍¢獙鍙告満韬唤</span>
+        </div>
+        <div style="width: 100%; display: flex; align-items: center;">
+          <el-switch
+            v-model="form.returnDoubleAuth"
+            active-color="#13ce66"
+            inactive-color="#ff4949"
+            :active-value="1"
+            :inactive-value="0">
+          </el-switch>
+          <span style="margin-left: 20px; color: #999999;">寮�鍚弻閲嶈璇佸悗锛岄挜鍖欏綊杩樻椂鍏堟牎楠岄獙璇佷汉韬唤锛屽啀鏍¢獙鍙告満韬唤</span>
         </div>
       </el-form-item>
       <el-form-item label="楠岃瘉浜�" prop="authMemberIdList">
@@ -81,6 +104,20 @@
           :active-value="0"
           :inactive-value="1">
         </el-switch>
+      </el-form-item>
+      <el-form-item label="婵�娲绘枃浠�" prop="activateFile">
+        <el-upload
+          accept=".zip"
+          class="upload-demo"
+          :action="base"
+          :limit="1"
+          :data="{ folder: 'activate' }"
+          :file-list="fileList"
+          :on-success="getFile"
+          :on-remove="removeFile">
+          <el-button size="small" type="primary">鐐瑰嚮涓婁紶</el-button>
+          <div slot="tip" class="el-upload__tip">鍙兘涓婁紶zip鏂囦欢</div>
+        </el-upload>
       </el-form-item>
       <h3 style="margin: 20px 0;">鏌滅粍淇℃伅</h3>
       <el-form-item label="鎺掑垪" prop="rowNum">
@@ -137,6 +174,8 @@
       }
     };
     return {
+      base: process.env.VUE_APP_API_PREFIX + 'visitsAdmin/cloudService/public/upload',
+      fileList: [],
       // 琛ㄥ崟鏁版嵁
       form: {
         id: null,
@@ -151,6 +190,7 @@
         location: '',
         useTime: '',
         doubleAuth: 0,
+        returnDoubleAuth: 0,
         authMemberIdList: '',
         rowNum: '',
         columnNum: '',
@@ -160,7 +200,9 @@
         noPrefix: '',
         noLength: '',
         noIndex: '',
-        sortType: 0
+        sortType: 0,
+        activateFile: null,
+        alcoholStatus: 0
       },
       // 楠岃瘉瑙勫垯
       rules: {
@@ -208,6 +250,22 @@
     })
   },
   methods: {
+    getFile(response) {
+      this.fileList = [{
+        name: response.data.originname,
+        fileurl: response.data.imgaddr,
+        ...response.data
+      }]
+      this.form.activateFile = {
+        name: response.data.originname,
+        fileurl: response.data.imgaddr,
+        ...response.data
+      }
+    },
+    removeFile() {
+      this.form.activateFile = null
+      this.fileList = []
+    },
     open (title, target) {
       this.title = title
       this.loadMember()
@@ -219,6 +277,13 @@
             this.$nextTick(() => {
               for (const key in this.form) {
                 this.form[key] = res[key]
+              }
+              if (res.activateFile) {
+                this.fileList = [{
+                  name: res.activateFile.name,
+                  url: res.activateFile.fileurlFull,
+                  ...res.activateFile
+                }]
               }
               this.visible = true
             })
@@ -237,6 +302,7 @@
             managerIdList: '',
             useTime: '',
             doubleAuth: 0,
+            returnDoubleAuth: 0,
             authMemberIdList: '',
             rowNum: '',
             columnNum: '',
@@ -246,7 +312,8 @@
             noPrefix: '',
             noLength: '',
             noIndex: '',
-            sortType: 0
+            sortType: 0,
+            alcoholStatus: 0
           }
           this.$refs.form.resetFields()
           this.form[this.configData['field.id']] = null

--
Gitblit v1.9.3