Commit bb6de49a by 王志慧

朋友圈需求开发

1 parent 24193971
...@@ -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.sendStaffCount }}</span>
</div>
<div class="statistics-text">互动客户/人</div>
<div class="statistics-ratio">互动率:78.35%</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.unSendStaffCount }}</span>
</div>
<div class="statistics-text">点赞客户/人</div>
<div class="statistics-ratio">互动率:78.35%</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.unSendStaffCount }}</span>
</div>
<div class="statistics-text">评论客户/人</div>
<div class="statistics-ratio">互动率:78.35%</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -133,7 +177,10 @@ export default { ...@@ -133,7 +177,10 @@ export default {
// } // }
}, },
methods: { methods: {
handleRefresh: utils.debounce(function() { getStatistics(value) {
this.$emit('getStatistics', value)
},
handleRefresh: utils.debounce(function () {
this.publicStatus() this.publicStatus()
this.refreshStatus = true this.refreshStatus = true
setTimeout(() => { setTimeout(() => {
...@@ -212,16 +259,52 @@ export default { ...@@ -212,16 +259,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 +312,21 @@ export default { ...@@ -229,24 +312,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 +335,11 @@ export default { ...@@ -255,10 +335,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 +385,6 @@ export default { ...@@ -304,7 +385,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 +394,22 @@ export default { ...@@ -314,22 +394,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 +417,6 @@ export default { ...@@ -337,7 +417,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 +426,22 @@ export default { ...@@ -347,12 +426,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 +450,13 @@ export default { ...@@ -361,6 +450,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;
......
<template> <template>
<div> <div>
<BasicInof :id="$route.query.id" :form="'customer'" @refreshList="refreshList"></BasicInof> <BasicInof :id="$route.query.id" :form="'customer'" @refreshList="refreshList" @getStatistics="getStatistics"></BasicInof>
<div class="detail-container"> <div class="detail-container">
<div class="detail-modular"> <div class="detail-modular">
<div class="title">成员详情</div> <div class="title">成员详情</div>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</el-menu> </el-menu>
<GLTable style="margin-top: 20px" ref="table" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :hasPage="false" :pageConf="pageConf"> <GLTable style="margin-top: 20px" ref="table" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :hasPage="false" :pageConf="pageConf">
<div class="table-btns" slot="customerCount" slot-scope="scope"> <div class="table-btns" slot="customerCount" slot-scope="scope">
<span class="customer-detail" @click="handleCustomer(scope.scope.id)" v-if="scope.scope.customerCount">{{ scope.scope.customerCount }}</span> <span class="customer-detail" @click="handleCustomer(scope.scope.id, 4)" v-if="scope.scope.customerCount">{{ scope.scope.customerCount }}</span>
<span v-else>{{ scope.scope.customerCount }}</span> <span v-else>{{ scope.scope.customerCount }}</span>
</div> </div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
> >
<el-button type="primary" @click="handleCancel">取消</el-button> <el-button type="primary" @click="handleCancel">取消</el-button>
</div> --> </div> -->
<el-dialog title="已送达客户" :visible.sync="dialogVisible" width="576px" :before-close="handleClose" class="user-dialog"> <!-- <el-dialog title="已送达客户" :visible.sync="dialogVisible" width="576px" :before-close="handleClose" class="user-dialog">
<div class="user-list"> <div class="user-list">
<div class="user-item" v-for="(item, index) in userList" :key="index"> <div class="user-item" v-for="(item, index) in userList" :key="index">
<div class="user-image"> <div class="user-image">
...@@ -43,20 +43,43 @@ ...@@ -43,20 +43,43 @@
</div> </div>
</div> </div>
</div> </div>
</el-dialog> </el-dialog> -->
<el-drawer class="drawerWrap marketing" :title="infoTitle" :visible.sync="dialogVisible" direction="rtl" :before-close="handleClose">
<div class="gl-form-page">
<el-form :inline="true" :model="drawerSearchForm" size="small" class="demo-form-inline">
<el-form-item label="是否互动:">
<el-select v-model="drawerSearchForm.region" placeholder="">
<el-option label="是" value="shanghai"></el-option>
<el-option label="否" value="beijing"></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="onSubmit">查询</el-button>
</el-form-item>
</el-form>
</div>
<div class="flex-between m-b-10 m-t-10 pd-20">
<div class="text-16 color-3 weight-6">客户列表</div>
<div class="export" @click="handleExport">导出</div>
</div>
<GLTable class="pd-20" refs="drawerRef" :tableData="userList" :searchForm="drawerSearchForm" :tableParams="drawerTableParams" :hasPage="false" :pageConf="pageConf"></GLTable>
</el-drawer>
</div> </div>
</template> </template>
<script> <script>
import Vue from 'vue' import Vue from 'vue'
import BasicInof from './components/basicInfo.vue' import BasicInof from './components/basicInfo.vue'
import { exportFn } from '@/common/constant'
export default { export default {
components: { components: {
BasicInof BasicInof
}, },
data() { data() {
return { return {
activeName: '1',
infoTitle: '已送达客户',
userList: [], userList: [],
dialogVisible: false, dialogVisible: true,
activeIndex: '', activeIndex: '',
customIndex: '', customIndex: '',
employeelist: [], employeelist: [],
...@@ -95,13 +118,44 @@ export default { ...@@ -95,13 +118,44 @@ export default {
} }
}, },
{ {
label: '已送达客户', label: '已发送客户',
prop: 'customerCount', prop: 'customerCount',
addHtml: 'customerCount' addHtml: 'customerCount'
// formatter: cellValue => { // formatter: cellValue => {
// return new Date(cellValue.createdDate).toLocaleDateString().replace(/\//g, '-') // return new Date(cellValue.createdDate).toLocaleDateString().replace(/\//g, '-')
// } // }
}, },
{
label: '互动客户',
prop: 'sendStaffCount',
width: '110'
},
{
label: '互动率',
prop: 'sendStaffCount',
width: '110'
},
{
label: '点赞客户',
prop: 'unSendStaffCount',
width: '110'
},
{
label: '点赞率',
prop: 'copyCustomerCount',
width: '110'
},
{
label: '评论客户',
prop: 'copyCustomerCount',
width: '110'
},
{
label: '评论率',
prop: 'copyCustomerCount',
width: '110'
},
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
...@@ -110,6 +164,108 @@ export default { ...@@ -110,6 +164,108 @@ export default {
} }
] ]
}, },
searchFormData: [
{
label: '发布方式',
name: 'sendType',
type: 'select',
placeholder: '请选择',
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionsName: 'interactionList'
}
],
drawerSearchForm: {},
tableData: [],
drawerTableParams: {
tableColumns: []
},
tableColumns: [
{
label: '送达客户',
prop: 'staffName',
filter: '1,2,4'
},
{
label: '评论客户',
prop: 'staffName',
filter: '3'
},
{
label: '是否互动',
prop: 'status',
formatter: cellValue => {
return {
0: '未发送',
1: '已发送',
2: '发送失败'
}[cellValue.status]
},
filter: '1,2,3,4'
},
{
label: '累计点赞次数',
prop: 'sendTime',
filter: '1'
},
{
label: '累计评论次数',
prop: 'customerCount',
filter: '1'
},
{
label: '员工',
prop: 'sendStaffCount',
width: '110',
filter: '2,3'
},
{
label: '点赞时间',
prop: 'sendStaffCount',
filter: '2'
},
{
label: '评论时间',
prop: 'sendStaffCount',
filter: '3'
},
{
label: '评论内容',
prop: 'sendStaffCount',
filter: '3'
},
{
label: '最近点赞时间',
prop: 'sendStaffCount',
filter: '4'
},
{
label: '评论次数',
prop: 'unSendStaffCount',
width: '110',
filter: '4'
},
{
label: '最近评论时间',
prop: 'copyCustomerCount',
width: '110',
filter: '4'
}
],
baseData: {
interactionList: [
{
confId: '1',
confName: '是'
},
{
confId: '2',
confName: '否'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
getListApi: this.$apis.friendGroup.momentStaff, getListApi: this.$apis.friendGroup.momentStaff,
footerLeft: 0, footerLeft: 0,
...@@ -127,6 +283,19 @@ export default { ...@@ -127,6 +283,19 @@ export default {
this.boxHeight = clientHeight - 200 this.boxHeight = clientHeight - 200
}, },
methods: { methods: {
handleExport(row) {
var params = this.getParams()
// memberExportApi(params).then(res => {
// exportFn(res)
// })
},
handleSearch() {
this.$refs.drawerRef.refreshTable()
},
handleReset() {
this.drawerSearchForm = {}
this.handleSearch()
},
handleSelect(val) { handleSelect(val) {
this.searchForm.status = val this.searchForm.status = val
this.$refs.table.refreshTable() this.$refs.table.refreshTable()
...@@ -158,11 +327,24 @@ export default { ...@@ -158,11 +327,24 @@ export default {
}) })
} }
}, },
handleCustomer(id) { initParams() {
this.drawerTableParams.tableColumns = this.tableColumns.filter(item => {
return !item.filter || item.filter.indexOf(this.activeName) != -1
})
},
getStatistics(value) {
this.activeName = value
this.initParams()
this.dialogVisible = true
},
handleCustomer(id, value) {
this.activeName = value
this.$apis.friendGroup.momentStaffCustomers({ id }).then(res => { this.$apis.friendGroup.momentStaffCustomers({ id }).then(res => {
if (res) { if (res) {
this.initParams()
this.dialogVisible = true this.dialogVisible = true
this.userList = res this.userList = res
console.log(this.userList)
} }
}) })
}, },
...@@ -191,6 +373,9 @@ export default { ...@@ -191,6 +373,9 @@ export default {
remindUserGroup() { remindUserGroup() {
const id = this.$route.params.id const id = this.$route.params.id
this.$apis.friendGroup.remindUserGroup({ id, type: 1 }).then(res => {}) this.$apis.friendGroup.remindUserGroup({ id, type: 1 }).then(res => {})
},
handleClose() {
this.dialogVisible = false
} }
} }
} }
...@@ -423,4 +608,18 @@ export default { ...@@ -423,4 +608,18 @@ export default {
margin-bottom: 30px; margin-bottom: 30px;
} }
} }
.drawerWrap {
.export {
height: 32px;
border-radius: 4px;
border: 1px solid #5850ff;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 14px;
padding: 9px 20px;
box-sizing: border-box;
cursor: pointer;
}
}
</style> </style>
...@@ -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.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">
...@@ -241,20 +244,20 @@ export default { ...@@ -241,20 +244,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 +278,21 @@ export default { ...@@ -275,6 +278,21 @@ export default {
label: '已送达客户', label: '已送达客户',
prop: 'copyCustomerCount', prop: 'copyCustomerCount',
width: '110' width: '110'
},
{
label: '互动客户',
prop: 'sendStaffCount',
width: '110'
},
{
label: '点赞客户',
prop: 'unSendStaffCount',
width: '110'
},
{
label: '评论客户',
prop: 'copyCustomerCount',
width: '110'
} }
] ]
}, },
...@@ -313,7 +331,7 @@ export default { ...@@ -313,7 +331,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(() => {
...@@ -517,15 +535,37 @@ export default { ...@@ -517,15 +535,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 +581,8 @@ export default { ...@@ -541,6 +581,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!