From 2869e2528cf75f0227d6fad5feb377f7f1bfe1c7 Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Thu, 6 Jun 2024 09:27:38 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E5=AD=A6=E6=A0=87=E7=AD=BE=E8=AF=A6?=
=?UTF-8?q?=E7=BB=86=E4=BF=A1=E6=81=AF=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/course/medicalLabel.vue | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/views/modules/course/medicalLabel.vue b/src/views/modules/course/medicalLabel.vue
index f2df9c0..ef2900c 100644
--- a/src/views/modules/course/medicalLabel.vue
+++ b/src/views/modules/course/medicalLabel.vue
@@ -14,7 +14,7 @@
@@ -116,7 +116,7 @@
:action="baseUrl + '/oss/fileoss'"
:on-remove="audioHandleRemove"
:on-success="audioUploadSuccess"
- accept=".mp3"
+ accept=".jpg"
:limit="1"
:file-list="audioFileList"
>
@@ -618,6 +618,7 @@ export default {
audioHandleRemove(file, fileList) {
console.log(file, fileList);
this.audioFileList = []
+ this.addForm.media = ''
},
audioUploadSuccess(res, file) {
this.audioFileList = []
@@ -734,10 +735,10 @@ export default {
this.addForm = form;
this.fimages = this.addForm.icon;
this.audioFileList = []
- if(this.addForm.mediaType == 2){
+ if(this.addForm.mediaType == 2 && this.addForm.media != ''){
this.audioFileList.push({
url:this.addForm.media,
- name:'audio'
+ name:'audio--'
})
}
@@ -813,7 +814,7 @@ export default {
this.addForm = data.Medical;
this.audioFileList = []
- if(this.addForm.mediaType == 2){
+ if(this.addForm.mediaType == 2 && this.addForm.media != ''){
this.audioFileList.push({
url:this.addForm.media,
name:'audio'
@@ -1477,10 +1478,10 @@ p {
}
.shopFormBox {
- min-width: auto !important;
+ min-width: auto !important;
}
.ql-container {
- height: 200px; overflow-y: scroll;
+ min-height: 200px;
}
/deep/ .quill-editor{min-height: 200px !important;}