From 5d3b86a4d0032836c782e5e1319179eced5e5647 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 23 一月 2026 17:35:24 +0800
Subject: [PATCH] 经销商管理
---
admin/src/components/business/OperaGoodsLabelsWindow.vue | 41 ++++++++++++++++++++++-------------------
1 files changed, 22 insertions(+), 19 deletions(-)
diff --git a/admin/src/components/business/OperaGoodsLabelsWindow.vue b/admin/src/components/business/OperaGoodsLabelsWindow.vue
index 8a40330..13b9265 100644
--- a/admin/src/components/business/OperaGoodsLabelsWindow.vue
+++ b/admin/src/components/business/OperaGoodsLabelsWindow.vue
@@ -10,23 +10,15 @@
<el-form-item label="鍒嗙被鍚嶇О" prop="name">
<el-input v-model="form.name" placeholder="璇疯緭鍏ュ垎绫诲悕绉�" v-trim/>
</el-form-item>
-<!-- <el-form-item label="鎵�灞炴澘鍧�" prop="module">
- <el-select
- v-model="form.module"
- placeholder="璇烽�夋嫨鎵�灞炴澘鍧�"
- >
- <el-option
- :key="0"
- :value="0"
- label="骞冲彴鍟嗗煄"
- ></el-option>
- <el-option
- :key="1"
- :value="1"
- label="鍜栬眴鍟嗗煄"
- ></el-option>
- </el-select>
- </el-form-item>-->
+ <el-form-item label="鍥炬爣" prop="imgurlfull">
+ <UploadAvatarImage
+ :uploadData="{folder:'labels'}"
+ :file="{ 'imgurlfull': form.imgurlfull, 'imgurl': form.imgurl }"
+ @uploadSuccess="uploadAvatarSuccess"
+ @uploadEnd="isUploading=false"
+ @uploadBegin="isUploading = true"
+ />
+ </el-form-item>
<el-form-item label="鎺掑簭鐮�(鍗囧簭)" prop="sortnum">
<el-input v-model="form.sortnum" type="number" placeholder="璇疯緭鍏ユ帓搴忕爜" v-trim/>
</el-form-item>
@@ -38,18 +30,22 @@
<script>
import BaseOpera from '@/components/base/BaseOpera'
import GlobalAlertWindow from '@/components/common/GlobalAlertWindow'
+import UploadAvatarImage from '@/components/common/UploadAvatarImage'
export default {
name: 'OperaProductLabelWindow',
extends: BaseOpera,
- components: { GlobalAlertWindow },
+ components: { GlobalAlertWindow,UploadAvatarImage },
data () {
return {
// 琛ㄥ崟鏁版嵁
+ isUploading: false,
form: {
id: null,
name: '',
module: 0,
type: '0',
+ imgurl:null,
+ imgurlfull:null,
sortnum: ''
},
// 楠岃瘉瑙勫垯
@@ -68,7 +64,14 @@
api: '/business/labels',
'field.id': 'id'
})
- }
+ },
+ methods: {
+ // 涓婁紶鍥剧墖
+ uploadAvatarSuccess(file) {
+ this.form.imgurl = file.imgurl;
+ this.form.imgurlfull = file.imgurlfull;
+ },
+ },
}
</script>
--
Gitblit v1.9.3