Commit f9dabcc7 by yangming

new

1 parent df353fd1
......@@ -27,7 +27,7 @@ const getMerchant = params => {
})
}
const getCard = params => {
params.method = 'scrm.api.equity.card.class.list.with.page'
params.method = 'scrm.api.equity.open.card.price.get.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
......@@ -44,7 +44,15 @@ const getPackage = params => {
sign: true
})
}
const getActivity = params => {
params.method = 'scrm.api.shopmall.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
const findAllByPage = params => {
params.method = 'entmicro.api.dracIm.findAllByPage'
params.sessionId = session
......@@ -140,6 +148,7 @@ export default {
getMerchant,
getCard,
getPackage,
getActivity,
listChannelCodeBill,
findAllByPage,
dracImMessage,
......
......@@ -10,7 +10,7 @@
<el-button size="small" type="primary" @click="handleSearch">查询</el-button>
</div>
<div class="checkbox-group-box" :style="{ 'max-height': heightBox + 'px' }">
<div v-for="(item, index) in labelTreeRets" :key="index">
<div style="margin-bottom: 8px" v-for="(item, index) in labelTreeRets" :key="index">
<span class="el-tree-node__expand-icon el-icon-caret-right" :class="{ expanded: item.checked }" @click="item.checked = !item.checked"></span>
<el-checkbox :indeterminate="item.isIndeterminate" v-model="item.checkAll" @change="handleCheckAllChange(item.checkAll, index)">{{ item.labelGroup.name }}({{ item.tagChecked.length }}/{{ item.labelList.length }} 项)</el-checkbox>
<div style="margin: 15px 0"></div>
......@@ -25,10 +25,10 @@
<div class="tag-title">已选标签</div>
<div class="tag-select-box">
<div class="tag-box-header">标签名称({{ selectNum }}项)</div>
<div class="tag-selected-box">
<div class="tag-selected-box" :style="{ 'height': heightBox + 'px' }">
<template v-for="item in labelTreeRetSelect">
<template v-for="(tag, idx) in item.tagChecked">
<el-tag class="tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
<el-tag type='info' class="tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
{{ tag.name }}
</el-tag>
</template>
......@@ -117,7 +117,8 @@ export default {
pageNum: 1,
pageSize: 1000,
shopId: this.$globalState.session.merchantId,
labelGroupName: this.labelGroupName
labelGroupName: this.labelGroupName,
labelTypesStr: '自店标签,企业标签'
}
})
.then(res => {
......@@ -336,6 +337,8 @@ export default {
margin: 0px 6px 6px 0px;
height: 26px;
line-height: 24px;
font-size: 14px;
color: #666;
}
.el-tree-node__expand-icon {
color: #5850ff;
......
......@@ -5,10 +5,11 @@
<div class="model-panel-tab">
<label>活动类型:</label>
<el-tabs v-model="activeName" @tab-click="handleClick" type="card">
<el-tab-pane label="精品券" name="1"></el-tab-pane>
<el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="权益卡试用" name="3"></el-tab-pane>
<el-tab-pane label="权益套餐" name="4"></el-tab-pane>
<el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="秒杀活动" name="5"></el-tab-pane>
<el-tab-pane label="精品券" name="1"></el-tab-pane>
</el-tabs>
</div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
......@@ -17,20 +18,23 @@
<div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div>
<div class="model-item-title" :title="item.cardClassName" v-show="activeName == 1">{{ item.couponName }}</div>
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div>
<div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</div>
<div class="model-item-content" v-show="activeName == 1 || activeName == 4"></div>
<div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div>
<div class="model-item-content" v-show="activeName == 3">价格:{{ item.price }}元</div>
<div class="model-item-content" v-show="activeName == 4">价格:{{ item.packagePrice }}元</div>
<div class="model-item-content" v-show="activeName == 5"></div>
<div class="model-item-content" v-show="activeName == 5"></div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 3">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 1">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 2">有效期:{{ item.effectiveNum}}天</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 2">有效期:{{ item.effectiveNum }}天</div>
<div class="model-item-content" v-show="activeName == 2">
类型:
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券': ''}}</span>
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券' : '' }}</span>
</div>
<div class="model-item-content" v-show="activeName == 1">
类型:
......@@ -44,6 +48,10 @@
类型:
<span>权益套餐</span>
</div>
<div class="model-item-content" v-if="activeName == 5">
活动时间:
{{item.startTime.split(' ')[0]}}-{{item.endTime.split(' ')[0]}}
</div>
</div>
</div>
<div class="model-item-empty" v-else v-loading="loading">
......@@ -67,7 +75,7 @@ export default {
return {
dialogVisible: false,
loading: false,
activeName: '1',
activeName: '3',
modelList: [],
pageNum: 1,
pageSize: 12,
......@@ -88,7 +96,7 @@ export default {
return
}
this.dialogVisible = false
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.cardClassName : this.activeName == 4 ? this.selectItem.packageName : this.selectItem.couponName })
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.cardClassName : this.activeName == 4 ? this.selectItem.packageName : this.activeName == 5 ? this.selectItem.activityName: this.selectItem.couponName })
},
handleSizeChange(val) {
this.pageSize = val
......@@ -115,6 +123,9 @@ export default {
case '4':
market = 'getPackage'
break
case '5':
market = 'getActivity'
break
}
let params = {
pageSize: this.pageSize,
......@@ -125,7 +136,12 @@ export default {
params.merchantId = this.$globalState.session.merchantId
}
if (this.activeName == 2) {
params.discountTypes = [2,3,4]
params.discountTypes = [2, 3, 4]
params.validType = 'valid'
}
if(this.activeName == 5) {
params.currentPage = this.pageNum
params.activityStatus = 2
}
this.$apis.marketing[market](params).then(res => {
this.modelList = res.list ? res.list : res.data
......
......@@ -181,7 +181,7 @@ export default {
this.savedRange.insertNode(node)
// 更新双向绑定数据
let target = this.$refs.wTextareaContent
if (navigator.userAgent.indexOf('Firefox') > 0) {
if (navigator.userAgent.indexOf('Firefox') > 0 || navigator.userAgent.indexOf('QQBrowser') > 0) {
this.updateData(target.innerHTML + '&nbsp;')
} else {
this.updateData(target.innerHTML)
......@@ -241,6 +241,7 @@ export default {
} else {
this.currentTagId = null
}
},
getGuid() {
// 生成随机ID
......
......@@ -9,7 +9,7 @@
</div>-->
<!-- <div id="toolbar-container" style="display: none;"></div>
<div id="text-container" class="editor-container"></div>-->
<wTextarea ref="textContent" :value.sync="textValue" @updateText="updateText"></wTextarea>
<wTextarea ref="textContent" v-model="textValue" @updateText="updateText"></wTextarea>
<!-- <el-input
type="textarea"
:rows="9"
......
export default {
namespaced: true,
state: {
importData: {
}
},
mutations: {
SET_IMPORT(state, data) {
state.importData = data
},
},
actions: {
setImport({ commit }, data) {
commit('SET_IMPORT', data)
},
}
}
......@@ -32,10 +32,10 @@
<span>{{ taggingLength }}</span>
个标签
</span>
<div class="el-input-tag input-tag-wrapper">
<div class="el-input-tag input-tag-wrapper" v-show="taggingLength">
<template v-if="tagging && tagging.length > 0">
<template v-for="item in tagging">
<el-tag v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)">
{{ tag ? tag.name : '' }}
</el-tag>
</template>
......@@ -56,8 +56,9 @@
<span>{{ staffInfo.length }}</span>
人
</span>
<div class="el-input-tag input-tag-wrapper">
<el-tag v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<div class="el-input-tag input-tag-wrapper" v-show="staffInfo.length">
<el-tag effect="plain" type="info" v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
......@@ -87,8 +88,8 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="goback">取消</el-button>
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</div>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
......@@ -282,7 +283,7 @@ export default {
}
}
.welcome-box {
margin-left: 55px;
margin-left: 48px;
}
}
}
......@@ -331,23 +332,30 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
color: #666;
display: inline-block;
outline: none;
padding: 3px 10px 3px 5px;
padding: 5px 5px 0px 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
line-height: 36px;
min-height: 36px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
}
</style>
\ No newline at end of file
......@@ -25,15 +25,18 @@
<div slot="staffInfo" slot-scope="scope">
<el-popover trigger="hover" placement="top" v-if="scope.scope.staffInfo.length > 3">
<div class="accountType-row" v-for="(item, index) in scope.scope.staffInfo" :key="index">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
<div slot="reference" class="name-wrapper">
<div class="accountType-row" v-for="(item, index) in scope.scope.staffInfo" :key="index" v-show="index < 4">
{{ index == 3 && scope.scope.staffInfo.length > 3 ? '...('+scope.scope.staffInfo.length+')' : item.staffName }}
<i class="el-icon-user-solid"></i>
{{ index == 3 && scope.scope.staffInfo.length > 3 ? '...(' + scope.scope.staffInfo.length + ')' : item.staffName }}
</div>
</div>
</el-popover>
<div class="accountType-row" v-for="(item, index) in scope.scope.staffInfo" :key="index" v-else>
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
......@@ -41,25 +44,24 @@
<img :src="scope.scope.qrCode" style="width: 80px; height: 80px" />
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</div>
<div slot="tagging" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3">
<div class="accountType-row" v-for="(item, index) in scope.scope.taggingList" :key="index">
{{ item ? item.name : '' }}
</div>
<div slot="reference" class="name-wrapper">
<div class="accountType-row" v-for="(item, index) in scope.scope.taggingList" :key="index" v-show="index < 4">
{{ index == 3 && scope.scope.taggingList.length > 3 ? '...('+scope.scope.taggingList.length+')' : item ? item.name : '' }}
</div>
</div>
<div slot="tagging" slot-scope="scope" class="allTagsWrap">
<el-popover trigger="hover" placement="top">
<template v-if="scope.scope.taggingList">
<span v-for="(item, index) in scope.scope.taggingList" :key="index" class="ellipsis-1 tag-box-wrap">
<el-tooltip class="item" :content="item.name" placement="top">
<span>{{ item.name }}</span>
</el-tooltip>
</span>
</template>
</el-popover>
<template v-if="scope.scope.taggingList && scope.scope.taggingList.length <= 3 && scope.scope.taggingList.length > 0">
<div class="accountType-row" v-for="(item, index) in scope.scope.taggingList" :key="index">
{{ item ? item.name : '' }}
</div>
<template v-if="scope.scope.taggingList">
<span v-for="(item, index) in scope.scope.taggingList" :key="index" class="ellipsis-1 tag-box-wrap">
<el-tooltip class="item" :content="item.name" placement="top">
<span>{{ item.name }}</span>
</el-tooltip>
</span>
</template>
<div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">
--
</div>
<div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">--</div>
</div>
<div slot="codeRemark" slot-scope="scope">
<div class="codeName">{{ scope.scope.codeName }}</div>
......@@ -214,8 +216,8 @@ export default {
const tagging = eval(item.tagging)
tagging.forEach(itm => {
let name = itm.name.split(',')
name.forEach((tag, index) => {
item.taggingList.push({ name: tag })
name.forEach((tag, index) => {
item.taggingList.push({ name: tag })
})
})
})
......@@ -235,7 +237,7 @@ export default {
margin-bottom: 20px;
}
.form-panel {
padding: 10px;
padding: 20px;
}
.download-link {
cursor: pointer;
......@@ -261,20 +263,93 @@ export default {
margin-bottom: 3px;
}
}
.allTagsWrap {
position: relative;
display: -webkit-box;
// max-height: 56px;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-bottom: -2px;
box-sizing: border-box;
// &:hover {
// -webkit-line-clamp: 9999;
// // .tag-box-wrap {
// // margin-bottom: 10px;
// // }
// }
.tag-box-wrap {
display: inline-block;
margin-right: 10px;
// margin-bottom: 2px;
padding: 0 10px;
box-sizing: border-box;
min-width: 76px;
max-width: 200px;
height: 26px;
line-height: 26px;
border-radius: 4px;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666666;
max-width: 245px;
cursor: pointer;
margin-bottom: 3px;
// &:first-child{
// margin-bottom: 4px;
// }
}
// .tag-box-wrap + .tag-box-wrap {
// margin-bottom: 4px;
// }
.expande-button-wrap {
position: absolute;
right: 0;
bottom: 0;
.expande-button {
color: #fafbfe;
cursor: pointer;
i {
height: 8px;
}
span {
height: 20px;
font-size: 14px;
font-weight: 400;
color: #fafbfe;
line-height: 20px;
}
}
}
}
.accountType-row {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
line-height: 20px;
&::before {
content: '';
position: absolute;
width: 6px;
height: 6px;
background: #5850ff;
border-radius: 8px;
left: 0px;
top: 7px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
// &::before {
// content: '';
// position: absolute;
// width: 6px;
// height: 6px;
// background: #5850ff;
// border-radius: 8px;
// left: 0px;
// top: 7px;
// }
}
</style>
\ No newline at end of file
......@@ -29,12 +29,12 @@
<div class="channel-chart-desc">
<div class="chart-desc">
<div class="chart-desc-title">
<div class="chart-title-time">{{timeRadio==1?'今天':timeRadio==2?'近1周':timeRadio==3?'近2周':timeRadio==4?'近1个月':startTime+'-'+endTime}}</div>
<div class="chart-title-time">{{ timeRadio == 1 ? '今天' : timeRadio == 2 ? '近1周' : timeRadio == 3 ? '近2周' : timeRadio == 4 ? '近1个月' : startTime + '-' + endTime }}</div>
<div class="chart-title-num">各渠道新增客户数</div>
</div>
<div class="chart-desc-item" v-for="(item, index) in codeIds" :key="index">
<div class="chart-item-title">
<span :style="{color: colorList[index],'font-size': '18px'}">—</span>
<span :style="{ color: colorList[index], 'font-size': '18px' }">—</span>
{{ item.codeName }}
</div>
<div class="chart-item-num">{{ item.totalNum }}</div>
......@@ -103,7 +103,7 @@ export default {
endTime: '',
selectItem: [],
codeIds: [],
colorList: ['#5850FF','#2CCA74','#EB4E4E','#FF6D00','#F8C900','#2CCAC4','#E74EEB','#6F2828']
colorList: ['#5850FF', '#2CCA74', '#EB4E4E', '#FF6D00', '#F8C900', '#2CCAC4', '#E74EEB', '#6F2828']
}
},
watch: {
......@@ -119,7 +119,7 @@ export default {
this.timeRadio = 1
this.trendType = 1
}
this.codeTrend()
this.getFollower()
this.codeSearch()
}
},
......@@ -128,8 +128,8 @@ export default {
this.trendType = this.timeRadio
this.startTime = ''
this.endTime = ''
this.codeTrend()
this.codeSearch()
this.getFollower()
},
handleSearch() {
this.codeSearch()
......@@ -158,7 +158,7 @@ export default {
const { trendType, startTime, endTime } = this
let params = {
codeIds,
trendType: trendType?trendType:null,
trendType: trendType ? trendType : null,
startTime,
endTime
}
......@@ -174,15 +174,20 @@ export default {
totalNum: item.totalNum
}
})
this.codeTrend()
this.getFollower()
},
handleChannel() {
this.$refs.channelForm.init(this.codeIds)
},
getFollower() {
let codeState = this.codeIds.map(item => item.codeState)
var params = {
startTime: this.startTime,
endTime: this.endTime,
trendType: this.trendType,
pageSize: 8,
pageNum: 1
pageNum: 1,
codeState
}
this.$apis.channel.listChannelCodeByPage(params).then(res => {
this.channel = res.data
......@@ -206,7 +211,7 @@ export default {
<style lang="scss" scoped>
.channel-main {
padding: 10px;
padding: 20px;
/deep/ {
.el-radio-group {
margin-top: 3px;
......
......@@ -275,7 +275,6 @@ export default {
}
.image-uploader {
display: inline-block;
margin-left: 20px;
height: 20px;
/deep/ {
.el-upload-list {
......
......@@ -12,7 +12,10 @@
<el-row>
<el-form-item size="small" label="使用员工:">
<div class="form-row">
<div class="emp-item" v-for="(item, index) in detailCodeForm.staffInfo" :key="index">{{ item.staffName }}</div>
<div class="emp-item" v-for="(item, index) in detailCodeForm.staffInfo" :key="index">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
</el-form-item>
</el-row>
......@@ -209,36 +212,35 @@ export default {
margin-top: 5px;
.tag-item {
display: inline-block;
border-radius: 4px;
border: 1px solid #999999;
text-align: center;
min-width: 76px;
padding: 8px 6px;
background: #fafbfe;
border: 1px solid #e8e8ea;
line-height: 14px;
box-sizing: border-box;
padding: 6px 6px;
font-size: 14px;
border-radius: 4px;
line-height: 14px;
font-weight: 400;
color: #999999;
color: #666;
margin-right: 5px;
}
.emp-item {
text-align: left;
position: relative;
display: inline-block;
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
padding-left: 12px;
margin-right: 25px;
&::before {
content: '';
position: absolute;
top: 6px;
left: 0px;
width: 8px;
height: 8px;
background: #5850ff;
border-radius: 50%;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
......
......@@ -147,8 +147,9 @@
选择跟进专员
</el-button>
<span class="drainage-coutom-count">已经选择{{ staffIds.length }}人</span>
<div class="el-input-tag input-tag-wrapper" v-if="editStatus">
<el-tag v-for="(tag, idx) in staffIds" :key="idx" closable :disable-transitions="false" @close="remove(idx)">
<div class="el-input-tag input-tag-wrapper" v-if="editStatus && staffIds.length">
<el-tag effect="plain" type="info" v-for="(tag, idx) in staffIds" :key="idx" closable :disable-transitions="false" @close="remove(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
......@@ -159,6 +160,7 @@
<label>跟进员工</label>
<div class="drainage-emp">
<div class="emp-tag" :key="index" v-for="(item, index) in staffIds">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
......@@ -173,9 +175,9 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="goback" v-if="configType">返回</el-button>
<el-button type="primary" @click="handleCancel" v-if="!configType">取消</el-button>
<el-button type="primary" @click="handleSave" v-if="!configType">确定</el-button>
<el-button type="primary" @click="goback" v-if="configType">返回</el-button>
<el-button @click="handleCancel" v-if="!configType">取消</el-button>
</div>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
</div>
......@@ -226,7 +228,7 @@ export default {
showConfirmButton: false,
center: true
}).catch(action => {
this.handleSwitch()
this.handleSwitch()
})
}
},
......@@ -234,10 +236,10 @@ export default {
let params = {
id: this.configItem.id,
delFlag: this.addValue ? 0 : 1,
configType: this.configType ? 2 : 1,
configType: this.configType ? 2 : 1
}
let config;
if (this.configItem.id) {
let config
if (this.configItem.id) {
config = 'updateConfig'
} else {
config = 'addConfig'
......@@ -375,16 +377,21 @@ export default {
margin-top: 6px;
flex-wrap: wrap;
div {
text-align: left;
position: relative;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
height: 26px;
padding: 0px 5px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #333333;
margin-right: 5px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.input-tag-wrapper {
......@@ -395,23 +402,30 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
color: #666;
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
padding: 5px 5px 0px 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
line-height: 36px;
min-height: 36px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.drainage-coutom-count {
font-size: 14px;
......
......@@ -81,9 +81,9 @@
选择跟进专员
</el-button>
<span class="drainage-coutom-count">已经选择{{ dracImFollowStaffResponses.length }}人</span>
<div class="el-input-tag input-tag-wrapper">
<el-tag v-for="(tag, idx) in dracImFollowStaffResponses" :key="idx" closable :disable-transitions="false" @close="remove(idx)">
{{ tag.staffName }}
<div class="el-input-tag input-tag-wrapper" v-show="dracImFollowStaffResponses.length">
<el-tag effect="plain" type="info" v-for="(tag, idx) in dracImFollowStaffResponses" :key="idx" closable :disable-transitions="false" @close="remove(idx)">
<i class="el-icon-user-solid"></i> {{ tag.staffName }}
</el-tag>
</div>
<div class="el-form-item__error" v-if="empStatus">请选择跟进专员</div>
......@@ -93,7 +93,7 @@
<label>跟进员工</label>
<div class="drainage-emp">
<div :key="index" v-for="(item, index) in dracImFollowStaffResponses">
{{ item.staffName }}
<i class="el-icon-user-solid"></i>{{ item.staffName }}
</div>
</div>
</div>
......@@ -119,9 +119,9 @@
<div class="tag-item-panel" v-if="editStatus">
<div>
<el-button size="small" @click="handleAddTag">添加</el-button>
<div class="el-input-tag input-tag-wrapper">
<div class="el-input-tag input-tag-wrapper" v-if="taggingLength">
<template v-for="item in tagging">
<el-tag v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)">
{{ tag.name }}
</el-tag>
</template>
......@@ -157,8 +157,8 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="goback">取消</el-button>
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</div>
<div class="import-panel" v-if="importStatus">
<div class="import-panel-box">
......@@ -204,6 +204,7 @@ export default {
return {
welcomeInfo: [],
eventBus: new Vue(),
taggingLength: 0,
autoWelcome: true,
imName: '',
imNameStatus: false,
......@@ -248,6 +249,15 @@ export default {
this.content.push(str1)
}
}
},
'tagging': {
handler: function () {
this.taggingLength = 0
this.tagging.forEach(item => {
this.taggingLength += item.labelList.length
})
},
deep: true
}
},
methods: {
......@@ -414,22 +424,22 @@ export default {
return item
})
this.welcomeInfo = previewList
const tagging = eval(res.tagging)
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
const tagging = eval(res.tagging)
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
})
}
......@@ -472,7 +482,7 @@ export default {
}
}
.welcome-box {
margin-left: 55px;
margin-left: 48px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -720,16 +730,21 @@ export default {
margin-top: 6px;
flex-wrap: wrap;
div {
text-align: left;
position: relative;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
height: 26px;
padding: 0px 5px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #333333;
margin-right: 5px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.input-tag-wrapper {
......@@ -740,26 +755,33 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
color: #666;
display: inline-block;
outline: none;
padding: 2px 10px 2px 5px;
padding: 5px 5px 0px 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
line-height: 36px;
min-height: 36px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
}
.tag-item-panel {
display: flex;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.tag-item-panel {
display: flex;
}
.drainage-coutom-count {
font-size: 14px;
......
......@@ -14,7 +14,7 @@
</div>
<div class="square-tabel scrm-box-f">
<div class="square-tabel-form">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="68px">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
<el-form-item size="small" label="添加时间">
<el-date-picker :picker-options="pickerOptions" v-model="createTime" type="daterange" value-format="yyyy/MM/dd" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker>
</el-form-item>
......@@ -316,7 +316,7 @@ export default {
}
}
.square-tabel {
padding: 10px;
padding: 20px;
margin-top: 20px;
/deep/ {
.el-date-editor.el-input,
......
......@@ -2,6 +2,7 @@
<div class="form-panel scrm-box-f">
<div class="statistics-panel">
<div class="statistics-panel-item">
<div class="statistics-title-h">短信营销统计</div>
<div class="statistics-title">
<span>任务完成率</span>
<el-popover placement="top" width="300" trigger="hover" content="已发送短信数量 / 累计的营销短信总数。">
......@@ -11,8 +12,8 @@
<div class="circle-box">
<echart-circle bgColor1="#F0F0F0" bgColor2="#6F76EE" coustomId="coustomId_5" :coustomCount="percentage"></echart-circle>
<div class="circle-box-item">
<div class="circle-item-scale">{{percentage}}%</div>
<div class="circle-item-num">{{totalCount}}</div>
<div class="circle-item-scale">{{ percentage }}%</div>
<div class="circle-item-num">{{ totalCount }}</div>
</div>
</div>
</div>
......@@ -138,6 +139,14 @@ export default {
display: flex;
&-item {
width: 33.33%;
.statistics-title-h {
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin-bottom: 20px;
}
.statistics-title {
font-size: 16px;
font-weight: 500;
......
......@@ -96,7 +96,6 @@
</div>
</div>
<div class="statistics-main">
<div class="statistics-title">短信营销统计</div>
<message-list></message-list>
</div>
</div>
......@@ -266,7 +265,7 @@ export default {
}
}
.statistics-main {
margin-top: 10px;
margin-top: 20px;
.statistics-title {
font-size: 20px;
font-weight: 500;
......
......@@ -122,8 +122,9 @@
选择跟进专员
</el-button>
<span class="drainage-coutom-count">已经选择{{ addForm.staffIds.length }}人</span>
<div class="el-input-tag input-tag-wrapper">
<el-tag v-for="(tag, idx) in addForm.staffIds" :key="idx" closable :disable-transitions="false" @close="remove(idx)">
<div class="el-input-tag input-tag-wrapper" v-if="addForm.staffIds.length">
<el-tag effect="plain" type="info" v-for="(tag, idx) in addForm.staffIds" :key="idx" closable :disable-transitions="false" @close="remove(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
......@@ -132,8 +133,9 @@
</div>
<div class="drainage-form-item" v-else>
<label>跟进员工</label>
<div class="drainage-emp">
<div class="drainage-emp" v-if="addForm.staffIds.length">
<div :key="index" v-for="(item, index) in addForm.staffIds">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
......@@ -160,9 +162,9 @@
<div class="tag-item-panel" v-if="editStatus">
<div>
<el-button size="small" @click="handleAddTag">添加</el-button>
<div class="el-input-tag input-tag-wrapper">
<div class="el-input-tag input-tag-wrapper" v-if="taggingLength">
<template v-for="item in addForm.tagging">
<el-tag v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)">
{{ tag.name }}
</el-tag>
</template>
......@@ -199,8 +201,8 @@
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="goback">取消</el-button>
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</div>
<select-emp ref="selectEmpForm" @selectTable="selectTable"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
......@@ -292,6 +294,7 @@ export default {
editStatus: false,
footerLeft: 0,
footerWidth: 0,
taggingLength: 0,
addForm: {
configType: 3,
content: '',
......@@ -326,6 +329,15 @@ export default {
this.content.push(str1)
}
}
},
'addForm.tagging': {
handler: function () {
this.taggingLength = 0
this.addForm.tagging.forEach(item => {
this.taggingLength += item.labelList.length
})
},
deep: true
}
},
methods: {
......@@ -381,7 +393,8 @@ export default {
handleSwitch() {
let params = {
id: this.addForm.id,
delFlag: this.addValue ? 0 : 1
delFlag: this.addValue ? 0 : 1,
configType: 3
}
let config
if (this.addForm.id) {
......@@ -463,7 +476,7 @@ export default {
findConfig() {
this.editStatus = false
this.$apis.marketing.findConfig({ configType: 3 }).then(res => {
if (res) {
if (res && res.staffIds) {
this.addForm = res
this.addForm.staffIds = eval(this.addForm.staffIds)
const tagging = eval(this.addForm.tagging)
......@@ -535,7 +548,7 @@ export default {
}
}
.welcome-box {
margin-left: 55px;
margin-left: 48px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -622,16 +635,21 @@ export default {
margin-top: 6px;
flex-wrap: wrap;
div {
text-align: left;
position: relative;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
height: 26px;
padding: 0px 5px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #333333;
margin-right: 5px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.dialog-wrap-box {
......@@ -819,23 +837,30 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
color: #666;
display: inline-block;
outline: none;
padding: 2px 10px 2px 5px;
padding: 5px 5px 0px 5px;
max-height: 68px;
overflow: auto;
flex-wrap: wrap;
line-height: 36px;
min-height: 36px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.drainage-coutom-count {
font-size: 14px;
......
......@@ -198,6 +198,7 @@ export default {
this.$apis.square.importsUpload({ fileUrl: this.fileInfo }).then(res => {
this.loading = false
if (res) {
this.$store.dispatch('square/setImport', res)
this.$router.push('/square/importResult/' + res.id)
}
})
......
......@@ -8,12 +8,8 @@
</div>
<div class="squre-success-image"><i class="el-icon-success"></i></div>
<div class="squre-success-tips">提交成功</div>
<div class="squre-success-content">
所提交的数据已经过加密,并安全存储专属加密区。
</div>
<div class="squre-success-content">
针对导入的结果有疑问请扫码联系我们,我们将为您提供专业答疑和营销推荐。
</div>
<div class="squre-success-content">所提交的数据已经过加密,并安全存储专属加密区。</div>
<div class="squre-success-content">针对导入的结果有疑问请扫码联系我们,我们将为您提供专业答疑和营销推荐。</div>
<div class="squre-success-footer">
<div class="squre-success-item">
<div class="success-item-title">本次导入总客户数</div>
......@@ -25,11 +21,15 @@
</div>
<div class="squre-success-item">
<div class="success-item-title">企微客户占比</div>
<div class="success-item-num">
{{ detailInfo.entmicroNumber }}/{{ detailInfo.importNumber }}
</div>
<div class="success-item-num">{{ detailInfo.entmicroNumber }}/{{ detailInfo.importNumber }}</div>
</div>
</div>
<div class="squre-tips" v-if="importData.errorNum">
<i class="el-icon-warning"></i>
本次导入共有{{ importData.errorNum }}条异常数据,请点击
<a :href="importData.errorDataUrl">下载</a>
获取明细
</div>
</div>
<div class="custom-title">客户分群营销</div>
<div class="custom-wrap">
......@@ -46,9 +46,7 @@
<div class="custom-count-num">{{ detailInfo.waitAddEntmicroTotal }}人</div>
</div>
</div>
<div class="custom-wrap-content">
当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。
</div>
<div class="custom-wrap-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div>
<div class="custom-wrap-config" @click="jumpDrainage">营销配置</div>
</div>
</div>
......@@ -65,9 +63,7 @@
<div class="custom-count-num">{{ detailInfo.waitTotal }}人</div>
</div>
</div>
<div class="custom-wrap-content">
提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。
</div>
<div class="custom-wrap-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div>
<div class="custom-wrap-config">敬请期待</div>
</div>
</div>
......@@ -77,20 +73,14 @@
<div class="custom-wrap-sta">
<div class="custom-count-item">
<div class="custom-count-title">属于本次导入</div>
<div class="custom-count-num">
{{ detailInfo.waitRegularMaintainNumber }}人
</div>
<div class="custom-count-num">{{ detailInfo.waitRegularMaintainNumber }}人</div>
</div>
<div class="custom-count-item">
<div class="custom-count-title">人群累计人数</div>
<div class="custom-count-num">
{{ detailInfo.waitRegularMaintainTotal }}人
</div>
<div class="custom-count-num">{{ detailInfo.waitRegularMaintainTotal }}人</div>
</div>
</div>
<div class="custom-wrap-content">
智能提醒用户定期保养,推荐保养项目和优惠活动,提高用户返店率。
</div>
<div class="custom-wrap-content">智能提醒用户定期保养,推荐保养项目和优惠活动,提高用户返店率。</div>
<div class="custom-wrap-config">敬请期待</div>
</div>
</div>
......@@ -100,30 +90,35 @@
<script>
export default {
name: "importResult",
name: 'importResult',
data() {
return {
detailInfo: {},
};
importData: {}
}
},
methods: {
goBack() {
this.$router.push("/square/index");
this.$router.push('/square/index')
},
jumpDrainage() {
this.$router.push("/square/drainage");
this.$router.push('/square/drainage')
},
importsKey() {
let { id } = this.$route.params;
this.$apis.square.importsKey({ id }).then((res) => {
this.detailInfo = res;
});
},
this.importData = this.$store.getters.square.importData
let { id } = this.$route.params
this.$apis.square.importsKey({ id }).then(res => {
this.detailInfo = res
})
}
},
mounted() {
this.importsKey();
this.importsKey()
},
};
beforeDestroy() {
this.$store.dispatch('square/setImport', {})
}
}
</script>
<style lang="scss" scoped>
......@@ -137,8 +132,7 @@ export default {
width: 144px;
height: 191px;
background: #ffffff;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08),
0px 9px 28px 8px rgba(0, 0, 0, 0.05);
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
text-align: center;
img {
width: 124px;
......@@ -195,6 +189,22 @@ export default {
}
}
}
.squre-tips {
padding: 20px;
font-size: 16px;
font-weight: 500;
color: #424242;
line-height: 28px;
a {
cursor: pointer;
text-decoration: underline;
color: #5850ff;
}
i {
color: #f56c6c;
}
}
}
.custom-title {
margin: 20px 0px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!