Commit 462b6c6d by 杨明

fixed

1 parent 04d55341
......@@ -17,11 +17,6 @@ export default {
gs: ''
}
},
beforeDestroy() {
document.onkeydown = function() {
return true
}
},
created() {
document.onkeydown = function() {
var evt = window.event || arguments[0]
......
<template>
<div class="scrm-main">
<div class="channel-main-guidance scrm-box-f">
<div class="channel-main-guidance-item">
<div class="channel-main-guidance-item-head">
<img src="@/assets/img/channel/staff.png" />
<div class="channel-main-guidance-item-title">配置名片关联的员工</div>
</div>
<div class="channel-main-guidance-item-info">名片可关联一个或多个员工。配置多名员工时,客户扫码后仅会添加随机的某个员工。</div>
</div>
<div class="channel-arrow">
<img src="@/assets/img/channel/channel-arrow.png" />
</div>
<div class="channel-main-guidance-item">
<div class="channel-main-guidance-item-head">
<img src="@/assets/img/channel/equity.png" />
<div class="channel-main-guidance-item-title">配置客户领取的权益</div>
</div>
<div class="channel-main-guidance-item-info">客户添加员工为好友后,系统将通过欢迎语发送相关的权益礼包。 礼包内容可结合互联网权益、自店权益。由于企微官方限制,使用前请先确认已取消统一的欢迎语。</div>
</div>
<div class="channel-arrow">
<img src="@/assets/img/channel/channel-arrow.png" />
</div>
<div class="channel-main-guidance-item">
<div class="channel-main-guidance-item-head">
<img src="@/assets/img/channel/card.png" />
<div class="channel-main-guidance-item-title">生成智能员工名片</div>
</div>
<div class="channel-main-guidance-item-info">名片生成后长期有效,可结合门店业务需要,添加到门店活动易拉宝、员工卡座立牌、活动海报,实现灵活的集客。</div>
</div>
</div>
<div class="channel-main scrm-box-f">
<div class="chanel-form-title">基本信息</div>
<div class="chanel-form-box gl-form-page">
<el-form ref="codeForm" :model="addCodeForm" class="code-body-form" label-width="154px" :rules="codeRules">
<!-- <el-row> -->
<el-form-item label="渠道名称:" prop="codeName">
<el-input size="small" v-model.trim="addCodeForm.codeName" placeholder="请输入渠道名称" maxlength="30"></el-input>
</el-form-item>
<!-- </el-row>
<el-row> -->
<el-form-item label="备注:">
<el-input size="small" v-model.trim="addCodeForm.codeRemark" placeholder="请输入备注" maxlength="30"></el-input>
<div class="form-tips">设置备注,便于后续管理查找</div>
</el-form-item>
<!-- </el-row>
<el-row> -->
<el-form-item label="自动通过验证:">
<el-switch v-model="addCodeForm.autoAdd" active-color="#5850FF" inactive-color="#999999"></el-switch>
<span class="form-tips-btn">开启后,客户添加使用人员无需好友验证</span>
</el-form-item>
<!-- </el-row>
<el-row> -->
<el-form-item label="选择标签:">
<el-button size="small" @click="handleAddTag">
<i class="el-icon-plus"></i>
选择标签
</el-button>
<span class="form-tips-btn">
已选择
<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)">
{{ tag ? tag.name : '' }}
</el-tag>
</template>
</template>
</div>
</el-form-item>
<!-- </el-row>
<el-row> -->
<div class="el-form-item is-required">
<label for="codeName" class="el-form-item__label" style="width: 154px">选择专员:</label>
<div class="el-form-item__content" style="margin-left: 154px">
<el-button size="small" @click="handleAddEmp">
<div class="chanel-form-box">
<el-form ref="codeForm" :model="addCodeForm" class="code-body-form" label-width="120px" :rules="codeRules">
<el-row>
<el-form-item label="渠道名称" prop="codeName">
<el-input size="small" v-model.trim="addCodeForm.codeName" placeholder="请输入渠道名称" maxlength="30"></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="备注">
<el-input size="small" v-model.trim="addCodeForm.codeRemark" placeholder="请输入备注" maxlength="30"></el-input>
<div class="form-tips">设置备注,便于后续管理查找</div>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="自动通过验证">
<el-switch v-model="addCodeForm.autoAdd" active-color="#5850FF" inactive-color="#999999"></el-switch>
<span class="form-tips-btn">开启后,客户添加使用人员无需好友验证</span>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="选择标签">
<el-button size="small" @click="handleAddTag">
<i class="el-icon-plus"></i>
选择专员
选择标签
</el-button>
<span class="form-tips-btn">
已选择
<span>{{ staffInfo.length }}</span>
人
<span>{{ taggingLength }}</span>
个标签
</span>
<<<<<<< HEAD
<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>
{{ tag.staffName }}
</el-tag>
=======
<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">
<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> -->
<template v-for="(item, index) in tagging">
<div v-for="(tag, idx) in item.labelList" :key="idx">
<GLFull :labelWidth="150" :idx="idx" @handleRemove="removeTag(item, idx, index)" :identi="`node_${tag.id}`" :label="tag.name" :haveClose="true" textType="tag"></GLFull>
</div>
</template>
</template>
</div>
......@@ -126,21 +59,15 @@
</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)">
<el-tag effect="plain" type="info" v-for="(tag, idx) in staffInfo" :key="idx" closable :disable-transitions="false" @close="removeStaff(idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag> -->
<div v-for="(tag, idx) in staffInfo" :key="idx">
<GLFull :labelWidth="150" @handleRemove="removeStaff(idx)" :identi="`node_${idx}`" :label="tag.staffName" :haveClose="true" textType="user"></GLFull>
</div>
</el-tag>
</div>
<div class="el-form-item__error" v-if="staffStatus">请选择专员</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
<div class="el-form-item__error" v-if="staffStatus">请选择专员</div>
</div>
</div>
<!-- </el-row> -->
</el-row>
</el-form>
</div>
</div>
......@@ -148,22 +75,19 @@
<div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel">
<div class="welcome-switch">
<label>自动发送欢迎语:</label>
<label>自动发送欢迎语</label>
<el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box" v-show="autoWelcome">
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<welcome-words :eventBus="eventBus" ref="welcome"></welcome-words>
</div>
</div>
</div>
<GLFooter>
<GLFooter
>
<el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button>
</GLFooter>
<<<<<<< HEAD
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisible = false" type="warning" content="当前有内容信息未保存,是否继续返回?" :visible.sync="dialogVisible" mode="small"></GLDialog>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
</div>
......@@ -171,16 +95,16 @@
<script>
import { utils } from 'glsx-common'
import Vue from 'vue'
import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag'
import word from '@/mixins/word'
import welcomeWords from '@/components/welcome/welcomeWords.vue'
export default {
mixins: [word],
name: 'addCode',
components: { selectEmp, selectTag },
components: { welcomeWords, selectEmp, selectTag },
data() {
return {
dialogVisible: false,
eventBus: new Vue(),
addCodeForm: {
codeName: '',
codeRemark: '',
......@@ -240,20 +164,6 @@ export default {
})
})
if (this.editStatus || (this.$refs.welcome.previewList.length > 0 && !this.codeId)) {
<<<<<<< HEAD
this.dialogVisible = true
} else {
this.$router.push('/channel/index')
}
},
handleSure() {
this.$router.push('/channel/index')
},
removeTag(item, idx, index) {
item.labelList.splice(idx, 1)
if (item.labelList.length == 0) {
this.tagging.splice(index, 1)
=======
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -263,7 +173,6 @@ export default {
})
} else {
this.$router.push('/channel/index')
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
},
removeTag(item, idx, index) {
......@@ -272,8 +181,8 @@ export default {
this.tagging.splice(index, 1)
}
},
removeStaff(idx) {
this.staffInfo.splice(idx, 1)
removeStaff(index) {
this.staffInfo.splice(index, 1)
},
handleAddEmp() {
this.staffStatus = false
......@@ -293,7 +202,7 @@ export default {
tagSelected(item) {
this.tagging = item
},
handleSave: utils.debounce(function() {
handleSave: utils.debounce(function () {
if (this.staffInfo.length == 0) {
this.staffStatus = true
return
......@@ -301,23 +210,21 @@ export default {
this.$refs['codeForm'].validate(valid => {
if (valid) {
let param = Object.assign({ id: this.codeId }, this.addCodeForm)
if (this.tagging && this.tagging.length) {
let tagging = this.tagging.map(item => {
let tagIds = item.labelList.map(tag => {
return tag.id
})
let name = item.labelList.map(tag => {
return tag.name
})
return {
groupId: item.labelGroup.id,
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
let tagging = this.tagging.map(item => {
let tagIds = item.labelList.map(tag => {
return tag.id
})
param.tagging = JSON.stringify(tagging)
}
let name = item.labelList.map(tag => {
return tag.name
})
return {
groupId: item.labelGroup.id,
tagIds: tagIds.join(','),
name: name.join(','),
labelType: item.labelGroup.name
}
})
param.tagging = JSON.stringify(tagging)
param.autoWelcome = this.autoWelcome ? 1 : 0
param.codeSystem = 0
let staffId = []
......@@ -343,13 +250,6 @@ export default {
}
return item
})
this.$tracker.track({
codeName: param.codeName,
staffInfo: this.staffInfo,
welcomeInfo: attachmentList,
pageName: this.codeId ? '活码编辑' : '新增活码',
name: '提交'
})
param.welcomeInfo = attachmentList
this.$apis.channel[channel](param).then(res => {
if (res) this.$router.push('/channel/index')
......@@ -367,25 +267,22 @@ export default {
this.addCodeForm.autoAdd = this.addCodeForm.autoAdd == 1 ? true : false
this.staffInfo = res.staffInfo
const tagging = eval(res.tagging)
if (tagging && tagging.length) {
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
this.tagging = taggingList
}
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
this.autoWelcome = res.autoWelcome ? true : false
if (res.welcomeInfo.length != 0) {
const previewList = res.welcomeInfo.map(item => {
......@@ -399,7 +296,7 @@ export default {
this.previewListStart = this.$common.utils.deepClone(this.$refs.welcome.previewList)
})
})
}
},
// resize() {
// this.footerLeft = document.querySelector('.base-container-right').offsetLeft
// this.footerWidth = document.documentElement.clientWidth - this.footerLeft
......@@ -416,11 +313,11 @@ export default {
}
}
}
</script>
</script>
<style lang="scss" scoped>
.channel-main-welcome {
margin: 20px 0px 16px;
margin: 20px 0px 60px;
.welcome-panel {
margin: 10px;
padding: 0px 20px 20px;
......@@ -434,7 +331,7 @@ export default {
}
}
.welcome-box {
margin-left: 62px;
margin-left: 48px;
}
}
}
......@@ -488,7 +385,6 @@ export default {
outline: none;
padding: 5px 5px 0px 5px;
max-height: 68px;
min-height: 40px;
overflow: auto;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
......@@ -497,11 +393,6 @@ export default {
align-items: center;
margin-top: 6px;
font-size: 14px;
> div {
height: 26px;
line-height: 26px;
margin: 0px 5px 5px 0px;
}
i {
color: #75acff;
margin-right: 3px;
......@@ -515,51 +406,4 @@ export default {
margin-bottom: 5px;
}
}
<<<<<<< HEAD
.channel-main-guidance {
display: flex;
padding: 20px;
box-sizing: border-box;
align-items: center;
margin-bottom: 20px;
.channel-main-guidance-item {
flex: 1;
height: 142px;
background: url('../../assets/img/channel/bg.png'), no-repeat;
padding: 16px 20px;
box-sizing: border-box;
&-head {
display: flex;
align-items: center;
margin-bottom: 8px;
img {
width: 22px;
height: 22px;
margin-right: 10px;
}
}
&-title {
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
}
&-info {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
}
.channel-arrow {
margin: 0 16px;
width: 20px;
height: 15px;
img {
width: 100%;
}
}
}
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</style>
</style>
\ No newline at end of file
......@@ -4,24 +4,13 @@
<GLButton type="primary" size="small" icon="el-icon-add" @click="handleAddCode" fn="新增活码">新建渠道活码</GLButton>
</div>
<div class="form-panel scrm-box-f">
<<<<<<< HEAD
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<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">
<GLTableButton :buttonList="tableButtonList" :buttonItem="scope.scope" :buttonNum="3"></GLTableButton>
<!-- <GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton>
<GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton> -->
=======
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<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">
<collect-form :dataAnalyics="{ pageName: '渠道活码', codeId: scope.scope.id, name: '数据' }"><GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton></collect-form>
<collect-form :dataAnalyics="{ pageName: '渠道活码', codeId: scope.scope.id, name: '修改' }"><GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton></collect-form>
<GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton>
<GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<collect-form :dataAnalyics="{ pageName: '渠道活码', codeId: scope.scope.id, name: '活码海报' }"><GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton></collect-form>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton>
</div>
<div slot="yesterdayNum" slot-scope="scope">
<div class="link-dialog" @click="handleEmpDetail(scope.scope, 'day')" v-if="scope.scope.yesterdayNum">{{ scope.scope.yesterdayNum }}</div>
......@@ -33,23 +22,6 @@
</div>
<div slot="staffInfo" slot-scope="scope">
<el-popover trigger="hover" placement="top" v-if="staffNameSplit(scope.scope.staffName).length > 3">
<<<<<<< HEAD
<GLFull :labelWidth="110" :label="item" textType="user" :identi="`text_${Math.random().toString().replace('.', '')}`" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index"></GLFull>
<div slot="reference" class="name-wrapper">
<div style="display: inline-block" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-show="index < 4">
<template v-if="index == 3 && staffNameSplit(scope.scope.staffName).length > 3">
<div class="accountType-row">
<i class="el-icon-user-solid"></i>
<span>{{ '...(' + staffNameSplit(scope.scope.staffName).length + ')' }}</span>
</div>
</template>
<GLFull :labelWidth="110" :label="item" textType="user" v-if="index < 3"></GLFull>
</div>
</div>
</el-popover>
<GLFull :labelWidth="110" :label="item" textType="user" :identi="`text_${Math.random().toString().replace('.', '')}`" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else></GLFull>
<!-- <div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else>
=======
<div class="accountType-row" v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index">
<i class="el-icon-user-solid"></i>
<GLTitle :content="item" textLength="4"></GLTitle>
......@@ -65,23 +37,10 @@
</div>
</el-popover>
<div v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-else>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="accountType-row">
<i class="el-icon-user-solid"></i>
<GLTitle :content="item" textLength="4"></GLTitle>
</div>
<<<<<<< HEAD
</div> -->
</div>
<div slot="qrCode" slot-scope="scope">
<el-popover placement="bottom" trigger="click">
<div>
<img :src="scope.scope.qrCode" style="width: 140px; height: 140px" />
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</div>
<img :src="scope.scope.qrCode" style="width: 36px; height: 36px" slot="reference" />
</el-popover>
=======
</div>
</div>
<div slot="qrCode" slot-scope="scope">
......@@ -89,10 +48,7 @@
<img :src="scope.scope.qrCode" style="width: 360px; height: 360px" />
<img :src="scope.scope.qrCode" style="width: 80px; height: 80px" slot="reference" />
</el-popover>
<collect-form :dataAnalyics="{ qrCode: scope.scope.qrCode }" display="block">
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</collect-form>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="download-link" @click="downloadIamge(scope.scope.qrCode)">下载二维码</div>
</div>
<div slot="tagging" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3">
......@@ -121,31 +77,18 @@
</div>
</GLTable>
</div>
<<<<<<< HEAD
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleDel = false" type="error" content="是否删除?" :visible.sync="dialogVisibleDel" mode="small"></GLDialog>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<emp-detail ref="empDetailForm"></emp-detail>
</div>
</template>
<script>
import util from '@/utils/util'
<<<<<<< HEAD
import empDetail from '@/components/empDetail'
=======
import empDetail from './empDetail.vue'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
export default {
components: { empDetail },
name: 'channelList',
data() {
return {
<<<<<<< HEAD
dialogVisibleDel: false,
selectItem: '',
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
loading: false,
tableSearchForm: {
staffName: '',
......@@ -166,52 +109,6 @@ export default {
}
],
tableData: [],
// 表格按钮
tableButtonList: [
{
type: 'GLButton',
name: '数据',
attrs: {
type: 'text',
fn: '到店咨询客户数据'
},
listeners: {
click: this.handleDetail
}
},
{
type: 'GLButton',
name: '活码海报',
attrs: {
type: 'text',
fn: '活码海报'
},
listeners: {
click: this.handleAddPoster
}
},
{
type: 'GLButton',
name: '修改',
attrs: {
type: 'text',
fn: '活码编辑'
},
listeners: {
click: this.handleEdit
}
},
{
type: 'el-button',
name: '删除',
attrs: {
type: 'text'
},
listeners: {
click: this.handleDelete
}
}
],
tableParams: {
listName: 'data',
tableOption: false,
......@@ -219,69 +116,47 @@ export default {
{
label: '渠道名称',
prop: 'codeRemark',
minWidth: 200,
addHtml: 'codeRemark'
},
{
label: '今日新增客户数',
prop: 'yesterdayNum',
<<<<<<< HEAD
width: 130,
=======
width: '130px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'yesterdayNum'
},
{
label: '总新增客户数',
prop: 'totalNum',
<<<<<<< HEAD
width: 120,
=======
width: '120px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'totalNum'
},
{
label: '使用专员',
prop: 'staffInfo',
minWidth: 400,
width: '130px',
addHtml: 'staffInfo',
align: 'left'
},
{
label: '活码',
prop: 'qrCode',
addHtml: 'qrCode',
<<<<<<< HEAD
width: '100px'
=======
width: '120px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'qrCode'
},
{
label: '标签',
prop: 'tagging',
addHtml: 'tagging',
minWidth: 200
width: '150px'
},
{
label: '创建时间',
prop: 'createdTime',
<<<<<<< HEAD
minWidth: 180
=======
width: '180px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '操作',
prop: 'optionBtns',
<<<<<<< HEAD
width: '170px',
=======
width: '220px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'optionBtns',
fixed: 'right'
}
......@@ -340,28 +215,30 @@ export default {
})
.catch(() => {})
},
handleSure() {
const { id, codeUuid, configId } = this.selectItem
this.$apis.channel
.deleteChannelCode({
id,
codeUuid,
configId
})
.then(res => {
if (res) {
this.$message({
type: 'success',
message: '删除成功!'
handleDelete(scope) {
this.$confirm('是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.$apis.channel
.deleteChannelCode({
id: scope.id,
codeUuid: scope.codeUuid,
configId: scope.configId
})
.then(res => {
if (res) {
this.$message({
type: 'success',
message: '删除成功!'
})
}
this.handleSearch()
})
}
this.handleSearch()
})
this.dialogVisibleDel = false
},
handleDelete(scope) {
this.dialogVisibleDel = true
this.selectItem = scope
.catch(() => {})
},
listChannelCodeByPage() {
const params = {
......@@ -413,19 +290,14 @@ export default {
/deep/ .el-popover {
max-width: 1000px;
}
.name-wrapper {
display: flex;
}
}
.download-link {
cursor: pointer;
margin-top: 4px;
margin-top: 6px;
font-size: 14px;
color: #5850ff;
font-weight: 600;
color: #5850ff;
font-weight: 400;
color: #666666;
line-height: 20px;
text-align: center;
}
.codeRemark {
font-size: 14px;
......@@ -521,7 +393,7 @@ export default {
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 4px;
margin-right: 5px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
......
......@@ -64,15 +64,9 @@
<script>
import utils from '@/utils/util'
<<<<<<< HEAD
import linechart from '@/components/linechart'
import selectChannel from '@/components/selectChannel'
import empDetail from '@/components/empDetail'
=======
import linechart from './linechart'
import selectChannel from './selectChannel'
import empDetail from './empDetail.vue'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
export default {
name: 'channelStatistics',
components: {
......
......@@ -151,35 +151,21 @@ export default {
label: '客户性别',
prop: 'customerSex',
formatter: cellValue => {
<<<<<<< HEAD
return cellValue.customerSex == 1 ? '男' : '女'
},
minWidth: 100
=======
console.log(cellValue)
return cellValue.customerSex == 1 ? '男' : '女'
},
width: '80px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '状态',
prop: 'status',
addHtml: 'status',
<<<<<<< HEAD
minWidth: 100
=======
width: '80px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '跟进员工',
prop: 'followStaff',
<<<<<<< HEAD
minWidth: 100
=======
width: '80px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '添加时间',
......@@ -188,11 +174,7 @@ export default {
{
label: '操作',
prop: 'optionBtns',
<<<<<<< HEAD
minWidth: '80px',
=======
width: '80px',
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
addHtml: 'optionBtns'
}
]
......@@ -248,10 +230,6 @@ export default {
})
},
init(item, value, day) {
<<<<<<< HEAD
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.createTime = []
this.pStatus = null
this.staffIds = null
......
<template>
<div class="square-main">
<GLDialog title="选择渠道" :visible.sync="dialogVisible" @onOk="handleSelect" @onCancel="handleCancel" mode="big">
<el-dialog title="选择渠道" :visible.sync="dialogVisible" width="70%" :before-close="handleCancel">
<div class="square-tabel">
<div class="square-tabel-select">
<GLTable ref="table" :hasPage="false" :tableData="tableData" :tableTotal="tableTotal" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
......@@ -10,11 +10,7 @@
<div class="selected-panel">
<div class="selected-item" v-for="(item, index) in selectedList" :key="index">
<div :title="item.codeName">
<<<<<<< HEAD
<span :style="{ background: colorList[index] }"></span>
=======
<span :style="{ background: colorList[index]}"></span>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
{{ item.codeName }}
</div>
<img src="@/assets/img/channel/del.png" @click="delTag(item)" />
......@@ -26,7 +22,7 @@
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
</GLDialog>
</el-dialog>
</div>
</template>
......@@ -108,7 +104,7 @@ export default {
this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection()
},
handleSelect: utils.debounce(function() {
handleSelect: utils.debounce(function () {
if (this.selectedList.length == 0) {
this.$message.error('请选择渠道')
return
......@@ -123,7 +119,7 @@ export default {
}, 300)
}
}
</script>
</script>
<style lang="scss" scoped>
.square-main {
......@@ -158,11 +154,11 @@ export default {
white-space: nowrap;
}
span {
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
vertical-align: middle;
display: inline-block;
width: 12px;
height: 2px;
margin-right: 10px;
}
img {
width: 16px;
......@@ -186,4 +182,4 @@ export default {
}
}
}
</style>
</style>
\ No newline at end of file
<template>
<div class="channel-main">
<GLTabs v-model="activeName" :tabPaneList="tabPaneList" class="tabs-panel"></GLTabs>
<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>
<channel-list v-if="activeName == 'first'"></channel-list>
<channel-statistics v-if="activeName == 'second'"></channel-statistics>
</div>
......@@ -17,38 +20,10 @@ export default {
},
data() {
return {
<<<<<<< HEAD
activeName: 'first',
tabPaneList: [
{
label: '渠道码列表',
name: 'first'
},
{
label: '数据统计',
name: 'second'
}
]
}
},
methods: {
render(createElement){
createElement('div',{
class:{
'channel-main':true
}
},[
createElement('el-tabs',{
})
])
},
=======
activeName: 'first'
}
},
methods: {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
jumpWx() {
this.$history.push('/settings/enterpriseWechat/index')
},
......@@ -87,8 +62,10 @@ export default {
<style lang="scss" scoped>
.channel-main {
.tabs-panel {
margin-bottom: 10px;
/deep/ {
.el-tabs__nav-wrap::after {
height: 0px;
}
}
}
</style>
<template>
<div class="channel-main scrm-box-f" v-loading="loading">
<div class="channel-header">
<el-button type="primary" size="small" @click="goBack">返回</el-button>
</div>
<div class="poster-body">
<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)">
......@@ -33,9 +36,9 @@
</div>
</div>
</div>
<el-dialog title="创建活码海报" :visible.sync="dialogVisible">
<el-dialog v-loading="loadingDrag" title="创建活码海报" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<div class="poster-draggable-title">拖动活码可调整活码位置</div>
<div class="poster-draggable" v-loading="loadingDrag">
<div class="poster-draggable">
<div
class="poster-image"
v-if="dragHeight"
......@@ -55,7 +58,7 @@
:style="{
'background-image': 'url(' + codeUrl + ')'
}"
parent=".poster-image"
:parent="true"
@dragging="onDrag"
@resizing="onResize"
:customId="index"
......@@ -252,18 +255,11 @@ export default {
getDraggable(img_url) {
let img = new Image()
img.src = img_url
<<<<<<< HEAD
img.onload = () => {
this.dragHeight = (img.height * 375) / img.width
this.dialogVisible = true
this.loading = false
=======
let self = this
img.onload = function() {
self.dragHeight = (img.height * 375) / img.width
self.dialogVisible = true
self.loading = false
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
}
},
......@@ -307,8 +303,6 @@ export default {
.poster-draggable {
display: flex;
justify-content: center;
// height: 500px;
// overflow: auto;
.poster-image {
background-size: 100% 100%;
width: 375px;
......
<template>
<div class="channel-main scrm-box-f">
<div><el-button type="primary" size="small" @click="goback">返回</el-button></div>
<div class="detail-form">
<el-form :model="detailCodeForm" label-width="120px">
<el-row>
......@@ -11,43 +12,20 @@
<el-row>
<el-form-item size="small" label="使用员工:">
<div class="form-row">
<template v-for="(item, index) in detailCodeForm.staffInfo">
<div class="emp-item" :key="index" v-if="index < 10">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
<template v-if="detailCodeForm.staffInfo.length > 10 && index == 10">
<el-popover placement="top" width="600" trigger="hover" :key="index">
<span slot="reference" class="emp-item">...({{ detailCodeForm.staffInfo.length }})</span>
<div class="form-row">
<div class="emp-item" :key="index1" v-for="(item, index1) in detailCodeForm.staffInfo">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
</el-popover>
</template>
</template>
<div class="emp-item" v-for="(item, index) in detailCodeForm.staffInfo" :key="index">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
</div>
</el-form-item>
</el-row>
<el-row>
<el-form-item size="small" label="标签:">
<div class="form-row">
<template v-for="(tag, idx) in tagging">
<div class="tag-item" :key="idx" v-if="idx < 10">
{{ tag }}
<template v-for="item in tagging">
<div class="tag-item" v-for="(tag, idx) in item.labelList" :key="idx">
{{ tag.name }}
</div>
<template v-if="tagging.length > 10 && idx == 10">
<el-popover placement="top" width="600" trigger="hover" :key="idx">
<span slot="reference" class="emp-item">...({{ tagging.length }})</span>
<div class="form-row">
<div class="tag-item" v-for="(tag, idx1) in tagging" :key="idx1">
{{ tag }}
</div>
</div>
</el-popover>
</template>
</template>
</div>
</el-form-item>
......@@ -56,22 +34,14 @@
<div class="count-panel">
<div class="count-panel-item">
<div class="count-item-title">今日新增客户</div>
<<<<<<< HEAD
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm, 'day')" v-if="detailCodeForm.yesTodayAddCount">{{ detailCodeForm.yesTodayAddCount }}人</div>
=======
<div class="count-item-num" @click="handleEmpDetail(detailCodeForm,'day')" v-if="detailCodeForm.yesTodayAddCount">{{ detailCodeForm.yesTodayAddCount }}人</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<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" @click="handleEmpDetail(detailCodeForm)" v-if="detailCodeForm.newlyCount">{{ detailCodeForm.newlyCount }}人</div>
<<<<<<< HEAD
<div class="count-item-num2" v-else>0人</div>
=======
<div class="count-item-num2" v-else>0人</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<img src="@/assets/img/channel/count2.png" class="count-item-icon" />
</div>
<div class="count-panel-item">
......@@ -81,13 +51,8 @@
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
<<<<<<< HEAD
<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>
=======
<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>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<img src="@/assets/img/channel/count1.png" class="count-item-icon" />
</div>
</div>
......@@ -103,30 +68,17 @@
</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>
<<<<<<< HEAD
<div v-else>0</div>
=======
<div v-else>0</div>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</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">
<<<<<<< HEAD
<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 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>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</GLTable>
<emp-detail ref="empDetailForm"></emp-detail>
......@@ -203,13 +155,8 @@ export default {
goback() {
this.$router.push('/channel/index')
},
<<<<<<< HEAD
handleEmpDetail(scope, status, day) {
this.$refs.empDetailForm.init(scope, status, day)
=======
handleEmpDetail(scope,status,day) {
this.$refs.empDetailForm.init(scope,status,day)
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
detailChannelCode(id, codeUuid) {
let param = {
......@@ -234,14 +181,7 @@ export default {
labelList
}
})
this.tagging = []
for (let i = 0; i < taggingList.length; i++) {
for (let j = 0; j < taggingList[i].labelList.length; j++) {
this.tagging.push(taggingList[i].labelList[j].name)
}
}
// this.tagging = taggingList
// console.log(this.tagging, '00000000000')
this.tagging = taggingList
this.welcomeInfo = res.welcomeInfo.map(item => {
let attContent
if (item.attType == 7) {
......@@ -287,7 +227,7 @@ export default {
this.listStaff()
}
}
</script>
</script>
<style lang="scss" scoped>
.link-dialog {
......@@ -301,6 +241,45 @@ export default {
}
.detail-form {
margin-top: 10px;
.form-row {
display: flex;
flex-wrap: wrap;
margin-top: 5px;
.tag-item {
display: inline-block;
text-align: center;
min-width: 76px;
background: #fafbfe;
border: 1px solid #e8e8ea;
line-height: 14px;
box-sizing: border-box;
padding: 6px 6px;
font-size: 14px;
border-radius: 4px;
line-height: 14px;
font-weight: 400;
color: #666;
margin-right: 5px;
margin-bottom: 5px;
}
.emp-item {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.welcome-panel {
.welcome-title {
font-size: 16px;
......@@ -391,68 +370,35 @@ export default {
}
}
}
.form-row {
display: flex;
flex-wrap: wrap;
margin-top: 5px;
.tag-item {
display: inline-block;
text-align: center;
min-width: 76px;
background: #fafbfe;
border: 1px solid #e8e8ea;
line-height: 14px;
box-sizing: border-box;
padding: 3px 6px;
font-size: 14px;
border-radius: 4px;
line-height: 20px;
font-weight: 400;
color: #666;
margin-right: 4px;
margin-bottom: 5px;
box-sizing: border-box;
}
.emp-item {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
-webkit-border-radius: 4px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
i {
color: #75acff;
}
}
}
.tab-panel {
margin-top: 20px;
margin-bottom: 10px;
display: inline-block;
/deep/ {
.el-checkbox:last-of-type {
margin-right: 8px;
}
.el-tabs__nav {
border: none;
border: 0;
}
.el-tabs__header {
border: 0;
background-color: #f4f6fc;
margin: 0px;
}
.el-tabs__item.is-active {
background: #fff;
border-bottom: none !important;
}
.el-tabs__item {
border: 1px solid #e5e5e5 !important;
border-bottom: none;
border-radius: 4px 4px 0px 0px;
background: #fafafa;
&:first-child {
margin-right: 5px;
}
border: none;
width: 180px;
height: 32px;
line-height: 32px;
margin: 2px;
text-align: center;
}
.el-tabs__item.is-active {
background-color: #fff;
border-radius: 4px;
font-weight: 600;
}
}
}
</style>
</style>
\ No newline at end of file
......@@ -164,11 +164,18 @@
</div>
</div>
</div>
<GLFooter v-if="(editStatus && !configType) || configType">
<div
v-if="(editStatus && !configType) || configType"
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="handleSave" v-if="!configType">确定</el-button>
<el-button type="primary" @click="goback" v-if="configType">返回</el-button>
<el-button @click="handleCancel" v-if="!configType">取消</el-button>
</GLFooter>
</div>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
</div>
</template>
......@@ -344,10 +351,7 @@ export default {
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.drainage-wrap {
margin-bottom: 16px;
&:nth-child(2) {
min-height: calc(100vh - 490px);
}
margin-bottom: 20px;
.drainage-title {
padding-left: 20px;
font-size: 16px;
......
......@@ -4,31 +4,12 @@
<div class="drainage-title">营销配置</div>
<div class="form-main">
<div class="drainage-form">
<<<<<<< HEAD
<!-- <div class="drainage-form-item">
=======
<div class="drainage-form-item">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<label class="is-require" style="line-height: 32px">营销名称</label>
<div style="position: relative">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
<div class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div>
</div>
<<<<<<< HEAD
</div> -->
<div class="drainage-form-item">
<!-- <label>群发短信</label> -->
<div class="gl-form-page">
<el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="营销名称:" prop="imName">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
</el-form-item>
<el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></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-form-item>
<el-form-item label="短信内容:" prop="content">
=======
</div>
<div class="drainage-form-item">
<label>群发短信</label>
......@@ -39,19 +20,13 @@
<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">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input>
<div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<<<<<<< HEAD
<label>
自动打标签:
=======
<label style="width: 100px; text-align: left; color: #666">
自动打标签
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -68,13 +43,8 @@
</div>
</div>
<div class="drainage-form-item">
<<<<<<< HEAD
<label style="margin-left: 20px">
跟进员工:
=======
<label>
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -101,11 +71,7 @@
<div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel">
<div class="welcome-switch">
<<<<<<< HEAD
<label>自动发送欢迎语:</label>
=======
<label>自动发送欢迎语</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box" v-show="!editStatus && autoWelcome">
......@@ -130,13 +96,6 @@
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<<<<<<< HEAD
<div v-else-if="item.attType == 6">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ JSON.parse(item.attContent).fileName }}</span>
</div>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div v-else-if="item.attType == 7">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent.marketingName }}</span>
......@@ -190,11 +149,7 @@ export default {
},
watch: {
'addForm.content': {
<<<<<<< HEAD
handler: function() {
=======
handler: function () {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.content = []
let str = this.addForm.content
let num = 70
......@@ -230,11 +185,7 @@ export default {
deep: true
},
tagging: {
<<<<<<< HEAD
handler: function() {
=======
handler: function () {
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.taggingLength = 0
this.tagging.forEach(item => {
this.taggingLength += item.labelList.length
......@@ -264,41 +215,13 @@ export default {
this.addForm.content = res.dracImMessageConResponse.content
this.imName = res.imName
this.autoWelcome = res.autoWelcome ? true : false
<<<<<<< HEAD
const dracScrmWelcomeConfigDTOS = res.dracScrmWelcomeConfigDTOS ? res.dracScrmWelcomeConfigDTOS : []
const previewList = dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>').replaceAll(/\n/g, '<br>')
=======
const previewList = res.dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
if (item.attType == 1) item.attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>')
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
return item
})
this.welcomeInfo = previewList
const tagging = eval(res.tagging)
<<<<<<< HEAD
if (tagging && tagging.length) {
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
}
=======
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
......@@ -315,7 +238,6 @@ export default {
}
})
this.tagging = taggingList
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
this.$nextTick(() => {
this.saveStatus = false
})
......@@ -328,19 +250,11 @@ export default {
this.findById(id)
}
}
<<<<<<< HEAD
</script>
<style lang="scss" scoped>
.channel-main-welcome {
margin: 20px 0px 16px;
=======
</script>
<style lang="scss" scoped>
.channel-main-welcome {
margin: 20px 0px 60px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
.chanel-form-title {
padding-left: 20px;
font-size: 16px;
......@@ -363,11 +277,7 @@ export default {
}
}
.welcome-box {
<<<<<<< HEAD
margin-left: 70px;
=======
margin-left: 48px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -534,17 +444,9 @@ export default {
}
}
label {
<<<<<<< HEAD
font-size: 14px;
text-align: right;
color: #666;
width: 140px;
margin-right: 12px;
=======
width: 120px;
text-align: right;
margin-right: 20px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
height: 36px;
line-height: 36px;
img {
......@@ -797,8 +699,4 @@ export default {
}
}
}
<<<<<<< HEAD
</style>
=======
</style>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</style>
\ No newline at end of file
......@@ -21,24 +21,10 @@
</el-row>
</el-form>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<<<<<<< HEAD
<div slot="status" slot-scope="scope">
<span :class="['task_icon',scope.scope.status==1?'green-icon':'yellow-icon']">{{ scope.scope.statusName }}</span>
</div>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
<<<<<<< HEAD
<GLDialog title="短信内容" :hasFooter="true" :content="messageContent" :visible.sync="dialogVisible" mode="small">
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="dialogVisible = false">确定</el-button>
</span>
</GLDialog>
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</div>
</template>
......@@ -50,13 +36,7 @@ export default {
data() {
return {
loading: false,
<<<<<<< HEAD
messageContent: '',
tableSearchForm: {},
dialogVisible: false,
=======
tableSearchForm: {},
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
tableData: [],
optionstatus: [
{
......@@ -86,12 +66,7 @@ export default {
},
{
label: '发送状态',
<<<<<<< HEAD
prop: 'statusName',
addHtml: 'status'
=======
prop: 'statusName'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '发送时间',
......@@ -113,12 +88,7 @@ export default {
},
methods: {
handleDetail(scope) {
<<<<<<< HEAD
this.dialogVisible = true
this.messageContent = scope.content
=======
this.$alert(scope.content, { center: true })
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
handleSearch() {
this.listChannelCodeByPage()
......@@ -161,11 +131,7 @@ export default {
this.listChannelCodeByPage()
}
}
<<<<<<< HEAD
</script>
=======
</script>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<style>
.el-popover {
max-width: 800px;
......@@ -316,8 +282,4 @@ export default {
// top: 7px;
// }
}
<<<<<<< HEAD
</style>
=======
</style>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</style>
\ No newline at end of file
......@@ -4,11 +4,7 @@
<div class="drainage-title">指定客户</div>
<div class="drainage-form">
<div class="drainage-form-item">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">指定方式:</label>
=======
<label>指定方式</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box drainage-type">
<el-radio-group v-model="selectType">
<el-radio :label="1">通过标签筛选</el-radio>
......@@ -18,11 +14,7 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 1">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">客户信息:</label>
=======
<label>客户信息</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box">
<el-button size="small" @click="handleScreenTag">
<i class="el-icon-plus"></i>
......@@ -44,11 +36,7 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 3">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">客户信息:</label>
=======
<label>客户信息</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box">
<el-button size="small" @click="handleCrowd">
<i class="el-icon-plus"></i>
......@@ -70,11 +58,7 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 2">
<<<<<<< HEAD
<label style="margin: 0 0 0 32px">客户信息:</label>
=======
<label>客户信息</label>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="upload-box">
<div class="upload-file-panel">
<div class="image-uploader">
......@@ -99,25 +83,22 @@
<div class="drainage-title">营销配置</div>
<div class="form-main">
<div class="drainage-form">
<!-- <div class="drainage-form-item">
<div class="drainage-form-item">
<label class="is-require" style="line-height: 32px">营销名称</label>
<div style="position: relative">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="imName" :disabled="!editStatus" maxlength="30"></el-input>
<div class="el-form-item__error" v-if="imNameStatus">请输入营销名称</div>
</div>
</div> -->
</div>
<div class="drainage-form-item">
<!-- <label>群发短信</label> -->
<div class="gl-form-page">
<el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="营销名称:" prop="imName">
<el-input @focus="imNameStatus = false" type="type" size="small" placeholder="请输入营销名称" v-model.trim="addForm.imName" :disabled="!editStatus" maxlength="30"></el-input>
</el-form-item>
<el-form-item label="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<el-form-item size="small" label="营销时间:" prop="time">
<label>群发短信</label>
<div class="message-panel">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form">
<el-form-item label="推送规则:"><div class="configForm-desc">系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信下放。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</div></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-form-item>
<el-form-item label="短信内容:" prop="content">
<el-form-item label="短信内容" prop="content">
<el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="280" show-word-limit></el-input>
<div class="select-panel" v-if="editStatus">
<div @click="handleSelectMessage">
......@@ -128,13 +109,8 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<<<<<<< HEAD
<label>
自动打标签:
=======
<label style="width: 100px; text-align: left; color: #666">
自动打标签
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -163,13 +139,8 @@
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<<<<<<< HEAD
<label class="is-require" style="margin-left: 20px">
跟进员工:
=======
<label class="is-require">
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -190,13 +161,8 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<<<<<<< HEAD
<label style="margin-left: 20px">
跟进员工:
=======
<label>
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -223,11 +189,11 @@
<div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel">
<div class="welcome-switch">
<label>自动发送欢迎语:</label>
<label>自动发送欢迎语</label>
<el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box" v-show="editStatus && autoWelcome">
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<welcome-words :eventBus="eventBus" ref="welcome"></welcome-words>
</div>
<div class="welcome-box" v-show="!editStatus && autoWelcome">
<div class="welcome-box-contaner">
......@@ -260,10 +226,16 @@
</div>
</div>
</div>
<GLFooter>
<el-button @click="handleCancel">取消</el-button>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="handleSave">提交</el-button>
</GLFooter>
<el-button @click="handleCancel">取消</el-button>
</div>
<div class="import-panel" v-if="importStatus">
<div class="import-panel-box">
<div class="import-title">操作结果</div>
......@@ -283,7 +255,6 @@
</div>
</div>
</div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisible = false" type="warning" content="当前有内容信息未保存,是否继续返回?" :visible.sync="dialogVisible" mode="small"></GLDialog>
<select-emp ref="selectEmpForm" @selectTable="selectTable"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
<screen-tag ref="screenTagForm" @tagScreened="tagScreened"></screen-tag>
......@@ -295,7 +266,7 @@
<script>
import Vue from 'vue'
import word from '@/mixins/word'
import welcomeWords from '@/components/welcome/welcomeWords.vue'
import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag'
import screenTag from '@/components/screenTag'
......@@ -318,19 +289,14 @@ const validateContent = (rule, value, callback) => {
}
}
export default {
mixins: [word],
name: 'config',
components: {
selectEmp,
selectTag,
screenTag,
selectCrowd,
<<<<<<< HEAD
messageModel
=======
messageModel,
welcomeWords
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
data() {
return {
......@@ -338,6 +304,7 @@ export default {
selectType: 1,
loading: false,
welcomeInfo: [],
eventBus: new Vue(),
taggingLength: 0,
autoWelcome: true,
imName: '',
......@@ -352,7 +319,6 @@ export default {
footerLeft: 0,
footerWidth: 0,
addForm: {
imName: '',
desc: '',
content: `【${this.$globalState.session.merchantName}】`,
time: ['9:00:00', '18:00:00']
......@@ -363,7 +329,7 @@ export default {
labeling: [],
crowding: [],
messageItem: {},
dialogVisible: false,
dialogVisible: true,
value: false,
value1: false,
dracImFollowStaffResponses: [],
......@@ -371,10 +337,6 @@ export default {
ModelItem: {},
merchantName: this.$globalState.session.merchantName,
addRules: {
<<<<<<< HEAD
imName: [{ required: true, message: '请输入营销名称', trigger: 'blur' }],
=======
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
time: [
{ required: true, message: '请选择营销时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' }
......@@ -516,10 +478,6 @@ export default {
goback() {
this.importStatus = false
},
<<<<<<< HEAD
handleSure() {
this.$router.push('/market/index')
=======
handleCancel() {
console.log(this.saveStatus)
if (this.saveStatus || (this.$refs.welcome && this.$refs.welcome.previewList.length > 0 && this.editStatus)) {
......@@ -533,15 +491,6 @@ export default {
} else {
this.$router.push('/market/index')
}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
handleCancel() {
console.log(this.saveStatus)
if (this.saveStatus || (this.$refs.welcome && this.$refs.welcome.previewList.length > 0 && this.editStatus)) {
this.dialogVisible = true
} else {
this.$router.push('/market/index')
}
},
selectItem(item) {
this.messageItem = item
......@@ -691,11 +640,7 @@ export default {
const groupIds = this.crowding.map(item => item.crowdId)
let params = {
autoWelcome: this.autoWelcome ? 1 : 0,
<<<<<<< HEAD
imName: this.addForm.imName,
=======
imName: this.imName,
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
imType: 2,
tagging: JSON.stringify(tagging),
filterTagging: JSON.stringify(this.filterTagging),
......@@ -725,16 +670,6 @@ export default {
}
return item
})
<<<<<<< HEAD
=======
this.$tracker.track({
selectType: this.selectType == 1 ? '通过标签筛选' : this.selectType == 2 ? '通过Excel导入' : '通过人群筛选',
marketInfo: `短信内容:${this.addForm.content},营销时间:${this.addForm.time},营销名称:${this.imName}`,
welcomeInfo: attachmentList,
pageName: '新增营销',
name: '提交'
})
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
params.welcomeInfo = attachmentList
this.loading = true
this.$apis.marketing.exportAdd(params).then(res => {
......@@ -781,7 +716,7 @@ export default {
this.dracImFollowStaffResponses = res.dracImFollowStaffResponses
this.addForm.time = [res.dracImMessageConResponse.startTime, res.dracImMessageConResponse.endTime]
this.addForm.content = res.dracImMessageConResponse.content
this.addForm.imName = res.imName
this.imName = res.imName
this.autoWelcome = res.autoWelcome ? true : false
const previewList = res.dracScrmWelcomeConfigDTOS.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
......@@ -850,7 +785,7 @@ export default {
}
}
.welcome-box {
margin-left: 61px;
margin-left: 48px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -952,21 +887,13 @@ export default {
}
}
.drainage-wrap {
<<<<<<< HEAD
margin-bottom: 16px;
=======
margin-bottom: 20px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
&:nth-child(2) {
margin-bottom: 20px;
}
&.drainage-bottom {
<<<<<<< HEAD
margin-bottom: 16px;
=======
margin-bottom: 60px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
.drainage-title {
padding-left: 20px;
......@@ -1029,11 +956,9 @@ export default {
}
}
label {
font-size: 14px;
width: 120px;
text-align: right;
color: #666;
width: 140px;
margin-right: 12px;
margin-right: 20px;
height: 36px;
line-height: 36px;
img {
......@@ -1066,9 +991,7 @@ export default {
color: #717171;
line-height: 30px;
border: 1px solid #dcdfe6;
width: 580px !important;
border-top: 0px;
box-sizing: border-box;
> div {
cursor: pointer;
margin-right: 10px;
......@@ -1081,11 +1004,7 @@ export default {
.upload-box {
margin-bottom: 10px;
&.drainage-type {
<<<<<<< HEAD
margin-left: -28px;
=======
margin-left: -10px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
.tag-count {
color: #666666;
......
......@@ -5,15 +5,9 @@
<el-tab-pane label="客户列表" name="second"></el-tab-pane>
</el-tabs>
<component :is="activeName == 'first' ? configInfo : customList"></component>
<<<<<<< HEAD
<!-- <GLFooter>
<el-button type="primary" @click="goback">返回</el-button>
</GLFooter> -->
=======
<GLFooter>
<el-button type="primary" @click="goback">返回</el-button>
</GLFooter>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
</div>
</template>
......
......@@ -14,15 +14,8 @@
</div>
<div class="square-tabel scrm-box-f">
<div class="square-tabel-form">
<<<<<<< HEAD
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
=======
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="imStatus" slot-scope="scope">
<span :class="['task_icon',scope.scope.imStatus==3?'green-icon':'yellow-icon']">{{ scope.scope.imStatusName }}</span>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">查看配置</GLButton>
<!-- <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleStatistics(scope.scope)" fn="营销统计">营销统计</GLButton> -->
......@@ -99,32 +92,26 @@ export default {
tableColumns: [
{
label: '营销名称',
prop: 'imName',
minWidth: '150px'
prop: 'imName'
},
{
label: '营销客户数',
prop: 'customerCount',
minWidth: '120px'
width: '120px'
},
{
label: '状态',
prop: 'imStatusName',
addHtml:'imStatus'
prop: 'imStatusName'
},
{
label: '创建时间',
prop: 'createdTime',
minWidth: '180px'
width: '180px'
},
{
label: '创建人',
prop: 'createdName',
<<<<<<< HEAD
minWidth: '220px'
=======
width: '220px'
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '操作',
......
......@@ -24,13 +24,6 @@
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
<GLDialog title="提示" :hasFooter="true" :content="messageContent" :visible.sync="dialogVisible" mode="small">
<span slot="footer" class="dialog-footer">
<el-button size="small" type="primary" @click="dialogVisible = false">
确定
</el-button>
</span>
</GLDialog>
</div>
</template>
......@@ -43,10 +36,8 @@ export default {
},
data() {
return {
messageContent: '',
totalCount: 0,
percentage: 0,
dialogVisible: false,
optionstatus: [
{
value: '',
......@@ -147,8 +138,7 @@ export default {
this.$refs.employeeRef.refreshTable()
},
handleDetail(scope) {
this.dialogVisible = true
this.messageContent = scope.content
this.$alert(scope.content, { center: true })
}
},
mounted() {
......
......@@ -155,7 +155,7 @@ export default {
}
}
.store-panel {
margin: 16px auto;
margin: 20px auto;
padding: 20px;
display: flex;
.store-panel-item {
......@@ -258,7 +258,7 @@ export default {
}
}
.statistics-main {
margin-top: 16px;
margin-top: 20px;
.statistics-title {
font-size: 20px;
font-weight: 500;
......
......@@ -95,7 +95,7 @@ export default {
methods: {
async merchantConfig() {
this.loading = true
const fileList = await this.$apis.square.merchantConfig({})
const fileList = (await this.$apis.square.merchantConfig({})) || []
this.fileList = fileList.map(item => {
this.textNum = this.textNum > item.templateName.length ? this.textNum : item.templateName.length + 1
return {
......
......@@ -27,11 +27,7 @@
</div>
</div>
</div>
<<<<<<< HEAD
<GLDialog @onOk="handleSure" @onCancel="handleCancel" title="提示" :visible.sync="dialogVisible" mode="small">
=======
<el-dialog title="提示" :visible.sync="dialogVisible" width="30%" :before-close="handleClose" top="30vh">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="dialog-body">
<div class="dialog-tips-icon"><i class="el-icon-warning"></i></div>
<div class="dialog-tips-text">点击继续将开始上传数据文件</div>
......@@ -40,22 +36,13 @@
,是否继续吗?
</div>
</div>
<<<<<<< HEAD
<!-- <div slot="footer" class="dialog-footer">
=======
<div slot="footer" class="dialog-footer">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-button size="small" @click="handleCancel">
取 消
</el-button>
<el-button size="small" type="primary" @click="handleSure">确 定</el-button>
<<<<<<< HEAD
</div> -->
</GLDialog>
=======
</div>
</el-dialog>
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<div class="loading-containner" v-if="processLoading"></div>
</div>
</template>
......
......@@ -71,18 +71,14 @@
<div class="form-main">
<div class="drainage-form">
<div class="drainage-form-item">
<!-- <label>群发短信</label> -->
<div class="gl-form-page">
<el-form ref="configForm" label-width="154px" :model="addForm" :rules="addRules" class="code-body-form">
<label>群发短信</label>
<div class="message-panel">
<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>
<<<<<<< HEAD
<el-form-item size="small" label="营销时间:" prop="time">
=======
<el-form-item size="small" label="营销时间" prop="time">
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<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-form-item label="短信内容" prop="content">
<el-input :disabled="!editStatus" type="textarea" v-model="addForm.content" rows="5" maxlength="280" show-word-limit></el-input>
<div class="select-panel" v-if="editStatus">
<div @click="handleSelectMessage">
......@@ -93,13 +89,8 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<<<<<<< HEAD
<label style="width: 140px;font-size:14px; text-align: right; color: #666">
自动打标签:
=======
<label style="width: 100px; text-align: left; color: #666">
自动打标签
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -129,13 +120,8 @@
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<<<<<<< HEAD
<label class="is-require" style="width: 140px;font-size:14px; text-align: right; color: #666">
跟进员工:
=======
<label class="is-require">
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -156,13 +142,8 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<<<<<<< HEAD
<label style="width: 140px;font-size:14px; text-align: right; color: #666;margin-left:20px;">
跟进员工:
=======
<label>
跟进员工
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -189,11 +170,11 @@
<div class="chanel-form-title">欢迎语</div>
<div class="welcome-panel">
<div class="welcome-switch">
<label>自动发送欢迎语:</label>
<label>自动发送欢迎语</label>
<el-switch :disabled="!editStatus" v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box" v-show="editStatus && autoWelcome">
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<welcome-words :eventBus="eventBus" ref="welcome"></welcome-words>
</div>
<div class="welcome-box" v-show="!editStatus && autoWelcome">
<div class="welcome-box-contaner">
......@@ -294,14 +275,13 @@
</div>
</div>
</div>
<GLDialog title="提示" @onOk="handleSure" @onCancel="dialogVisibleTips = false" type="warning" content="当前有内容信息未保存,是否继续返回?" :visible.sync="dialogVisibleTips" mode="small"></GLDialog>
</div>
</template>
<script>
import Vue from 'vue'
import word from '@/mixins/word'
import { utils } from 'glsx-common'
import welcomeWords from '@/components/welcome/welcomeWords.vue'
import selectEmp from '@/components/selectEmp'
import selectTag from '@/components/selectTag'
import messageModel from '../market/components/messageModel'
......@@ -313,17 +293,16 @@ const validateTime = (rule, value, callback) => {
}
}
export default {
mixins: [word],
name: 'drainage',
components: {
selectEmp,
selectTag,
messageModel
messageModel,
welcomeWords
},
data() {
return {
welcomeInfo: [],
dialogVisibleTips: false,
eventBus: new Vue(),
autoWelcome: true,
editStatus: false,
......@@ -462,15 +441,6 @@ export default {
this.saveStatus = true
}
if (this.saveStatus) {
<<<<<<< HEAD
this.dialogVisibleTips = true
} else {
this.$router.go(-1)
}
},
handleSure() {
this.$router.go(-1)
=======
this.$confirm('当前有内容信息未保存,是否继续返回?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -481,7 +451,6 @@ export default {
} else {
this.$router.go(-1)
}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
//开关
handleSwitch() {
......@@ -629,7 +598,7 @@ export default {
<style lang="scss" scoped>
.channel-main-welcome {
margin: 20px 0px 16px;
margin: 20px 0px 60px;
.chanel-form-title {
padding-left: 20px;
font-size: 16px;
......@@ -652,7 +621,7 @@ export default {
}
}
.welcome-box {
margin-left: 60px;
margin-left: 48px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -849,9 +818,9 @@ export default {
display: flex;
margin-top: 20px;
label {
width: 140px;
width: 120px;
text-align: right;
margin-right: 12px;
margin-right: 20px;
height: 36px;
line-height: 36px;
img {
......@@ -860,7 +829,6 @@ export default {
vertical-align: middle;
}
&.is-require {
padding-left: 20px;
&::before {
content: '*';
color: #f56c6c;
......@@ -888,8 +856,6 @@ export default {
line-height: 30px;
border: 1px solid #dcdfe6;
border-top: 0px;
width: 580px!important;
box-sizing: border-box;
> div {
cursor: pointer;
margin-right: 10px;
......@@ -933,8 +899,8 @@ export default {
}
}
.message-panel {
// background: #f7f7f7;
// border: 1px solid #dcdfe6;
background: #f7f7f7;
border: 1px solid #dcdfe6;
padding: 20px;
flex: 1;
box-sizing: border-box;
......
......@@ -417,13 +417,8 @@ export default {
}
.squre-safe-panel {
padding: 40px;
<<<<<<< HEAD
margin-top: 10px;
margin-bottom: 16px;
=======
margin-top: 20px;
// margin-bottom: 60px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
/deep/ {
.el-carousel__indicators,
.el-carousel__arrow {
......@@ -514,6 +509,7 @@ export default {
margin: 40px 0px;
height: 328px;
background: #ffffff;
box-shadow: 0px 0px 20px 0px rgba(88, 80, 255, 0.1);
border-radius: 2px;
display: flex;
justify-content: space-between;
......
......@@ -110,9 +110,6 @@
</GLButton>
</div>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="state" slot-scope="scope">
<span :class="['task_icon',scope.scope.state==1?'green-icon':'yellow-icon']">{{ scope.scope.state== 1 ? '已处理' : '处理中' }}</span>
</div>
<div slot="importNumber" slot-scope="scope">
<div class="number-form">
<span>{{ scope.scope.entmicroNumber }}</span>
......@@ -244,20 +241,11 @@ export default {
}
},
{
<<<<<<< HEAD
label: '数据处理状态',
prop: 'state',
addHtml: 'state',
// formatter: cellValue => {
// return cellValue.state == 1 ? '已处理' : '处理中'
// }
=======
label: '事件处理状态',
prop: 'state',
formatter: cellValue => {
return cellValue.state == 1 ? '已处理' : '处理中'
}
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
},
{
label: '导入人员',
......@@ -287,9 +275,8 @@ export default {
methods: {
importsCount() {
this.$apis.square.importsCount({}).then(res => {
if (res) {
this.countAll = res
}
console.log(res)
this.countAll = res
})
},
handleReset() {
......@@ -315,15 +302,9 @@ export default {
jumpDetail(status) {
let url
if (status) {
<<<<<<< HEAD
url = `/custom/clientManage/index?isJoin=${status}&addWay=数据魔方`
} else {
url = `/custom/clientManage/index?addWay=数据魔方`
=======
url = `/custom/clientManage/index?isJoin=${status}&addWay=企微魔方`
} else {
url = `/custom/clientManage/index?addWay=企微魔方`
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
}
this.$history.push(url)
},
......@@ -372,15 +353,8 @@ export default {
}
}
this.$apis.square.queryCrowdTree(params).then(res => {
<<<<<<< HEAD
if (res && res.crowdUnitList) {
const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户')
this.crowdId = crowdUnitList ? crowdUnitList.crowdId : ''
}
=======
const crowdUnitList = res.crowdUnitList.find(item => item.crowdName == '已加企微,待匹配客户')
this.crowdId = crowdUnitList.crowdId
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
})
}
},
......@@ -508,6 +482,7 @@ export default {
height: 102px;
margin: 20px 0px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
.square-num-item {
width: 50%;
......@@ -541,11 +516,7 @@ export default {
}
}
.coustom-box-container {
<<<<<<< HEAD
margin-top: 16px;
=======
margin-top: 20px;
>>>>>>> 396e1482ded1b79e8dc9f700b1a584ff319bc981
background: #ffffff;
.square-title {
height: 55px;
......@@ -662,7 +633,7 @@ export default {
}
.square-tabel {
padding: 20px;
margin-top: 16px;
margin-top: 20px;
}
.table-btns a {
color: #5850ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!