diff --git a/epmet-oper-web/src/views/modules/code/CommitList.vue b/epmet-oper-web/src/views/modules/code/CommitList.vue index 251d06e..fedd52c 100644 --- a/epmet-oper-web/src/views/modules/code/CommitList.vue +++ b/epmet-oper-web/src/views/modules/code/CommitList.vue @@ -149,7 +149,7 @@ export default { slot: '', plain: false, methodName: 'submitCodeDiaShow', // 回调方法名称 - isShow: function (row) { + isShow: (row) => { if (row.status === 'unaudited' || row.status === 'audit_failed' || row.status === 'withdrawn') { return true } else { @@ -165,12 +165,13 @@ export default { slot: '', plain: false, methodName: 'showQRCode', // 回调方法名称 - isShow: function (row) { - if (row.status === 'unaudited') { - return true - } else { - return false - } + isShow: (row) => { + return true + // if (row.status === 'unaudited') { + // return true + // } else { + // return false + // } } }, { @@ -181,7 +182,7 @@ export default { slot: '', plain: false, methodName: 'submitRecall', // 回调方法名称 - isShow: function (row) { + isShow: (row) => { if (row.status === 'auditing') { return true } else { @@ -197,7 +198,7 @@ export default { slot: '', plain: false, methodName: 'issueCode', // 回调方法名称 - isShow: function (row) { + isShow: (row) => { if (row.status === 'audit_success' || row.status === 'release_failed') { return true } else { @@ -213,7 +214,7 @@ export default { slot: '', plain: false, methodName: 'submitFailReason', // 回调方法名称 - isShow: function (row) { + isShow: (row) => { if (row.status === 'audit_failed') { return true } else { @@ -352,18 +353,33 @@ export default { // 审核撤回 submitRecall (row) { - const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/undo' - const param = { - codeId: row.id - } - window.app.ajax.post(url, param, - (data, rspMsg) => { - this.$message.success('撤回成功' + rspMsg) - this.refresh() - }, - (rspMsg, data) => { - this.$message.error(rspMsg) - }) + this.$confirm('确认撤回审核?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/undo' + const param = { + codeId: row.id + } + window.app.ajax.post(url, param, + (data, rspMsg) => { + this.$message.success('撤回成功' + rspMsg) + this.refresh() + }, + (rspMsg, data) => { + this.$message.error(rspMsg) + }) + // this.$message({ + // type: 'success', + // message: '删除成功!' + // }) + }).catch(() => { + // this.$message({ + // type: 'info', + // message: '已取消删除' + // }) + }) }, // 体验版二维码 showQRCode (row) { diff --git a/epmet-oper-web/src/views/modules/code/OperHistory.vue b/epmet-oper-web/src/views/modules/code/OperHistory.vue index b89b974..7976360 100644 --- a/epmet-oper-web/src/views/modules/code/OperHistory.vue +++ b/epmet-oper-web/src/views/modules/code/OperHistory.vue @@ -70,7 +70,8 @@ export default { }, computed: { tableHeight () { - return this.clientHeight - 60 - 80 - 80 - 50 - 400 + // return this.clientHeight - 60 - 80 - 80 - 50 - 400 + return this.clientHeight * 0.6 - 40 }, ...mapGetters(['clientHeight']) } diff --git a/epmet-oper-web/src/views/modules/code/SubmitForm.vue b/epmet-oper-web/src/views/modules/code/SubmitForm.vue index abde924..1921d4f 100644 --- a/epmet-oper-web/src/views/modules/code/SubmitForm.vue +++ b/epmet-oper-web/src/views/modules/code/SubmitForm.vue @@ -229,11 +229,11 @@ export default { feedbackInfo: '', // 反馈内容 feedbackStuff: '', // 反馈素材 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字 - method: [1], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 - hasAuditTeam: 0, // 是否有审核团队, 0.无,1.有,默认0 - auditDesc: '' // 说明当前对UGC内容的审核机制,不超过256字 + method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 + hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0 + auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字 } }, @@ -275,11 +275,11 @@ export default { feedbackInfo: '', // 反馈内容 feedbackStuff: '', // 反馈素材 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字 - method: [1], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 - hasAuditTeam: 0, // 是否有审核团队, 0.无,1.有,默认0 - auditDesc: '' // 说明当前对UGC内容的审核机制,不超过256字 + method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 + hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0 + auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字 } } }, @@ -287,6 +287,9 @@ export default { if (tab.name === 'item') { this.$refs['ref_submit_item'].initData(this.codeId) } + if (tab.name === 'ugc') { + this.scene0(false) + } }, removeVedio (file) { 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) // console.log(this.feedbackPicList) }, - exceedPic: function () { + exceedPic: () => { this.$message({ message: '最多上传5张预览图片', type: 'warning' }) }, - exceedVedio: function () { + exceedVedio: () => { this.$message({ message: '最多上传2个预览视频', type: 'warning' }) }, - exceedFeedbackPic: function () { + exceedFeedbackPic: () => { this.$message({ message: '最多上传5张反馈图片', type: 'warning' }) }, // 上传视频 - uploadVedio: function (params) { + uploadVedio: (params) => { let file = params.file let fileType = file.type let isVideo = fileType.indexOf('video') !== -1 @@ -369,7 +372,7 @@ export default { }) }, // 上传图片 - uploadPic: function (params) { + uploadPic: (params) => { let file = params.file let fileType = file.type let isImage = fileType.indexOf('image') !== -1 @@ -419,7 +422,7 @@ export default { }, { headers: { 'Content-Type': 'multipart/form-data' } }) }, // 上传反馈图片 - uploadFeedbackPic: function (params) { + uploadFeedbackPic: (params) => { let file = params.file let fileType = file.type let isImage = fileType.indexOf('image') !== -1 @@ -472,7 +475,7 @@ export default { scene0 (value) { if (value) { // 选中 this.sceneDisabled = true - this.resetUGC() + this.UGCSence0() } else { this.sceneDisabled = false } @@ -488,6 +491,14 @@ export default { }, // 重置UGC场景数据 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.otherSceneDesc = '' this.dataForm.ugcDeclare.method = [1]