|
|
@ -37,13 +37,14 @@ |
|
|
:action="upload_url" |
|
|
:action="upload_url" |
|
|
list-type="picture-card" |
|
|
list-type="picture-card" |
|
|
:name="upload_name" |
|
|
:name="upload_name" |
|
|
:on-exceed="handleExceed" |
|
|
:on-exceed="exceedPic" |
|
|
|
|
|
:on-remove="removePic" |
|
|
:file-list="picList" |
|
|
:file-list="picList" |
|
|
:limit="3" |
|
|
:limit="5" |
|
|
:http-request="uploadPic"> |
|
|
:http-request="uploadPic"> |
|
|
<span class="font-14">选择图片</span> |
|
|
<span class="font-14">选择图片</span> |
|
|
<div slot="tip" |
|
|
<div slot="tip" |
|
|
class="el-upload__tip">小程序页面截图,最多3张,每张大小2M以内</div> |
|
|
class="el-upload__tip">小程序页面截图,最多5张,每张大小2M以内</div> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
@ -54,9 +55,10 @@ |
|
|
ref="uploadVedio" |
|
|
ref="uploadVedio" |
|
|
:action="upload_url" |
|
|
:action="upload_url" |
|
|
:name="upload_name" |
|
|
:name="upload_name" |
|
|
:on-exceed="handleExceed" |
|
|
:on-exceed="exceedVedio" |
|
|
:file-list="vedioList" |
|
|
:on-remove="removeVedio" |
|
|
:limit="1" |
|
|
:file-list="videoList" |
|
|
|
|
|
:limit="2" |
|
|
:http-request="uploadVedio"> |
|
|
:http-request="uploadVedio"> |
|
|
<el-button size="small" |
|
|
<el-button size="small" |
|
|
type="primary">选择视频</el-button> |
|
|
type="primary">选择视频</el-button> |
|
|
@ -103,13 +105,14 @@ |
|
|
:action="upload_url" |
|
|
:action="upload_url" |
|
|
list-type="picture-card" |
|
|
list-type="picture-card" |
|
|
:name="upload_name" |
|
|
:name="upload_name" |
|
|
:on-exceed="handleExceed" |
|
|
:on-exceed="exceedFeedbackPic" |
|
|
|
|
|
:on-remove="removeFeedbackPic" |
|
|
:file-list="feedbackPicList" |
|
|
:file-list="feedbackPicList" |
|
|
:limit="3" |
|
|
:limit="5" |
|
|
:http-request="uploadFeedbackPic"> |
|
|
:http-request="uploadFeedbackPic"> |
|
|
<span class="font-14">选择图片</span> |
|
|
<span class="font-14">选择图片</span> |
|
|
<div slot="tip" |
|
|
<div slot="tip" |
|
|
class="el-upload__tip">大小2M以内</div> |
|
|
class="el-upload__tip">反馈图片,最多5张,大小2M以内</div> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
@ -223,10 +226,6 @@ export default { |
|
|
sceneOtherDisabled: true, // 其他场景是否禁用 |
|
|
sceneOtherDisabled: true, // 其他场景是否禁用 |
|
|
dataForm: { |
|
|
dataForm: { |
|
|
versionDesc: '', // 小程序版本说明和功能解释 |
|
|
versionDesc: '', // 小程序版本说明和功能解释 |
|
|
previewInfo: { // 预览信息 |
|
|
|
|
|
videoIdList: [], |
|
|
|
|
|
picIdList: [] |
|
|
|
|
|
}, |
|
|
|
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
@ -237,16 +236,13 @@ export default { |
|
|
auditDesc: '' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
auditDesc: '' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
previewPicArray: [], |
|
|
|
|
|
previewVedioArray: [], |
|
|
|
|
|
feedbackPicArray: [], |
|
|
|
|
|
|
|
|
|
|
|
// 上传素材 |
|
|
// 上传素材 |
|
|
dialogImageUrl: '/third/code/mediaupload', |
|
|
dialogImageUrl: '/third/code/mediaupload', |
|
|
upload_url: '', // 上传URL |
|
|
upload_url: '', // 上传URL |
|
|
upload_name: '', // 图片或视频名称 |
|
|
upload_name: '', // 图片或视频名称 |
|
|
picList: [], // 预览列表 |
|
|
picList: [], // 预览列表 |
|
|
vedioList: [], // 预览列表 |
|
|
videoList: [], // 预览列表 |
|
|
feedbackPicList: [], // 预览列表 |
|
|
feedbackPicList: [], // 预览列表 |
|
|
|
|
|
|
|
|
// 弹出框相关 |
|
|
// 弹出框相关 |
|
|
@ -276,10 +272,6 @@ export default { |
|
|
reseatDataForm () { |
|
|
reseatDataForm () { |
|
|
this.dataForm = { |
|
|
this.dataForm = { |
|
|
versionDesc: '', // 小程序版本说明和功能解释 |
|
|
versionDesc: '', // 小程序版本说明和功能解释 |
|
|
previewInfo: { // 预览信息 |
|
|
|
|
|
videoIdList: [], |
|
|
|
|
|
picIdList: [] |
|
|
|
|
|
}, |
|
|
|
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
@ -296,77 +288,83 @@ export default { |
|
|
this.$refs['ref_submit_item'].initData(this.codeId) |
|
|
this.$refs['ref_submit_item'].initData(this.codeId) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleExceed: function () { |
|
|
removeVedio (file) { |
|
|
|
|
|
this.videoList.splice(this.videoList.findIndex(item => item.uid === file.uid), 1) |
|
|
|
|
|
// console.log(this.videoList) |
|
|
|
|
|
}, |
|
|
|
|
|
removePic (file) { |
|
|
|
|
|
this.picList.splice(this.picList.findIndex(item => item.uid === file.uid), 1) |
|
|
|
|
|
// console.log(this.picList) |
|
|
|
|
|
}, |
|
|
|
|
|
removeFeedbackPic (file) { |
|
|
|
|
|
this.feedbackPicList.splice(this.feedbackPicList.findIndex(item => item.uid === file.uid), 1) |
|
|
|
|
|
// console.log(this.feedbackPicList) |
|
|
|
|
|
}, |
|
|
|
|
|
exceedPic: function () { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '最多上传5张预览图片', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
exceedVedio: function () { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '最多上传2个预览视频', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
exceedFeedbackPic: function () { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '请先删除选择的图片或视频,再上传', |
|
|
message: '最多上传5张反馈图片', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 上传视频 |
|
|
// 上传视频 |
|
|
uploadVedio: function (params) { |
|
|
uploadVedio: function (params) { |
|
|
// eslint-disable-next-line |
|
|
|
|
|
debugger |
|
|
|
|
|
let file = params.file |
|
|
let file = params.file |
|
|
let fileType = file.type |
|
|
let fileType = file.type |
|
|
let isVideo = fileType.indexOf('video') !== -1 |
|
|
let isVideo = fileType.indexOf('video') !== -1 |
|
|
let fileUrl = this.$refs.uploadVedio.uploadFiles[this.vedioList.length].url |
|
|
let fileUrl = this.$refs.uploadVedio.uploadFiles[this.videoList.length].url |
|
|
file.url = fileUrl |
|
|
file.url = fileUrl |
|
|
this.vedioList.push(file) |
|
|
this.videoList.push(file) |
|
|
|
|
|
|
|
|
let isLt2M = file.size / 1024 / 1024 < 2 |
|
|
let isLt2M = file.size / 1024 / 1024 < 2 |
|
|
if (!isLt2M) { |
|
|
if (!isLt2M) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '上传视频大小不能超过 2MB!', |
|
|
message: '上传视频大小不能超过 2MB!', |
|
|
type: 'error' |
|
|
type: 'warning' |
|
|
}) |
|
|
|
|
|
this.$refs.upload.uploadFiles = [] |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (!isVideo) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '请选择视频!', |
|
|
|
|
|
type: 'error' |
|
|
|
|
|
}) |
|
|
}) |
|
|
this.$refs.upload.uploadFiles = [] |
|
|
this.videoList.pop() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
let isMP4 = file.type === 'video/mp4' |
|
|
let isMP4 = file.type === 'video/mp4' |
|
|
if (!isMP4) { |
|
|
if (!isVideo || !isMP4) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '上传视频只支持 mp4 格式!', |
|
|
message: '请选择mp4格式的视频!', |
|
|
type: 'error' |
|
|
type: 'warning' |
|
|
}) |
|
|
}) |
|
|
this.$refs.upload.uploadFiles = [] |
|
|
this.videoList.pop() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
this.startLoading() |
|
|
this.upload_name = 'file_video[]' |
|
|
this.upload_name = 'file_video[]' |
|
|
let formData = new FormData() |
|
|
let formData = new FormData() |
|
|
// // eslint-disable-next-line |
|
|
|
|
|
// debugger |
|
|
|
|
|
formData.append('type', fileType) |
|
|
formData.append('type', fileType) |
|
|
formData.append('media', file) |
|
|
formData.append('media', file) |
|
|
formData.append('codeId', this.codeId) |
|
|
formData.append('codeId', this.codeId) |
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
(data, rspMsg) => { |
|
|
(data, rspMsg) => { |
|
|
// eslint-disable-next-line |
|
|
this.endLoading() |
|
|
debugger |
|
|
|
|
|
if (data.code === 0) { |
|
|
if (data.code === 0) { |
|
|
console.log('成功') |
|
|
this.videoList[this.videoList.length - 1].mediaid = data.data |
|
|
let obj = { |
|
|
|
|
|
mediaid: data, |
|
|
|
|
|
uid: file.uid |
|
|
|
|
|
} |
|
|
|
|
|
this.previewVedioArray.push(obj) |
|
|
|
|
|
this.$message.success(rspMsg) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
console.log('失败') |
|
|
this.videoList.pop() |
|
|
this.vedioList.pop() |
|
|
|
|
|
this.$message.error(rspMsg) |
|
|
this.$message.error(rspMsg) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
(rspMsg, data) => { |
|
|
(rspMsg, data) => { |
|
|
this.vedioList.pop() |
|
|
this.videoList.pop() |
|
|
|
|
|
this.endLoading() |
|
|
this.$message.error(rspMsg) |
|
|
this.$message.error(rspMsg) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
@ -379,51 +377,44 @@ export default { |
|
|
file.url = fileUrl |
|
|
file.url = fileUrl |
|
|
this.picList.push(file) |
|
|
this.picList.push(file) |
|
|
|
|
|
|
|
|
// let isLt2M = file.size / 1024 / 1024 < 2 |
|
|
let isLt2M = file.size / 1024 / 1024 < 2 |
|
|
// if (!isLt2M) { |
|
|
if (!isLt2M) { |
|
|
// this.$message({ |
|
|
this.$message({ |
|
|
// message: '上传图片大小不能超过 2MB!', |
|
|
message: '上传图片大小不能超过 2MB!', |
|
|
// type: 'error' |
|
|
type: 'warning' |
|
|
// }) |
|
|
}) |
|
|
// this.$refs.upload.uploadFiles = [] |
|
|
this.picList.pop() |
|
|
// // return |
|
|
return |
|
|
// } |
|
|
} |
|
|
if (!isImage) { |
|
|
if (!isImage) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '请选择图片!', |
|
|
message: '请选择图片!', |
|
|
type: 'error' |
|
|
type: 'warning' |
|
|
}) |
|
|
}) |
|
|
this.$refs.uploadPic.uploadFiles = [] |
|
|
this.picList.pop() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// console.log(this.picList) |
|
|
// console.log(this.picList) |
|
|
|
|
|
|
|
|
this.upload_name = 'file_img[]' |
|
|
this.upload_name = 'file_img[]' |
|
|
let formData = new FormData() |
|
|
let formData = new FormData() |
|
|
|
|
|
this.startLoading() |
|
|
formData.append('type', fileType) |
|
|
formData.append('type', fileType) |
|
|
formData.append('media', file) |
|
|
formData.append('media', file) |
|
|
formData.append('codeId', this.codeId) |
|
|
formData.append('codeId', this.codeId) |
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
(data, rspMsg) => { |
|
|
(data, rspMsg) => { |
|
|
// eslint-disable-next-line |
|
|
this.endLoading() |
|
|
debugger |
|
|
|
|
|
if (data.code === 0) { |
|
|
if (data.code === 0) { |
|
|
console.log('成功') |
|
|
this.picList[this.picList.length - 1].mediaid = data.data |
|
|
let obj = { |
|
|
|
|
|
mediaid: data, |
|
|
|
|
|
uid: file.uid |
|
|
|
|
|
} |
|
|
|
|
|
this.previewPicArray.push(obj) |
|
|
|
|
|
this.$message.success(rspMsg) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
console.log('失败') |
|
|
|
|
|
this.picList.pop() |
|
|
this.picList.pop() |
|
|
this.$message.error(rspMsg) |
|
|
this.$message.error(rspMsg) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
(rspMsg, data) => { |
|
|
(rspMsg, data) => { |
|
|
this.picList.pop() |
|
|
this.picList.pop() |
|
|
|
|
|
this.endLoading() |
|
|
this.$message.error(rspMsg) |
|
|
this.$message.error(rspMsg) |
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
}, |
|
|
}, |
|
|
@ -436,24 +427,23 @@ export default { |
|
|
file.url = fileUrl |
|
|
file.url = fileUrl |
|
|
this.feedbackPicList.push(file) |
|
|
this.feedbackPicList.push(file) |
|
|
|
|
|
|
|
|
// let isLt2M = file.size / 1024 / 1024 < 2 |
|
|
let isLt2M = file.size / 1024 / 1024 < 2 |
|
|
// if (!isLt2M) { |
|
|
if (!isLt2M) { |
|
|
// this.$message({ |
|
|
this.$message({ |
|
|
// message: '上传图片大小不能超过 2MB!', |
|
|
message: '上传图片大小不能超过 2MB!', |
|
|
// type: 'error' |
|
|
type: 'warning' |
|
|
// }) |
|
|
}) |
|
|
// this.$refs.upload.uploadFiles = [] |
|
|
this.feedbackPicList.pop() |
|
|
// // return |
|
|
return |
|
|
// } |
|
|
} |
|
|
if (!isImage) { |
|
|
if (!isImage) { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '请选择图片!', |
|
|
message: '请选择图片!', |
|
|
type: 'error' |
|
|
type: 'warning' |
|
|
}) |
|
|
}) |
|
|
this.$refs.uploadPic.uploadFiles = [] |
|
|
this.feedbackPicList.pop() |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
// console.log(this.picList) |
|
|
|
|
|
|
|
|
|
|
|
this.upload_name = 'file_img[]' |
|
|
this.upload_name = 'file_img[]' |
|
|
let formData = new FormData() |
|
|
let formData = new FormData() |
|
|
@ -461,26 +451,20 @@ export default { |
|
|
formData.append('type', fileType) |
|
|
formData.append('type', fileType) |
|
|
formData.append('media', file) |
|
|
formData.append('media', file) |
|
|
formData.append('codeId', this.codeId) |
|
|
formData.append('codeId', this.codeId) |
|
|
|
|
|
this.startLoading() |
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
(data, rspMsg) => { |
|
|
(data, rspMsg) => { |
|
|
// eslint-disable-next-line |
|
|
this.endLoading() |
|
|
debugger |
|
|
|
|
|
if (data.code === 0) { |
|
|
if (data.code === 0) { |
|
|
console.log('成功') |
|
|
this.feedbackPicList[this.feedbackPicList.length - 1].mediaid = data.data |
|
|
let obj = { |
|
|
|
|
|
mediaid: data, |
|
|
|
|
|
uid: file.uid |
|
|
|
|
|
} |
|
|
|
|
|
this.feedbackPicArray.push(obj) |
|
|
|
|
|
this.$message.success(rspMsg) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
console.log('失败') |
|
|
|
|
|
this.feedbackPicList.pop() |
|
|
this.feedbackPicList.pop() |
|
|
this.$message.error(rspMsg) |
|
|
this.$message.error(rspMsg) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
(rspMsg, data) => { |
|
|
(rspMsg, data) => { |
|
|
this.feedbackPicList.pop() |
|
|
this.feedbackPicList.pop() |
|
|
|
|
|
this.endLoading() |
|
|
this.$message.error(rspMsg) |
|
|
this.$message.error(rspMsg) |
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
}, |
|
|
}, |
|
|
@ -511,32 +495,36 @@ export default { |
|
|
this.dataForm.ugcDeclare.auditDesc = '' |
|
|
this.dataForm.ugcDeclare.auditDesc = '' |
|
|
}, |
|
|
}, |
|
|
submitCode () { |
|
|
submitCode () { |
|
|
// const url = '/third/code/audit' |
|
|
|
|
|
let params = { |
|
|
let params = { |
|
|
codeId: this.codeId, |
|
|
codeId: this.codeId, |
|
|
ugcDeclare: this.dataForm.ugcDeclare // 信息安全 |
|
|
ugcDeclare: this.dataForm.ugcDeclare // 信息安全 |
|
|
} |
|
|
} |
|
|
// 功能说明 |
|
|
// 功能说明 |
|
|
// 解析预览信息 |
|
|
// 解析预览信息 |
|
|
this.dataForm.previewInfo.picIdList = [] |
|
|
let picIdList = [] |
|
|
this.dataForm.previewInfo.videoIdList = [] |
|
|
let videoIdList = [] |
|
|
this.previewPicArray.forEach(element => { |
|
|
this.picList.forEach(element => { |
|
|
this.dataForm.previewInfo.picIdList.push(element.mediaid) |
|
|
picIdList.push(element.mediaid) |
|
|
}) |
|
|
}) |
|
|
|
|
|
// // eslint-disable-next-line |
|
|
this.previewVedioArray.forEach(element => { |
|
|
// debugger |
|
|
this.dataForm.previewInfo.videoIdList.push(element.mediaid) |
|
|
this.videoList.forEach(element => { |
|
|
|
|
|
videoIdList.push(element.mediaid) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// 预览信息排除空数组 |
|
|
// 预览信息排除空数组 |
|
|
if (this.dataForm.previewInfo.picIdList.length > 0 || this.dataForm.previewInfo.videoIdList.length > 0) { |
|
|
if (picIdList.length > 0 || videoIdList.length > 0) { |
|
|
params.previewInfo = Object |
|
|
params.previewInfo = {} |
|
|
if (this.dataForm.previewInfo.picIdList.length > 0) { |
|
|
if (picIdList.length > 0) { |
|
|
params.previewInfo.picIdList = this.dataForm.previewInfo.picIdList |
|
|
params.previewInfo.picIdList = picIdList |
|
|
} |
|
|
} |
|
|
if (this.dataForm.previewInfo.videoIdList.length > 0) { |
|
|
if (videoIdList.length > 0) { |
|
|
params.previewInfo.videoIdList = this.dataForm.previewInfo.videoIdList |
|
|
params.previewInfo.videoIdList = videoIdList |
|
|
} |
|
|
} |
|
|
|
|
|
// console.log('预览图片:') |
|
|
|
|
|
// console.log(params.previewInfo.picIdList) |
|
|
|
|
|
// console.log('预览视频:') |
|
|
|
|
|
// console.log(params.previewInfo.videoIdList) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 小程序描述排除空内容 |
|
|
// 小程序描述排除空内容 |
|
|
@ -554,42 +542,51 @@ export default { |
|
|
if (this.dataForm.feedbackInfo !== '') { |
|
|
if (this.dataForm.feedbackInfo !== '') { |
|
|
params.feedbackInfo = this.dataForm.feedbackInfo |
|
|
params.feedbackInfo = this.dataForm.feedbackInfo |
|
|
} |
|
|
} |
|
|
|
|
|
this.dataForm.feedbackStuff = '' |
|
|
|
|
|
this.feedbackPicList.forEach(element => { |
|
|
|
|
|
this.dataForm.feedbackStuff = this.dataForm.feedbackStuff + element.mediaid + '|' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
if (this.dataForm.feedbackStuff !== '') { |
|
|
if (this.dataForm.feedbackStuff !== '') { |
|
|
|
|
|
this.dataForm.feedbackStuff = this.dataForm.feedbackStuff.slice(0, this.dataForm.feedbackStuff.length - 1) |
|
|
params.feedbackStuff = this.dataForm.feedbackStuff |
|
|
params.feedbackStuff = this.dataForm.feedbackStuff |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
console.log(params) |
|
|
console.log(params) |
|
|
// this.startLoading() |
|
|
|
|
|
// window.app.ajax.post(url, params, |
|
|
// console.log('反馈图片:') |
|
|
// (data, rspMsg) => { |
|
|
// console.log(params.feedbackStuff) |
|
|
// this.endLoading() |
|
|
|
|
|
// this.$message.success('提交审核成功,请等待审核结果') |
|
|
const url = '/third/code/audit' |
|
|
// this.diaCancel() |
|
|
this.startLoading() |
|
|
// this.$emit('refresh') |
|
|
window.app.ajax.post(url, params, |
|
|
// }, |
|
|
(data, rspMsg) => { |
|
|
// (rspMsg, data) => { |
|
|
this.endLoading() |
|
|
// this.endLoading() |
|
|
this.$message.success('提交审核成功,请等待审核结果') |
|
|
// this.$message.error(rspMsg) |
|
|
this.diaCancel() |
|
|
// }) |
|
|
this.$emit('refresh') |
|
|
|
|
|
}, |
|
|
|
|
|
(rspMsg, data) => { |
|
|
|
|
|
this.endLoading() |
|
|
|
|
|
this.$message.error(rspMsg) |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 取消 |
|
|
// 取消 |
|
|
diaCancel () { |
|
|
diaCancel () { |
|
|
this.resetData() |
|
|
this.resetData() |
|
|
|
|
|
this.activeName = 'desc' |
|
|
this.diaVisible = false |
|
|
this.diaVisible = false |
|
|
}, |
|
|
}, |
|
|
resetData () { |
|
|
resetData () { |
|
|
this.reseatDataForm() |
|
|
this.reseatDataForm() |
|
|
// 功能说明 |
|
|
// 功能说明 |
|
|
this.picList = [] |
|
|
this.picList = [] |
|
|
this.previewPicArray = [] |
|
|
this.videoList = [] |
|
|
this.vedioList = [] |
|
|
|
|
|
this.previewVedioArray = [] |
|
|
|
|
|
|
|
|
|
|
|
// 审核项 |
|
|
// 审核项 |
|
|
this.$refs['ref_submit_item'].reseatData() |
|
|
this.$refs['ref_submit_item'].reseatData() |
|
|
// 反馈说明 |
|
|
// 反馈说明 |
|
|
this.feedbackPicList = [] |
|
|
this.feedbackPicList = [] |
|
|
this.feedbackPicArray = [] |
|
|
|
|
|
// 信息安全 |
|
|
// 信息安全 |
|
|
}, |
|
|
}, |
|
|
// 开启加载动画 |
|
|
// 开启加载动画 |
|
|
|