From 1aaa4f36cf2dfee7b90e1818fef1119127e2ee78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=87=91=E9=B9=8F?= Date: Thu, 28 Nov 2019 09:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=AE=E9=A2=98=E5=AE=A1=E6=A0=B8=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- .../events/issue-review-detail-view.vue | 37 +++++++------------ 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/public/index.html b/public/index.html index 30eb0f1b..6de0ffff 100644 --- a/public/index.html +++ b/public/index.html @@ -33,7 +33,7 @@ <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% } %> diff --git a/src/views/modules/events/issue-review-detail-view.vue b/src/views/modules/events/issue-review-detail-view.vue index bd31376b..71a14d6d 100644 --- a/src/views/modules/events/issue-review-detail-view.vue +++ b/src/views/modules/events/issue-review-detail-view.vue @@ -42,14 +42,9 @@ 驳回 - - - - +
+ +
@@ -83,6 +78,7 @@ export default { advice: '', eventState: '4' }, + categoryIds: [], previewImgList: [], categoryVisible: true, urls: [], @@ -129,6 +125,14 @@ export default { } }) }, + getCategoryList () { + return this.$http.get('/events/category/list').then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.categoryOptions = res.data + }).catch(() => { }) + }, initBmap (latitude, longitude) { this.map = new BMap.Map('map') const point = new BMap.Point(longitude, latitude) @@ -141,21 +145,6 @@ export default { this.previewImgList = [] this.previewImgList.push(url) }, - getCategoryList () { - this.$http.get('/events/eventcategory/list', - { - params: { - categoryCode: '0' - } - } - ).then(({ data: res }) => { - this.dataListLoading = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.categoryOptions = res.data - }).catch(() => {}) - }, // 获取信息 getInfo () { this.$http.get(`/events/epdcevents/${this.dataForm.id}`).then(({ data: res }) => { @@ -172,6 +161,8 @@ export default { }, // 表单提交 dataFormSubmitHandle: debounce(function () { + this.dataForm.categoryId = this.categoryIds[this.categoryIds.length-1] + console.log(this.dataForm.categoryId) this.$refs['dataForm'].validate((valid) => { if (!valid) { return false