diff --git a/api/index.js b/api/index.js index f7ee3d5..2e5c0cb 100644 --- a/api/index.js +++ b/api/index.js @@ -5,7 +5,6 @@ const NOTICE_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory.do' const PYXX_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory' - // 通知公告列表 export function getNoticeList(data) { return fetch.get(NOTICE_LIST, data).then(res => res); @@ -17,3 +16,6 @@ } + + + diff --git a/api/index.js b/api/index.js index f7ee3d5..2e5c0cb 100644 --- a/api/index.js +++ b/api/index.js @@ -5,7 +5,6 @@ const NOTICE_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory.do' const PYXX_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory' - // 通知公告列表 export function getNoticeList(data) { return fetch.get(NOTICE_LIST, data).then(res => res); @@ -17,3 +16,6 @@ } + + + diff --git a/api/tort.js b/api/tort.js index 60a4e54..14d6c87 100644 --- a/api/tort.js +++ b/api/tort.js @@ -10,6 +10,7 @@ const GET_CODE_URL = BASE_URL + '/webserver/captchaController/generateVerifyCodeOfReport.do' const REPORT_LIST = BASE_URL + '/webserver/reportInfo/queryPersonReportedInfo.do' const REPORT_DETAIL = BASE_URL + '/webserver/reportInfos/shortcutQueryReportInfo.do' +const GET_SPECIAL = BASE_URL + '/webserver/reportInfos/queryTopicList.do' /** * 生成网址、网址转换 * @param {*} // url: '' @@ -51,4 +52,9 @@ return fetch.post(REPORT_DETAIL, data, {}, {'content-type': 'application/x-www-form-urlencoded'}).then(res => res); } +// 获取专题 +export function getSpecial(data) { + return fetch.get(GET_SPECIAL, data).then(res => res); +} + diff --git a/api/index.js b/api/index.js index f7ee3d5..2e5c0cb 100644 --- a/api/index.js +++ b/api/index.js @@ -5,7 +5,6 @@ const NOTICE_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory.do' const PYXX_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory' - // 通知公告列表 export function getNoticeList(data) { return fetch.get(NOTICE_LIST, data).then(res => res); @@ -17,3 +16,6 @@ } + + + diff --git a/api/tort.js b/api/tort.js index 60a4e54..14d6c87 100644 --- a/api/tort.js +++ b/api/tort.js @@ -10,6 +10,7 @@ const GET_CODE_URL = BASE_URL + '/webserver/captchaController/generateVerifyCodeOfReport.do' const REPORT_LIST = BASE_URL + '/webserver/reportInfo/queryPersonReportedInfo.do' const REPORT_DETAIL = BASE_URL + '/webserver/reportInfos/shortcutQueryReportInfo.do' +const GET_SPECIAL = BASE_URL + '/webserver/reportInfos/queryTopicList.do' /** * 生成网址、网址转换 * @param {*} // url: '' @@ -51,4 +52,9 @@ return fetch.post(REPORT_DETAIL, data, {}, {'content-type': 'application/x-www-form-urlencoded'}).then(res => res); } +// 获取专题 +export function getSpecial(data) { + return fetch.get(GET_SPECIAL, data).then(res => res); +} + diff --git a/packageIndex/center/center.vue b/packageIndex/center/center.vue index 063238e..2c3fa49 100644 --- a/packageIndex/center/center.vue +++ b/packageIndex/center/center.vue @@ -44,7 +44,7 @@ 专项举报入口 - + {{item.title}} diff --git a/api/index.js b/api/index.js index f7ee3d5..2e5c0cb 100644 --- a/api/index.js +++ b/api/index.js @@ -5,7 +5,6 @@ const NOTICE_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory.do' const PYXX_LIST = BASE_URL + '/pymhserver/news/listNewsByCategory' - // 通知公告列表 export function getNoticeList(data) { return fetch.get(NOTICE_LIST, data).then(res => res); @@ -17,3 +16,6 @@ } + + + diff --git a/api/tort.js b/api/tort.js index 60a4e54..14d6c87 100644 --- a/api/tort.js +++ b/api/tort.js @@ -10,6 +10,7 @@ const GET_CODE_URL = BASE_URL + '/webserver/captchaController/generateVerifyCodeOfReport.do' const REPORT_LIST = BASE_URL + '/webserver/reportInfo/queryPersonReportedInfo.do' const REPORT_DETAIL = BASE_URL + '/webserver/reportInfos/shortcutQueryReportInfo.do' +const GET_SPECIAL = BASE_URL + '/webserver/reportInfos/queryTopicList.do' /** * 生成网址、网址转换 * @param {*} // url: '' @@ -51,4 +52,9 @@ return fetch.post(REPORT_DETAIL, data, {}, {'content-type': 'application/x-www-form-urlencoded'}).then(res => res); } +// 获取专题 +export function getSpecial(data) { + return fetch.get(GET_SPECIAL, data).then(res => res); +} + diff --git a/packageIndex/center/center.vue b/packageIndex/center/center.vue index 063238e..2c3fa49 100644 --- a/packageIndex/center/center.vue +++ b/packageIndex/center/center.vue @@ -44,7 +44,7 @@ 专项举报入口 - + {{item.title}} diff --git a/packageIndex/report/report.vue b/packageIndex/report/report.vue index f83c8ec..e4ad118 100644 --- a/packageIndex/report/report.vue +++ b/packageIndex/report/report.vue @@ -52,10 +52,10 @@ - - - - + + @@ -71,11 +71,12 @@ clearable > - + @@ -180,6 +181,15 @@ @confirm="confirmReportType" > + + + import { getLocationParams } from '../../common/utils.js'; import Message from '../../components/base/message.vue'; - import { createUrl, websiteUrlRepeat, webReport } from '@/api/tort.js' + import { createUrl, websiteUrlRepeat, webReport, getSpecial} from '@/api/tort.js' export default { components: { Message }, data() { return { + ztShow: '', // 专题选择框弹出 timeStr: '', // 验证码时间戳 codeUrl: '', // 验证码图片 currentTab: '0', - + ztList: [], // 专题 messageContent: '互联网违法不良信息公众举报平台以高度的责任感对待每一条公众举报内容。举报平台核查线索后,及时将违法和不良信息转交执法部门处置,或通知网站清理,举报人可通过提交举报时反馈的查询码在举报查询中查询处理进度。', showMessage: false, //举报须知弹窗显隐 typeLabel: '', //举报类型名称 @@ -368,13 +379,14 @@ phone: '', //手机号 type: '', //举报类型 url: '', //网站网址 - zt: '网络数据安全和个人信息保护', //专题 + zt: '', //专题 isNewMedia: '0', //是否是新媒体 desc: '', //内容描述 publishName: '', //发布人 publishId: '', //发布人id place: '', //发布平台 picture: [], //内容截图 + topicId: '', // 专题id source: '', //信息来源 affix: [], //附件 reportType: '', // 举报类型上传字段 @@ -516,6 +528,7 @@ } }, mounted() { + this.fetchSpecial() // 获取专题 this.fetchCodeURl() // 获取验证码 this.form.reportType = getLocationParams('reportTypeValue'); // 举报类型接口传参 this.reportType = getLocationParams('reportType'); // 前端控制举报类型 web special other @@ -535,6 +548,26 @@ console.log(options, 'options') }, methods: { + //获取专题列表 + fetchSpecial() { + getSpecial({topicSign: '1'}).then(res => { + this.ztList = [] + this.ztList = res.map(item => { + return { + ...item, + label: item.topicTitle, + id: item.topicId + } + }) + this.ztList = [this.ztList] + }) + }, + // 选好专题 + confirmzt(val) { + this.form.topicId = val.value[0].id; // 专题 + this.form.zt = val.value[0].label; // 专题 + this.ztShow = false + }, // 点击tab clickTab(e) { console.log(e) @@ -544,7 +577,7 @@ phone: '', //手机号 type: '', //举报类型 url: '', //网站网址 - zt: '网络数据安全和个人信息保护', //专题 + zt: '', //专题 isNewMedia: '0', //是否是新媒体 desc: '', //内容描述 publishName: '', //发布人 @@ -589,6 +622,7 @@ this.typeShow = false; this.placeShow = false; this.infoSourceShow = false; + this.ztShow = false }, //多列联动 changeHandler(e) { @@ -609,8 +643,8 @@ //确定举报类型 confirmReportType(val) { this.cancle(); - this.form.type = val.value[0].label; - this.form.reportType = val.value[0].id; + this.form.type = val.value[0].id; + this.form.reportType = val.value[0].label; console.log('举报类型', this.form.type, this.form.reportType) }, //确定发布平台 @@ -725,7 +759,7 @@ "reportInfo.reportType": this.form.reportType,// 举报类型 "reportInfo.infoSource": infoSource, // 网站举报(必填固定不变) "reportInfo.infoType": '1', //(三种类型举报都传递1) - "reportInfo.topicId": '', // + "reportInfo.topicId": this.form.topicId, // 专题id "reportInfo.isMedia": this.form.isNewMedia, //是否是新媒体 "reportInfo.reportUserType": '3', // //1普通用户2, "监督员"3, "匿名用户"(未注册情况为3) "reportInfo.directReport": '', //