|
|
@@ -55,7 +55,7 @@
|
|
|
>
|
|
|
<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;"></el-image>
|
|
|
+ <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'">
|
|
|
@@ -66,7 +66,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" fixed="right" align="left" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
- <!-- <el-button type="text" icon="el-icon-edit" @click="handleEdit(scope.row)">查看</el-button>-->
|
|
|
+ <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>
|
|
|
<!-- <el-button type="text" class="btn_text_edit" icon="el-icon-edit" @click="handleEdit(scope.row)">绑定微信-->
|
|
|
@@ -101,16 +101,28 @@
|
|
|
<el-button type="primary" @click="onSubmit('edit')">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog
|
|
|
+ title="投票结果"
|
|
|
+ :visible.sync="dialogVisibleChart"
|
|
|
+ width="600px"
|
|
|
+ :lock-scroll="false">
|
|
|
+ <voteChart ref="voteChart"></voteChart>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import RxTable from "@/components/RxTable";
|
|
|
import voteForm from "./module/voteForm";
|
|
|
+import voteChart from "./module/voteChart";
|
|
|
export default {
|
|
|
name: "voteActivityInfo",
|
|
|
components:{
|
|
|
- RxTable,voteForm
|
|
|
+ RxTable,voteForm,voteChart
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
@@ -119,6 +131,7 @@ export default {
|
|
|
loading: false,
|
|
|
dialogVisible: false,
|
|
|
dialogVisibleUpdate:false,
|
|
|
+ dialogVisibleChart:false,
|
|
|
tableHeader: [
|
|
|
{
|
|
|
prop:"sequence",
|
|
|
@@ -161,6 +174,29 @@ export default {
|
|
|
this.$refs.voteForm.form = JSON.parse(JSON.stringify(row));
|
|
|
})
|
|
|
},
|
|
|
+ handleChart(row){
|
|
|
+
|
|
|
+ let voteId = row.id;
|
|
|
+ console.log(row)
|
|
|
+ this.$router_({
|
|
|
+ name:"voteResult",
|
|
|
+ title:"表决结果",
|
|
|
+ canClose:true,
|
|
|
+ query:{
|
|
|
+ voteId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // let title = row.title
|
|
|
+ // let content = row.content
|
|
|
+ // this.$api.voteStatis({
|
|
|
+ // voteId
|
|
|
+ // }).then(res => {
|
|
|
+ // this.$refs.voteChart.chartData = {
|
|
|
+ // ...res.content,
|
|
|
+ // title,content
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ },
|
|
|
addVote(){
|
|
|
this.dialogVisible = true;
|
|
|
|