From b164672e214273b33b9d98965bc8ec76d6523d23 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 05 三月 2026 09:42:33 +0800
Subject: [PATCH] 经销商管理
---
admin/src/components/business/OperaInformationWindow.vue | 56 +++++++++++++++++++++-----------------------------------
1 files changed, 21 insertions(+), 35 deletions(-)
diff --git a/admin/src/components/business/OperaInformationWindow.vue b/admin/src/components/business/OperaInformationWindow.vue
index 86abd0d..b0272df 100644
--- a/admin/src/components/business/OperaInformationWindow.vue
+++ b/admin/src/components/business/OperaInformationWindow.vue
@@ -1,6 +1,5 @@
<template>
<GlobalWindow
- width="80%"
:title="title"
:visible.sync="visible"
v-loading="isUploading"
@@ -11,7 +10,7 @@
<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"
@@ -119,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]
+ }
+ })
}
}
}
@@ -126,43 +145,10 @@
<style lang="scss" scoped>
@import "@/assets/style/alertstyle.scss";
-::v-deep .el-form-item__content {
- flex: 0.6;
-}
::v-deep .el-select {
width: 100%;
.el-input__inner {
width: 100%;
}
-}
-$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;
}
</style>
--
Gitblit v1.9.3