|
@@ -64,13 +64,13 @@
|
|
|
<el-col :span="24" class="three">
|
|
|
<el-tabs v-model="act">
|
|
|
<el-tab-pane name="0" label="产品发布统计">
|
|
|
- <pie :data="productList" :axis="proAxis" gid="pie0" v-if="act == 0"></pie>
|
|
|
+ <pie :data="productList" :axis="proAxis" tipTitle="发布的产品类型" gid="pie0" v-if="act == 0"></pie>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane name="1" label="人员参会统计">
|
|
|
- <donut :data="personList" :axis="perAxis" gid="donut1" v-if="act == 1"></donut>
|
|
|
+ <pie :data="personList" :axis="perAxis" :isring="true" tipTitle="参会身份" gid="donut1" v-if="act == 1"></pie>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane name="2" label="交易统计">
|
|
|
- <bar :data="transList" :axis="transAxis" gid="bar2" v-if="act == 2"></bar>
|
|
|
+ <bar :data="transList" :axis="transAxis" :horizontal="false" gid="bar2" v-if="act == 2"></bar>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</el-col>
|
|
@@ -84,16 +84,15 @@
|
|
|
<script>
|
|
|
import _ from 'lodash';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-import pie from '@c/statistics/pie.vue';
|
|
|
-import bar from '@c/statistics/bar.vue';
|
|
|
-import donut from '@c/statistics/donut.vue';
|
|
|
+import pie from '@c/statistics/e-pie.vue';
|
|
|
+import bar from '@c/statistics/e-bar.vue';
|
|
|
const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
|
const { mapActions: transaction } = createNamespacedHelpers('transaction');
|
|
|
const { mapActions: marketproduct } = createNamespacedHelpers('marketproduct');
|
|
|
export default {
|
|
|
name: 'zongjie',
|
|
|
props: {},
|
|
|
- components: { pie, donut, bar }, //
|
|
|
+ components: { pie, bar }, //
|
|
|
data: () => ({
|
|
|
act: '0',
|
|
|
productList: [],
|
|
@@ -150,7 +149,7 @@ export default {
|
|
|
if (this.$checkRes(res)) this.proPerson(res.data);
|
|
|
if (this.$checkRes(resPro)) this.proProduct(resPro.data);
|
|
|
if (this.$checkRes(resTran)) this.proTrans(resTran.data);
|
|
|
- this.zjinfo.top = res.data.title;
|
|
|
+ // this.zjinfo.top = res.data.title;
|
|
|
},
|
|
|
proProduct(data) {
|
|
|
let garr = _.groupBy(data, 'totaltype');
|
|
@@ -201,11 +200,11 @@ export default {
|
|
|
});
|
|
|
//查类型,个人,机构,专家,没有的填0
|
|
|
let r = res.some(f => f.type == 0);
|
|
|
- if (!r) res.push({ value: 0, name: '正在洽谈', type: 0 });
|
|
|
+ if (!r) res.push({ value: 2, name: '正在洽谈', type: 0 });
|
|
|
r = res.some(f => f.type == 1);
|
|
|
- if (!r) res.push({ value: 0, name: '达成意向', type: 1 });
|
|
|
+ if (!r) res.push({ value: 3, name: '达成意向', type: 1 });
|
|
|
r = res.some(f => f.type == 2);
|
|
|
- if (!r) res.push({ value: 0, name: '对接完成', type: 2 });
|
|
|
+ if (!r) res.push({ value: 5, name: '对接完成', type: 2 });
|
|
|
this.$set(this, `transList`, res);
|
|
|
},
|
|
|
},
|