|
|
|
@ -1,94 +1,124 @@ |
|
|
|
|
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<c-dialog :showFooter='false' |
|
|
|
:title="'基础信息'" |
|
|
|
<c-dialog :title="'基础信息'" |
|
|
|
:isNest="false" |
|
|
|
:visible="diaVisible" |
|
|
|
:dialogHeight="1.1" |
|
|
|
:width="70" |
|
|
|
@cancel="diaCancel" |
|
|
|
@ok="submitCode"> |
|
|
|
@ok="setDomains"> |
|
|
|
|
|
|
|
<el-form :inline="true" |
|
|
|
:model="formData" |
|
|
|
class="form" |
|
|
|
label-width="170px"> |
|
|
|
<el-form-item label="request 合法域名"> |
|
|
|
<div v-for="(item, index) in formData.requestDomain" |
|
|
|
:key="index"> |
|
|
|
<el-input style="width:300px;display:block;margin-bottom:10px; float:left" |
|
|
|
placeholder='请输入request 合法域名' |
|
|
|
v-model="formData.requestDomain[index]"> </el-input> |
|
|
|
|
|
|
|
<el-button v-if="index===0" |
|
|
|
size="mini" |
|
|
|
class="btn_serve" |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
@click="addRequest('requestDomain')" |
|
|
|
circle></el-button> |
|
|
|
<el-button v-else |
|
|
|
size="mini" |
|
|
|
class="btn_serve" |
|
|
|
type="danger" |
|
|
|
icon="el-icon-minus" |
|
|
|
@click="delRequest(index,'requestDomain')" |
|
|
|
circle></el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="socket 合法域名"> |
|
|
|
<div v-for="(item, index) in formData.wsRequestDomain" |
|
|
|
:key="index"> |
|
|
|
<el-input style="width:300px;display:block;margin-bottom:10px; float:left" |
|
|
|
placeholder='请输入socket 合法域名' |
|
|
|
v-model="formData.wsRequestDomain[index]"> </el-input> |
|
|
|
|
|
|
|
<el-button v-if="index===0" |
|
|
|
size="mini" |
|
|
|
class="btn_serve" |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
@click="addRequest('wsRequestDomain')" |
|
|
|
circle></el-button> |
|
|
|
<el-button v-else |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
|
class="btn_serve" |
|
|
|
icon="el-icon-minus" |
|
|
|
@click="delRequest(index,'wsRequestDomain')" |
|
|
|
circle></el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="uploadFile 合法域名"> |
|
|
|
<div v-for="(item, index) in formData.uploadDomain" |
|
|
|
:key="index"> |
|
|
|
<el-input style="width:300px;display:block;margin-bottom:10px; float:left" |
|
|
|
placeholder='请输入uploadFile 合法域名' |
|
|
|
v-model="formData.uploadDomain[index]"> </el-input> |
|
|
|
|
|
|
|
<el-tabs v-model="activeName" |
|
|
|
@tab-click="tabClick" |
|
|
|
class="el-tabs"> |
|
|
|
<el-button v-if="index===0" |
|
|
|
size="mini" |
|
|
|
class="btn_serve" |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
@click="addRequest('uploadDomain')" |
|
|
|
circle></el-button> |
|
|
|
<el-button v-else |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
|
class="btn_serve" |
|
|
|
icon="el-icon-minus" |
|
|
|
@click="delRequest(index,'uploadDomain')" |
|
|
|
circle></el-button> |
|
|
|
|
|
|
|
<el-tab-pane label="UGC信息安全声明" |
|
|
|
name="ugc"> |
|
|
|
<div class="el-upload__tip">当小程序第一次提交审核且类目包含社交-社区/论坛、社交-笔记、社交-问答其中之一时需填写UGC场景信息</div> |
|
|
|
<el-form :inline="true" |
|
|
|
:model="dataForm.ugcDeclare" |
|
|
|
class="form"> |
|
|
|
<el-form-item label="UGC场景" |
|
|
|
label-width="150px" |
|
|
|
style="display:block"> |
|
|
|
<el-checkbox-group v-model="dataForm.ugcDeclare.scene"> |
|
|
|
<el-checkbox @change="scene0" |
|
|
|
:label="0">不涉及用户生成内容</el-checkbox> |
|
|
|
<el-checkbox :label="1" |
|
|
|
:disabled="sceneDisabled">用户资料</el-checkbox> |
|
|
|
<el-checkbox :label="2" |
|
|
|
:disabled="sceneDisabled">图片</el-checkbox> |
|
|
|
<el-checkbox :label="3" |
|
|
|
:disabled="sceneDisabled">视频</el-checkbox> |
|
|
|
<el-checkbox :label="4" |
|
|
|
:disabled="sceneDisabled">文本</el-checkbox> |
|
|
|
<el-checkbox :label="5" |
|
|
|
:disabled="sceneDisabled" |
|
|
|
@change="sceneOther">其他</el-checkbox> |
|
|
|
</el-checkbox-group> |
|
|
|
</el-form-item> |
|
|
|
<div v-if="!sceneDisabled"> |
|
|
|
<el-form-item label="其他场景" |
|
|
|
label-width="150px" |
|
|
|
style="display:block"> |
|
|
|
<el-input type="textarea" |
|
|
|
:disabled="sceneOtherDisabled" |
|
|
|
:autosize="{ minRows: 2, maxRows: 4}" |
|
|
|
:rows="3" |
|
|
|
resize="none" |
|
|
|
style="width:500px" |
|
|
|
placeholder='请输入其他场景' |
|
|
|
v-model="dataForm.ugcDeclare.otherSceneDesc"> |
|
|
|
</el-input> |
|
|
|
<div class="el-upload__tip">当scene选其他时的说明,不超时256字</div> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="内容安全机制" |
|
|
|
label-width="150px" |
|
|
|
style="display:block"> |
|
|
|
<el-checkbox-group v-model="dataForm.ugcDeclare.method"> |
|
|
|
<el-checkbox :label="1">使用平台建议的内容安全API</el-checkbox> |
|
|
|
<el-checkbox :label="2">使用其他的内容审核产品</el-checkbox> |
|
|
|
<el-checkbox :label="3">通过人工审核把关</el-checkbox> |
|
|
|
<el-checkbox :label="4">未做内容审核把关</el-checkbox> |
|
|
|
</el-checkbox-group> |
|
|
|
<!-- <div class="el-upload__tip">1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关</div> --> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否有审核团队" |
|
|
|
label-width="150px" |
|
|
|
style="display:block"> |
|
|
|
<el-radio-group v-model="dataForm.ugcDeclare.hasAuditTeam"> |
|
|
|
<el-radio :label="0">无 </el-radio> |
|
|
|
<el-radio :label="1">有 </el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="审核机制" |
|
|
|
label-width="150px" |
|
|
|
style="display:block"> |
|
|
|
<el-input type="textarea" |
|
|
|
:autosize="{ minRows: 2, maxRows: 4}" |
|
|
|
:rows="3" |
|
|
|
resize="none" |
|
|
|
style="width:500px" |
|
|
|
placeholder='请输入审核机制' |
|
|
|
v-model="dataForm.ugcDeclare.auditDesc"> |
|
|
|
</el-input> |
|
|
|
<div class="el-upload__tip">说明当前对UGC内容的审核机制,不超过256字</div> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-tab-pane> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="downloadFile 合法域名"> |
|
|
|
<div v-for="(item, index) in formData.downloadDomain" |
|
|
|
:key="index"> |
|
|
|
<el-input style="width:300px;display:block;margin-bottom:10px; float:left" |
|
|
|
placeholder='请输入downloadFile 合法域名' |
|
|
|
v-model="formData.downloadDomain[index]"> </el-input> |
|
|
|
|
|
|
|
<el-button v-if="index===0" |
|
|
|
size="mini" |
|
|
|
class="btn_serve" |
|
|
|
type="primary" |
|
|
|
icon="el-icon-plus" |
|
|
|
@click="addRequest('downloadDomain')" |
|
|
|
circle></el-button> |
|
|
|
<el-button v-else |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
|
class="btn_serve" |
|
|
|
icon="el-icon-minus" |
|
|
|
@click="delRequest(index,'downloadDomain')" |
|
|
|
circle></el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
</el-tabs> |
|
|
|
</c-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
@ -104,39 +134,14 @@ export default { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
loading: false, |
|
|
|
feedbackShow: false, // 是否显示反馈信息,父组件传 |
|
|
|
codeId: '', // 上传代码id,父组件传 |
|
|
|
customerId: '', // 客户id,父组件传 |
|
|
|
clientType: '', // 客户端类型,父组件传 |
|
|
|
diaVisible: false, |
|
|
|
|
|
|
|
// tab页相关 |
|
|
|
activeName: 'desc', |
|
|
|
|
|
|
|
sceneDisabled: true, // 场景是否禁用 |
|
|
|
sceneOtherDisabled: true, // 其他场景是否禁用 |
|
|
|
dataForm: { |
|
|
|
versionDesc: '', // 小程序版本说明和功能解释 |
|
|
|
|
|
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
|
scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 |
|
|
|
otherSceneDesc: '', // 当scene选其他时的说明,不超时256字 |
|
|
|
method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 |
|
|
|
hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0 |
|
|
|
auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 上传素材 |
|
|
|
dialogImageUrl: 'https://epmet-cloud.elinkservice.cn/api/third/code/mediaupload', |
|
|
|
upload_url: '', // 上传URL |
|
|
|
upload_name: '', // 图片或视频名称 |
|
|
|
picList: [], // 预览列表 |
|
|
|
videoList: [], // 预览列表 |
|
|
|
feedbackPicList: [], // 预览列表 |
|
|
|
|
|
|
|
// 弹出框相关 |
|
|
|
dialog: { |
|
|
|
title: '', |
|
|
|
visible: false |
|
|
|
formData: { |
|
|
|
requestDomain: [], // request 合法域名 |
|
|
|
wsRequestDomain: [], // socket 合法域名 |
|
|
|
uploadDomain: [], // uploadFile 合法域名 |
|
|
|
downloadDomain: [] // downloadFile 合法域名 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -152,272 +157,94 @@ export default { |
|
|
|
...mapGetters(['clientHeight']) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
initData (codeId, feedbackShow) { |
|
|
|
this.codeId = codeId |
|
|
|
this.feedbackShow = feedbackShow |
|
|
|
initData (customerId, clientType) { |
|
|
|
this.clientType = clientType |
|
|
|
this.customerId = customerId |
|
|
|
this.diaVisible = true |
|
|
|
}, |
|
|
|
reseatDataForm () { |
|
|
|
this.dataForm = { |
|
|
|
isSpeed: false, // 是否加急 |
|
|
|
versionDesc: '', // 小程序版本说明和功能解释 |
|
|
|
|
|
|
|
ugcDeclare: { // 用户生成内容场景(UGC)信息安全声明 |
|
|
|
scene: [1, 2, 4], // UGC场景 0,不涉及用户生成内容, 1.用户资料,2.图片,3.视频,4.文本,5其他, 可多选,当scene填0时无需填写下列字段 |
|
|
|
otherSceneDesc: '', // 当scene选其他时的说明,不超时256字 |
|
|
|
method: [2], // 内容安全机制 1.使用平台建议的内容安全API,2.使用其他的内容审核产品,3.通过人工审核把关,4.未做内容审核把关 |
|
|
|
hasAuditTeam: 1, // 是否有审核团队, 0.无,1.有,默认0 |
|
|
|
auditDesc: '严重色情内容、轻微色情内容、涉政负面内容、严重辱骂、涉政暴恐(恶搞领导人、特殊标识、特殊着装、枪支、利器、血腥场景)' // 说明当前对UGC内容的审核机制,不超过256字 |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
tabClick (tab) { |
|
|
|
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) |
|
|
|
// 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: () => { |
|
|
|
this.$message({ |
|
|
|
message: '最多上传5张预览图片', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
this.getDomain() |
|
|
|
}, |
|
|
|
exceedVedio: () => { |
|
|
|
this.$message({ |
|
|
|
message: '最多上传2个预览视频', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
}, |
|
|
|
exceedFeedbackPic: () => { |
|
|
|
this.$message({ |
|
|
|
message: '最多上传5张反馈图片', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 上传视频 |
|
|
|
uploadVedio: (params) => { |
|
|
|
let file = params.file |
|
|
|
let fileType = file.type |
|
|
|
let isVideo = fileType.indexOf('video') !== -1 |
|
|
|
let fileUrl = this.$refs.uploadVedio.uploadFiles[this.videoList.length].url |
|
|
|
file.url = fileUrl |
|
|
|
this.videoList.push(file) |
|
|
|
|
|
|
|
let isLt20M = file.size / 1024 / 1024 < 20 |
|
|
|
if (!isLt20M) { |
|
|
|
this.$message({ |
|
|
|
message: '上传视频大小不能超过 20MB!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
this.videoList.pop() |
|
|
|
return |
|
|
|
} |
|
|
|
let isMP4 = file.type === 'video/mp4' |
|
|
|
if (!isVideo || !isMP4) { |
|
|
|
this.$message({ |
|
|
|
message: '请选择mp4格式的视频!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
this.videoList.pop() |
|
|
|
return |
|
|
|
} |
|
|
|
// 获取Domain |
|
|
|
getDomain () { |
|
|
|
this.startLoading() |
|
|
|
this.upload_name = 'file_video[]' |
|
|
|
let formData = new FormData() |
|
|
|
|
|
|
|
formData.append('type', fileType) |
|
|
|
formData.append('media', file) |
|
|
|
formData.append('codeId', this.codeId) |
|
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
|
// const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/code/getdomain' |
|
|
|
const url = 'https://epmet-cloud.elinkservice.cn/api/third/code/getdomain' |
|
|
|
const param = { |
|
|
|
customerId: this.customerId, |
|
|
|
clientType: this.clientType |
|
|
|
} |
|
|
|
window.app.ajax.post(url, param, |
|
|
|
(data, rspMsg) => { |
|
|
|
this.endLoading() |
|
|
|
if (data.code === 0) { |
|
|
|
this.videoList[this.videoList.length - 1].mediaid = data.data |
|
|
|
} else { |
|
|
|
this.videoList.pop() |
|
|
|
this.$message.error(rspMsg) |
|
|
|
this.formData = data |
|
|
|
if (this.formData.requestDomain.length === 0) { |
|
|
|
this.formData.requestDomain.push('') |
|
|
|
} |
|
|
|
if (this.formData.wsRequestDomain.length === 0) { |
|
|
|
this.formData.wsRequestDomain.push('') |
|
|
|
} |
|
|
|
if (this.formData.uploadDomain.length === 0) { |
|
|
|
this.formData.uploadDomain.push('') |
|
|
|
} |
|
|
|
if (this.formData.downloadDomain.length === 0) { |
|
|
|
this.formData.downloadDomain.push('') |
|
|
|
} |
|
|
|
this.endLoading() |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.videoList.pop() |
|
|
|
this.endLoading() |
|
|
|
this.$message.error(rspMsg) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 上传图片 |
|
|
|
uploadPic: (params) => { |
|
|
|
let file = params.file |
|
|
|
let fileType = file.type |
|
|
|
let isImage = fileType.indexOf('image') !== -1 |
|
|
|
let fileUrl = this.$refs.uploadPic.uploadFiles[this.picList.length].url |
|
|
|
file.url = fileUrl |
|
|
|
this.picList.push(file) |
|
|
|
|
|
|
|
let isLt5M = file.size / 1024 / 1024 < 5 |
|
|
|
if (!isLt5M) { |
|
|
|
this.$message({ |
|
|
|
message: '上传图片大小不能超过 5MB!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
this.picList.pop() |
|
|
|
return |
|
|
|
} |
|
|
|
if (!isImage) { |
|
|
|
this.$message({ |
|
|
|
message: '请选择图片!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
this.picList.pop() |
|
|
|
return |
|
|
|
} |
|
|
|
// console.log(this.picList) |
|
|
|
addRequest (domainType) { |
|
|
|
this.formData[domainType].push('') |
|
|
|
}, |
|
|
|
delRequest (index, domainType) { |
|
|
|
this.formData[domainType].splice(index, 1) |
|
|
|
}, |
|
|
|
|
|
|
|
this.upload_name = 'file_img[]' |
|
|
|
let formData = new FormData() |
|
|
|
setDomains () { |
|
|
|
this.startLoading() |
|
|
|
formData.append('type', fileType) |
|
|
|
formData.append('media', file) |
|
|
|
formData.append('codeId', this.codeId) |
|
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
|
(data, rspMsg) => { |
|
|
|
this.endLoading() |
|
|
|
if (data.code === 0) { |
|
|
|
this.picList[this.picList.length - 1].mediaid = data.data |
|
|
|
} else { |
|
|
|
this.picList.pop() |
|
|
|
this.$message.error(rspMsg) |
|
|
|
} |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.picList.pop() |
|
|
|
this.endLoading() |
|
|
|
this.$message.error(rspMsg) |
|
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
|
}, |
|
|
|
// 上传反馈图片 |
|
|
|
uploadFeedbackPic: (params) => { |
|
|
|
let file = params.file |
|
|
|
let fileType = file.type |
|
|
|
let isImage = fileType.indexOf('image') !== -1 |
|
|
|
let fileUrl = this.$refs.uploadFeedbackPic.uploadFiles[this.feedbackPicList.length].url |
|
|
|
file.url = fileUrl |
|
|
|
this.feedbackPicList.push(file) |
|
|
|
// const url = 'https://nei.netease.com/api/apimock-v2/e3b1d0eb88e905f6c7ee559b2d6bb7ad/third/setting/modifydomain' |
|
|
|
const url = 'https://epmet-cloud.elinkservice.cn/api/third/setting/modifydomain' |
|
|
|
let requestDomain = this.formData.requestDomain.filter(item => item !== '') |
|
|
|
let wsRequestDomain = this.formData.wsRequestDomain.filter(item => item !== '') |
|
|
|
let uploadDomain = this.formData.uploadDomain.filter(item => item !== '') |
|
|
|
let downloadDomain = this.formData.downloadDomain.filter(item => item !== '') |
|
|
|
|
|
|
|
let isLt2M = file.size / 1024 / 1024 < 2 |
|
|
|
if (!isLt2M) { |
|
|
|
this.$message({ |
|
|
|
message: '上传图片大小不能超过 2MB!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
this.feedbackPicList.pop() |
|
|
|
return |
|
|
|
} |
|
|
|
if (!isImage) { |
|
|
|
this.$message({ |
|
|
|
message: '请选择图片!', |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
this.feedbackPicList.pop() |
|
|
|
return |
|
|
|
} |
|
|
|
const param = { |
|
|
|
customerId: this.customerId, |
|
|
|
clientType: this.clientType, |
|
|
|
requestDomain: requestDomain, |
|
|
|
wsRequestDomain: wsRequestDomain, |
|
|
|
uploadDomain: uploadDomain, |
|
|
|
downloadDomain: downloadDomain |
|
|
|
|
|
|
|
this.upload_name = 'file_img[]' |
|
|
|
let formData = new FormData() |
|
|
|
} |
|
|
|
console.log(param) |
|
|
|
|
|
|
|
formData.append('type', fileType) |
|
|
|
formData.append('media', file) |
|
|
|
formData.append('codeId', this.codeId) |
|
|
|
this.startLoading() |
|
|
|
window.app.ajax.post2(this.dialogImageUrl, formData, |
|
|
|
window.app.ajax.post(url, param, |
|
|
|
(data, rspMsg) => { |
|
|
|
this.endLoading() |
|
|
|
if (data.code === 0) { |
|
|
|
this.feedbackPicList[this.feedbackPicList.length - 1].mediaid = data.data |
|
|
|
} else { |
|
|
|
this.feedbackPicList.pop() |
|
|
|
this.$message.error(rspMsg) |
|
|
|
} |
|
|
|
this.$message.success('保存成功') |
|
|
|
|
|
|
|
this.diaVisible = false |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.feedbackPicList.pop() |
|
|
|
this.endLoading() |
|
|
|
this.$message.error(rspMsg) |
|
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
|
}, |
|
|
|
// UGC场景选中0以后的事件 |
|
|
|
scene0 (value) { |
|
|
|
if (value) { // 选中 |
|
|
|
this.sceneDisabled = true |
|
|
|
this.UGCSence0() |
|
|
|
} else { |
|
|
|
this.sceneDisabled = false |
|
|
|
} |
|
|
|
}, |
|
|
|
// UGC场景选中其他以后的事件 |
|
|
|
sceneOther (value) { |
|
|
|
if (value) { // 选中 |
|
|
|
this.sceneOtherDisabled = false |
|
|
|
} else { |
|
|
|
this.sceneOtherDisabled = true |
|
|
|
this.dataForm.ugcDeclare.otherSceneDesc = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 重置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] |
|
|
|
this.dataForm.ugcDeclare.hasAuditTeam = 0 |
|
|
|
this.dataForm.ugcDeclare.auditDesc = '' |
|
|
|
}) |
|
|
|
}, |
|
|
|
submitCode () { |
|
|
|
|
|
|
|
}, |
|
|
|
// 取消 |
|
|
|
diaCancel () { |
|
|
|
this.resetData() |
|
|
|
this.activeName = 'desc' |
|
|
|
this.diaVisible = false |
|
|
|
}, |
|
|
|
resetData () { |
|
|
|
this.reseatDataForm() |
|
|
|
// 功能说明 |
|
|
|
this.picList = [] |
|
|
|
this.videoList = [] |
|
|
|
|
|
|
|
// 审核项 |
|
|
|
this.$refs['ref_submit_item'].reseatData() |
|
|
|
// 反馈说明 |
|
|
|
this.feedbackPicList = [] |
|
|
|
// 信息安全 |
|
|
|
}, |
|
|
|
// 开启加载动画 |
|
|
|
startLoading () { |
|
|
|
loading = Loading.service({ |
|
|
|
lock: true, // 是否锁定 |
|
|
|
index: 100, |
|
|
|
text: '正在加载……', // 加载中需要显示的文字 |
|
|
|
background: 'rgba(0,0,0,.7)' // 背景颜色 |
|
|
|
}) |
|
|
|
@ -445,4 +272,10 @@ export default { |
|
|
|
.form { |
|
|
|
margin-top: 30px; |
|
|
|
} |
|
|
|
.btn_serve { |
|
|
|
float: left; |
|
|
|
margin-top: 4px; |
|
|
|
margin-left: 10px; |
|
|
|
vertical-align: bottom; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|