|
|
@ -9,7 +9,7 @@ |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="上传录音" label-width="118px" :class="{ 'form-item': source === 'visiual' }" prop="luyin" :required="required"> |
|
|
|
<el-form-item label="上传录音" label-width="118px" :class="{ 'form-item': source === 'visiual' }" prop="files"> |
|
|
|
<el-upload v-if="audioList.length < 3" :headers="$getElUploadHeaders()" |
|
|
|
:action="uploadUlr" :data="{ customerId: customerId }" :show-file-list="false" |
|
|
|
:on-success="handleAudioSuccess" :before-upload="beforeAudioUpload" |
|
|
@ -418,7 +418,7 @@ export default { |
|
|
|
satisfaction: [ |
|
|
|
{ required: true, message: "请选择服务满意度", trigger: "blur" }, |
|
|
|
], |
|
|
|
luyin: [ |
|
|
|
files: [ |
|
|
|
{ required: true, message: " 请上传录音文件", trigger: "blur" }, |
|
|
|
], |
|
|
|
|
|
|
@ -463,22 +463,23 @@ export default { |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
|
|
|
|
// // 监听 formData.video 的变化,动态更新验证规则 |
|
|
|
// 'eventDetailData.videoNeedFlag'(newVal) { |
|
|
|
// if (newVal === 1) { |
|
|
|
// console.log("sdlflkshgslg"); |
|
|
|
|
|
|
|
// // 如果 video 为 1,luyin 变为必填 |
|
|
|
// this.dataRule.luyin = [{ required: true, message: "请选择服务满意度", trigger: "blur" }]; |
|
|
|
// } else { |
|
|
|
// // 如果 video 为 0,luyin 变为非必填 |
|
|
|
// this.dataRule.luyin = [{ required: false, message: "请选择服务满意度", trigger: "blur" }]; |
|
|
|
// } |
|
|
|
// } |
|
|
|
"replayDetailObj": function (newVal,oldVal) { |
|
|
|
console.log(newVal,'bianle'); |
|
|
|
if(this.pageType === 'check'){ |
|
|
|
this.formData = newVal; |
|
|
|
if(this.formData.internalFile){ |
|
|
|
this.imgList = this.formData.internalFile.filter(item=>item.attachmentType==='image') |
|
|
|
this.audioList = this.formData.internalFile.filter(item=>item.attachmentType==='voice') |
|
|
|
this.docList = this.formData.internalFile.filter(item=>item.attachmentType == 'doc') |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { }, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
console.log(this.formData,"formData,formDataformData"); |
|
|
|
|
|
|
|
console.log(this.eventDetailData,"alallalalalalalal"); |
|
|
|
if (this.eventDetailData.videoNeedFlag=="1") { |
|
|
|
this.required=true |
|
|
@ -516,6 +517,7 @@ export default { |
|
|
|
attachmentType: file.raw.type, |
|
|
|
attachmentUrl: res.data.url, |
|
|
|
}); |
|
|
|
this.formData.files.push(this.audioList) |
|
|
|
console.log(this.formData.files); |
|
|
|
} else { |
|
|
|
this.$message.error(res.msg); |
|
|
|