diff --git a/packageIndex/report/report.vue b/packageIndex/report/report.vue index 25a265c..b909d8e 100644 --- a/packageIndex/report/report.vue +++ b/packageIndex/report/report.vue @@ -468,30 +468,30 @@ trigger: ['blur', 'change'] }, ], - // 'toolcount': [ - // { - // type: 'string', - // required: true, - // message: '必填项', - // trigger: ['blur', 'change'] - // }, - // ], - // 'toolname': [ - // { - // type: 'string', - // required: true, - // message: '必填项', - // trigger: ['blur', 'change'] - // }, - // ], - // 'tooldesc': [ - // { - // type: 'string', - // required: true, - // message: '必填项', - // trigger: ['blur', 'change'] - // }, - // ], + 'toolcount': [ + { + type: 'string', + required: true, + message: '必填项', + trigger: ['blur', 'change'] + }, + ], + 'toolname': [ + { + type: 'string', + required: true, + message: '必填项', + trigger: ['blur', 'change'] + }, + ], + 'tooldesc': [ + { + type: 'string', + required: true, + message: '必填项', + trigger: ['blur', 'change'] + }, + ], //信息来源 'source': [ { @@ -688,27 +688,33 @@ infoToolColumns: [[ { label: 'QQ', - key: '1' + key: '1', + id:0, }, { label: '陌陌', - key: '2' + key: '2', + id:1, }, { label: '微信', - key: '3' + key: '3', + id:2, }, { label: 'YY', - key: '4' + key: '4', + id:3, }, { label: 'MSN', - key: '5' + key: '5', + id:4, }, { label: '其他', - key: '6' + key: '6', + id:4, }, ]], infoDownloadColumns: [[ @@ -1147,20 +1153,20 @@ "reportInfo.publishPlat": this.form.publishPlat, // 发布平台 "websiteInfo.reportWebsiteUrl": this.form.url, // 网址 "websiteInfo.reportWebsiteName": '', // ? - "appInfo.reportAppName": '',// ? - "appInfo.downloadUrl": '',// ? + "diskInfo.reportDiskName": this.form.source=== '网盘' ? this.infoNetworkColumns[0].findIndex(item => item.label === this.form.toolcount) : '', + "diskInfo.reportUserName": this.form.source=== '网盘' ? this.form.toolname : '', + "diskInfo.resourceUrl": this.form.source=== '网盘' ? this.form.tooldesc : '', + "appInfo.reportAppName": this.form.source=== '移动APP' ? this.form.toolname : '',// ? + "appInfo.downloadUrl": this.form.source=== '移动APP' ? `选项${(this.infoDownloadColumns[0].findIndex(item => item.label === this.form.toolcount)) + 1 }` : '',// ? "appInfo.reportWebsiteUrl": '',// ? - "wechatInfo.reportChatTool": '',// ? - "wechatInfo.reportChatNo": '',// ? - "searchEngineInfo.reportEngineName": '',// ? - "searchEngineInfo.keyWord": '', //? - "diskInfo.reportDiskName": '',//? - "diskInfo.reportUserName": '',//? - "diskInfo.resourceUrl": '',//? + "wechatInfo.reportChatTool": this.form.source=== '聊天工具' ? this.infoToolColumns[0].filter(item => item.label === this.form.toolname)[0].id : '',// ? + "wechatInfo.reportChatNo": this.form.source=== '聊天工具' ? this.form.toolcount : '',// ? + "searchEngineInfo.reportEngineName": this.form.source=== '搜索引擎' ? this.form.tooldesc : '', + "searchEngineInfo.keyWord": this.form.source=== '搜索引擎' ? this.form.toolcount : '',// ? "otherInfo.reportWebsiteName": '',//? "otherInfo.reportWebsiteUrl": '',//? - "batchId": JSON.stringify([tempArr]), // 图片 - "batchIdsStr": JSON.stringify([tempArr]), // 图片字符串 + "batchId": this.reportType === 'other' ? JSON.stringify(tempArr) : JSON.stringify([tempArr]), // 图片 + "batchIdsStr": this.reportType === 'other' ? JSON.stringify(tempArr) : JSON.stringify([tempArr]), // 图片字符串 "websiteUrlsStr": this.form.url, //网址 "videoBatchId": '',//? "videoBatchIdsStr": '',//?