|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<!--
|
|
|
|
|
* @Author: your name
|
|
|
|
|
* @Date: 2021-10-25 13:20:36
|
|
|
|
|
* @LastEditTime: 2021-10-28 19:17:26
|
|
|
|
|
* @LastEditTime: 2021-11-01 10:25:44
|
|
|
|
|
* @LastEditors: Please set LastEditors
|
|
|
|
|
* @Description: In User Settings Edit
|
|
|
|
|
* @FilePath: /data-show/src/views/ModelInsight/ml-brand-data/index.vue
|
|
|
|
@ -17,7 +17,15 @@
|
|
|
|
|
<span class="s1">传播数据总量</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
74,073,195
|
|
|
|
|
<a-popover title="传播数据总量">
|
|
|
|
|
<template slot="content">
|
|
|
|
|
<div class="pd-item" v-for="(item,index) in totalArr" :key="index">
|
|
|
|
|
<span>{{item.key}}</span>
|
|
|
|
|
<span>{{item.value}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<span class="s2">{{count}}</span>
|
|
|
|
|
</a-popover>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mbd-d1" style="margin-top: 16px">
|
|
|
|
@ -26,7 +34,7 @@
|
|
|
|
|
<span class="s1">占品牌传播比例</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d2">
|
|
|
|
|
30.50%
|
|
|
|
|
{{countPercent}}%
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mbd-d1" style="margin-top: 16px">
|
|
|
|
@ -45,7 +53,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
// import {getBrandOverviewCount0528} from "@/api/ModelInsight"
|
|
|
|
|
import { getBrandOverviewCount0528 } from "@/api/ModelInsight";
|
|
|
|
|
export default {
|
|
|
|
|
name: "ml-brand-data",
|
|
|
|
|
props: ["brand", "model"],
|
|
|
|
@ -54,19 +62,39 @@ export default {
|
|
|
|
|
form: {
|
|
|
|
|
sBrand: "",
|
|
|
|
|
sSeriesName: "",
|
|
|
|
|
token: ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
token: "",
|
|
|
|
|
},
|
|
|
|
|
totalArr: [],
|
|
|
|
|
count: 0,
|
|
|
|
|
countPercent: 0,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.form.token = this.getToken;
|
|
|
|
|
this.form.sBrand = this.brand;
|
|
|
|
|
this.form.sSeriesName = this.model;
|
|
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
|
model: {
|
|
|
|
|
handler(val) {
|
|
|
|
|
if (val) {
|
|
|
|
|
this.form.token = this.getToken;
|
|
|
|
|
this.form.sBrand = this.brand;
|
|
|
|
|
this.form.sSeriesName = this.model;
|
|
|
|
|
this.getData1();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
immediate: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
created() {},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
getData1() {
|
|
|
|
|
let obj = Object.assign({}, this.getCtime2, this.form);
|
|
|
|
|
getBrandOverviewCount0528(obj).then((res) => {
|
|
|
|
|
let data = res.data;
|
|
|
|
|
this.count = data.count;
|
|
|
|
|
this.countPercent = data.countPercent;
|
|
|
|
|
this.totalArr = data.data;
|
|
|
|
|
console.log(this.totalArr)
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
@ -120,4 +148,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.pd-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
color: #fff;
|
|
|
|
|
border-bottom: 1px solid #173b6d;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|