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') { %> <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://10.10.10.118:9094/epdc-api' window.SITE_CONFIG['apiURL'] = 'http://localhost:9094/epdc-api'
</script> </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-radio v-model="dataForm.eventState" label="2">驳回</el-radio>
</el-form-item> </el-form-item>
<el-form-item label="议题所属类别:" prop="categoryId" v-if="categoryVisible"> <el-form-item label="议题所属类别:" prop="categoryId" v-if="categoryVisible">
<el-select v-model="dataForm.categoryId" placeholder="请选择"> <div class="block">
<el-option <el-cascader v-model="categoryIds" placeholder="试试搜索:城市管理" :props="{ checkStrictly: true }" :options="categoryOptions" filterable></el-cascader>
v-for="item in categoryOptions" </div>
:key="item.id"
:label="item.categoryName"
:value="item.id">
</el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item label="处理意见:" prop="advice"> <el-form-item label="处理意见:" prop="advice">
<el-input :rows="4" v-model="dataForm.advice" type="textarea" placeholder="请您填写居民诉求的处理情况及答复意见,向居民公开展示,500字以内"></el-input> <el-input :rows="4" v-model="dataForm.advice" type="textarea" placeholder="请您填写居民诉求的处理情况及答复意见,向居民公开展示,500字以内"></el-input>
@ -83,6 +78,7 @@ export default {
advice: '', advice: '',
eventState: '4' eventState: '4'
}, },
categoryIds: [],
previewImgList: [], previewImgList: [],
categoryVisible: true, categoryVisible: true,
urls: [], 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) { initBmap (latitude, longitude) {
this.map = new BMap.Map('map') this.map = new BMap.Map('map')
const point = new BMap.Point(longitude, latitude) const point = new BMap.Point(longitude, latitude)
@ -141,21 +145,6 @@ export default {
this.previewImgList = [] this.previewImgList = []
this.previewImgList.push(url) 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 () { getInfo () {
this.$http.get(`/events/epdcevents/${this.dataForm.id}`).then(({ data: res }) => { this.$http.get(`/events/epdcevents/${this.dataForm.id}`).then(({ data: res }) => {
@ -172,6 +161,8 @@ export default {
}, },
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(function () {
this.dataForm.categoryId = this.categoryIds[this.categoryIds.length-1]
console.log(this.dataForm.categoryId)
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (!valid) { if (!valid) {
return false return false

Loading…
Cancel
Save