微调
This commit is contained in:
@@ -102,15 +102,15 @@
|
|||||||
|
|
||||||
<div style="">
|
<div style="">
|
||||||
<div class="dataType flexBox" >
|
<div class="dataType flexBox" >
|
||||||
<el-radio v-model="addForm.dataType" :label="1"
|
<el-radio v-model="addForm.mediaType" :label="1"
|
||||||
>加密视频</el-radio
|
>加密视频</el-radio
|
||||||
>
|
>
|
||||||
<el-radio v-model="addForm.dataType" :label="2"
|
<el-radio v-model="addForm.mediaType" :label="2"
|
||||||
>上传音频</el-radio
|
>上传音频</el-radio
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div v-if="addForm.dataType == 2" style="margin:20px auto; margin-top:20px ; width: 50%; ">
|
<div v-if="addForm.mediaType == 2" style="margin:20px auto; margin-top:20px ; width: 50%; ">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="upload-demo audioUpload"
|
class="upload-demo audioUpload"
|
||||||
:action="baseUrl + '/oss/fileoss'"
|
:action="baseUrl + '/oss/fileoss'"
|
||||||
@@ -620,6 +620,7 @@ export default {
|
|||||||
this.audioFileList = []
|
this.audioFileList = []
|
||||||
},
|
},
|
||||||
audioUploadSuccess(res, file) {
|
audioUploadSuccess(res, file) {
|
||||||
|
this.audioFileList = []
|
||||||
this.audioFileList.push(file)
|
this.audioFileList.push(file)
|
||||||
console.log(this.audioFileList,res, "上传成功");
|
console.log(this.audioFileList,res, "上传成功");
|
||||||
this.addForm.media = res.url
|
this.addForm.media = res.url
|
||||||
@@ -732,6 +733,13 @@ export default {
|
|||||||
this.currentNode = { data: { ...form } };
|
this.currentNode = { data: { ...form } };
|
||||||
this.addForm = form;
|
this.addForm = form;
|
||||||
this.fimages = this.addForm.icon;
|
this.fimages = this.addForm.icon;
|
||||||
|
this.audioFileList = []
|
||||||
|
if(this.addForm.mediaType == 2){
|
||||||
|
this.audioFileList.push({
|
||||||
|
url:this.addForm.media,
|
||||||
|
name:'audio'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
await this.getDataList();
|
await this.getDataList();
|
||||||
// this.$refs.commonTree.setCurrentNodeShow();
|
// this.$refs.commonTree.setCurrentNodeShow();
|
||||||
@@ -802,7 +810,15 @@ export default {
|
|||||||
if (data.Medical.icon && data.Medical.icon != "") {
|
if (data.Medical.icon && data.Medical.icon != "") {
|
||||||
this.fimages = data.Medical.icon;
|
this.fimages = data.Medical.icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.addForm = data.Medical;
|
this.addForm = data.Medical;
|
||||||
|
this.audioFileList = []
|
||||||
|
if(this.addForm.mediaType == 2){
|
||||||
|
this.audioFileList.push({
|
||||||
|
url:this.addForm.media,
|
||||||
|
name:'audio'
|
||||||
|
})
|
||||||
|
}
|
||||||
/// this.currentNode = { data: { ...data.Medical } };
|
/// this.currentNode = { data: { ...data.Medical } };
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -1464,7 +1480,7 @@ p {
|
|||||||
min-width: auto !important;
|
min-width: auto !important;
|
||||||
}
|
}
|
||||||
.ql-container {
|
.ql-container {
|
||||||
height: 300px; overflow-y: scroll;
|
height: 200px; overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .quill-editor{min-height: 200px !important;}
|
/deep/ .quill-editor{min-height: 200px !important;}
|
||||||
|
|||||||
Reference in New Issue
Block a user