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