Commit 79b930ee authored by 罗超's avatar 罗超

调整

parent 9bc2e187
...@@ -213,6 +213,12 @@ ...@@ -213,6 +213,12 @@
<p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.CustomerName}}</p> <p @click="openDetails(scope)" class="font-color-link cp">{{scope.row.CustomerName}}</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="CustomerType"
label="客户类型"
v-if="queryType[20].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column <el-table-column
prop="CustomerSourceTypeStr" prop="CustomerSourceTypeStr"
label="客户来源" label="客户来源"
...@@ -540,6 +546,10 @@ export default { ...@@ -540,6 +546,10 @@ export default {
label: '交客数', label: '交客数',
show: true, show: true,
}, },
{
label: '客户类型',
show: true,
}
], ],
queryType: [ queryType: [
{ {
...@@ -602,7 +612,10 @@ export default { ...@@ -602,7 +612,10 @@ export default {
},{ },{
label: '交客数', label: '交客数',
show: true, show: true,
}, }, {
label: '客户类型',
show: true,
}
], ],
CustomerId: 0, CustomerId: 0,
CustomerIdStr: '', CustomerIdStr: '',
......
...@@ -303,6 +303,7 @@ export default { ...@@ -303,6 +303,7 @@ export default {
SceneName: '', SceneName: '',
IsDefault: 0, IsDefault: 0,
} }
console.log(val)
}, },
deep:true deep:true
} }
...@@ -502,7 +503,7 @@ export default { ...@@ -502,7 +503,7 @@ export default {
x.region = this.optionsNames.filter(item=>{ x.region = this.optionsNames.filter(item=>{
return !item.t return !item.t
}) })
} else if (x.Name === '负责人' || x.Name === '创建人' || x.Name === '线索来源' || x.Name === '客户来源' || x.Name === '客人级别' || x.Name === '经营场所' || x.Name === '性别' || x.Name === '是否关键决策人' || x.Name === '职务' || x.Name === '商机状态组' || x.Name === '交客数' || x.Name === '优惠券数' || x.Name === '交易金额' || x.Name === '幸福存折') { } else if (x.Name === '负责人' || x.Name === '客户类别' || x.Name === '创建人' || x.Name === '线索来源' || x.Name === '客户来源' || x.Name === '客人级别' || x.Name === '经营场所' || x.Name === '性别' || x.Name === '是否关键决策人' || x.Name === '职务' || x.Name === '商机状态组' || x.Name === '交客数' || x.Name === '优惠券数' || x.Name === '交易金额' || x.Name === '幸福存折') {
x.region = this.optionsNames.filter(item=>{ x.region = this.optionsNames.filter(item=>{
return (item.c === '等于' || item.c === '不等于') && item.t return (item.c === '等于' || item.c === '不等于') && item.t
}) })
......
...@@ -68,6 +68,7 @@ export default { ...@@ -68,6 +68,7 @@ export default {
this.sceneDataList = this.sceneData.filter(x=> this.sceneDataList = this.sceneData.filter(x=>
x.WhereType === 0 x.WhereType === 0
) )
console.log(this.sceneDataList)
let $this = this let $this = this
this.MsgBus.$on('editScene', function (){ this.MsgBus.$on('editScene', function (){
console.log(1) console.log(1)
......
...@@ -205,7 +205,8 @@ ...@@ -205,7 +205,8 @@
<span class="font-size-12">{{item.SeasonTypeName}}</span> <span class="font-size-12">{{item.SeasonTypeName}}</span>
</div> </div>
<div class="right"> <div class="right">
<p>累计报名<span class="hight-font">{{item.SeasonCount}}</span>人,关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p> <p>累计报名<span class="hight-font">{{item.SeasonCount}}</span>人,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<!-- ,关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万 -->
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p> <p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div> </div>
</div> </div>
......
This diff is collapsed.
...@@ -204,7 +204,8 @@ ...@@ -204,7 +204,8 @@
<p>{{item.FestivalName}}</p> <p>{{item.FestivalName}}</p>
</div> </div>
<div class="right"> <div class="right">
<p>累计报名<span class="hight-font">{{item.OrderCount}}</span>人,关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p> <p>累计报名<span class="hight-font">{{item.OrderCount}}</span>人,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<!-- 关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万, -->
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p> <p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div> </div>
</div> </div>
...@@ -219,14 +220,14 @@ ...@@ -219,14 +220,14 @@
推荐解答 推荐解答
</el-col> </el-col>
<el-col :span="12" class="right-title"> <el-col :span="12" class="right-title">
<i class="iconfont icondianzan1"></i> 点赞 <!-- <i class="iconfont icondianzan1"></i> 点赞 -->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div class="situ"> <div class="situ">
<div class="fesRemind">根据对客户年龄段的统计,可以更好的了解不同年龄段客 人的喜根据对客户年龄段的统计。根据对客户年龄段的统 计,可以更好的了解不同年龄段客人的喜根据对客户年龄 段的统计</div> <div class="fesRemind">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="botTaolun" @click="drawer = true"> <div class="botTaolun" @click="drawer = true">
查看更多,参与讨论(1) {{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</div> </div>
</div> </div>
...@@ -239,7 +240,7 @@ ...@@ -239,7 +240,7 @@
:visible.sync="drawer" :visible.sync="drawer"
direction="rtl" direction="rtl"
:with-header="false"> :with-header="false">
<discussBox :id="discussID"/> <discussBox :type="discussID"/>
</el-drawer> </el-drawer>
</div> </div>
</template> </template>
...@@ -259,14 +260,33 @@ export default { ...@@ -259,14 +260,33 @@ export default {
discussID: 0, discussID: 0,
drawer: false, drawer: false,
isShowFeature:false, isShowFeature:false,
discussID: 11,
BbsList: [],
topOne:{}
}; };
},watch:{ },watch:{
}, },
mounted() { mounted() {
this.GetSexOrderList() this.GetSexOrderList()
this.GetBbsListByType()
}, },
methods: { methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: this.discussID}, res => {
this.BbsList = res.data.data
if (this.BbsList && this.BbsList.length>0) {
this.topOne=this.BbsList[0]
this.BbsList.forEach(x=>{
if(x.Likes>this.topOne.Likes){
this.topOne=x
}
})
}
});
},
GetSexOrderList(){ GetSexOrderList(){
this.loading = true this.loading = true
this.apipost("/api/Statistic/GetFestivalOrderList", {}, res => { this.apipost("/api/Statistic/GetFestivalOrderList", {}, res => {
......
This diff is collapsed.
<style> <style>
.job{ .job {
height: calc(100% - 25px); height: calc(100% - 25px);
} }
.statistics-title { .statistics-title {
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
margin-bottom: 30px; margin-bottom: 30px;
font-family: perfectFont; font-family: perfectFont;
} }
.job .conten-box{ .job .conten-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(100% - 62px); height: calc(100% - 62px);
...@@ -17,18 +17,18 @@ ...@@ -17,18 +17,18 @@
.job .conten-box .el-card .el-card__header { .job .conten-box .el-card .el-card__header {
font-weight: normal !important; font-weight: normal !important;
} }
.job .conten-box .top{ .job .conten-box .top {
flex: 1.2; flex: 1.2;
margin-bottom: 25px; margin-bottom: 25px;
} }
.job .conten-box .bottom{ .job .conten-box .bottom {
flex: .8; flex: 0.8;
} }
.job .conten-box .left{ .job .conten-box .left {
height: 100%; height: 100%;
} }
.job .conten-box .el-card.blue { .job .conten-box .el-card.blue {
background: #0D2481!important; background: #0d2481 !important;
color: #fff !important; color: #fff !important;
height: calc(100% - 2px); height: calc(100% - 2px);
} }
...@@ -41,45 +41,44 @@ ...@@ -41,45 +41,44 @@
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
text-align: center; text-align: center;
padding: 27px 0 0 90px!important; padding: 27px 0 0 90px !important;
justify-content: center; justify-content: center;
font-size: 14px; font-size: 14px;
} }
.job .sjsm{ .job .sjsm {
height: 198px; height: 198px;
overflow: auto; overflow: auto;
} }
.job .sjsm>div{ .job .sjsm > div {
margin-bottom: 20px; margin-bottom: 20px;
} }
.job .sjsm>div:last-child{ .job .sjsm > div:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.job .sjsm>div{ .job .sjsm > div {
flex: 1; flex: 1;
background:rgba(244,245,249,1); background: rgba(244, 245, 249, 1);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 20px; padding: 20px;
} }
.job .sjsm>div .left{ .job .sjsm > div .left {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.job .sjsm>div .left img{ .job .sjsm > div .left img {
padding-right: 10px; padding-right: 10px;
} }
.job .sjsm>div .right{ .job .sjsm > div .right {
text-align: right; text-align: right;
color: #888888; color: #888888;
font-size: 12px; font-size: 12px;
} }
.job .hight-font{ .job .hight-font {
color: #0D2481 !important; color: #0d2481 !important;
font-size: 14px; font-size: 14px;
} }
</style> </style>
<template> <template>
<div class="job" v-loading="loading"> <div class="job" v-loading="loading">
...@@ -95,19 +94,19 @@ ...@@ -95,19 +94,19 @@
<el-col :span="6" class="img"> <el-col :span="6" class="img">
<div> <div>
<div style="margin-bottom: 10px;"> <div style="margin-bottom: 10px;">
<img src="../../assets/img/tongji/qinzi.png" alt=""> <img src="../../assets/img/tongji/qinzi.png" alt />
</div> </div>
<p>教育</p> <p>教育</p>
</div> </div>
</el-col> </el-col>
<el-col :span="18" style="height: 100%;"> <el-col :span="18" style="height: 100%;">
<sexChart :myData="chartData" :strArr="strArr"/> <sexChart :myData="chartData" :strArr="strArr" />
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="25" class="bottom" > <el-row :gutter="25" class="bottom">
<el-col :span="12" style="height: 100%;"> <el-col :span="12" style="height: 100%;">
<el-card style="height: 100%;"> <el-card style="height: 100%;">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
...@@ -116,17 +115,25 @@ ...@@ -116,17 +115,25 @@
<div class="sjsm"> <div class="sjsm">
<div v-for="(item, index) in orders" :key="index"> <div v-for="(item, index) in orders" :key="index">
<div class="left"> <div class="left">
<img v-if="index==0" src="../../assets/img/tongji/qinzhi.png" alt=""> <img v-if="index==0" src="../../assets/img/tongji/qinzhi.png" alt />
<img v-else-if="index==1" src="../../assets/img/tongji/miyue.png" alt=""> <img v-else-if="index==1" src="../../assets/img/tongji/miyue.png" alt />
<img v-else-if="index==2" src="../../assets/img/tongji/in3.png" alt=""> <img v-else-if="index==2" src="../../assets/img/tongji/in3.png" alt />
<img v-else-if="index==3" src="../../assets/img/tongji/d1.png" alt=""> <img v-else-if="index==3" src="../../assets/img/tongji/d1.png" alt />
<img v-else-if="index==4" src="../../assets/img/tongji/hanjia.png" alt=""> <img v-else-if="index==4" src="../../assets/img/tongji/hanjia.png" alt />
<img v-else src="../../assets/img/tongji/qinzhi.png" alt=""> <img v-else src="../../assets/img/tongji/qinzhi.png" alt />
<span class="font-size-12">{{item.DutyTypeName}}</span> <span class="font-size-12">{{item.DutyTypeName}}</span>
</div> </div>
<div class="right"> <div class="right">
<p>累计报名<span class="hight-font">{{item.OrderCount}}</span>人,关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p> <p>
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p> 累计报名
<span class="hight-font">{{item.OrderCount}}</span>人,报名均价为
<span class="hight-font">{{item.Unit_Price}}</span>
</p>
<!-- 关联购物金额<span class="hight-font">{{item.ShopMoney}}</span>万, -->
<p>
最喜爱产品
<span class="hight-font">{{item.LtName}}</span>
</p>
</div> </div>
</div> </div>
</div> </div>
...@@ -136,18 +143,16 @@ ...@@ -136,18 +143,16 @@
<el-card style="height: 100%;"> <el-card style="height: 100%;">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<el-row style="width:100%"> <el-row style="width:100%">
<el-col :span="12" size="30"> <el-col :span="12" size="30">推荐解答</el-col>
推荐解答
</el-col>
<el-col :span="12" class="right-title"> <el-col :span="12" class="right-title">
<i class="iconfont icondianzan1"></i> 点赞 <i class="iconfont icondianzan1"></i> 点赞
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<div class="situ"> <div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div> <div class="c">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="bot" @click="drawer = true"> <div class="bot" @click="drawer = true">
查看更多,参与讨论(19) {{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</div> </div>
</div> </div>
...@@ -155,18 +160,14 @@ ...@@ -155,18 +160,14 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
<el-drawer <el-drawer size="695px" :visible.sync="drawer" direction="rtl" :with-header="false">
size='695px' <discussBox :type="discussID" />
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :type="discussID"/>
</el-drawer> </el-drawer>
</div> </div>
</template> </template>
<script> <script>
import sexChart from './model/sexChart' import sexChart from "./model/sexChart";
import shopChart from './model/shopChart' import shopChart from "./model/shopChart";
import discussBox from "./model/discussBox"; import discussBox from "./model/discussBox";
export default { export default {
components: { components: {
...@@ -176,45 +177,68 @@ export default { ...@@ -176,45 +177,68 @@ export default {
}, },
data() { data() {
return { return {
orders:[], orders: [],
discussID: 0, discussID: 0,
drawer: false, drawer: false,
chartData: [], chartData: [],
shopChartData: [], shopChartData: [],
SexOrder: [], SexOrder: [],
loading: false, loading: false,
strArr: ['娱乐', '教育', '服务'] strArr: ["娱乐", "教育", "服务"],
discussID: 13,
BbsList: [],
topOne: {}
}; };
},watch:{
}, },
watch: {},
mounted() { mounted() {
this.GetSexOrderList() this.GetSexOrderList();
this.GetBbsListByType();
}, },
methods: { methods: {
GetSexOrderList(){ GetBbsListByType() {
this.loading = true this.apipost(
"/api/Customer/GetBbsListByType",
{ t: this.discussID },
res => {
this.BbsList = res.data.data;
if (this.BbsList && this.BbsList.length > 0) {
this.topOne = this.BbsList[0];
this.BbsList.forEach(x => {
if (x.Likes > this.topOne.Likes) {
this.topOne = x;
}
});
}
}
);
},
GetSexOrderList() {
this.loading = true;
this.apipost("/api/Statistic/GetDutyTypeOrderList", {}, res => { this.apipost("/api/Statistic/GetDutyTypeOrderList", {}, res => {
this.loading = false this.loading = false;
if(res.data.resultCode==1){ if (res.data.resultCode == 1) {
this.strArr=[]; this.strArr = [];
let data=res.data.data; let data = res.data.data;
var totalOrder=0; var totalOrder = 0;
var totalMoney=0; var totalMoney = 0;
data.forEach(item=>{ data.forEach(item => {
this.strArr.push(item.DutyTypeName); this.strArr.push(item.DutyTypeName);
totalOrder+=item.OrderCount; totalOrder += item.OrderCount;
totalMoney+=item.ShopMoney; totalMoney += item.ShopMoney;
}) });
data.forEach(item=>{ data.forEach(item => {
this.chartData.push(((item.OrderCount/totalOrder)*100).toFixed(2)); this.chartData.push(
}) ((item.OrderCount / totalOrder) * 100).toFixed(2)
this.orders=res.data.data; );
}else{ });
this.orders = res.data.data;
} else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}); });
} }
} }
} };
</script> </script>
\ No newline at end of file
...@@ -25,13 +25,15 @@ ...@@ -25,13 +25,15 @@
<div class="r"> <div class="r">
<div> <div>
累计报名 累计报名
<b>{{item.AgeCount}}</b> 人,关联购物金额 <b>{{item.AgeCount}}</b> 人,
<!-- 关联购物金额
<b> <b>
<template v-if="item.TotalMoney"> <template v-if="item.TotalMoney">
{{(item.TotalMoney/10000).toFixed(2)}} {{(item.TotalMoney/10000).toFixed(2)}}
</template> </template>
</b>,报名均价为: </b>, -->
报名均价为:
<b> <b>
<template v-if="item.Unit_Price"> <template v-if="item.Unit_Price">
{{item.Unit_Price.toFixed(0)}} {{item.Unit_Price.toFixed(0)}}
...@@ -71,9 +73,9 @@ ...@@ -71,9 +73,9 @@
</el-row> </el-row>
</div> </div>
<div class="situ"> <div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div> <div class="c">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="bot" @click="drawer = true"> <div class="bot" @click="drawer = true">
查看更多,参与讨论(19) {{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
</div> </div>
</div> </div>
...@@ -123,13 +125,32 @@ export default { ...@@ -123,13 +125,32 @@ export default {
"未婚", "未婚",
"丧偶", "丧偶",
"其他未知" "其他未知"
] ],
discussID: 14,
BbsList: [],
topOne:{}
}; };
}, },
mounted() { mounted() {
this.init(); this.init();
this.GetBbsListByType()
}, },
methods: { methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: this.discussID}, res => {
this.BbsList = res.data.data
if (this.BbsList && this.BbsList.length>0) {
this.topOne=this.BbsList[0]
this.BbsList.forEach(x=>{
if(x.Likes>this.topOne.Likes){
this.topOne=x
}
})
}
});
},
init() { init() {
this.apipost("/api/Statistic/GetMarriageShopList", {}, res => { this.apipost("/api/Statistic/GetMarriageShopList", {}, res => {
res.data.data.forEach(x => { res.data.data.forEach(x => {
...@@ -154,8 +175,10 @@ export default { ...@@ -154,8 +175,10 @@ export default {
initOrders() { initOrders() {
this.apipost("/api/Statistic/GetMarriageOrderList", {}, res => { this.apipost("/api/Statistic/GetMarriageOrderList", {}, res => {
res.data.data.forEach(x => { res.data.data.forEach(x => {
if(x.Marriage - 1<this.showChats.length){
this.showChats[x.Marriage - 1].LtName = x.LtName; this.showChats[x.Marriage - 1].LtName = x.LtName;
this.showChats[x.Marriage - 1].Unit_Price = x.Unit_Price; this.showChats[x.Marriage - 1].Unit_Price = x.Unit_Price;
}
}); });
this.isLoaded = true; this.isLoaded = true;
}); });
......
...@@ -124,7 +124,8 @@ ...@@ -124,7 +124,8 @@
<span class="font-size-12">{{item.MarriageName}}</span> <span class="font-size-12">{{item.MarriageName}}</span>
</div> </div>
<div class="right"> <div class="right">
<p>累计报名<span class="hight-font">{{item.MarriageCount}}</span>人,关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p> <p>累计报名<span class="hight-font">{{item.MarriageCount}}</span>人,报名均价为<span class="hight-font">{{item.Unit_Price}}</span></p>
<!-- 关联购物金额<span class="hight-font">{{item.TotalMoney}}</span>万, -->
<p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p> <p>最喜爱产品<span class="hight-font">{{item.LtName}}</span></p>
</div> </div>
</div> </div>
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
<img width="24" height="24" :src="item.ImgPhoto" alt=""> <img width="24" height="24" :src="item.ImgPhoto" alt="">
<span style="font-size:14px;font-family:perfectFont;font-weight:700;">{{item.RejectUserName}}</span> <span style="font-size:14px;font-family:perfectFont;font-weight:700;">{{item.RejectUserName}}</span>
</div> </div>
<span class="font-color-info">{{item.TimeStr}}</span> <span class="font-color-info" style="font-size:12px;">{{item.TimeStr}}</span>
</div> </div>
<div class="content"> <div class="content">
<p>{{item.Content}}</p> <p>{{item.Content}}</p>
...@@ -176,13 +176,13 @@ ...@@ -176,13 +176,13 @@
<span>{{c.RejectUserName}}</span> <span>{{c.RejectUserName}}</span>
</div> </div>
</div> </div>
<span class="font-color-info">{{c.TimeStr}}</span> <span class="font-color-info" style="font-size:12px;">{{c.TimeStr}}</span>
</div> </div>
<div class="content"> <div class="content">
<p>{{c.Content}}</p> <p>{{c.Content}}</p>
</div> </div>
<div class="footer"> <div class="footer">
<span class="cp like" @click="AddLike(c)"><i class="iconfont iconzan"></i>{{c.Likes > 0 ? c.Likes : ''}}</span> <!-- <span class="cp like" @click="AddLike(c)"><i class="iconfont iconzan"></i>{{c.Likes > 0 ? c.Likes : ''}}</span> -->
<span class="cp" @click="setHF(c.Id)"><i class="iconfont iconhuifu"></i>{{hfID === c.Id ? '取消' : ''}}回复</span> <span class="cp" @click="setHF(c.Id)"><i class="iconfont iconhuifu"></i>{{hfID === c.Id ? '取消' : ''}}回复</span>
</div> </div>
<div class="msg-box" v-if="hfID === c.Id"> <div class="msg-box" v-if="hfID === c.Id">
......
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: '{a} <br/>{b} : {c} ({d}%)' formatter: '{a} <br/>{b} : ({d}%)'
}, },
legend: { legend: {
orient: 'vertical', orient: 'vertical',
...@@ -61,7 +61,7 @@ export default { ...@@ -61,7 +61,7 @@ export default {
}, },
series: [ series: [
{ {
name: '访问来源', name: '购物占比',
type: 'pie', type: 'pie',
radius: '55%', radius: '55%',
center: ['50%', '60%'], center: ['50%', '60%'],
......
...@@ -25,12 +25,14 @@ ...@@ -25,12 +25,14 @@
<div class="r"> <div class="r">
<div> <div>
累计报名 累计报名
<b>{{item.AgeCount}}</b> 人,关联购物金额 <b>{{item.AgeCount}}</b> 人,
<!-- 关联购物金额
<b> <b>
<template v-if="item.TotalMoney"> <template v-if="item.TotalMoney">
{{(item.TotalMoney/10000).toFixed(2)}} {{(item.TotalMoney/10000).toFixed(2)}}
</template> </template>
</b>,报名均价为: </b>, -->
报名均价为:
<b> <b>
<template v-if="item.Unit_Price"> <template v-if="item.Unit_Price">
{{item.Unit_Price.toFixed(0)}} {{item.Unit_Price.toFixed(0)}}
...@@ -72,7 +74,7 @@ ...@@ -72,7 +74,7 @@
</el-row> </el-row>
</div> </div>
<div class="situ"> <div class="situ">
<div class="c">{{BbsList.length ? BbsList[0].Content : '暂无'}}</div> <div class="c">{{topOne && topOne.Content ? topOne.Content : '暂无'}}</div>
<div class="bot" @click="drawer = true"> <div class="bot" @click="drawer = true">
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}} {{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i> <i class="el-icon-d-arrow-right"></i>
...@@ -81,27 +83,6 @@ ...@@ -81,27 +83,6 @@
</el-card> </el-card>
</div> </div>
</div> </div>
<!-- <div class="title">购物统计(按平均计算)</div>
<shopping></shopping>
<div class="title" style="margin-top:30px;">我来解图</div>
<div class="situ">
<div class="head">
<el-row style="width:100%">
<el-col ::span="12" size="30" style="font-size:14px;">
<el-avatar style="margin-top:3px;margin-right:5px;vertical-align: bottom;">系统</el-avatar>系统默认
</el-col>
<el-col :span="12" class="right">
<i class="iconfont icondianzan1"></i> 点赞
</el-col>
</el-row>
</div>
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<div class="bot">
查看更多,参与讨论(19)
<i class="el-icon-d-arrow-right"></i>
</div>
</div>-->
</el-col> </el-col>
</el-row> </el-row>
<el-drawer <el-drawer
...@@ -126,7 +107,7 @@ export default { ...@@ -126,7 +107,7 @@ export default {
}, },
data() { data() {
return { return {
discussID: 2,
drawer: false, drawer: false,
scaleData: [], scaleData: [],
showChats: [], showChats: [],
...@@ -151,7 +132,9 @@ export default { ...@@ -151,7 +132,9 @@ export default {
"中年(46-69岁)", "中年(46-69岁)",
"老年(70岁以上)" "老年(70岁以上)"
], ],
discussID: 2,
BbsList: [], BbsList: [],
topOne:{}
}; };
}, },
mounted() { mounted() {
...@@ -160,8 +143,18 @@ export default { ...@@ -160,8 +143,18 @@ export default {
}, },
methods: { methods: {
GetBbsListByType(){ GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: 2}, res => { this.apipost("/api/Customer/GetBbsListByType", {t: this.discussID}, res => {
this.BbsList = res.data.data this.BbsList = res.data.data
if (this.BbsList && this.BbsList.length>0) {
this.topOne=this.BbsList[0]
this.BbsList.forEach(x=>{
if(x.Likes>this.topOne.Likes){
this.topOne=x
}
})
}
}); });
}, },
init() { init() {
...@@ -190,8 +183,10 @@ export default { ...@@ -190,8 +183,10 @@ export default {
initOrders() { initOrders() {
this.apipost("/api/Statistic/GetAgeOrderList", {}, res => { this.apipost("/api/Statistic/GetAgeOrderList", {}, res => {
res.data.data.forEach(x => { res.data.data.forEach(x => {
if(x.NewAgeType - 1<this.showChats.length){
this.showChats[x.NewAgeType - 1].LtName = x.LtName; this.showChats[x.NewAgeType - 1].LtName = x.LtName;
this.showChats[x.NewAgeType - 1].Unit_Price = x.Unit_Price; this.showChats[x.NewAgeType - 1].Unit_Price = x.Unit_Price;
}
}); });
this.isLoaded = true; this.isLoaded = true;
}); });
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment