Commit 3da5e4d4 by 王志慧

Merge branch 'wangzh_dev_v3.5.0' into 'v3.5.0'

Wangzh dev v3.5.0

See merge request !439
2 parents df3aa571 f5589a7c
...@@ -51,7 +51,30 @@ const momentStaffCustomers = params => { ...@@ -51,7 +51,30 @@ const momentStaffCustomers = params => {
sign: true sign: true
}) })
} }
//朋友圈任务详情 互动客户列表视图
const momentCommentView = params => {
params.method = 'marketing.api.moment.comment.view'
params.sessionId = session
return http({
url: '/rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
// returnAll:true
})
}
// 互动列表导出
const commentExport = params => {
params.method = 'marketing.api.moment.comment.export'
params.sessionId = session
return http({
url: '/rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
// returnAll:true
})
}
//朋友圈任务详情统计数据 //朋友圈任务详情统计数据
const momentStatistic = params => { const momentStatistic = params => {
params.method = 'marketing.api.moment.detail.statistic' params.method = 'marketing.api.moment.detail.statistic'
...@@ -152,5 +175,7 @@ export default { ...@@ -152,5 +175,7 @@ export default {
getListApi, getListApi,
momentCancel, momentCancel,
createStatus, createStatus,
publicStatus publicStatus,
momentCommentView,
commentExport
} }
...@@ -600,6 +600,9 @@ html { ...@@ -600,6 +600,9 @@ html {
.marketing .mt-10 { .marketing .mt-10 {
margin-top: 10px; margin-top: 10px;
} }
.marketing .pd-20 {
padding: 0 20px;
}
.el-tooltip__popper.is-light { .el-tooltip__popper.is-light {
background: #ffffff; background: #ffffff;
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08); box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.08);
...@@ -720,3 +723,14 @@ html { ...@@ -720,3 +723,14 @@ html {
vertical-align: middle; vertical-align: middle;
margin-right: 8px; margin-right: 8px;
} }
.drawerWrap {
.el-drawer {
width: 50%!important;
.el-form .el-select {
width: 200px!important;
.el-input{
width: 200px!important;
}
}
}
}
...@@ -11,9 +11,9 @@ export const fetchConfig = function(isEnv = true) { ...@@ -11,9 +11,9 @@ export const fetchConfig = function(isEnv = true) {
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) // request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config') // return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data) // return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data)
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config') return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
<template> <template>
<div class="container"> <div class="marketing container">
<div class="title">朋友圈详情</div> <div class="title">朋友圈营销</div>
<div class="detail-content"> <div class="detail-content">
<div class="content-info"> <div class="content-info">
<div class="content-info-title">朋友圈详情</div>
<div class="content-text"> <div class="content-text">
<div class="detail-item"> <div class="detail-item">
<div class="detail-label">朋友圈类型:</div> <div class="detail-label">朋友圈类型:</div>
...@@ -32,38 +33,81 @@ ...@@ -32,38 +33,81 @@
</div> </div>
</div> </div>
</div> </div>
<div class="title"> <div class="content-info-title">
数据统计 数据统计
<div class="flex-align">
<span class="info-time">最近更新:{{ this.updatedTime }}</span>
<span class="info-refresh" @click="handleRefresh"> <span class="info-refresh" @click="handleRefresh">
刷新数据
<div class="icon-wrap">
<i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i> <i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i>
更新数据 </div>
</span> </span>
<span class="info-time">更新于:{{ this.updatedTime }}</span> </div>
</div> </div>
<div class="statistics-info"> <div class="statistics-info">
<div class="statistics-ul"> <div class="statistics-ul">
<div class="statistics-li statistics-border"> <div class="statistics-li statistics-border">
<div class="statistics-img">
<img src="@/assets/friendGroup/icon-send.png" />
</div>
<div class="statistics-number"> <div class="statistics-number">
<span>{{ basicInfo.sendStaffCount }}</span> <span>{{ basicInfo.sendStaffCount }}</span>
人
</div> </div>
<div class="statistics-text">已发送成员</div> <div class="statistics-text">已发送成员/人</div>
</div> </div>
<div class="statistics-li"> <div class="statistics-li">
<div class="statistics-img">
<img src="@/assets/friendGroup/icon-unsend.png" />
</div>
<div class="statistics-number"> <div class="statistics-number">
<span>{{ basicInfo.unSendStaffCount }}</span> <span>{{ basicInfo.unSendStaffCount }}</span>
{{ form == 'customer' ? '人' : '个' }}
</div> </div>
<div class="statistics-text">未发送成员</div> <div class="statistics-text">未发送成员/{{ form == 'customer' ? '人' : '个' }}</div>
</div> </div>
</div> </div>
<div v-if="form == 'customer'" class="statistics-ul"> <div v-if="form == 'customer'" class="statistics-ul" @click="getStatistics(1)">
<div class="statistics-li"> <div class="statistics-li">
<div class="statistics-img">
<img src="@/assets/friendGroup/icon-copy.png" />
</div>
<div class="statistics-number"> <div class="statistics-number">
<span>{{ basicInfo.copyCustomerCount }}</span> <span>{{ basicInfo.copyCustomerCount }}</span>
人
</div> </div>
<div>已送达客户</div> <div>已送达客户/人</div>
</div>
</div>
<div class="statistics-ul">
<div class="statistics-li statistics-border">
<div class="statistics-img">
<img src="@/assets/friendGroup/icon-interaction.png" />
</div>
<div class="statistics-number">
<span>{{ basicInfo.interactCount }}</span>
</div>
<div class="statistics-text">互动客户/人</div>
<div class="statistics-ratio">互动率:{{ ((basicInfo.interactRatio)*100).toFixed(2) }}%</div>
</div>
<div class="statistics-li statistics-border" @click="getStatistics(2)">
<div class="statistics-img">
<img src="@/assets/friendGroup/icon-like.png" />
</div>
<div class="statistics-number">
<span>{{ basicInfo.likeCount }}</span>
</div>
<div class="statistics-text">点赞客户/人</div>
<div class="statistics-ratio">互动率:{{ ((basicInfo.likeRatio)*100).toFixed(2) }}%</div>
</div>
<div class="statistics-li" @click="getStatistics(3)">
<div class="statistics-img">
<img src="@/assets/friendGroup/icon-comment.png" />
</div>
<div class="statistics-number">
<span>{{ basicInfo.commentCount }}</span>
</div>
<div class="statistics-text">评论客户/人</div>
<div class="statistics-ratio">互动率:{{ ((basicInfo.commentRatio)*100).toFixed(2) }}%</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -133,7 +177,12 @@ export default { ...@@ -133,7 +177,12 @@ export default {
// } // }
}, },
methods: { methods: {
handleRefresh: utils.debounce(function() { getStatistics(value) {
this.$emit('getStatistics', {
activeName: value
})
},
handleRefresh: utils.debounce(function () {
this.publicStatus() this.publicStatus()
this.refreshStatus = true this.refreshStatus = true
setTimeout(() => { setTimeout(() => {
...@@ -152,7 +201,7 @@ export default { ...@@ -152,7 +201,7 @@ export default {
this.$apis.friendGroup.momentDetail({ id }).then(res => { this.$apis.friendGroup.momentDetail({ id }).then(res => {
this.updatedTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss') this.updatedTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
this.basicInfo = res this.basicInfo = res
// console.log(this.basicInfo, '123'); console.log(this.basicInfo, '123')
// this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss') // this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss')
const previewList = res.attachmentList.map(item => { const previewList = res.attachmentList.map(item => {
if (item.attType == 7 && item.attContent) item.attContent = JSON.parse(item.attContent) if (item.attType == 7 && item.attContent) item.attContent = JSON.parse(item.attContent)
...@@ -212,16 +261,52 @@ export default { ...@@ -212,16 +261,52 @@ export default {
background-color: #ffffff; background-color: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
.title { .title {
padding: 20px 0 17px 20px; height: 56px;
line-height: 56px;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #333; color: #333;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
padding-left: 20px;
box-sizing: border-box;
}
.detail-content {
display: flex;
// align-items: flex-end;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 20px;
.content-info {
width: calc(100% - 323px);
&-title {
font-size: 16px;
color: #333333;
font-weight: 600;
display: flex;
align-items: center;
justify-content: space-between;
.info-refresh { .info-refresh {
display: flex;
align-items: center;
font-weight: 400;
.icon-wrap {
width: 24px;
height: 24px;
background: #5850ff;
border-radius: 4px;
margin-left: 4px;
text-align: center;
line-height: 24px;
}
.el-icon-refresh {
color: #fff;
}
font-size: 14px; font-size: 14px;
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
margin-left: 20px; margin-left: 8px;
.wait-status { .wait-status {
transition: all ease-in 1s; transition: all ease-in 1s;
transform: rotate(360deg); transform: rotate(360deg);
...@@ -229,24 +314,21 @@ export default { ...@@ -229,24 +314,21 @@ export default {
} }
.info-time { .info-time {
font-size: 14px; font-size: 14px;
color: #7d7d7d; color: #666666;
margin-left: 10px; margin-left: 10px;
font-weight: 400;
} }
} }
.detail-content {
display: flex;
align-items: flex-end;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
height: 100%;
padding: 20px 24px 40px 0;
.content-info {
width: calc(100% - 323px);
.content-text { .content-text {
padding-left: 52px; width: 100%;
height: 400px; height: 124px;
padding: 32px 20px;
box-sizing: border-box;
background: #f8f8fc;
border-radius: 2px;
display: flex;
flex-wrap: wrap;
margin: 16px 0 41px;
} }
.detail-item { .detail-item {
display: flex; display: flex;
...@@ -255,10 +337,11 @@ export default { ...@@ -255,10 +337,11 @@ export default {
color: #333; color: #333;
line-height: 20px; line-height: 20px;
margin-bottom: 24px; margin-bottom: 24px;
width: 50%;
.detail-label { .detail-label {
width: 85px; width: 150px;
text-align: right; text-align: right;
margin-right: 12px; // margin-right: 12px;
} }
.detail-tips { .detail-tips {
margin-left: 8px; margin-left: 8px;
...@@ -304,7 +387,6 @@ export default { ...@@ -304,7 +387,6 @@ export default {
background: #f7f7f7; background: #f7f7f7;
border: 1px solid #d8d8d8; border: 1px solid #d8d8d8;
min-width: 325px; min-width: 325px;
.name { .name {
display: inline-block; display: inline-block;
width: 68px; width: 68px;
...@@ -314,22 +396,22 @@ export default { ...@@ -314,22 +396,22 @@ export default {
} }
} }
.statistics-info { .statistics-info {
margin-top: 24px; margin-top: 16px;
margin-left: 52px;
display: flex; display: flex;
overflow-x: scroll; overflow-x: scroll;
.statistics-ul { .statistics-ul {
display: flex; display: flex;
border-radius: 2px; border-radius: 2px;
background-color: #f6f6ff; height: 204px;
background: #f8f8fc;
border: 1px solid rgba(88, 80, 255, 0.8); border: 1px solid rgba(88, 80, 255, 0.8);
margin-right: 20px; margin-right: 16px;
height: 142px;
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
} }
.statistics-li { .statistics-li {
height: 100%;
position: relative; position: relative;
color: #424242; color: #424242;
font-size: 14px; font-size: 14px;
...@@ -337,7 +419,6 @@ export default { ...@@ -337,7 +419,6 @@ export default {
width: 142px; width: 142px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
flex-direction: column; flex-direction: column;
&.statistics-border { &.statistics-border {
margin-right: 0; margin-right: 0;
...@@ -347,12 +428,22 @@ export default { ...@@ -347,12 +428,22 @@ export default {
display: inline-block; display: inline-block;
position: absolute; position: absolute;
right: 0; right: 0;
height: 58px; height: 156px;
border-right: 1px solid #5850ff; border-right: 1px solid #d8d7ea;
margin: 24px 0;
}
}
.statistics-img {
width: 40px;
height: 40px;
margin-bottom: 16px;
margin-top: 30px;
img {
width: 100%;
} }
} }
.statistics-number { .statistics-number {
margin-bottom: 12px; margin-bottom: 8px;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
span { span {
...@@ -361,6 +452,13 @@ export default { ...@@ -361,6 +452,13 @@ export default {
} }
.statistics-text { .statistics-text {
width: 70px; width: 70px;
white-space: nowrap;
}
.statistics-ratio {
font-weight: 400;
font-size: 12px;
color: #666666;
margin-top: 8px;
} }
} }
} }
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
for (let i in previewVal) { for (let i in previewVal) {
if (previewVal[i].attType == 1) { if (previewVal[i].attType == 1) {
const attContent = previewVal[i].attContent const attContent = previewVal[i].attContent
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function(res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity) const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1 let index = parseInt(list.indexOf(word)) + 1
...@@ -126,13 +126,15 @@ export default { ...@@ -126,13 +126,15 @@ export default {
} }
.img-bg { .img-bg {
position: relative; position: relative;
width: 290px; width: 240px;
height: 566px; height: 445px;
padding: 20px 0;
background-image: url(../../../assets/guestCustom/friend-bg.png); background-image: url(../../../assets/guestCustom/friend-bg.png);
background-size: 100%; background-size: 100%;
background-repeat: no-repeat;
.preview-content { .preview-content {
position: absolute; position: absolute;
width: 250px; width: 224px;
height: 350px; height: 350px;
overflow-y: auto; overflow-y: auto;
top: 90px; top: 90px;
...@@ -157,7 +159,7 @@ export default { ...@@ -157,7 +159,7 @@ export default {
} }
.preview-box { .preview-box {
margin-left: 30px; margin-left: 30px;
width: 180px; width: 165px;
} }
.preview-operation { .preview-operation {
float: right; float: right;
......
...@@ -108,7 +108,6 @@ export default { ...@@ -108,7 +108,6 @@ export default {
}, },
methods: { methods: {
selectionTable(val) { selectionTable(val) {
console.log(val)
this.innerTags = val this.innerTags = val
// this.$emit('selectTable', val) // this.$emit('selectTable', val)
}, },
......
...@@ -2,16 +2,19 @@ ...@@ -2,16 +2,19 @@
<template> <template>
<div class="marketing pro-group"> <div class="marketing pro-group">
<div class="m-b-20 friend-title"> <div class="m-b-20 friend-title">
<div> <div class="friend-title-left">
<GLButton :size="size" type="primary" fn="编辑朋友圈" @click="handleEdit(1)">发布朋友圈</GLButton> <GLButton :size="size" type="primary" fn="编辑朋友圈" @click="handleEdit(1)">发布朋友圈</GLButton>
<span>管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span> <span class="friend-tip-text">管理员可直接在后台为员工创建朋友圈,员工收到朋友圈新消息提醒后,可快捷将管理员创建的朋友圈发送到自己朋友圈中。</span>
</div> </div>
<div class="title"> <div class="title">
<span class="info-time">{{this.sendType}}:{{ this.updatedTime }}</span>
<span class="info-refresh" @click="handleRefresh"> <span class="info-refresh" @click="handleRefresh">
刷新数据
<div class="icon-wrap">
<i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i> <i :class="{ 'el-icon-refresh': true, 'wait-status': refreshStatus }"></i>
更新数据 </div>
</span> </span>
<span class="info-time">更新于{{ this.updatedTime }}</span>
</div> </div>
</div> </div>
<div class="container"> <div class="container">
...@@ -97,6 +100,7 @@ export default { ...@@ -97,6 +100,7 @@ export default {
offReason: [{ required: true, message: '请输入下架备注', trigger: 'change' }] offReason: [{ required: true, message: '请输入下架备注', trigger: 'change' }]
}, },
updatedTime: '', updatedTime: '',
sendType:'',
// 分享 // 分享
isShareVisible: false, isShareVisible: false,
shareForm: {}, shareForm: {},
...@@ -241,20 +245,20 @@ export default { ...@@ -241,20 +245,20 @@ export default {
label: '发布方式', label: '发布方式',
name: 'sendType', name: 'sendType',
addHtml: 'sendType', addHtml: 'sendType',
width: '120' width: '110'
}, },
{ {
label: '类型', label: '类型',
name: 'type', name: 'type',
formatter: cellValue => { formatter: cellValue => {
console.log(this.baseData.typeStatusList.find(item => item.confId == cellValue.type))
return this.baseData.typeStatusList.find(item => item.confId == cellValue.type).confName return this.baseData.typeStatusList.find(item => item.confId == cellValue.type).confName
} },
width: '110'
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createdName', prop: 'createdName',
width: '180' width: '190'
}, },
{ {
label: '创建时间', label: '创建时间',
...@@ -275,6 +279,21 @@ export default { ...@@ -275,6 +279,21 @@ export default {
label: '已送达客户', label: '已送达客户',
prop: 'copyCustomerCount', prop: 'copyCustomerCount',
width: '110' width: '110'
},
{
label: '互动客户',
prop: 'interactCount',
width: '110'
},
{
label: '点赞客户',
prop: 'likeCount',
width: '110'
},
{
label: '评论客户',
prop: 'commentCount',
width: '110'
} }
] ]
}, },
...@@ -313,7 +332,7 @@ export default { ...@@ -313,7 +332,7 @@ export default {
}, },
methods: { methods: {
handleRefresh: utils.debounce(function() { handleRefresh: utils.debounce(function () {
this.createStatus() this.createStatus()
this.refreshStatus = true this.refreshStatus = true
setTimeout(() => { setTimeout(() => {
...@@ -323,7 +342,11 @@ export default { ...@@ -323,7 +342,11 @@ export default {
async createStatus() { async createStatus() {
this.updatedTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss') this.updatedTime = dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss')
await this.$apis.friendGroup.createStatus({}) await this.$apis.friendGroup.createStatus({})
await this.$apis.friendGroup.publicStatus({})
let res = await this.$apis.friendGroup.publicStatus({})
this.updatedTime = res.syncTime
this.sendType = res.sendType == 1 ? '更新中' : '已更新'
console.log(res)
this.getListData() this.getListData()
}, },
getListData() { getListData() {
...@@ -350,9 +373,7 @@ export default { ...@@ -350,9 +373,7 @@ export default {
}) })
previewListFilter = previewListFilter.reduce((prev, cur) => { previewListFilter = previewListFilter.reduce((prev, cur) => {
let index = prev.findIndex(item => item.attType == 2) let index = prev.findIndex(item => item.attType == 2)
console.log(prev, cur, index)
if (index != -1 && prev.length) { if (index != -1 && prev.length) {
console.log(prev[index].attContent.concat(cur.attContent))
return prev.concat({ attType: cur.attType, attContent: prev[index].attContent.concat(cur.attContent) }) return prev.concat({ attType: cur.attType, attContent: prev[index].attContent.concat(cur.attContent) })
} }
return prev.concat(cur) return prev.concat(cur)
...@@ -517,15 +538,37 @@ export default { ...@@ -517,15 +538,37 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.friend-title { .friend-title {
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
color: #666666; color: #666666;
.friend-title-left {
display: flex;
align-items: center;
}
.title { .title {
display: flex;
align-items: center;
margin-left: 74px;
white-space: nowrap;
.info-refresh { .info-refresh {
display: flex;
align-items: center;
.icon-wrap {
width: 24px;
height: 24px;
background: #5850ff;
border-radius: 4px;
margin-left: 4px;
text-align: center;
line-height: 24px;
}
.el-icon-refresh {
color: #fff;
}
font-size: 14px; font-size: 14px;
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
margin-left: 20px; margin-left: 8px;
.wait-status { .wait-status {
transition: all ease-in 1s; transition: all ease-in 1s;
transform: rotate(360deg); transform: rotate(360deg);
...@@ -541,6 +584,8 @@ export default { ...@@ -541,6 +584,8 @@ export default {
font-size: 14px; font-size: 14px;
margin-left: 10px; margin-left: 10px;
font-weight: 100; font-weight: 100;
// display: inline-block;
// width: 80%;
} }
} }
.attachmentList-box { .attachmentList-box {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!