Commit 114d3f5c authored by 华国豪's avatar 华国豪 🙄

讨论

parent 3502868d
......@@ -252,6 +252,13 @@
v-if="queryType[6].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="GuestCount"
label="交客数"
sortable
v-if="queryType[19].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="OrderMoney"
label="交易金额"
......@@ -529,6 +536,9 @@ export default {
},{
label: '创建时间',
show: true,
},{
label: '交客数',
show: true,
},
],
queryType: [
......@@ -589,6 +599,9 @@ export default {
},{
label: '创建时间',
show: true,
},{
label: '交客数',
show: true,
},
],
CustomerId: 0,
......
......@@ -502,7 +502,7 @@ export default {
x.region = this.optionsNames.filter(item=>{
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 === '商机状态组') {
} 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.region = this.optionsNames.filter(item=>{
return (item.c === '等于' || item.c === '不等于') && item.t
})
......
......@@ -141,17 +141,59 @@
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="CustomerLevelStr"
label="客户级别"
width="120"
prop="TraveNum"
label="参团数"
sortable
v-if="queryType[4].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="OrderCount"
label="订单交易数"
sortable
v-if="queryType[24].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="TraveNum"
label="参团数"
prop="OrderMoney"
label="交易金额"
sortable
v-if="queryType[4].show"
v-if="queryType[25].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="BirthdayAddress"
label="出生地点"
sortable
v-if="queryType[28].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="AddressDetail"
label="家庭详细地址"
sortable
v-if="queryType[27].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="HistoryRecord"
label="出境记录"
sortable
v-if="queryType[26].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="EconomicCapability"
label="经济能力确认"
sortable
v-if="queryType[29].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
prop="IsRecommendStr"
label="是否推存"
sortable
v-if="queryType[30].show"
show-overflow-tooltip>
</el-table-column>
<el-table-column
......@@ -485,7 +527,25 @@ export default {
label: '备注',
show: true,
},{
label: '客户等级',
label: '订单交易数',
show: true,
},{
label: '订单金额',
show: true,
},{
label: '出境记录',
show: true,
},{
label: '家庭详细地址 ',
show: true,
},{
label: '出生地点',
show: true,
},{
label: '经济能力确认',
show: true,
},{
label: '是否推存',
show: true,
}
],
......@@ -572,7 +632,25 @@ export default {
label: '备注',
show: true,
},{
label: '客户等级',
label: '订单交易数',
show: true,
},{
label: '交易金额',
show: true,
},{
label: '出境记录',
show: true,
},{
label: '家庭详细地址 ',
show: true,
},{
label: '出生地点',
show: true,
},{
label: '经济能力确认',
show: true,
},{
label: '是否推存',
show: true,
}
],
......@@ -637,6 +715,7 @@ export default {
},
mounted() {
this.userInfo = this.getLocalStorage();
console.log(this.queryType)
this.getList()
this.Employee()
let $this = this
......
......@@ -161,7 +161,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......
......@@ -156,7 +156,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......
......@@ -63,10 +63,10 @@
</div>
<div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<!-- <div class="bot" @click="drawer = true">
<div class="bot" @click="drawer = true">
查看更多,参与讨论(19)
<i class="el-icon-d-arrow-right"></i>
</div> -->
</div>
</div>
</el-card>
</div>
......@@ -78,7 +78,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......
......@@ -135,15 +135,15 @@
<el-col :span="12" size="30">
推荐解答
</el-col>
<el-col :span="12" class="right-title">
<!-- <el-col :span="12" class="right-title">
<i class="iconfont icondianzan1"></i> 点赞
</el-col>
</el-col> -->
</el-row>
</div>
<div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<div class="c">{{BbsList.length ? BbsList[0].Content : '暂无'}}</div>
<div class="bot" @click="drawer = true">
查看更多,参与讨论(19)
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i>
</div>
</div>
......@@ -156,7 +156,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......@@ -174,21 +174,28 @@ export default {
},
data() {
return {
discussID: 0,
discussID: 1,
drawer: false,
chartData: [50, 30, 20, 10, 60],
shopChartData: [50, 30, 20, 10, 60],
SexOrder: [],
loading: false,
strArr: ['亲子', '蜜月', '夕阳红', '暑期', '寒假']
strArr: ['亲子', '蜜月', '夕阳红', '暑期', '寒假'],
BbsList: [],
};
},watch:{
},
mounted() {
// this.GetSexOrderList()
this.GetBbsListByType()
},
methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: 1}, res => {
this.BbsList = res.data.data
});
},
GetSexOrderList(){
this.loading = true
this.apipost("/api/Statistic/GetSexOrderList", {}, res => {
......
......@@ -34,6 +34,8 @@
overflow-y: auto;
height: calc(100% - 102px);
overflow-x: hidden;
position: absolute;
width: 100%;
}
.discussBox .list .list-item .list-item-tit{
height: 24px;
......@@ -79,10 +81,10 @@
padding-right: 3px;
}
.discussBox .list .list-item .footer>span:hover {
color: #76839b;
color: #175199;
}
.like{
color: #175199;
color: #76839b;
}
.discussBox .list .list-item .msg-box{
padding-left: 33px;
......@@ -125,130 +127,82 @@
height: 50px;
padding: 0 20px;
border-top: 1px solid #f6f6f6;
position: absolute;
width: 100%;
box-sizing: border-box;
bottom: 2px;
}
</style>
<template>
<div class="discussBox">
<div class="discussBox-tit">
<div class="num">1 条评论</div>
<div class="cp change" @click="sort = !sort"><i class="el-icon-sort"></i>切换为{{sort === true ? '时间' : '点赞'}}排序</div>
<div class="num">{{BbsList.length ? BbsList.length + '条' : '暂无'}}评论</div>
<div class="cp change" @click="sortS = sortS ? '' : 1, GetBbsListByType() "><i class="el-icon-sort"></i>切换为{{sortS === 1 ? '时间' : '点赞'}}排序</div>
</div>
<ul class="list">
<li class="list-item" v-for="(item, index) in 1" :key="index">
<li class="list-item" v-for="(item, index) in BbsList" :key="index">
<div>
<div class="list-item-tit">
<div>
<img width="24" height="24" src="http://imgfile.oytour.com/New/Upload/User/20191018150051176.png" alt="">
<span style="font-size:14px;font-family:perfectFont;font-weight:700;">罗超</span>
<img width="24" height="24" :src="item.ImgPhoto" alt="">
<span style="font-size:14px;font-family:perfectFont;font-weight:700;">{{item.RejectUserName}}</span>
</div>
<span class="font-color-info">21:03</span>
<span class="font-color-info">{{item.TimeStr}}</span>
</div>
<div class="content">
<p>根据对客户性别的统计可以,更好的了解不同性别的客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</p>
<p>{{item.Content}}</p>
</div>
<div class="footer">
<span class="cp like"><i class="iconfont iconzan"></i>赞(20)</span>
<span class="cp" @click="msgBoxShow = !msgBoxShow"><i class="iconfont iconhuifu"></i>{{msgBoxShow ? '取消' : ''}}回复</span>
<span class="cp like" @click="AddLike(item)"><i class="iconfont iconzan"></i>{{item.Likes > 0 ? item.Likes : ''}}</span>
<span class="cp" @click="setHF(item.Id)"><i class="iconfont iconhuifu"></i>{{hfID === item.Id ? '取消' : ''}}回复</span>
</div>
<div class="msg-box" v-if="msgBoxShow">
<div class="msg-box" v-if="hfID === item.Id">
<div style="margin-top: 5px;">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
<el-button slot="append" type="primary">发布</el-button>
<el-button slot="append" type="primary" @click="AddNewBbs(2, item)">发布</el-button>
</el-input>
</div>
</div>
<!-- <div class="next"></div>
<div class="level2">
<template v-if="item.Childs.length">
<template v-for="(c, cindex) in item.Childs" >
<div class="next" :key="cindex + item.Id" :class="{'next2': cindex === 0}"></div>
<div class="level2" :key="cindex">
<div class="list-item-tit">
<div>
<img width="24" height="24" src="https://pic4.zhimg.com/v2-d3f573f46ce86a124f4d92e4383fceab_is.jpg" alt="">
<img width="24" height="24" :src="c.ImgPhoto" alt="">
<div>
<span>王二</span>
<span>{{c.CreateByStr}}</span>
<span class="huifu">回复</span>
<span>刘德</span>
<span>{{c.RejectUserName}}</span>
</div>
</div>
<span class="font-color-info">2 天前</span>
<span class="font-color-info">{{c.TimeStr}}</span>
</div>
<div class="content">
<p>高反为0?...在郎木寺那里青旅住好几个人高反了</p>
<p>{{c.Content}}</p>
</div>
<div class="footer">
<span class="cp like"><i class="iconfont iconzan"></i></span>
<span class="cp" @click="msgBoxShow = !msgBoxShow"><i class="iconfont iconhuifu"></i>{{msgBoxShow ? '取消' : ''}}回复</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>
</div>
<div class="msg-box" v-if="msgBoxShow">
<div class="msg-box" v-if="hfID === c.Id">
<div style="margin-top: 5px;">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
<el-button slot="append" type="primary">发布</el-button>
<el-button slot="append" type="primary" @click="AddNewBbs(2, item, c)">发布</el-button>
</el-input>
</div>
</div>
</div>
<div class="next next2"></div>
<div class="level2">
<div class="list-item-tit">
<div>
<img width="24" height="24" src="https://pic4.zhimg.com/v2-d3f573f46ce86a124f4d92e4383fceab_is.jpg" alt="">
<div>
<span>王二</span>
<span class="huifu">回复</span>
<span>刘德</span>
</div>
</div>
<span class="font-color-info">2 天前</span>
</div>
<div class="content">
<p>高反为0?...在郎木寺那里青旅住好几个人高反了</p>
</div>
<div class="footer">
<span class="cp like"><i class="iconfont iconzan"></i></span>
<span class="cp" @click="msgBoxShow = !msgBoxShow"><i class="iconfont iconhuifu"></i>{{msgBoxShow ? '取消' : ''}}回复</span>
</div>
<div class="msg-box" v-if="msgBoxShow">
<div style="margin-top: 5px;">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
<el-button slot="append" type="primary">发布</el-button>
</el-input>
</div>
</div>
</div>
<div class="next next2"></div>
<div class="level2">
<div class="list-item-tit">
<div>
<img width="24" height="24" src="https://pic4.zhimg.com/v2-d3f573f46ce86a124f4d92e4383fceab_is.jpg" alt="">
<div>
<span>王二</span>
<span class="huifu">回复</span>
<span>刘德</span>
</div>
</div>
<span class="font-color-info">2 天前</span>
</div>
<div class="content">
<p>高反为0?...在郎木寺那里青旅住好几个人高反了</p>
</div>
<div class="footer">
<span class="cp like"><i class="iconfont iconzan"></i></span>
<span class="cp" @click="msgBoxShow = !msgBoxShow"><i class="iconfont iconhuifu"></i>{{msgBoxShow ? '取消' : ''}}回复</span>
</div>
<div class="msg-box" v-if="msgBoxShow">
<div style="margin-top: 5px;">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
<el-button slot="append" type="primary">发布</el-button>
</el-input>
</div>
</div>
</div> -->
</template>
</template>
</div>
</li>
</ul>
<div class="reply">
<div class="msg-box">
<div class="msg-box" style=" width: 100%;">
<div style="margin-top: 5px;">
<el-input placeholder="请输入内容" v-model="input3" class="input-with-select">
<el-button slot="append" type="primary">发布</el-button>
<el-input placeholder="请输入内容" v-model="content" class="input-with-select">
<el-button slot="append" type="primary" @click="AddNewBbs()">发布</el-button>
</el-input>
</div>
</div>
......@@ -258,7 +212,7 @@
<script>
export default {
props:{
t:{
type:{
type:Number,
default:1
}
......@@ -268,22 +222,75 @@ export default {
sort: true,
msgBoxShow: false,
input3: '',
bbs:[]
content: '',
BbsList:[],
userInfo: {},
hfID: -1,
sortS: 1
}
},watch:{
type: {
handler(val, oldVal){
this.GetBbsListByType()
},
deep:true
}
},
props: [],
methods: {
load(){
this.apipost("/api/Customer/GetBbsListByType",{
t:this.t,
o:"1"
},r=>{
this.bbs=r.data.data;
AddLike(obj){
let msg = {
bid: obj.Id,
photo: this.userInfo.Icon,
uname: this.userInfo.EmName
}
this.apipost("/api/Customer/AddLike", msg, res => {
if(res.data.resultCode === 1){
this.GetBbsListByType()
this.$message.success('操作成功')
}
});
},
setHF(id){
this.hfID = this.hfID === -1 ? id : -1
},
AddNewBbs(type, obj, cObj){
let msg = {
t: this.type,
content: this.content,
pid: 0,
ru: 0,
run: this.userInfo.EmName
}
if (type){
msg.pid = obj.Id
msg.ru = obj.Id
msg.content = this.input3
msg.run = obj.RejectUserName
}
if (cObj){
msg.pid = obj.Id
msg.ru = cObj.Id
msg.run = cObj.CreateByStr
}
this.apipost("/api/Customer/AddNewBbs", msg, res => {
if(res.data.resultCode === 1){
this.GetBbsListByType()
this.input3 = ''
this.hfID = -1
this.content = ''
this.$message.success('操作成功')
}
});
},
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: this.type, o: this.sortS,}, res => {
this.BbsList = res.data.data
});
},
},
mounted(){
this.GetBbsListByType()
this.userInfo = this.getLocalStorage()
}
}
</script>
\ No newline at end of file
......@@ -64,9 +64,9 @@
</el-row>
</div>
<div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<div class="c">{{BbsList.length ? BbsList[0].Content : '暂无'}}</div>
<div class="bot" @click="drawer = true">
查看更多,参与讨论(1)
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i>
</div>
</div>
......@@ -101,7 +101,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......@@ -118,7 +118,7 @@ export default {
},
data() {
return {
discussID: 0,
discussID: 2,
drawer: false,
scaleData: [],
showChats: [],
......@@ -141,13 +141,20 @@ export default {
"壮年(36-45岁)",
"中年(46-69岁)",
"老年(70岁以上)"
]
],
BbsList: [],
};
},
mounted() {
this.init();
this.GetBbsListByType()
},
methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: 2}, res => {
this.BbsList = res.data.data
});
},
init() {
this.apipost("/api/Statistic/GetAgeShopList", {}, res => {
res.data.data.forEach(x => {
......
......@@ -152,11 +152,11 @@
</el-row>
</div>
<div class="situ">
<div class="c">根据对客户年龄段的统计可以,更好的了解不同年龄段客人的喜好,消费能力的判读,从而快速的推荐团队给客人等等等</div>
<!-- <div class="bot" @click="drawer = true">
查看更多,参与讨论(19)
<div class="c">{{BbsList.length ? BbsList[0].Content : '暂无'}}</div>
<div class="bot" @click="drawer = true">
{{BbsList.length ? '查看更多,参与讨论('+ BbsList.length +')' : '暂时还没有讨论,快来发起讨论吧~'}}
<i class="el-icon-d-arrow-right"></i>
</div> -->
</div>
</div>
</el-card>
</el-col>
......@@ -167,7 +167,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......@@ -183,21 +183,28 @@ export default {
},
data() {
return {
discussID: 0,
discussID: 3,
drawer: false,
chartData: [0, 0],
shopChartData: [],
SexOrder: [],
loading: false,
strArr: ['男', '女'],
BbsList: [],
};
},watch:{
},
mounted() {
this.GetSexOrderList()
this.GetBbsListByType()
},
methods: {
GetBbsListByType(){
this.apipost("/api/Customer/GetBbsListByType", {t: 2}, res => {
this.BbsList = res.data.data
});
},
GetSexOrderList(){
this.loading = true
this.apipost("/api/Statistic/GetSexOrderList", {}, res => {
......
......@@ -206,7 +206,7 @@
:visible.sync="drawer"
direction="rtl"
:with-header="false">
<discussBox :id="discussID"/>
<discussBox :type="discussID"/>
</el-drawer>
</div>
</template>
......
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