Browse Source

议题审核分类列表

master
王金鹏 6 years ago
parent
commit
1aaa4f36cf
  1. 2
      public/index.html
  2. 37
      src/views/modules/events/issue-review-detail-view.vue

2
public/index.html

@ -33,7 +33,7 @@
<!-- 开发环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script>
window.SITE_CONFIG['apiURL'] = 'http://10.10.10.118:9094/epdc-api'
window.SITE_CONFIG['apiURL'] = 'http://localhost:9094/epdc-api'
</script>
<% } %>
<!-- 集成测试环境 -->

37
src/views/modules/events/issue-review-detail-view.vue

@ -42,14 +42,9 @@
<el-radio v-model="dataForm.eventState" label="2">驳回</el-radio>
</el-form-item>
<el-form-item label="议题所属类别:" prop="categoryId" v-if="categoryVisible">
<el-select v-model="dataForm.categoryId" placeholder="请选择">
<el-option
v-for="item in categoryOptions"
:key="item.id"
:label="item.categoryName"
:value="item.id">
</el-option>
</el-select>
<div class="block">
<el-cascader v-model="categoryIds" placeholder="试试搜索:城市管理" :props="{ checkStrictly: true }" :options="categoryOptions" filterable></el-cascader>
</div>
</el-form-item>
<el-form-item label="处理意见:" prop="advice">
<el-input :rows="4" v-model="dataForm.advice" type="textarea" placeholder="请您填写居民诉求的处理情况及答复意见,向居民公开展示,500字以内"></el-input>
@ -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

Loading…
Cancel
Save