Commit d9b9ce0e by yy

init

1 parent 6e72223e
Showing 50 changed files with 2247 additions and 349 deletions
NODE_ENV='production'
# must start with VUE_APP_
VUE_APP_ENV = 'production'
\ No newline at end of file
VUE_APP_ENV = 'production'
VUE_APP_SERVER = production
\ No newline at end of file
......@@ -5,7 +5,8 @@
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"lint": "vue-cli-service lint",
"build:test": "vue-cli-service build --mode test"
},
"dependencies": {
"axios": "^0.21.1",
......
......@@ -40,7 +40,7 @@ export default {
}
#app {
background: #f4f5fa;
padding: 0px 20px 20px 40px;
padding: 0px 20px 20px 20px;
position: absolute;
box-sizing: border-box;
width: 100%;
......
......@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import { http } from '@/main'
import { http,http_tag } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const getListApi = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
......@@ -29,9 +29,9 @@ const getFollower = params => {
})
}
const querylabeltree = params => {
params.method = 'scrm.api.datahub.label.querylabeltree'
params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
params.sessionId = session
return http({
return http_tag({
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
......@@ -112,6 +112,7 @@ const detailChannelCode = params => {
const listChannelCodeByPage = params => {
params.method = 'entmicro.api.code.listChannelCodeByPage'
params.sessionId = session
console.log(http)
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
......@@ -139,7 +140,39 @@ const updateChannelCode = params => {
sign: true
})
}
const getCustomer = params => {
params.method = 'entmicro.api.customer.code.page'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const getChannelCodeStaffList = params => {
params.method = 'entmicro.api.code.getChannelCodeStaffList'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const getStatus = params => {
params.method = 'scrm.api.work.wechat.access.status'
params.sessionId = session
return http({
url: '/rop-scrm-wechat/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getStatus,
getListApi,
getFollower,
querylabeltree,
......@@ -152,5 +185,7 @@ export default {
detailChannelCode,
deleteChannelCode,
updateChannelCodeBill,
listChannelCodeBill
listChannelCodeBill,
getCustomer,
getChannelCodeStaffList
}
\ No newline at end of file
......@@ -7,7 +7,7 @@
* @returns
*/
import { http } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
let session = 'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page'
return http({
......@@ -35,6 +35,25 @@ const getCard = params => {
sign: true
})
}
const merchantOpen = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const merchant = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page'
return http({
......@@ -143,9 +162,21 @@ const updateConfig = params => {
sign: true
})
}
const customerPage = params => {
params.method = 'entmicro.api.dracIm.customer.search.page'
params.sessionId = session
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
getCoupon,
getMerchant,
merchantOpen,
merchant,
getCard,
getPackage,
getActivity,
......@@ -157,5 +188,6 @@ export default {
findById,
updateConfig,
findConfig,
addConfig
addConfig,
customerPage
}
\ No newline at end of file
......@@ -148,3 +148,39 @@ img {
.el-table tbody tr:hover > td {
background: #f4f3ff !important;
}
.el-message-box .el-message-box__title,.el-message-box .el-message-box__headerbtn {
display: none;
}
.el-message-box__content {
text-align: center;
padding: 50px 0px 50px;
}
.el-message-box__status.el-icon-warning {
display: none;
}
.el-message-box__btns {
text-align: center;
padding: 20px 0px 10px;
border-top: 1px solid #E6E6E6;
}
.el-message-box__btns button:nth-child(2) {
margin-left: 40px;
}
.el-message-box__status+.el-message-box__message {
padding: 0px 10px;
}
.el-message-box--center {
padding: 0px;
}
.el-message--info {
height: 40px;
background: #e6e9ff;
border: 1px solid #5850ff;
border-radius: 4px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
.el-message .el-icon-info {
color: #5850ff;
font-size: 16px;
}
\ No newline at end of file
<template>
<div class="basic-panel">
<el-tooltip class="item" effect="dark" :content="content" placement="top" v-show="tooltipStatus">
<div class="basic-title-s">{{ content }}</div>
</el-tooltip>
<div class="basic-title" v-show="!tooltipStatus">{{ content }}</div>
<el-popover placement="top" popper-class="base-popper" trigger="hover" :content="content" v-if="tooltipStatus">
<div class="basic-title" slot="reference">{{ content | ellipsis(this) }}</div>
</el-popover>
<div class="basic-title" v-else>{{ content | ellipsis(this) }}</div>
</div>
</template>
<script>
......@@ -14,9 +14,9 @@ export default {
type: String,
default: ''
},
titleWid: {
textLength: {
type: Number,
default: 100
default: 8
}
},
data() {
......@@ -24,28 +24,26 @@ export default {
tooltipStatus: false
}
},
watch: {
content: {
handler(value) {
const title = document.querySelector('.basic-title')
console.log(title, value)
if (title.innerText == value) {
this.tooltipStatus = false
} else {
this.tooltipStatus = true
}
},
deep: true
filters: {
ellipsis(value,that) {
console.log(value,that)
if (value.length > that.textLength) {
that.tooltipStatus = true
return value.slice(0, that.textLength) + '...'
}
return value
}
},
mounted() {
const title = document.querySelector('.basic-title-s')
console.log(title.innerText, this.content)
if (title.innerText == this.content) {
this.tooltipStatus = false
} else {
this.tooltipStatus = true
}
// this.$nextTick(() => {
// const title = document.querySelector('.basic-title-s')
// console.log(title.innerText, this.content)
// if (title.innerText == this.content) {
// this.tooltipStatus = false
// } else {
// this.tooltipStatus = true
// }
// })
}
}
</script>
......@@ -54,11 +52,4 @@ export default {
.basic-panel {
display: inline-block;
}
.basic-title,.basic-title-s {
width: 100%;
display: inline-block;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
</style>
.vdr {
touch-action: none;
position: absolute;
box-sizing: border-box;
border: 1px dashed black;
}
.handle {
box-sizing: border-box;
position: absolute;
width: 10px;
height: 10px;
background: #EEE;
border: 1px solid #333;
}
.handle-tl {
top: -10px;
left: -10px;
cursor: nw-resize;
}
.handle-tm {
top: -10px;
left: 50%;
margin-left: -5px;
cursor: n-resize;
}
.handle-tr {
top: -10px;
right: -10px;
cursor: ne-resize;
}
.handle-ml {
top: 50%;
margin-top: -5px;
left: -10px;
cursor: w-resize;
}
.handle-mr {
top: 50%;
margin-top: -5px;
right: -10px;
cursor: e-resize;
}
.handle-bl {
bottom: -10px;
left: -10px;
cursor: sw-resize;
}
.handle-bm {
bottom: -10px;
left: 50%;
margin-left: -5px;
cursor: s-resize;
}
.handle-br {
bottom: -10px;
right: -10px;
cursor: se-resize;
}
@media only screen and (max-width: 768px) {
[class*="handle-"]:before {
content: '';
left: -10px;
right: -10px;
bottom: -10px;
top: -10px;
position: absolute;
}
}
<template>
<div
class="scrm-footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<slot></slot>
</div>
</template>
<script>
export default {
name: 'glsx-footer',
props: {
className: {
type: String,
default: '.base-container-right'
}
},
data() {
return {
footerLeft: 0,
footerWidth: 0
}
},
methods: {
resize() {
this.footerLeft = document.querySelector(this.className).offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}
},
destroyed() {
window.removeEventListener('resize', this.resize)
},
mounted() {
this.resize()
window.addEventListener('resize', this.resize)
}
}
</script>
<style lang="scss">
.scrm-footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
</style>
......@@ -11,8 +11,10 @@ import Vue from 'vue'
// 导入权限按钮
import _button from '@/components/glsx-button/index'
import _title from '@/components/basic-title/index'
// import _footer from '@/components/glsx-footer/index'
Vue.component('basic-dialog', () =>
import('./basic-dialog/index.vue'))
Vue.component('GLButton', _button)
Vue.component('GLTitle', _title)
// Vue.component('GLFooter', _footer)
// Vue.component('glsx-table', glsxTable)
\ No newline at end of file
......@@ -9,7 +9,7 @@
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
<GLTable v-if="dialogVisible" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">新增专员</a>
<el-button size="small" @click="handleCancel">取 消</el-button>
......@@ -21,6 +21,7 @@
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
export default {
name: 'selectEmp',
data() {
......@@ -60,7 +61,7 @@ export default {
},
methods: {
jumpUrl() {
this.$history.push('/home/followUp/index')
util.openUrl(location.origin + '/home/followUp/index')
},
getFollower() {
var params = {
......
......@@ -9,7 +9,7 @@
<el-input size="small" v-model="labelGroupName" placeholder="请输入搜索内容"></el-input>
<el-button size="small" type="primary" @click="handleSearch">查询</el-button>
</div>
<div class="checkbox-group-box" :style="{ 'height': heightBox + 'px' }">
<div class="checkbox-group-box" :style="{ height: heightBox + 'px' }">
<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>
......@@ -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" :style="{ 'height': heightBox + 'px' }">
<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 :title="tag.name" type='info' class="tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
<el-tag :title="tag.name" type="info" class="tag-selected-item" :key="idx" v-if="tag" closable :disable-transitions="false" @close="remove(item, idx)">
{{ tag.name }}
</el-tag>
</template>
......@@ -38,7 +38,7 @@
</div>
</div>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">没有意向标签?点我创建</a>
<a class="dialog-jump" @click="jumpUrl" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a>
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
......@@ -48,6 +48,7 @@
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
export default {
name: 'activityModel',
data() {
......@@ -58,32 +59,7 @@ export default {
selectNum: 0,
searchStatus: false,
labelTreeRetSelect: [],
labelTreeRets: [
{
labelGroup: { id: '109', name: '湖口123' },
labelList: [
{ id: '372', name: '12345678' },
{ id: '371', name: '7654321' },
{ id: '370', name: '1234567' }
],
checked: false,
tagChecked: [],
isIndeterminate: false,
checkAll: false
},
{
labelGroup: { id: '65', name: '自店标签111' },
labelList: [
{ id: '179', name: '标签44' },
{ id: '178', name: '标签33' },
{ id: '176', name: '标签1112' }
],
checked: false,
tagChecked: [],
isIndeterminate: false,
checkAll: false
}
]
labelTreeRets: []
}
},
watch: {
......@@ -99,7 +75,8 @@ export default {
},
methods: {
jumpUrl() {
this.$history.push('/custom/tagsManage/index')
util.openUrl(location.origin + '/custom/tagsManage/index')
this.dialogVisible = false
},
init(item) {
this.labelGroupName = ''
......@@ -118,7 +95,8 @@ export default {
pageSize: 1000,
shopId: this.$globalState.session.merchantId,
labelGroupName: this.labelGroupName,
labelTypesStr: '自店标签,企业标签'
labelTypesStr: '自店标签,企业标签',
edition: this.$globalState.session.merchantModel
}
})
.then(res => {
......@@ -147,13 +125,6 @@ export default {
}
})
})
this.labelTreeRets.forEach(item => {
this.labelTreeRetSelect.forEach(itm => {
if (itm.labelGroup.id == item.labelGroup.id) {
item.tagChecked = utils.deepClone(itm.tagChecked)
}
})
})
this.labelTreeRets.forEach((item, index) => {
this.$nextTick(() => {
this.handleCheckedChange(item.tagChecked, index)
......@@ -193,12 +164,18 @@ export default {
}
})
},
remove(item, idx) {
item.tagChecked.splice(idx, 1)
remove(items, idx) {
items.tagChecked.splice(idx, 1)
this.labelTreeRets.forEach(item => {
this.labelTreeRetSelect.forEach(itm => {
if (item.labelGroup.id == itm.labelGroup.id) {
item.tagChecked = utils.deepClone(itm.tagChecked)
let tagChecked = []
itm.tagChecked.forEach(x => {
tagChecked.push(x.id)
})
this.$nextTick(() => {
item.tagChecked = item.labelList.filter(i => tagChecked.includes(i.id))
})
}
if (item.tagChecked.length == 0) {
this.$nextTick(() => {
......@@ -207,7 +184,6 @@ export default {
}
})
})
this.labelTreeRets.forEach((item, index) => {
this.$nextTick(() => {
this.handleCheckedChange(item.tagChecked, index)
......@@ -274,7 +250,7 @@ export default {
<style lang="scss" scoped>
.dialog-jump {
color: #5850FF;
color: #5850ff;
float: left;
line-height: 24px;
text-decoration: underline;
......
<template>
<div class="ly-emotion">
<slot></slot>
</div>
</template>
<script>
import emoji from '@/utils/emo'
export default {
name: 'ly-emotion',
mounted() {
const name = this.$el.innerHTML
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(name)) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
let imgHTML = `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
this.$nextTick(() => {
this.$el.innerHTML = imgHTML
})
}
}
</script>
<style scoped>
.ly-emotion {
display: inline-block;
}
.ly-static-emotion {
width: 24px;
height: 24px;
display: inline-block;
}
</style>
\ No newline at end of file
<template>
<div>
<div class="emotion-box" :style="{ height: height + 'px' }">
<div class="emotion-box-line" v-for="(line, i) in list" :key="i">
<emotion class="emotion-item" v-for="(item, i) in line" :key="i" @click.native="clickHandler(item)">{{ item }}</emotion>
</div>
</div>
</div>
</template>
<script>
import emoji from '@/utils/emo'
import Emotion from './Emotion'
export default {
props: {
height: {
type: Number,
default: 200
}
},
data() {
return {
list: emoji
}
},
methods: {
clickHandler(i) {
let emotion = `${i}`
this.$emit('emotion', emotion)
}
},
components: {
Emotion
}
}
</script>
<style scoped lang="scss">
.emotion-box {
z-index: 2004;
background-color: #fff;
border-radius: 2px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.15);
width: 300px;
box-sizing: border-box;
padding: 5px;
overflow: hidden;
overflow-y: auto;
}
.emotion-box-line {
display: flex;
}
.emotion-item {
flex: 1;
text-align: center;
cursor: pointer;
/deep/ {
img {
width: 24px;
-webkit-user-select: none;
cursor: default;
pointer-events: none;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="w-textarea" ref="wTextarea">
<div contenteditable="true" class="w-textarea_input" ref="wTextareaContent" :id="contentId" @click="inputClick($event)" @focus="isLocked = true" @blur="isLocked = false" @keydown.delete="handleDelete($event)" @input="handleInput($event.target)"></div>
<div contenteditable="true" class="w-textarea_input" ref="wTextareaContent" :id="contentId" @click="inputClick($event)" @focus="onFocus" @blur="onBlur" @keydown="textareaKeydown($event)" @input="handleInput($event.target)"></div>
<!-- <div class="w-textarea_tools" v-if="tools.length > 0 || maxlength">
<button
class="w-textarea_tools__item"
......@@ -21,6 +21,7 @@
</template>
<script>
import emoji from '@/utils/emo'
export default {
name: 'wTextarea',
data() {
......@@ -31,6 +32,7 @@ export default {
contentId: `content${this.getGuid()}`,
// 输入的时候锁定,禁止更新innerHTML
isLocked: false,
isInsert: false,
// 记录当前选中tag的ID
currentTagId: null,
// 当前光标位置
......@@ -108,6 +110,50 @@ export default {
// 处理后需要调用 addTag() 或者 addLink() 将内容传回来
this.$emit('add', type)
},
textareaKeydown(event) {
if (event.keyCode == 13) {
this.insertHtml('<br>')
let nn = document.createElement('br')
document.querySelector('.w-textarea_input').appendChild(nn)
return false
}
},
/*换行*/
insertHtml(html) {
var sel, range
if (window.getSelection) {
// IE9 或 非IE浏览器
sel = window.getSelection()
if (sel.getRangeAt && sel.rangeCount) {
range = sel.getRangeAt(0)
range.deleteContents()
// Range.createContextualFragment() would be useful here but is
// non-standard and not supported in all browsers (IE9, for one)
var el = document.createElement('div')
el.innerHTML = html
var frag = document.createDocumentFragment(),
node,
lastNode
while ((node = el.firstChild)) {
lastNode = frag.appendChild(node)
}
range.insertNode(frag)
// Preserve the selection
if (lastNode) {
range = range.cloneRange()
range.setStartAfter(lastNode)
range.collapse(true)
sel.removeAllRanges()
sel.addRange(range)
}
}
} else if (document.selection && document.selection.type != 'Control') {
// IE < 9
document.selection.createRange().pasteHTML(html)
}
this.currentText = document.querySelector('.w-textarea_input').innerHTML
this.$emit('updateText', this.currentText)
},
addTag(text) {
// 创建模版标签
let node = document.createElement(this.tag)
......@@ -173,12 +219,42 @@ export default {
node.target = 'blank'
this.insertNode(node)
},
addImg(url) {
// 创建a标签
let node = document.createElement('img')
node.src = url
// node.setAttribute('ondragstart', 'return false;')
this.insertNode(node)
},
onFocus() {
this.isLocked = true
this.isInsert = true
},
onBlur() {
this.isLocked = false
},
insertNode(node) {
// 在内容中插入标签
// 删掉选中的内容(如有)
if (this.savedRange.startContainer) {
this.insertNodeFirst(node)
} else {
document.querySelector('.w-textarea_input').focus()
setTimeout(() => {
this.insertNodeFirst(node)
document.querySelector('.w-textarea_input').blur()
}, 100)
}
},
insertNodeFirst(node) {
this.savedRange.deleteContents()
// 插入链接
this.savedRange.insertNode(node)
if (this.isInsert) {
this.savedRange.insertNode(node)
} else {
document.querySelector('.w-textarea_input').appendChild(node)
}
this.isInsert = false
// 更新双向绑定数据
let target = this.$refs.wTextareaContent
if (navigator.userAgent.indexOf('Firefox') > 0 || navigator.userAgent.indexOf('QQBrowser') > 0) {
......@@ -186,7 +262,17 @@ export default {
} else {
this.updateData(target.innerHTML)
}
this.currentText = target.innerText
let htm = target.innerHTML
const list = emoji.flat(Infinity)
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
let Textnode = document.createElement('div')
Textnode.innerHTML = replaceImg
this.currentText = replaceImg.substring(0, 600)
console.log(this.currentText)
this.$emit('updateText', this.currentText)
},
placeCaretAtEnd(el) {
......@@ -209,7 +295,18 @@ export default {
handleInput(target) {
// 即时更新数据
this.updateData(target.innerHTML)
this.currentText = target.innerText
let htm = target.innerHTML
console.log(htm)
const list = emoji.flat(Infinity)
const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '').replaceAll('<wise id="1">@昵称</wise>', '@昵称').replaceAll('<br>', '\n')
const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
let s = list[parseInt(str.split('.')[0]) - 1]
return `[${s}]`
})
let Textnode = document.createElement('div')
Textnode.innerHTML = replaceImg
this.currentText = replaceImg.substring(0, 600)
console.log(this.currentText)
this.$emit('updateText', this.currentText)
},
handleDelete(e) {
......@@ -241,11 +338,11 @@ export default {
} else {
this.currentTagId = null
}
},
getGuid() {
return 1
// 生成随机ID
return `r${new Date().getTime()}d${Math.ceil(Math.random() * 1000)}`
// return `r${new Date().getTime()}d${Math.ceil(Math.random() * 1000)}`
},
selectHandler() {
// 监听选定文本的变动
......@@ -284,6 +381,13 @@ export default {
cursor: default;
-webkit-user-modify: read-only !important;
}
img {
width: 24px;
height: 24px;
-webkit-user-select: none;
cursor: default;
pointer-events: none;
}
.active {
background: #dcdfe6;
}
......
......@@ -45,17 +45,21 @@
<div class="btn-group">
<div class="add-btn" v-for="item in btnList" :key="item.id">
<!-- <i class="el-icon-circle-plus-outline"></i> -->
<img :src="require(`@/assets/img/guestCustom/add-${item.type}.png`)" alt />
<span>{{ item.name }}</span>
<img :src="require(`@/assets/img/guestCustom/add-${item.type}.png`)" alt v-if="item.id == 1" @click="selectEmotion" />
<img :src="require(`@/assets/img/guestCustom/add-${item.type}.png`)" v-else alt />
<span v-if="item.id == 1" @click.stop="selectEmotion">{{ item.name }}</span>
<span v-else>{{ item.name }}</span>
<input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" />
<el-link v-else style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
<el-link v-else-if="item.type == 'nickname' || item.type == 'acivity'" style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
</div>
</div>
</div>
<div v-show="emotionStatus" class="emotion-panel"><emotion class="emotion-panel-box" @emotion="handleEmotion" :height="376"></emotion></div>
<div class="tips-text">
<img src="@/assets/img/guestCustom/tips.png" class="tips-icon" alt />
<span>如在企业微信管理后台已为所选员工设置了欢迎语,则此处设置的将不生效。</span>
<span @click="selectEmotion">如在企业微信管理后台已为所选员工设置了欢迎语,则此处设置的将不生效。</span>
</div>
</div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
......@@ -71,28 +75,31 @@ const ATT_TYPE = {
FILE: 6,
ACTIVITY: 7
}
// import E from 'wangeditor'
import emoji from '@/utils/emo'
import ActivityModel from './activityModel'
import Emotion from './emotionWords'
import wTextarea from './tag-textarea'
import { utils } from 'glsx-common'
export default {
name: 'WelcomeWords',
components: {
ActivityModel,
Emotion,
wTextarea
},
props: { eventBus: Object },
data() {
return {
loading: false,
emotionStatus: false,
btnList: [
// {
// id: 1,
// name: '表情',
// funcName: '',
// type: 'expression',
// limitSize: 10
// },
{
id: 1,
name: '表情',
funcName: '',
type: 'expression',
limitSize: 10
},
{
id: 2,
name: '图片',
......@@ -140,6 +147,20 @@ export default {
this.eventBus.$emit('update', this.previewList)
},
methods: {
selectEmotion() {
this.emotionStatus = !this.emotionStatus
},
handleEmotion(i) {
this.emotionStatus = false
const list = emoji.flat(Infinity)
let index = list.indexOf(i) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
this.$refs.textContent.addImg(`https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png`)
},
updateText(val) {
this.textInput(val)
},
......@@ -303,9 +324,20 @@ export default {
this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1)
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
return `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
})
document.querySelector('.w-textarea_input').focus()
setTimeout(() => {
document.querySelector('.w-textarea_input').innerHTML = attContent
document.querySelector('.w-textarea_input').innerHTML = htm
}, 100)
}
}
......@@ -315,6 +347,14 @@ export default {
<style lang="scss" scoped>
.welcome-box {
}
.emotion-panel {
position: relative;
height: 0px;
&-box {
position: absolute;
top: -415px;
}
}
.content-bg {
background-color: #f7f7f7;
}
......
......@@ -10,6 +10,7 @@
import Vue from 'vue'
import apis from './api'
import './public-path'
import './components'
// import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup'
Vue.config.productionTip = false
......@@ -18,4 +19,5 @@ start()
export { bootstrap, mount, unmount }
from '@/setup'
export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
\ No newline at end of file
export const http_common = params => Vue.prototype.$http_common(params)
export const http_tag = params => Vue.prototype.$http_tag(params)
\ No newline at end of file
......@@ -29,6 +29,11 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/square/import.vue`], resolve),
meta: {}
}, {
name: 'customDetail',
path: '/square/customDetail',
component: resolve => require([`@/views/square/customDetail.vue`], resolve),
meta: {}
}, {
name: 'importResult',
path: '/square/importResult/:id',
component: resolve => require([`@/views/square/importResult.vue`], resolve),
......@@ -45,10 +50,20 @@ const staticRoutes = Object.freeze([{
meta: {}
}, {
name: 'config',
path: '/market/config/:id?',
path: '/market/config',
component: resolve => require([`@/views/market/config.vue`], resolve),
meta: {}
}, {
name: 'configDetail',
path: '/market/configDetail/:id?',
component: resolve => require([`@/views/market/configDetail.vue`], resolve),
meta: {}
}, {
name: 'effect',
path: '/market/effect/:id?',
component: resolve => require([`@/views/market/effect.vue`], resolve),
meta: {}
}, {
name: 'overview',
path: '/overview/index',
component: resolve => require([`@/views/overview/index.vue`], resolve),
......
......@@ -2,32 +2,33 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLTable} from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLButton from 'glsx-components/src/packages/Button'
import { GLTable, GLButton, GLFooter } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLFooter)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
import 'glsx-components/src/theme/theme.scss'
// import 'glsx-components/src/theme/theme.scss'
import 'glsx-components/dist/glsx-components.css'
import '@/assets/css/common.scss'
let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) {
const { response, request, sign, secret, request_common, sign_common } = await fetchConfig()
export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, request_common, sign_common, request_tag } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
subscribe({ messenger })
console.log(routes,routesData)
Vue.use(GLButton, { routes, routerBase})
Vue.use(GLButton, { routes, routerBase })
}
export async function mount(props) {
console.log('11111', props)
......
......@@ -17,6 +17,7 @@ const modules = modulesFiles.keys().reduce(
const value = modulesFiles(modulePath)
result.getters[moduleName] = state => state[moduleName]
result.modules[moduleName] = value.default
console.log(result)
return result
},
{ modules: {}, getters: {} }
......
const emoji = [
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'],
['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'],
['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'],
['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹'],
]
export default emoji
\ No newline at end of file
......@@ -72,6 +72,13 @@ util.getDay = function (num, str = '-') {
if (oDay.length <= 1) oDay = '0' + oDay;
return oYear + str + oMoth + str + oDay;
}
util.openUrl = function (url) {
const link = document.createElement('a')
link.href = url
link.target = '_blank'
link.rel = 'opener'
link.click()
}
util.downloadIamge = function (imgsrc, name = new Date().getTime()) {
//下载图片地址和图片名
var image = new Image();
......
......@@ -32,10 +32,11 @@
<span>{{ taggingLength }}</span>
个标签
</span>
<div class="form-tips">自动为通过该活码添加的客户打上所选标签</div>
<div class="el-input-tag input-tag-wrapper" v-show="taggingLength">
<template v-if="tagging && tagging.length > 0">
<template v-for="(item,index) in tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx,index)">
<template v-for="(item, index) in tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx, index)">
{{ tag ? tag.name : '' }}
</el-tag>
</template>
......@@ -56,6 +57,7 @@
<span>{{ staffInfo.length }}</span>
人
</span>
<div class="form-tips">客户扫码后将添加所选专员为好友,选择多名专员则按ABAB的顺序添加客户</div>
<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>
......@@ -81,16 +83,11 @@
</div>
</div>
</div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
<GLFooter
>
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</div>
</GLFooter>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
</div>
......@@ -121,6 +118,8 @@ export default {
footerLeft: 0,
footerWidth: 0,
autoWelcome: true,
editStatus: false,
previewListStart: [],
codeRules: {
codeName: [{ required: true, message: '请输入渠道名称', trigger: 'blur' }]
}
......@@ -133,18 +132,53 @@ export default {
this.tagging.forEach(item => {
this.taggingLength += item.labelList.length
})
this.editStatus = true
},
deep: true
},
addCodeForm: {
handler() {
this.editStatus = true
},
deep: true
},
staffInfo: {
handler() {
this.editStatus = true
},
deep: true
}
},
methods: {
goback() {
this.$router.push('/channel/index')
this.previewListStart.forEach(item => {
this.$refs.welcome.previewList.forEach(itm => {
if (item.attType == itm.attType) {
if (typeof item.attContent != 'object' && item.attContent != itm.attContent) {
this.editStatus = true
}
if (typeof item.attContent == 'object' && item.attContent.marketingName != itm.attContent.marketingName) {
this.editStatus = true
}
}
})
})
if (this.editStatus || (this.$refs.welcome.previewList.length > 0 && !this.codeId)) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.push('/channel/index')
})
} else {
this.$router.push('/channel/index')
}
},
removeTag(item, idx,index) {
removeTag(item, idx, index) {
item.labelList.splice(idx, 1)
if(item.labelList.length == 0) {
this.tagging.splice(index,1)
if (item.labelList.length == 0) {
this.tagging.splice(index, 1)
}
},
removeStaff(index) {
......@@ -250,22 +284,33 @@ export default {
})
this.tagging = taggingList
this.autoWelcome = res.autoWelcome ? true : false
const previewList = res.welcomeInfo.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
return item
if (res.welcomeInfo.length != 0) {
const previewList = res.welcomeInfo.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
return item
})
this.$refs.welcome.updateList(previewList)
}
this.$nextTick(() => {
this.editStatus = false
this.previewListStart = this.$common.utils.deepClone(this.$refs.welcome.previewList)
})
this.$refs.welcome.updateList(previewList)
})
}
},
// resize() {
// this.footerLeft = document.querySelector('.base-container-right').offsetLeft
// this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// }
},
// destroyed() {
// window.removeEventListener('resize', this.resize)
// },
mounted() {
const { id, codeUuid } = this.$route.params
if (id != -1) {
if (id) {
this.codeId = id
this.detailChannelCode(id, codeUuid)
}
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}
}
</script>
......
......@@ -9,12 +9,12 @@
</el-radio-group>
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="80px">
<el-form-item size="small" label="添加时间">
<el-date-picker :picker-options="pickerOptions" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<el-date-picker :picker-options="pickerOptions" @change="handleTime" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item size="small" label="渠道名称">
<el-input size="small" v-model="tableSearchForm.keyWord" placeholder="请输入渠道名称"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right;margin-left: 40px">
<el-form-item size="small" style="float: right; margin-left: 40px">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
......@@ -33,11 +33,12 @@
<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="{ background: colorList[index], }"></span>
<div class="chart-item-title" :title="item.codeName">
<span :style="{ background: colorList[index] }"></span>
{{ item.codeName }}
</div>
<div class="chart-item-num">{{ item.totalNum }}</div>
<div class="chart-item-num link-dialog" @click="handleEmpDetail(item)" v-if="item.totalNum">{{ item.totalNum }}</div>
<div class="chart-item-num" v-else>0</div>
</div>
</div>
<div>
......@@ -46,8 +47,18 @@
</div>
</div>
</div>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch"></GLTable>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
<div slot="newlyCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day', scope.scope.timeFrame)" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</div>
<div v-else>0</div>
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'status', scope.scope.timeFrame)" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div>
</div>
</GLTable>
<select-channel :colorList="colorList" ref="channelForm" @selectTable="selectTable"></select-channel>
<emp-detail ref="empDetailForm"></emp-detail>
</div>
</template>
......@@ -55,11 +66,13 @@
import utils from '@/utils/util'
import linechart from './linechart'
import selectChannel from './selectChannel'
import empDetail from './empDetail.vue'
export default {
name: 'channelStatistics',
components: {
linechart,
selectChannel
selectChannel,
empDetail
},
data() {
return {
......@@ -83,11 +96,13 @@ export default {
},
{
label: '新增客户数',
prop: 'newlyCount'
prop: 'newlyCount',
addHtml: 'newlyCount'
},
{
label: '留存客户数',
prop: 'newlyKeepCount'
prop: 'newlyKeepCount',
addHtml: 'newlyKeepCount'
},
{
label: '日期',
......@@ -106,9 +121,27 @@ export default {
colorList: ['#5850FF', '#2CCA74', '#EB4E4E', '#FF6D00', '#F8C900', '#2CCAC4', '#E74EEB', '#6F2828']
}
},
watch: {
createTime(value) {
if (value) {
// watch: {
// createTime(value) {
// if (value) {
// this.startTime = value[0]
// this.endTime = value[1]
// this.timeRadio = null
// this.trendType = null
// } else {
// this.startTime = ''
// this.endTime = ''
// this.timeRadio = 1
// this.trendType = 1
// }
// this.getFollower()
// this.codeSearch()
// }
// },
methods: {
handleTime() {
const value = this.createTime
if (value && value.length > 0) {
this.startTime = value[0]
this.endTime = value[1]
this.timeRadio = null
......@@ -121,12 +154,11 @@ export default {
}
this.getFollower()
this.codeSearch()
}
},
methods: {
},
handleTab() {
this.createTime = [];
this.trendType = this.timeRadio
this.startTime = ''
this.createTime = ''
this.endTime = ''
this.codeSearch()
this.getFollower()
......@@ -134,9 +166,12 @@ export default {
handleSearch() {
this.codeSearch()
},
handleEmpDetail(scope, value, day) {
this.$refs.empDetailForm.init(scope, value, day)
},
codeSearch() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
startTime: this.startTime,
......@@ -179,6 +214,24 @@ export default {
handleChannel() {
this.$refs.channelForm.init(this.codeIds)
},
getFollowerTotal() {
var params = {
pageSize: 1000,
pageNum: 1
}
this.$apis.channel.listChannelCodeByPage(params).then(res => {
console.log(res)
this.tableData = res.data
this.tableTotal = res.count
this.tableData.forEach(item => {
this.selectCode.forEach((itm, index) => {
if (itm.codeState == item.codeState) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
}
})
})
})
},
getFollower() {
let codeState = this.codeIds.map(item => item.codeState)
var params = {
......@@ -218,6 +271,10 @@ export default {
}
}
}
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.channel-chart {
display: flex;
.channel-chart-desc {
......@@ -248,6 +305,9 @@ export default {
line-height: 17px;
margin-top: 10px;
.chart-item-title {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
span {
vertical-align: middle;
display: inline-block;
......
<template>
<div class="square-main" v-loading="loading">
<el-dialog title="客户列表" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm" class="emp-form">
<el-form-item size="small" label="客户名称">
<el-input v-model="tableSearchForm.customerName" placeholder="请输入客户名称"></el-input>
</el-form-item>
<el-form-item size="small" label="状态" v-if="!pStatus">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="跟进员工" v-if="!staffIds">
<el-select v-model="staffId" placeholder="请选择">
<el-option v-for="item in staffName" :key="item.staffId" :label="item.staffName" :value="item.staffId"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="添加时间" v-if="timeStatus">
<el-date-picker :picker-options="pickerOptions" value-format="yyyy-MM-dd" v-model="createTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable v-loading="loading" ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
</div>
<template slot="status" slot-scope="scope">
<div class="status-form" v-if="scope.scope.status" style="color: #eb4e4e">删除好友</div>
<div class="status-form" v-else style="color: #00a854">正常</div>
</template>
<template slot="customerName" slot-scope="scope">
<div class="form-row">
<img :src="scope.scope.avatar" v-if="scope.scope.avatar">
{{ scope.scope.customerName }}
<span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span>
</div>
</template>
</GLTable>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="handleCancel" type="primary">关闭</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
export default {
name: 'selectEmp',
data() {
return {
loading: false,
dialogVisible: false,
status: '',
createTime: [],
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '正常'
},
{
value: '-1',
label: '删除好友'
}
],
tableSearchForm: {},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
align: 'left'
},
{
label: '客户性别',
prop: 'customerSex',
formatter: cellValue => {
console.log(cellValue)
return cellValue.customerSex == 1 ? '男' : '女'
},
width: '80px',
},
{
label: '状态',
prop: 'status',
addHtml: 'status',
width: '80px',
},
{
label: '跟进员工',
prop: 'followStaff',
width: '80px',
},
{
label: '添加时间',
prop: 'addTime',
},
{
label: '操作',
prop: 'optionBtns',
width: '80px',
addHtml: 'optionBtns'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [],
staffName: [],
tableTotal: 0,
selectItem: [],
selectEmp: [],
pStatus: null,
staffIds: null,
staffId: null
}
},
methods: {
jumpUrl() {
this.$history.push('/home/followUp/index')
},
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
custState: this.selectRow.codeState,
staffIds: this.staffId ? [this.staffId] : null
}
if (this.createTime && this.createTime.length > 0) {
params.beginTime = this.createTime[0]
params.endTime = this.createTime[1]
}
if (this.pStatus) {
params.status = 0
}
if (this.staffIds) {
params.staffIds = this.staffIds
}
this.loading = true
this.$apis.channel.getCustomer(params).then(res => {
this.loading = false
this.tableData = res.data
this.tableTotal = res.count
})
},
getChannelCodeStaffList() {
var params = {
pageSize: 1000,
pageNum: 1,
codeState: this.selectRow.codeState
}
this.$apis.channel.getChannelCodeStaffList(params).then(res => {
this.staffName = [{ staffName: '全部', staffId: null }].concat(res.data)
})
},
init(item, value, day) {
this.createTime = []
this.pStatus = null
this.staffIds = null
this.timeStatus = true;
if (value == 'day' && !day) {
this.createTime = [util.getDay(0), util.getDay(0)]
this.timeStatus = false
}
if (value == 'day' && day) {
if (day.indexOf('~') == -1) {
this.createTime = [day, day]
} else {
this.createTime = [day.split('~')[0], day.split('~')[1]]
}
this.timeStatus = false
}
if (value == 'status' && !day) {
this.pStatus = 'status'
}
if (value == 'status' && day) {
this.pStatus = 'status'
if (day.indexOf('~') == -1) {
this.createTime = [day, day]
} else {
this.createTime = [day.split('~')[0], day.split('~')[1]]
}
this.timeStatus = false
}
if (value == 'staffIds') {
this.staffIds = item.staffId
}
if (value == 'statusAndStaffIds') {
this.pStatus = 'status'
this.staffIds = item.staffId
}
this.selectRow = item
this.tableSearchForm = {}
this.dialogVisible = true
this.getChannelCodeStaffList()
this.$nextTick(() => {
this.$refs.table.page.pageNum = 1
this.getFollower()
})
},
handleSearch() {
this.getFollower()
},
selectionTable(val) {
this.selectItem = val
},
handleClose() {
this.handleCancel()
},
handleDetail(scope) {
this.$history.push('/custom/clientManage/clientDetail?id=' + scope.oneId)
},
handleCancel: utils.debounce(function () {
this.dialogVisible = false
}, 300)
}
}
</script>
<style lang="scss" scoped>
.dialog-jump {
color: #5850ff;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.emp-form {
/deep/ {
.el-date-editor,.el-input {
width: 215px;
}
}
}
.square-main {
/deep/ {
.el-table {
height: 35vh;
overflow-y: auto;
}
.el-form-item {
margin-right: 20px;
}
.el-table::before {
left: 0;
bottom: 0;
width: 100%;
height: 0px;
}
}
}
.form-row {
img {
width: 50px;
height: 50px;
vertical-align: middle;
}
}
</style>
\ No newline at end of file
......@@ -9,7 +9,7 @@
<div class="selected-title">已选渠道</div>
<div class="selected-panel">
<div class="selected-item" v-for="(item, index) in selectedList" :key="index">
<div>
<div :title="item.codeName">
<span :style="{ background: colorList[index]}"></span>
{{ item.codeName }}
</div>
......@@ -148,6 +148,11 @@ export default {
display: flex;
align-items: center;
justify-content: space-between;
div {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
span {
vertical-align: middle;
display: inline-block;
......
<template>
<div class="channel-main">
{{aaa}}
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="渠道码列表" name="first"></el-tab-pane>
<el-tab-pane label="数据统计" name="second"></el-tab-pane>
......@@ -10,23 +11,54 @@
</template>
<script>
import channelList from "./components/channelList";
import channelStatistics from "./components/channelStatistics";
import channelList from './components/channelList'
import channelStatistics from './components/channelStatistics'
export default {
name: "channel",
name: 'channel',
components: {
channelList,
channelStatistics,
channelStatistics
},
data() {
return {
activeName: "first",
};
activeName: 'first'
}
},
methods: {
handleClick() {},
jumpWx() {
this.$history.push('/settings/enterpriseWechat/index')
},
wxTips() {
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menu.forEach(item => {
if (!item.children) {
return
}
item.children.forEach(itm => {
if (itm.path == '/enterpriseWechat/index') {
this.$apis.channel.getStatus({}).then(res => {
if (res.status != 'SUCCESS') {
const h = this.$createElement
this.$message({
showClose: true,
duration: 0,
message: h('p', null, [h('span', null, '此功能需完成【企业微信授权】后方可使用! '), h('span', { on: { click: this.jumpWx }, style: { marginRight: '150px', cursor: 'pointer', color: '#5850ff' } }, ['企业微信授权 ', h('i', { class: 'el-icon-d-arrow-right' }, '')])])
})
}
})
}
})
})
},
handleClick() {}
},
beforeDestroy() {
this.$message.closeAll()
},
};
mounted() {
this.wxTips()
}
}
</script>
<style lang="scss" scoped>
......
......@@ -4,13 +4,13 @@
<el-button type="primary" size="small" @click="goBack">返回</el-button>
</div>
<div class="poster-body">
<div class="poster-item" @dblclick="setPoster(item)" @mouseenter="item.show = true" @mouseleave="item.show = false" v-for="(item, index) in posterList" :key="index">
<div class="poster-del" v-show="item.show" @click="handleDelete(item.id)">
<div class="poster-item" @click="setPoster(item)" @mouseenter="item.show = true" @mouseleave="item.show = false" v-for="(item, index) in posterList" :key="index">
<div class="poster-del" v-show="item.show" @click.stop="handleDelete(item.id)">
<img src="@/assets/img/del.png" />
</div>
<div class="poster-item-box" v-loading="item.loadingImg">
<img
:src="item.autoUrl"
:src="item.thumbnailUrl?item.thumbnailUrl:item.autoUrl"
class="poster-image"
v-if="item.imgWidth"
:style="{
......@@ -19,18 +19,19 @@
}"
/>
</div>
<div class="poster-item-link" @click="downloadIamge(item.autoUrl)">下载海报</div>
<div class="poster-item-link" @click.stop="downloadIamge(item.autoUrl)">下载海报</div>
</div>
<div class="poster-item">
<div class="poster-item-box">
<div>
<div class="poster-upload-image">
<img src="@/assets/img/channel/upload.png" />
<div class="poster-tips">上传海报图片,将自动配上渠道活码</div>
</div>
<el-upload action="#" class="image-uploader" :before-upload="upLoadImg">
<div class="poster-item-link">上传海报</div>
</el-upload>
<div class="poster-upload-image">
<img src="@/assets/img/channel/upload.png" />
<div class="poster-tips">上传海报图片,将自动配上渠道活码</div>
</div>
<div class="image-uploader">
<div class="poster-item-link">上传海报</div>
<input type="file" class="image-uploader" style="opacity: 0" ref="file" accept="*" @change="upLoadImg" />
</div>
</div>
</div>
</div>
......@@ -75,8 +76,8 @@
<script>
import util from '@/utils/util'
import VueDraggableResizable from '@/components/vue-draggable-resizable'
import '@/components/vue-draggable-resizable.css'
import VueDraggableResizable from '@/components/draggable/vue-draggable-resizable'
import '@/components/draggable/vue-draggable-resizable.css'
export default {
name: 'poster',
components: {
......@@ -134,8 +135,8 @@ export default {
},
enterPoster() {},
leavePoster() {},
upLoadImg(file) {
console.log(file.size / 1024 / 1000 > 5)
upLoadImg(e) {
const file = e.srcElement.files[0]
let fileName = file.name
if (file.name.lastIndexOf('.') === -1) {
this.$message.info('路径不正确')
......@@ -178,6 +179,7 @@ export default {
} else {
self.loading = false
}
self.$refs.file.value = '';
})
}
}
......@@ -230,7 +232,7 @@ export default {
listChannelCodeBill.forEach(item => {
item.show = false
item.loadingImg = true
let backUrl = item.autoUrl
let backUrl = item.thumbnailUrl?item.thumbnailUrl: item.autoUrl
this.backUrl = backUrl
let img = new Image()
img.src = backUrl
......@@ -274,8 +276,16 @@ export default {
min-height: calc(100% - 30px);
}
.image-uploader {
display: inline-block;
height: 20px;
position: relative;
cursor: pointer;
.poster-item-link {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
margin: 0 auto !important;
text-align: center;
}
/deep/ {
.el-upload-list {
display: none;
......@@ -344,6 +354,7 @@ export default {
font-weight: 400;
color: #999999;
line-height: 20px;
margin-bottom: 20px;
img {
width: 90px;
height: auto;
......
......@@ -34,12 +34,14 @@
<div class="count-panel">
<div class="count-panel-item">
<div class="count-item-title">今日新增客户</div>
<div class="count-item-num">{{ detailCodeForm.yesTodayAddCount }}人</div>
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm,'day')" v-if="detailCodeForm.yesTodayAddCount">{{ detailCodeForm.yesTodayAddCount }}人</div>
<div class="count-item-num2" v-else>0人</div>
<img src="@/assets/img/channel/count3.png" class="count-item-icon" />
</div>
<div class="count-panel-item">
<div class="count-item-title">总新增客户</div>
<div class="count-item-num">{{ detailCodeForm.newlyCount }}人</div>
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm)" v-if="detailCodeForm.newlyCount">{{ detailCodeForm.newlyCount }}人</div>
<div class="count-item-num2" v-else>0人</div>
<img src="@/assets/img/channel/count2.png" class="count-item-icon" />
</div>
<div class="count-panel-item">
......@@ -49,7 +51,8 @@
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
<div class="count-item-num">{{ detailCodeForm.newlyKeepCount }}人</div>
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm,'status')" v-if="detailCodeForm.newlyKeepCount">{{ detailCodeForm.newlyKeepCount }}人</div>
<div class="count-item-num2" v-else>0人</div>
<img src="@/assets/img/channel/count1.png" class="count-item-icon" />
</div>
</div>
......@@ -58,14 +61,35 @@
<el-tab-pane label="按日期查看" name="1"></el-tab-pane>
<el-tab-pane label="按成员查看" name="2"></el-tab-pane>
</el-tabs>
<GLTable v-show="activeName == 1" ref="timeTable" :tableData="getTimeApi" :tableParams="tableParams" :hasNum="false" :hasPage="false"></GLTable>
<GLTable v-show="activeName == 2" @refreshTable="listStaff" :layout="layout" :tableTotal="tableTotal" ref="memberTabel" :tableData="getMemberApi" :tableParams="tableMemberParams" :pageConf="pageMemberConf" :hasNum="false"></GLTable>
<GLTable v-show="activeName == 1" ref="timeTable" :tableData="getTimeApi" :tableParams="tableParams" :hasNum="false" :hasPage="false">
<div slot="newlyCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day', scope.scope.dayTime)" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</div>
<div v-else>0</div>
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'status', scope.scope.dayTime)" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div>
</div>
</GLTable>
<GLTable v-show="activeName == 2" @refreshTable="listStaff" :layout="layout" :tableTotal="tableTotal" ref="memberTabel" :tableData="getMemberApi" :tableParams="tableMemberParams" :pageConf="pageMemberConf" :hasNum="false">
<div slot="newlyCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope,'staffIds')" v-if="scope.scope.newlyCount">{{ scope.scope.newlyCount }}</div>
<div v-else>0</div>
</div>
<div slot="newlyKeepCount" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope,'statusAndStaffIds')" v-if="scope.scope.newlyKeepCount">{{ scope.scope.newlyKeepCount }}</div>
<div v-else>0</div>
</div>
</GLTable>
<emp-detail ref="empDetailForm"></emp-detail>
</div>
</template>
<script>
import empDetail from './components/empDetail.vue'
export default {
name: 'store',
components: { empDetail },
data() {
return {
activeName: '1',
......@@ -79,11 +103,13 @@ export default {
tableColumns: [
{
label: '新增客户数',
prop: 'newlyCount'
prop: 'newlyCount',
addHtml: 'newlyCount'
},
{
label: '留存客户数',
prop: 'newlyKeepCount'
prop: 'newlyKeepCount',
addHtml: 'newlyKeepCount'
},
{
label: '日期',
......@@ -101,11 +127,13 @@ export default {
},
{
label: '新增客户数',
prop: 'newlyCount'
prop: 'newlyCount',
addHtml: 'newlyCount'
},
{
label: '留存客户数',
prop: 'newlyKeepCount'
prop: 'newlyKeepCount',
addHtml: 'newlyKeepCount'
},
{
label: '日期',
......@@ -127,6 +155,9 @@ export default {
goback() {
this.$router.push('/channel/index')
},
handleEmpDetail(scope,status,day) {
this.$refs.empDetailForm.init(scope,status,day)
},
detailChannelCode(id, codeUuid) {
let param = {
id,
......@@ -199,6 +230,10 @@ export default {
</script>
<style lang="scss" scoped>
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.channel-main {
padding: 20px;
.remark-row {
......@@ -306,6 +341,17 @@ export default {
color: #333333;
line-height: 26px;
margin-top: 28px;
display: inline-block;
cursor: pointer;
text-decoration: underline;
}
.count-item-num2 {
font-size: 26px;
font-weight: 600;
color: #333333;
line-height: 26px;
margin-top: 28px;
display: inline-block;
}
.count-item-icon {
position: absolute;
......
......@@ -13,10 +13,7 @@
</div>
</div>
<div class="config-title">
<span v-if="!editStatus && !configType" @click="editStatus = true">
<label>编辑配置</label>
<i class="el-icon-edit-outline"></i>
</span>
<el-button type="primary" icon="el-icon-edit-outline" size="small" v-if="!editStatus && !configType" @click="editStatus = true">编辑配置</el-button>
</div>
<div class="config-market" v-if="configType">
<div class="config-market-item checked">
......@@ -304,7 +301,7 @@ export default {
if (res) {
this.configItem = res
this.addValue = res.delFlag == 0 ? true : false
this.staffIds = res.staffIds?eval(res.staffIds):[]
this.staffIds = res.staffIds ? eval(res.staffIds) : []
}
})
},
......@@ -326,12 +323,18 @@ export default {
this.findConfig(1)
this.configType = false
}
},
resize() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.resize()
this.init()
window.addEventListener('resize', () => {
this.resize()
})
}
}
</script>
......@@ -454,6 +457,7 @@ export default {
color: #5850ff;
line-height: 40px;
height: 40px;
margin: 8px 0px;
span {
cursor: pointer;
}
......
<template>
<div>
<div class="form-panel scrm-box-f">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
<el-row>
<el-form-item size="small" label="手机号">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入手机号"></el-input>
</el-form-item>
<el-form-item size="small" label="发送状态" style="margin-left: 20px">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="客户姓名" style="margin-left: 20px">
<el-input size="small" v-model="tableSearchForm.customerName" placeholder="请输入客户姓名"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
</div>
</div>
</template>
<script>
import util from '@/utils/util'
export default {
name: 'customList',
data() {
return {
loading: false,
tableSearchForm: {},
tableData: [],
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '未发送'
},
{
value: '1',
label: '已发送'
}
],
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '手机号',
prop: 'phone'
},
{
label: '客户姓名',
prop: 'customerName'
},
{
label: '发送状态',
prop: 'statusName'
},
{
label: '发送时间',
prop: 'sendTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '140px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableTotal: 0,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }
}
},
methods: {
handleDetail(scope) {
this.$alert(scope.content, { center: true })
},
handleSearch() {
this.listChannelCodeByPage()
},
handleReset() {
this.tableSearchForm = {}
this.listChannelCodeByPage()
},
listChannelCodeByPage() {
const { id } = this.$route.params
const params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
id
}
this.loading = true
this.$apis.marketing.customerPage(params).then(res => {
this.loading = false
if (res) {
this.tableData = res.data
this.tableData.forEach(item => {
this.$set(item, 'taggingList', [])
const tagging = eval(item.tagging)
if (tagging && tagging.length > 0) {
tagging.forEach(itm => {
let name = itm.name.split(',')
name.forEach((tag, index) => {
item.taggingList.push({ name: tag })
})
})
}
})
this.tableTotal = res.count
}
})
}
},
mounted() {
this.listChannelCodeByPage()
}
}
</script>
<style>
.el-popover {
max-width: 800px;
}
</style>
<style lang="scss" scoped>
.popover-panel {
width: 1000px;
}
.form-header {
margin-bottom: 20px;
}
.form-panel {
padding: 20px;
margin-bottom: 60px;
/deep/ .el-popover {
max-width: 1000px;
}
}
.download-link {
cursor: pointer;
margin-top: 6px;
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
}
.codeRemark {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
.tag-panel {
.tag-item {
border-radius: 4px;
border: 1px solid #e8e8ea;
display: inline-block;
padding: 4px 6px;
margin-right: 3px;
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;
}
}
}
}
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.accountType-row {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666;
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
i {
color: #75acff;
margin-right: 3px;
}
// &::before {
// content: '';
// position: absolute;
// width: 6px;
// height: 6px;
// background: #5850ff;
// border-radius: 8px;
// left: 0px;
// top: 7px;
// }
}
</style>
\ No newline at end of file
......@@ -8,12 +8,8 @@
>
<div class="model-panel">
<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-tabs>
<el-input v-model="keyword" placeholder="请输入关键字" width="215px" size="small"></el-input>
<el-button type="primary" @click="handleSearch" size="small">查询</el-button>
</div>
<div class="model-item-panel" v-if="modelList.length>0" v-loading="loading">
<div class="model-item" v-for="(item, index) in modelList" :key="index">
......@@ -57,6 +53,7 @@ export default {
name: "activityModel",
data() {
return {
keyword: '',
dialogVisible: false,
loading: false,
activeName: "1",
......@@ -69,6 +66,7 @@ export default {
},
methods: {
init() {
this.keyword = '';
this.messageRadio = {};
this.dialogVisible = true;
this.dracImMessage();
......@@ -85,7 +83,7 @@ export default {
let params = {
pageSize: this.pageSize,
pageNum: this.pageNum,
type: this.activeName,
keyword: this.keyword
};
this.$apis.marketing.dracImMessage(params).then((res) => {
this.messageRadio = {};
......@@ -94,6 +92,9 @@ export default {
this.loading = false;
});
},
handleSearch() {
this.dracImMessage();
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
},
......@@ -117,8 +118,9 @@ export default {
line-height: 24px;
}
/deep/ {
.el-checkbox:last-of-type {
margin-right: 8px;
.el-input,.el-input__inner {
width: 320px;
margin-right: 20px;
}
.el-tabs__nav {
border: 0;
......
......@@ -7,12 +7,13 @@
<label>客户信息</label>
<div class="upload-box">
<div class="upload-file-panel">
<el-upload action="" class="image-uploader" :before-upload="uploadFile">
<div class="image-uploader">
<div class="upload-btn">
<i class="el-icon-upload2"></i>
上传文件
</div>
</el-upload>
<input type="file" style="opacity: 0" ref="file" accept="*" @change="uploadFile" />
</div>
<a class="download-url" href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/客户信息导入模板.xlsx">下载导入模版</a>
</div>
<div class="upload-tips" v-if="importName">{{ importName }}</div>
......@@ -50,13 +51,19 @@
<div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<el-form-item label="自动打标签">
<div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666">
自动打标签
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<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" v-if="taggingLength">
<template v-for="(item,index) in tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx,index)">
<template v-for="(item, index) in tagging">
<el-tag type="info" v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item, idx, index)">
{{ tag.name }}
</el-tag>
</template>
......@@ -70,12 +77,17 @@
</div>
</template>
</div>
</el-form-item>
</div>
</el-form>
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<label class="is-require">跟进员工</label>
<label class="is-require">
跟进员工
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<div style="position: relative">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
......@@ -92,7 +104,12 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<label>跟进员工</label>
<label>
跟进员工
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<div class="drainage-emp">
<div :key="index" v-for="(item, index) in dracImFollowStaffResponses">
<i class="el-icon-user-solid"></i>
......@@ -194,6 +211,13 @@ import welcomeWords from '@/components/welcome/welcomeWords.vue'
import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag'
import messageModel from './components/messageModel'
const validateTime = (rule, value, callback) => {
if ((new Date(`2000-1-1 ${value[1]}`).getTime() - new Date(`2000-1-1 ${value[0]}`).getTime()) / (1000 * 60) < 120) {
callback(new Error('因营销类短信内容需人工审核,建议预留2小时的营销时长。'))
} else {
callback()
}
}
export default {
name: 'config',
components: {
......@@ -215,6 +239,7 @@ export default {
importName: null,
exportUrl: null,
editStatus: true,
saveStatus: false,
importStatus: false,
ExportDracImResponse: {},
footerLeft: 0,
......@@ -222,7 +247,7 @@ export default {
addForm: {
desc: '',
content: '',
time: ''
time: ['9:00:00', '18:00:00']
},
content: [],
editId: null,
......@@ -235,7 +260,10 @@ export default {
dracImMessageConfigAddRequest: {},
ModelItem: {},
addRules: {
time: [{ required: true, message: '请选择营销时间', trigger: 'change' }],
time: [
{ required: true, message: '请选择营销时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' }
],
content: [{ required: true, message: '请选择短信模板', trigger: 'change' }]
}
}
......@@ -253,12 +281,43 @@ export default {
}
}
},
importName: {
handler() {
this.saveStatus = true
},
deep: true
},
imName: {
handler() {
this.saveStatus = true
},
deep: true
},
autoWelcome: {
handler() {
this.saveStatus = true
},
deep: true
},
addForm: {
handler() {
this.saveStatus = true
},
deep: true
},
tagging: {
handler: function () {
this.taggingLength = 0
this.tagging.forEach(item => {
this.taggingLength += item.labelList.length
})
this.saveStatus = true
},
deep: true
},
dracImFollowStaffResponses: {
handler() {
this.saveStatus = true
},
deep: true
}
......@@ -271,7 +330,18 @@ export default {
this.importStatus = false
},
handleCancel() {
this.$router.push('/market/index')
console.log(this.saveStatus)
if (this.saveStatus || (this.$refs.welcome.previewList.length > 0 && this.editStatus)) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.push('/market/index')
})
} else {
this.$router.push('/market/index')
}
},
selectItem(item) {
this.messageItem = item
......@@ -280,7 +350,8 @@ export default {
tagSelected(item) {
this.tagging = item
},
uploadFile(file) {
uploadFile(e) {
const file = e.srcElement.files[0]
let AllImgExt = '.xls|.xlsx'
let extName = file.name.substring(file.name.lastIndexOf('.')).toLowerCase()
console.log(extName)
......@@ -297,6 +368,7 @@ export default {
this.$apis.common.pictureUpload({ file: fileUrl }).then(res => {
this.importName = file.name
this.exportUrl = res
this.$refs.file.value = ''
this.handleSaveImport()
})
}
......@@ -323,9 +395,9 @@ export default {
console.log(this.ModelItem)
},
handleSaveImport() {
this.loading = true;
let params;
let config;
this.loading = true
let params
let config
if (this.editId) {
config = 'exportUpdate'
params = {
......@@ -361,7 +433,6 @@ export default {
this.empStatus = true
return
}
this.loading = true;
this.$refs['configForm'].validate(valid => {
if (valid) {
let startTime, endTime
......@@ -422,7 +493,7 @@ export default {
})
params.welcomeInfo = attachmentList
}
this.loading = true
this.$apis.marketing[config](params).then(res => {
this.loading = false
if (res) {
......@@ -478,6 +549,9 @@ export default {
}
})
this.tagging = taggingList
this.$nextTick(() => {
this.saveStatus = false
})
})
}
},
......@@ -485,7 +559,7 @@ export default {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
let { id } = this.$route.params
if (id != -1) {
if (id) {
this.editId = id
this.findById(id)
this.editStatus = false
......@@ -508,7 +582,7 @@ export default {
}
.welcome-panel {
margin: 10px;
padding: 0px 20px 20px;
padding: 0px 42px 20px;
.welcome-switch {
margin-bottom: 20px;
label {
......@@ -550,7 +624,16 @@ export default {
.image-uploader {
display: inline-block;
margin-bottom: 6px;
height: 20px;
width: 100px;
position: relative;
input {
cursor: pointer;
position: absolute;
top: 0px;
width: 100%;
height: 100%;
font-size: 0px;
}
/deep/ {
.el-upload-list {
display: none;
......@@ -682,6 +765,12 @@ export default {
margin-right: 20px;
height: 36px;
line-height: 36px;
img {
width: 14px;
height: 14px;
vertical-align: middle;
margin-left: 5px;
}
&.is-require {
&::before {
content: '*';
......
<template>
<div class="channel-main">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="营销配置" name="first"></el-tab-pane>
<el-tab-pane label="客户列表" name="second"></el-tab-pane>
</el-tabs>
<component :is="activeName == 'first'?configInfo:customList"></component>
<GLFooter
>
<el-button type="primary" @click="goback">返回</el-button>
</GLFooter>
</div>
</template>
<script>
import configInfo from "./components/configInfo";
import customList from "./components/customList";
export default {
name: "config",
components: {
configInfo,
customList,
},
data() {
return {
activeName: "first",
customList: 'customList',
configInfo: 'configInfo'
};
},
methods: {
goback() {
this.$router.push('/market/index')
},
},
};
</script>
<style lang="scss" scoped>
.channel-main {
/deep/ {
.el-tabs__nav-wrap::after {
height: 0px;
}
}
}
</style>
\ No newline at end of file
<template>
<div class="form-panel scrm-box-f">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
<el-form-item size="small" label="客户名称">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入客户名称"></el-input>
</el-form-item>
<el-form-item size="small" label="手机号">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入手机号"></el-input>
</el-form-item>
<el-form-item size="small" label="领取状态">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button type="primary" @click="handleSearch">导出</el-button>
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">客户详情</el-button>
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
</div>
</template>
<script>
export default {
name: 'effect',
data() {
return {
totalCount: 0,
percentage: 0,
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '未发送'
},
{
value: '1',
label: '已发送'
}
],
tableSearchForm: {},
getListApi: this.$apis.overview.findAllMessageByPage,
tableParams: {
mutiSelectUniqueKey: 'id',
mutiSelectName: 'emp',
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '客户名称',
prop: 'phone'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '是否加企微',
prop: 'phone'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '跟进员工',
prop: 'statusName'
},
{
label: '领取状态',
prop: 'phone'
},
{
label: '领取时间',
prop: 'sendTime'
},
{
label: '核销状态',
prop: 'phone'
},
{
label: '核销时间',
prop: 'sendTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '160px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: []
}
}
},
methods: {
findMessageStatic() {
this.$apis.overview.findMessageStatic({}).then(res => {
this.totalCount = res.totalCount
this.percentage = res.percentage
})
},
handleReset() {
this.tableSearchForm = {}
this.handleSearch()
},
handleSearch() {
this.$refs.employeeRef.refreshTable()
},
handleDetail(scope) {
this.$alert(scope.content, { center: true })
}
},
mounted() {
this.findMessageStatic()
}
}
</script>
<style lang="scss" scoped>
.form-header {
margin-bottom: 20px;
}
.form-panel {
padding: 20px;
.statistics-panel {
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;
color: #424242;
line-height: 22px;
img {
width: 14px;
height: 14px;
margin-left: 10px;
margin-top: 4px;
}
}
.circle-box {
margin: 20px 0px;
display: flex;
align-items: center;
.circle-box-item {
margin-left: 10px;
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.65);
line-height: 22px;
.circle-item-num {
font-size: 22px;
font-weight: 600;
color: #333333;
line-height: 30px;
}
}
}
}
}
}
</style>
\ No newline at end of file
<template>
<div class="square-main">
<div class="square-main-header">
<el-button type="primary" size="small" @click="addConfig">
<GLButton type="primary" size="small" @click="addConfig" fn="新增营销">
<i class="el-icon-plus"></i>
新增营销
</el-button>
</GLButton>
<!-- <GLButton type="primary" @click="addConfig" size="small" fn="新增" mode="el-button">新增营销</GLButton> -->
<label>结合门店营销活动,指定客户创建智能营销,提高活动转化率</label>
......@@ -33,7 +33,8 @@
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button :disabled="scope.scope.imStatus!=1" type="text" @click="handleDetail(scope.scope)">营销配置</el-button>
<GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">查看配置</GLButton>
<!-- <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleStatistics(scope.scope)" fn="营销统计">营销统计</GLButton> -->
</div>
</GLTable>
</div>
......@@ -93,12 +94,13 @@ export default {
},
{
label: '创建人',
prop: 'createdName'
prop: 'createdName',
width: '220px'
},
{
label: '操作',
prop: 'optionBtns',
width: '100px',
width: '180px',
addHtml: 'optionBtns',
fixed: 'right'
}
......@@ -134,10 +136,13 @@ export default {
},
handleImport() {},
addConfig() {
this.$router.push('/market/config/-1')
this.$router.push('/market/config')
},
handleDetail(scope) {
this.$router.push('/market/config/' + scope.id)
this.$router.push('/market/configDetail/' + scope.id)
},
handleStatistics(scope) {
this.$router.push('/market/effect/' + scope.id)
}
}
}
......
<template>
<div class="square-main">
<div class="drainage-wrap scrm-box-f">
<div class="drainage-title">指定客户</div>
<div class="drainage-title">指定客户1</div>
<div class="drainage-form">
<div class="drainage-form-item">
<label>客户信息</label>
<label>客户信息1</label>
<div class="upload-box">
<div class="upload-file-panel">
<el-upload action="" class="image-uploader" :before-upload="uploadFile">
......@@ -27,6 +27,9 @@
<div class="drainage-form">
<div class="drainage-form-item" v-if="editStatus">
<label class="is-require">跟进员工</label>
<el-popover placement="top" width="400" trigger="hover" content="通过导入的客户,门店可通过智能外呼及智能短信,结合营销活动的需要向离店用户进行智能营销,可实现标准、高效的营销同时实现用户线上化。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
<div>
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
......@@ -321,11 +324,17 @@ export default {
this.addForm.content = res.dracImMessageConResponse.content
this.tagging = eval(res.tagging)
})
},
resize() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.resize();
window.addEventListener('resize', () => {
this.resize()
})
let { id } = this.$route.params
if (id != -1) {
this.editId = id
......
<template>
<div class="square-main">
<div class="square-main-header">
<el-button type="primary" size="small" @click="addConfig">
<GLButton type="primary" size="small" @click="addConfig" fn="新增营销">
<i class="el-icon-plus"></i>
新增营销
</el-button>
</GLButton>
<label>结合门店营销活动,指定客户创建智能营销,提高活动转化率</label>
<el-popover placement="top" width="400" trigger="hover" content="通过导入的客户,门店可通过智能外呼及智能短信,结合营销活动的需要向离店用户进行智能营销,可实现标准、高效的营销同时实现用户线上化。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
......@@ -31,7 +31,7 @@
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">营销配置</el-button>
<GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">营销配置</GLButton>
</div>
</GLTable>
</div>
......@@ -54,12 +54,8 @@ export default {
label: '待处理'
},
{
value: '2',
label: '处理中'
},
{
value: '3',
label: '已处理'
label: '已完成'
}
],
pickerOptions: {
......
......@@ -3,30 +3,30 @@
</template>
<script>
import * as echarts from "echarts";
import * as echarts from 'echarts'
export default {
name: "echartCircle",
name: 'echartCircle',
props: {
coustomId: {
type: String,
default: "",
default: ''
},
bgColor1: {
type: String,
default: "",
default: ''
},
bgColor2: {
bgColor2: {
type: String,
default: "",
default: ''
},
coustomCount: {
type: String,
},
type: String
}
},
data() {
return {};
return {}
},
watch: {
coustomCount() {
......@@ -35,33 +35,33 @@ export default {
},
methods: {
getEchart() {
const chartDom = document.getElementById(this.coustomId);
const myChart = echarts.init(chartDom);
let option;
const chartDom = document.getElementById(this.coustomId)
const myChart = echarts.init(chartDom)
let option
option = {
series: [
{
type: "pie",
radius: ["40%", "70%"],
type: 'pie',
radius: ['40%', '70%'],
hoverAnimation: false,
avoidLabelOverlap: false,
color: [this.bgColor1, this.bgColor2],
label: {
show: false,
position: "center",
position: 'center'
},
labelLine: {
show: false,
show: false
},
data: [{ value: 100 }, { value: this.coustomCount}],
},
],
};
data: [{ value: 100 - this.coustomCount }, { value: this.coustomCount }]
}
]
}
option && myChart.setOption(option);
},
option && myChart.setOption(option)
}
}
};
}
</script>
<style lang="scss" scoped>
......
<template>
<div>
<div id="channel-main" class="chart-line" v-show="lineStatus"></div>
<div class="chart-line-empty" v-show="!lineStatus">
<div id="channel-main" class="chart-line" v-show="lineStatus"></div>
<div class="chart-line-empty" v-show="!lineStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
</div>
......@@ -27,6 +27,12 @@ export default {
let notAddEntMicroCount = lineData.map(item => {
return item.notAddEntMicroCount
})
const lengthC = entMicroCount.length - 1
if (notAddEntMicroCount.every(item => item == 0) && entMicroCount.every(item => item == 0)) {
this.lineStatus = false
return
}
this.lineStatus = true
let dateTime = lineData.map(item => {
return item.dayTime
})
......@@ -54,13 +60,13 @@ export default {
},
dataZoom: [
{
type: 'inside',
startValue: 0,
endValue: 29
startValue: lengthC-29,
endValue: lengthC
},
{
startValue: 0,
endValue: 29
type: 'inside',
startValue: lengthC-29,
endValue: lengthC
}
],
xAxis: {
......@@ -70,7 +76,7 @@ export default {
},
yAxis: {
type: 'value',
minInterval: 1,
minInterval: 1
},
series: [
{
......@@ -88,12 +94,7 @@ export default {
]
}
option && myChart.setOption(option)
if(notAddEntMicroCount.every(item => item == 0) && entMicroCount.every(item => item == 0)) {
this.lineStatus = false
}else {
this.lineStatus = true
}
option && myChart.setOption(option)
}
}
}
......
......@@ -172,7 +172,7 @@ export default {
}
.store-item-s {
width: 33.33%;
padding: 30px 20px;
padding: 30px 15px;
.store-item-title {
font-size: 20px;
font-weight: 600;
......@@ -205,9 +205,7 @@ export default {
}
}
.user-panel {
display: flex;
&-line {
flex: 1;
padding: 20px;
.echart-title {
font-size: 20px;
......
<template>
<div class="form-panel scrm-box-f">
<div class="form-header"><el-button type="primary" size="small" @click="goback">返回</el-button></div>
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
<el-form-item size="small" label="客户名称">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入客户名称"></el-input>
</el-form-item>
<el-form-item size="small" label="电话号码">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入电话号码"></el-input>
</el-form-item>
<el-form-item size="small" label="是否添加企微">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-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>
<el-form-item size="small" style="float: right; margin-right: 0px">
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">导出</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">客户详情</el-button>
</div>
</GLTable>
</div>
</template>
<script>
export default {
name: 'customDetail',
data() {
return {
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
createTime: '',
totalCount: 0,
percentage: 0,
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '是'
},
{
value: '1',
label: '否'
}
],
tableSearchForm: {},
getListApi: this.$apis.overview.findAllMessageByPage,
tableParams: {
mutiSelectUniqueKey: 'id',
mutiSelectName: 'emp',
listName: 'data',
tableOption: false,
otherOptions: {
label: '启用开关'
},
tableColumns: [
{
label: '客户名称',
prop: 'phone'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '性别',
prop: 'phone'
},
{
label: '是否加企微',
prop: 'statusName'
},
{
label: '来源',
prop: 'sendTime',
align: 'left'
},
{
label: '跟进员工',
prop: 'phone'
},
{
label: '首次添加企微',
prop: 'sendTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '140px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: []
}
}
},
watch: {
createTime(value) {
if (value) {
this.tableSearchForm.startTime = value[0] + ' 00:00:00'
this.tableSearchForm.endTime = value[1] + ' 23:59:59'
} else {
delete this.tableSearchForm.startTime
delete this.tableSearchForm.endTime
}
}
},
methods: {
findMessageStatic() {
this.$apis.overview.findMessageStatic({}).then(res => {
this.totalCount = res.totalCount
this.percentage = res.percentage
})
},
goback() {
this.$router.go('-1')
},
handleReset() {
this.tableSearchForm = {}
this.handleSearch()
},
handleSearch() {
this.$refs.employeeRef.refreshTable()
},
handleDetail(scope) {
this.$alert(scope.content, { center: true })
}
},
mounted() {
this.findMessageStatic()
}
}
</script>
<style lang="scss" scoped>
.form-header {
margin-bottom: 20px;
}
.form-panel {
padding: 20px;
.follow-form-item {
/deep/ {
.el-form-item {
margin-right: 20px;
}
.el-input__inner {
width: 215px;
}
}
}
}
</style>
\ No newline at end of file
......@@ -10,10 +10,7 @@
</div>
</div>
<div class="config-title">
<span v-if="!editStatus" @click="editStatus = true">
<label>编辑配置</label>
<i class="el-icon-edit-outline"></i>
</span>
<el-button type="primary" icon="el-icon-edit-outline" size="small" v-if="!editStatus" @click="editStatus = true">编辑配置</el-button>
</div>
<div class="config-market">
<div class="config-market-item checked">
......@@ -79,7 +76,7 @@
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<el-form-item size="small" label="营销时间" prop="time">
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm" format="HH:mm" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item label="短信内容" prop="content">
<el-input :disabled="!editStatus" type="textarea" v-model="addForm.content" rows="5" maxlength="280" show-word-limit></el-input>
......@@ -91,7 +88,14 @@
<div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<el-form-item label="自动打标签">
<div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666">
自动打标签
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<div class="tag-item-panel" v-if="editStatus">
<div>
<el-button size="small" @click="handleAddTag">添加</el-button>
......@@ -111,12 +115,17 @@
</div>
</template>
</div>
</el-form-item>
</div>
</el-form>
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<label class="is-require">跟进员工</label>
<label class="is-require">
跟进员工
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<div style="position: relative">
<el-button size="small" @click="handleAddEmp">
<i class="el-icon-plus"></i>
......@@ -133,7 +142,12 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<label>跟进员工</label>
<label>
跟进员工
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</label>
<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>
......@@ -193,17 +207,11 @@
</div>
</div>
</div>
<div
class="footer-panel"
v-if="editStatus"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
<GLFooter
>
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button type="primary" @click="handleSave" v-if="editStatus">提交</el-button>
<el-button @click="goback">取消</el-button>
</div>
</GLFooter>
<select-emp ref="selectEmpForm" @selectTable="selectTable"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
<message-model ref="selectMessageForm" @selectItem="selectItem"></message-model>
......@@ -278,6 +286,13 @@ import welcomeWords from '@/components/welcome/welcomeWords.vue'
import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag'
import messageModel from '../market/components/messageModel'
const validateTime = (rule, value, callback) => {
if ((new Date(`2000-1-1 ${value[1]}`).getTime() - new Date(`2000-1-1 ${value[0]}`).getTime()) / (1000 * 60) < 120) {
callback(new Error('因营销类短信内容需人工审核,建议预留2小时的营销时长。'))
} else {
callback()
}
}
export default {
name: 'drainage',
components: {
......@@ -292,6 +307,7 @@ export default {
eventBus: new Vue(),
autoWelcome: true,
editStatus: false,
saveStatus: false,
footerLeft: 0,
footerWidth: 0,
taggingLength: 0,
......@@ -305,14 +321,18 @@ export default {
tagging: [],
templateId: ''
},
previewListStart: [],
content: [],
dialogVisible: false,
addValue: false,
empStatus: false,
value1: false,
dracImFollowStaffResponses: [{ codeId: null, imId: 5, staffId: 366, staffName: 'fddfdf' }],
dracImFollowStaffResponses: [],
addRules: {
time: [{ required: true, message: '请选择营销时间', trigger: 'change' }],
time: [
{ required: true, message: '请选择营销时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' }
],
content: [{ required: true, message: '请选择短信模板', trigger: 'change' }]
}
}
......@@ -342,6 +362,18 @@ export default {
}
},
deep: true
},
addForm: {
handler() {
this.saveStatus = true
},
deep: true
},
autoWelcome: {
handler() {
this.saveStatus = true
},
deep: true
}
},
methods: {
......@@ -394,7 +426,32 @@ export default {
.catch(() => {})
},
goback() {
this.$router.push('/square/index')
this.previewListStart.forEach(item => {
this.$refs.welcome.previewList.forEach(itm => {
if (item.attType == itm.attType) {
if (typeof item.attContent != 'object' && item.attContent != itm.attContent) {
this.saveStatus = true
}
if (typeof item.attContent == 'object' && item.attContent.marketingName != itm.attContent.marketingName) {
this.saveStatus = true
}
}
})
})
if (this.previewListStart.length == 0 && this.$refs.welcome.previewList.length > 0) {
this.saveStatus = true
}
if (this.saveStatus) {
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.go(-1)
})
} else {
this.$router.go(-1)
}
},
//开关
handleSwitch() {
......@@ -454,7 +511,7 @@ export default {
console.log(item.attContent)
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
} else if (item.attType == 7 && item.attContent) {
item.attContent = JSON.stringify(item.attContent)
}
return item
......@@ -483,7 +540,7 @@ export default {
this.editStatus = false
this.$apis.marketing.findConfig({ configType: 3 }).then(res => {
if (res) {
if(!res.staffIds) {
if (!res.staffIds) {
this.addForm.id = res.id
this.addForm.content = ''
return
......@@ -526,13 +583,15 @@ export default {
})
this.$refs.welcome.updateList(previewList)
}
this.$nextTick(() => {
this.saveStatus = false
this.previewListStart = this.$common.utils.deepClone(this.$refs.welcome.previewList)
})
}
})
}
},
},
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.findConfig()
}
}
......@@ -552,7 +611,7 @@ export default {
}
.welcome-panel {
margin: 10px;
padding: 0px 20px 20px;
padding: 0px 42px 20px;
.welcome-switch {
margin-bottom: 20px;
label {
......@@ -765,6 +824,11 @@ export default {
margin-right: 20px;
height: 36px;
line-height: 36px;
img {
width: 14px;
height: 14px;
vertical-align: middle;
}
&.is-require {
&::before {
content: '*';
......@@ -905,6 +969,7 @@ export default {
color: #5850ff;
line-height: 40px;
height: 40px;
margin: 8px 0px;
span {
cursor: pointer;
}
......
......@@ -54,13 +54,14 @@
</div>
</div>
<div class="safe-upload-panel" id="drop_area">
<el-upload action="" class="image-uploader" :before-upload="uploadFile">
<div class="image-uploader">
<input type="file" style="opacity: 0" ref="file" accept="*" @change="changeInput" />
<div class="safe-upload-icon"><i class="el-icon-tickets"></i></div>
</el-upload>
</div>
<div class="safe-upload-tips">点击或将文件拖拽到这里{{ importName ? '重新' : '' }}上传</div>
<div class="safe-upload-xl" v-if="importName">{{ importName }}</div>
<div class="safe-upload-xl">支持扩展名:.xls .xlsl</div>
<div class="safe-upload-xl">支持扩展名:.xls .xlsx</div>
<div class="safe-upload-link" @click="downloadModel">下载模版</div>
</div>
<div class="safe-upload-footer">
......@@ -141,14 +142,16 @@ export default {
this.$refs.carousel.handleMouseEnter = () => {}
},
goBack() {
this.$router.push('/square/index')
this.$router.go(-1)
},
downloadModel() {
this.$apis.square.downloadModel({}).then(res => {
const link = document.createElement('a')
link.setAttribute('href', res) //设置下载文件的url地址
//link.setAttribute('download', 'download'); //用于设置下载文件的文件名
link.click()
if (res) {
const link = document.createElement('a')
link.setAttribute('href', res) //设置下载文件的url地址
//link.setAttribute('download', 'download'); //用于设置下载文件的文件名
link.click()
}
})
},
enentDrop(e) {
......@@ -163,6 +166,9 @@ export default {
console.log(fileData[1])
this.uploadFile(fileData[0])
},
changeInput(e) {
this.uploadFile(e.target.files[0])
},
uploadFile(e) {
let AllImgExt = '.xls|.xlsx'
let extName = e.name.substring(e.name.lastIndexOf('.')).toLowerCase()
......@@ -183,6 +189,7 @@ export default {
this.$apis.common.pictureUpload({ file: fileInfo }).then(res => {
this.fileInfo = res
this.importName = e.name
this.$refs.file.value = ''
})
}
} else {
......@@ -310,6 +317,19 @@ export default {
font-weight: 700;
}
.image-uploader {
position: relative;
height: 40px;
display: flex;
margin: 20px 0px;
justify-content: center;
input {
cursor: pointer;
position: absolute;
top: 0px;
width: 35px;
height: 35px;
font-size: 0px;
}
/deep/ {
.el-upload-list {
display: none;
......@@ -336,7 +356,6 @@ export default {
border: 1px solid rgba(0, 0, 0, 0.15);
text-align: center;
.safe-upload-icon {
margin: 20px 0px;
i {
font-size: 35px;
color: #5850ff;
......
......@@ -2,10 +2,10 @@
<div class="squre-main">
<el-button type="primary" size="small" @click="goBack">返回</el-button>
<div class="squre-success-panel scrm-box-f">
<div class="contact-us-wrap">
<!-- <div class="contact-us-wrap">
<img src="@/assets/img/qrcode.png" />
<div class="contact-us-about">联系我们</div>
</div>
</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>
......@@ -39,11 +39,11 @@
<div class="custom-wrap-sta">
<div class="custom-count-item">
<div class="custom-count-title">属于本次导入</div>
<div class="custom-count-num">{{ detailInfo.waitAddEntmicroNumber }}人</div>
<div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitAddEntmicroNumber }}人</div>
</div>
<div class="custom-count-item">
<div class="custom-count-title">人群累计人数</div>
<div class="custom-count-num">{{ detailInfo.waitAddEntmicroTotal }}人</div>
<div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitAddEntmicroTotal }}人</div>
</div>
</div>
<div class="custom-wrap-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div>
......@@ -56,11 +56,11 @@
<div class="custom-wrap-sta">
<div class="custom-count-item">
<div class="custom-count-title">属于本次导入</div>
<div class="custom-count-num">{{ detailInfo.waitRenewalNumber }}人</div>
<div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitRenewalNumber }}人</div>
</div>
<div class="custom-count-item">
<div class="custom-count-title">人群累计人数</div>
<div class="custom-count-num">{{ detailInfo.waitTotal }}人</div>
<div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitTotal }}人</div>
</div>
</div>
<div class="custom-wrap-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div>
......@@ -69,18 +69,18 @@
</div>
<div class="custom-wrap-item">
<div class="custom-wrap-itemBox">
<div class="custom-wrap-title">待定保客户</div>
<div class="custom-wrap-title">待首保客户</div>
<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" @click="jumpDetail">{{ 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" @click="jumpDetail">{{ 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>
......@@ -104,6 +104,9 @@ export default {
jumpDrainage() {
this.$router.push('/square/drainage')
},
jumpDetail() {
// this.$router.push('/square/customDetail')
},
importsKey() {
this.importData = this.$store.getters.square.importData
let { id } = this.$route.params
......@@ -253,6 +256,7 @@ export default {
font-weight: 500;
color: rgba(0, 0, 0, 0.85);
line-height: 34px;
cursor: pointer;
}
}
.custom-wrap-content {
......
......@@ -9,15 +9,30 @@
<div class="square-num-box">
<div class="square-num-item">
<div class="square-num-title">客户总数</div>
<div class="square-num-count">{{ countAll.totalCount }}</div>
<div class="square-num-count">
<span class="detail-content">
{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
<div class="square-num-item">
<div class="square-num-title">企微客户数</div>
<div class="square-num-count">{{ countAll.qyCount }}</div>
<div class="square-num-count">
<span class="detail-content">
{{ countAll.qyCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
<div class="square-num-item">
<div class="square-num-title">魔方导入客户数</div>
<div class="square-num-count">{{ countAll.magicCount }}</div>
<div class="square-num-count">
<span class="detail-content">
{{ countAll.magicCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="square-title">客户分群营销</div>
......@@ -28,11 +43,16 @@
<echart-circle bgColor="#6395FA" coustomId="coustomId_1" :lineData="[countAll.unQyCount, countAll.totalCount - countAll.unQyCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unQyCount }}/{{ countAll.totalCount }}</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unQyCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div>
<div class="coustom-box-config" @click="jumpDrainage">营销配置</div>
<GLButton class="coustom-box-config" @click="jumpDrainage" fn="客户引流企微" mode="div">营销配置</GLButton>
</div>
<div class="coustom-box-item">
<div class="coustom-box-title">信息待完善客户</div>
......@@ -40,11 +60,16 @@
<echart-circle bgColor="#5AD8A6" coustomId="coustomId_2" :lineData="[countAll.unInfoCount, countAll.totalCount - countAll.unInfoCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unInfoCount }}/{{ countAll.totalCount }}</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unInfoCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">当前客户池中,有企微客户尚未维护手机号码。建议批量通知对应的销售顾问维护此类客户信息。</div>
<div class="coustom-box-config" @click="jumpFriend">营销配置</div>
<GLButton class="coustom-box-config" @click="jumpFriend" fn="客户资料跟进" mode="div">营销配置</GLButton>
</div>
<div class="coustom-box-item">
<div class="coustom-box-title">待续保客户</div>
......@@ -52,7 +77,12 @@
<echart-circle bgColor="#5D7092" coustomId="coustomId_3" :lineData="[countAll.unRenewCount, countAll.totalCount - countAll.unRenewCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unRenewCount }}/{{ countAll.totalCount }}</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unRenewCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div>
......@@ -64,7 +94,12 @@
<echart-circle bgColor="#5B8FF9" coustomId="coustomId_4" :lineData="[countAll.unRegularCount, countAll.totalCount - countAll.unRegularCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unRegularCount }}/{{ countAll.totalCount }}</div>
<div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unRegularCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div>
</div>
<div class="coustom-box-content">智能提醒用户回店首保,提高用户返店率。</div>
......@@ -74,10 +109,10 @@
<div class="square-tabel scrm-box-f">
<div class="square-tabel-form">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="120px">
<el-button size="small" type="primary" @click="handleImport">
<GLButton size="small" type="primary" @click="handleImport" fn="魔方导入">
<i class="el-icon-plus"></i>
导入魔方
</el-button>
</GLButton>
<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>
......@@ -88,14 +123,21 @@
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="importNumber" slot-scope="scope">
<div class="number-form"><span>{{ scope.scope.entmicroNumber }}</span> | <span>{{ scope.scope.importNumber }}</span></div>
<div class="number-form">
<span>{{ scope.scope.entmicroNumber }}</span>
|
<span>{{ scope.scope.importNumber }}</span>
</div>
</div>
<div slot="newCostomerNumber" slot-scope="scope">
<div class="number-form"><span>{{ scope.scope.newCustomerNumber }}</span> | <span>{{ scope.scope.importNumber }}</span>
<div class="number-form">
<span>{{ scope.scope.newCustomerNumber }}</span>
|
<span>{{ scope.scope.importNumber }}</span>
</div>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
<GLButton type="text" @click="handleDetail(scope.scope)" fn="魔方导入结果">详情</GLButton>
</div>
</GLTable>
</div>
......@@ -174,8 +216,7 @@ export default {
},
{
label: '导入人员',
prop: 'importStaffName',
width: '130px'
prop: 'importStaffName'
},
{
label: '操作',
......@@ -207,9 +248,6 @@ export default {
},
methods: {
importsCount() {
let params = {
merchantId: '1'
}
this.$apis.square.importsCount({}).then(res => {
console.log(res)
this.countAll = res
......@@ -235,6 +273,9 @@ export default {
handleImport() {
this.$router.push('/square/import')
},
jumpDetail() {
// this.$router.push('/square/customDetail')
},
findLogin() {
this.$apis.square.findLoginCount({ loginType: 1005 }).then(res => {
if (res) {
......@@ -251,6 +292,26 @@ export default {
</script>
<style lang="scss" scoped>
.detail-content {
position: relative;
}
.detail-btn {
display: inline-block;
position: absolute;
cursor: pointer;
opacity: 0;
width: 100%;
height: 100%;
left: 0px;
top: 0px;
}
.detail-btn::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: brown;
}
.number-form {
span {
display: inline-block;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!