|
@@ -3,60 +3,7 @@
|
|
|
<div class="card">
|
|
<div class="card">
|
|
|
<voteChart ref="voteChart"></voteChart>
|
|
<voteChart ref="voteChart"></voteChart>
|
|
|
|
|
|
|
|
- <RxTable
|
|
|
|
|
- ref="rxTable"
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- :data="listData.list"
|
|
|
|
|
- :blank-col="true"
|
|
|
|
|
- :loading="loading"
|
|
|
|
|
- :page-count="listData.pageQuantity"
|
|
|
|
|
- :currentPage="pageInfo.page"
|
|
|
|
|
- >
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <el-table-column type="expand">
|
|
|
|
|
- <template slot-scope="props">
|
|
|
|
|
- <el-form label-position="left" class="demo-table-expand">
|
|
|
|
|
- <el-form-item style="margin-left: 10px;" label="意见详情:" >
|
|
|
|
|
- <span >{{ props.row .suggestion}}</span>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
-
|
|
|
|
|
- </el-form>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
-
|
|
|
|
|
- <el-table-column
|
|
|
|
|
- :align="item.align || 'left'"
|
|
|
|
|
- :prop="item.prop"
|
|
|
|
|
-
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- v-for="(item) in tableHeader"
|
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
|
- :width="item.width"
|
|
|
|
|
- :min-width="item.minWidth"
|
|
|
|
|
- >
|
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
|
- <div v-if="item.prop == 'flag'" style="height: 36px;">
|
|
|
|
|
- <el-image fit="fill" :src="scope.row[item.prop]" style="height: 36px;width: 80px;" :preview-src-list="[scope.row[item.prop]]"></el-image>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div v-else-if="item.prop == 'tvCounts'">
|
|
|
|
|
- <el-tag size="small" style="width: 50px;text-align: center;" @click="goTvList(scope.row)">{{scope.row[item.prop]}}</el-tag>
|
|
|
|
|
- </div>
|
|
|
|
|
- <span v-else>{{ scope.row[item.prop] || scope.row[item.prop] == 0 ? scope.row[item.prop] : '-' }} </span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
-<!-- <el-table-column label="操作" fixed="right" align="left" width="200">-->
|
|
|
|
|
-<!-- <template slot-scope="scope">-->
|
|
|
|
|
-<!-- <el-button type="text" icon="el-icon-search" @click="handleChart(scope.row)">查看结果</el-button>-->
|
|
|
|
|
-<!-- <el-button type="text" class="btn_text_edit" icon="el-icon-edit" @click="handleEdit(scope.row)">编辑-->
|
|
|
|
|
-<!-- </el-button>-->
|
|
|
|
|
-
|
|
|
|
|
-<!-- </template>-->
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- </RxTable>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
@@ -99,23 +46,19 @@ export default {
|
|
|
methods:{
|
|
methods:{
|
|
|
init(){
|
|
init(){
|
|
|
let voteId = this.$route.query.voteId
|
|
let voteId = this.$route.query.voteId
|
|
|
- this.$api.voteStatis({
|
|
|
|
|
|
|
+ this.$api.choices({
|
|
|
voteId
|
|
voteId
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
console.log(res)
|
|
console.log(res)
|
|
|
|
|
+ res.content.options.forEach(tar => {
|
|
|
|
|
+ tar.flag = false;
|
|
|
|
|
+ })
|
|
|
this.$refs.voteChart.chartData = {
|
|
this.$refs.voteChart.chartData = {
|
|
|
...res.content,
|
|
...res.content,
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- this.$api.suggestion({
|
|
|
|
|
- voteId,
|
|
|
|
|
- ...this.pageInfo
|
|
|
|
|
- }).then(res => {
|
|
|
|
|
- console.log(res)
|
|
|
|
|
- this.listData.list = res.content.suggestions
|
|
|
|
|
- this.listData.pageQuantity = res.content.pageQuantity
|
|
|
|
|
- })
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
changePage(page) {
|
|
changePage(page) {
|
|
|
|
|
|
|
@@ -131,4 +74,4 @@ export default {
|
|
|
|
|
|
|
|
<style scoped>
|
|
<style scoped>
|
|
|
|
|
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|