|
@ -229,11 +229,11 @@ export default { |
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
scene: [0], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 |
|
|
scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 |
|
|
otherSceneDesc: '', // 当scene选其他时的说明,不超时256字 |
|
|
otherSceneDesc: '', // 当scene选其他时的说明,不超时256字 |
|
|
method: [1], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 |
|
|
method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 |
|
|
hasAuditTeam: 0, // 是否有审核团队, 0.无,1.有,默认0 |
|
|
hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0 |
|
|
auditDesc: '' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -275,11 +275,11 @@ export default { |
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackInfo: '', // 反馈内容 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
feedbackStuff: '', // 反馈素材 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
scene: [0], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 |
|
|
scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 |
|
|
otherSceneDesc: '', // 当scene选其他时的说明,不超时256字 |
|
|
otherSceneDesc: '', // 当scene选其他时的说明,不超时256字 |
|
|
method: [1], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 |
|
|
method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 |
|
|
hasAuditTeam: 0, // 是否有审核团队, 0.无,1.有,默认0 |
|
|
hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0 |
|
|
auditDesc: '' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -287,6 +287,9 @@ export default { |
|
|
if (tab.name === 'item') { |
|
|
if (tab.name === 'item') { |
|
|
this.$refs['ref_submit_item'].initData(this.codeId) |
|
|
this.$refs['ref_submit_item'].initData(this.codeId) |
|
|
} |
|
|
} |
|
|
|
|
|
if (tab.name === 'ugc') { |
|
|
|
|
|
this.scene0(false) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
removeVedio (file) { |
|
|
removeVedio (file) { |
|
|
this.videoList.splice(this.videoList.findIndex(item => item.uid === file.uid), 1) |
|
|
this.videoList.splice(this.videoList.findIndex(item => item.uid === file.uid), 1) |
|
@ -300,26 +303,26 @@ export default { |
|
|
this.feedbackPicList.splice(this.feedbackPicList.findIndex(item => item.uid === file.uid), 1) |
|
|
this.feedbackPicList.splice(this.feedbackPicList.findIndex(item => item.uid === file.uid), 1) |
|
|
// console.log(this.feedbackPicList) |
|
|
// console.log(this.feedbackPicList) |
|
|
}, |
|
|
}, |
|
|
exceedPic: function () { |
|
|
exceedPic: () => { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '最多上传5张预览图片', |
|
|
message: '最多上传5张预览图片', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
exceedVedio: function () { |
|
|
exceedVedio: () => { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '最多上传2个预览视频', |
|
|
message: '最多上传2个预览视频', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
exceedFeedbackPic: function () { |
|
|
exceedFeedbackPic: () => { |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '最多上传5张反馈图片', |
|
|
message: '最多上传5张反馈图片', |
|
|
type: 'warning' |
|
|
type: 'warning' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 上传视频 |
|
|
// 上传视频 |
|
|
uploadVedio: function (params) { |
|
|
uploadVedio: (params) => { |
|
|
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 |
|
@ -369,7 +372,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 上传图片 |
|
|
// 上传图片 |
|
|
uploadPic: function (params) { |
|
|
uploadPic: (params) => { |
|
|
let file = params.file |
|
|
let file = params.file |
|
|
let fileType = file.type |
|
|
let fileType = file.type |
|
|
let isImage = fileType.indexOf('image') !== -1 |
|
|
let isImage = fileType.indexOf('image') !== -1 |
|
@ -419,7 +422,7 @@ export default { |
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
}, |
|
|
}, |
|
|
// 上传反馈图片 |
|
|
// 上传反馈图片 |
|
|
uploadFeedbackPic: function (params) { |
|
|
uploadFeedbackPic: (params) => { |
|
|
let file = params.file |
|
|
let file = params.file |
|
|
let fileType = file.type |
|
|
let fileType = file.type |
|
|
let isImage = fileType.indexOf('image') !== -1 |
|
|
let isImage = fileType.indexOf('image') !== -1 |
|
@ -472,7 +475,7 @@ export default { |
|
|
scene0 (value) { |
|
|
scene0 (value) { |
|
|
if (value) { // 选中 |
|
|
if (value) { // 选中 |
|
|
this.sceneDisabled = true |
|
|
this.sceneDisabled = true |
|
|
this.resetUGC() |
|
|
this.UGCSence0() |
|
|
} else { |
|
|
} else { |
|
|
this.sceneDisabled = false |
|
|
this.sceneDisabled = false |
|
|
} |
|
|
} |
|
@ -488,6 +491,14 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 重置UGC场景数据 |
|
|
// 重置UGC场景数据 |
|
|
resetUGC () { |
|
|
resetUGC () { |
|
|
|
|
|
this.dataForm.ugcDeclare.scene = [1, 2, 4] |
|
|
|
|
|
this.dataForm.ugcDeclare.otherSceneDesc = '' |
|
|
|
|
|
this.dataForm.ugcDeclare.method = [2] |
|
|
|
|
|
this.dataForm.ugcDeclare.hasAuditTeam = 1 |
|
|
|
|
|
this.dataForm.ugcDeclare.auditDesc = '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' |
|
|
|
|
|
}, |
|
|
|
|
|
// UGC场景选择0的初始化 |
|
|
|
|
|
UGCSence0 () { |
|
|
this.dataForm.ugcDeclare.scene = [0] |
|
|
this.dataForm.ugcDeclare.scene = [0] |
|
|
this.dataForm.ugcDeclare.otherSceneDesc = '' |
|
|
this.dataForm.ugcDeclare.otherSceneDesc = '' |
|
|
this.dataForm.ugcDeclare.method = [1] |
|
|
this.dataForm.ugcDeclare.method = [1] |
|
|