From bf7b975c7ebe94ac801d72671cefc4d6ec01d56e Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期一, 23 三月 2026 09:39:07 +0800
Subject: [PATCH] 小程序   接口开发

---
 admin/src/components/business/OperaInformationWindow.vue |   66 ++++++++++++++-------------------
 1 files changed, 28 insertions(+), 38 deletions(-)

diff --git a/admin/src/components/business/OperaInformationWindow.vue b/admin/src/components/business/OperaInformationWindow.vue
index 9268057..b0272df 100644
--- a/admin/src/components/business/OperaInformationWindow.vue
+++ b/admin/src/components/business/OperaInformationWindow.vue
@@ -6,11 +6,11 @@
     :confirm-working="isWorking"
     @confirm="confirm"
   >
-    <el-form :model="form" ref="form" label-width="130px" label-suffix="锛�" :rules="rules" inline>
+    <el-form :model="form" ref="form" label-width="130px" label-suffix="锛�" :rules="rules"  >
       <el-form-item label="鏍囬" prop="name">
         <el-input v-model="form.name" placeholder="璇疯緭鍏ユ爣棰�" v-trim/>
       </el-form-item>
-      <el-form-item label="璧勮灏侀潰鍥�" prop="imgurlfull">
+      <el-form-item label="涓诲浘" prop="imgurl">
         <UploadAvatarImage
             :file="{ 'imgurlfull': form.imgurlfull, 'imgurl': form.imgurl }"
             @uploadSuccess="uploadAvatarSuccess"
@@ -99,10 +99,7 @@
         ],
         brandId: [
           { required: true, message: '璇烽�夋嫨鎵�灞炲搧鐗�' }
-        ],
-        imgurlfull: [
-          { required: true, message: '璇蜂笂浼犺祫璁富鍥�'  }
-        ],
+        ]
       }
     }
   },
@@ -121,6 +118,26 @@
     },
     getWangedditor(val){
       this.form.content =val
+    },
+    open (title, target) {
+      this.title = title
+      this.visible = true
+      this.form.imgurlfull=null
+      this.form.imgurl=null
+      // 鏂板缓
+      if (target == null) {
+        this.$nextTick(() => {
+          this.$refs.form.resetFields()
+          this.form[this.configData['field.id']] = null
+        })
+        return
+      }
+      // 缂栬緫
+      this.$nextTick(() => {
+        for (const key in this.form) {
+          this.form[key] = target[key]
+        }
+      })
     }
   }
 }
@@ -128,37 +145,10 @@
 
 <style lang="scss" scoped>
 @import "@/assets/style/alertstyle.scss";
-::v-deep .el-form-item__content {
-  flex: 0.6;
-}
-$image-width: 100px;
-.avatar-uploader {
-  width: $image-width;
-  height: $image-width;
-}
-::v-deep .el-upload {
-  border: 1px dashed #d9d9d9;
-  border-radius: 6px;
-  cursor: pointer;
-  position: relative;
-  width: $image-width;
-  height: $image-width;
-  overflow: hidden;
-}
-.avatar-uploader .el-upload:hover {
-  border-color: #409EFF;
-}
-.avatar-uploader-icon {
-  font-size: 28px;
-  color: #8c939d;
-  width: $image-width;
-  height: $image-width;
-  line-height: $image-width;
-  text-align: center;
-}
-.avatar {
-  width: $image-width;
-  height: $image-width;
-  display: block;
+::v-deep .el-select {
+  width: 100%;
+  .el-input__inner {
+    width: 100%;
+  }
 }
 </style>

--
Gitblit v1.9.3