Browse Source

提交审核调整

dev
jiangyy 5 years ago
parent
commit
f22989dca0
  1. 60
      epmet-oper-web/src/views/modules/code/CommitList.vue
  2. 3
      epmet-oper-web/src/views/modules/code/OperHistory.vue
  3. 41
      epmet-oper-web/src/views/modules/code/SubmitForm.vue

60
epmet-oper-web/src/views/modules/code/CommitList.vue

@ -149,7 +149,7 @@ export default {
slot: '', slot: '',
plain: false, plain: false,
methodName: 'submitCodeDiaShow', // methodName: 'submitCodeDiaShow', //
isShow: function (row) { isShow: (row) => {
if (row.status === 'unaudited' || row.status === 'audit_failed' || row.status === 'withdrawn') { if (row.status === 'unaudited' || row.status === 'audit_failed' || row.status === 'withdrawn') {
return true return true
} else { } else {
@ -165,12 +165,13 @@ export default {
slot: '', slot: '',
plain: false, plain: false,
methodName: 'showQRCode', // methodName: 'showQRCode', //
isShow: function (row) { isShow: (row) => {
if (row.status === 'unaudited') { return true
return true // if (row.status === 'unaudited') {
} else { // return true
return false // } else {
} // return false
// }
} }
}, },
{ {
@ -181,7 +182,7 @@ export default {
slot: '', slot: '',
plain: false, plain: false,
methodName: 'submitRecall', // methodName: 'submitRecall', //
isShow: function (row) { isShow: (row) => {
if (row.status === 'auditing') { if (row.status === 'auditing') {
return true return true
} else { } else {
@ -197,7 +198,7 @@ export default {
slot: '', slot: '',
plain: false, plain: false,
methodName: 'issueCode', // methodName: 'issueCode', //
isShow: function (row) { isShow: (row) => {
if (row.status === 'audit_success' || row.status === 'release_failed') { if (row.status === 'audit_success' || row.status === 'release_failed') {
return true return true
} else { } else {
@ -213,7 +214,7 @@ export default {
slot: '', slot: '',
plain: false, plain: false,
methodName: 'submitFailReason', // methodName: 'submitFailReason', //
isShow: function (row) { isShow: (row) => {
if (row.status === 'audit_failed') { if (row.status === 'audit_failed') {
return true return true
} else { } else {
@ -352,18 +353,33 @@ export default {
// //
submitRecall (row) { submitRecall (row) {
const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/undo' this.$confirm('确认撤回审核?', '提示', {
const param = { confirmButtonText: '确定',
codeId: row.id cancelButtonText: '取消',
} type: 'warning'
window.app.ajax.post(url, param, }).then(() => {
(data, rspMsg) => { const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/undo'
this.$message.success('撤回成功' + rspMsg) const param = {
this.refresh() codeId: row.id
}, }
(rspMsg, data) => { window.app.ajax.post(url, param,
this.$message.error(rspMsg) (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) { showQRCode (row) {

3
epmet-oper-web/src/views/modules/code/OperHistory.vue

@ -70,7 +70,8 @@ export default {
}, },
computed: { computed: {
tableHeight () { 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']) ...mapGetters(['clientHeight'])
} }

41
epmet-oper-web/src/views/modules/code/SubmitForm.vue

@ -229,11 +229,11 @@ export default {
feedbackInfo: '', // feedbackInfo: '', //
feedbackStuff: '', // feedbackStuff: '', //
ugcDeclare: { // UGC ugcDeclare: { // UGC
scene: [0], // UGC 0,, 1.,2.,3.,4.,5, ,scene0 scene: [1, 2, 4], // UGC 0,, 1.,2.,3.,4.,5, ,scene0
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, ,scene0 scene: [1, 2, 4], // UGC 0,, 1.,2.,3.,4.,5, ,scene0
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 = '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)'
},
// UGC0
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]

Loading…
Cancel
Save