Browse Source

事件管理Bug修改

feature/syp_points
songyunpeng 5 years ago
parent
commit
2c047913ff
  1. 4
      src/views/modules/events/eventssummary-list.vue
  2. 8
      src/views/modules/events/issuessummary-list.vue
  3. 37
      src/views/modules/events/itemssummary-list.vue

4
src/views/modules/events/eventssummary-list.vue

@ -19,7 +19,7 @@
<el-table-column prop="issueCount" label="议题数量" header-align="center" align="center"></el-table-column> <el-table-column prop="issueCount" label="议题数量" header-align="center" align="center"></el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="lookIssueInfo(scope.row.id)">已转议题</el-button> <el-button v-if="scope.row.issueCount != 0" type="text" size="small" @click="lookIssueInfo(scope.row.id)">已转议题</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -67,7 +67,7 @@ export default {
methods: { methods: {
lookIssueInfo (id) { lookIssueInfo (id) {
this.$parent.selectComponent = 'IssuessummaryList' this.$parent.selectComponent = 'IssuessummaryList'
this.$router.push({ path: '/user-eventssummaryroute', query: { eventId: id } }) this.$router.push({ path: '/events-eventssummaryroute', query: { eventId: id } })
} }
} }
} }

8
src/views/modules/events/issuessummary-list.vue

@ -20,7 +20,7 @@
<el-table-column prop="itemCount" label="项目数量" header-align="center" align="center"></el-table-column> <el-table-column prop="itemCount" label="项目数量" header-align="center" align="center"></el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150"> <el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click="getItemsInfo(scope.row.id)">已转项目</el-button> <el-button v-if="scope.row.itemCount != 0" type="text" size="small" @click="getItemsInfo(scope.row.id)">已转项目</el-button>
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button> <el-button type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -74,11 +74,11 @@ export default {
backToUserRelationList () { backToUserRelationList () {
this.$emit('refreshDataList') this.$emit('refreshDataList')
this.$parent.selectComponent = 'EventssummaryList' this.$parent.selectComponent = 'EventssummaryList'
this.$router.push({ path: '/user-eventssummaryroute' }) this.$router.push({ path: '/events-eventssummaryroute' })
}, },
getItemsInfo () { getItemsInfo (id) {
this.$parent.selectComponent = 'ItemssummaryList' this.$parent.selectComponent = 'ItemssummaryList'
this.$router.push({ path: '/user-eventssummaryroute.vue', query: { issueId: this.$route.query.id } }) this.$router.push({ path: '/events-eventssummaryroute', query: { issueId: id } })
} }
} }
} }

37
src/views/modules/events/itemssummary-list.vue

@ -53,7 +53,8 @@ export default {
id: '', id: '',
issueId: '', issueId: '',
eventContent: '' eventContent: ''
} },
eventId: ''
} }
}, },
mounted () { mounted () {
@ -65,12 +66,36 @@ export default {
methods: { methods: {
backToUserRelationList () { backToUserRelationList () {
this.$emit('refreshDataList') this.$emit('refreshDataList')
this.$parent.selectComponent = 'EventssummaryList' this.$parent.selectComponent = 'IssuessummaryList'
this.$router.push({ path: '/user-eventssummaryroute' }) this.$router.push({ path: '/events-eventssummaryroute', query: { eventId: this.eventId } })
}, },
getItemsInfo () { getDataList () {
this.$parent.selectComponent = 'ItemssummaryList' this.dataListLoading = true
this.$router.push({ path: '/user-eventssummaryroute.vue', query: { issueId: this.$route.query.id } }) this.$http.get(
this.mixinViewModuleOptions.getDataListURL,
{
params: {
order: this.order,
orderField: this.orderField,
page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null,
limit: this.mixinViewModuleOptions.getDataListIsPage ? this.limit : null,
...this.dataForm
}
}
).then(({ data: res }) => {
this.dataListLoading = false
this.radio = 0
if (res.code !== 0) {
this.dataList = []
this.total = 0
return this.$message.error(res.msg)
}
this.dataList = res.data.list
this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total : 0
this.eventId = res.data.list[0].eventId
}).catch(() => {
this.dataListLoading = false
})
} }
} }
} }

Loading…
Cancel
Save