|
@@ -7,15 +7,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="16" class="rightData">
|
|
|
<el-table :data="tableData" border style="width: 100%">
|
|
|
- <el-table-column prop="product_name" label="产品名称" align="center" width="400"> </el-table-column>
|
|
|
- <el-table-column prop="market_username" label="营销单位" align="center" width="303"> </el-table-column>
|
|
|
- <el-table-column prop="status" label="交易状态" align="center" width="100">
|
|
|
- <template v-slot="scoped">
|
|
|
- {{
|
|
|
- `${scoped.row.status}` === `0` ? '正在洽谈' : `${scoped.row.status}` === `1` ? '达成意向' : `${scoped.row.status}` === `2` ? '交易完成' : ''
|
|
|
- }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="product_name" label="产品名称" align="center"> </el-table-column>
|
|
|
+ <el-table-column prop="market_username" label="营销单位" align="center"> </el-table-column>
|
|
|
<el-table-column label="操作" width="100" align="center" fixed="right">
|
|
|
<template slot-scope="scoped">
|
|
|
<el-button @click="$router.push({ path: '/dynamic/dealDetail', query: { id: scoped.row.id } })" type="text" size="small">
|
|
@@ -102,17 +95,15 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
this.myChart.setOption(option);
|
|
|
- this.myChart.on('click', pieConsole);
|
|
|
- function pieConsole(params) {
|
|
|
- console.log(params);
|
|
|
+ this.myChart.on('click', params => {
|
|
|
if (params.dataIndex === 0) {
|
|
|
- console.log('正在洽谈', s3);
|
|
|
+ this.$set(this, `tableData`, s3);
|
|
|
} else if (params.dataIndex === 1) {
|
|
|
- console.log('达成意向', s1);
|
|
|
+ this.$set(this, `tableData`, s1);
|
|
|
} else {
|
|
|
- console.log('对接完成', s2);
|
|
|
+ this.$set(this, `tableData`, s2);
|
|
|
}
|
|
|
- }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
},
|