Commit 5e36da82 by 前端

commit:ui样式修改

1 parent 961f73a7
img {
width: 100%;
height: 100%;
vertical-align: top;
width: 100%;
height: 100%;
vertical-align: top;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-hide-2 {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.scrm-textRight {
position: relative;
text-align: right;
position: relative;
text-align: right;
}
.scrm-textCenter {
text-align: center;
text-align: center;
}
.scrm-c3 {
color: #333333;
color: #333333;
}
.scrm-f12 {
font-size: 12px;
font-size: 12px;
}
.scrm-f13 {
font-size: 13px;
font-size: 13px;
}
.scrm-f14 {
font-size: 14px;
font-size: 14px;
}
.scrm-f15 {
font-size: 15px;
font-size: 15px;
}
.scrm-f16 {
font-size: 16px;
font-size: 16px;
}
.scrm-f18 {
font-size: 18px;
font-size: 18px;
}
.scrm-f20 {
font-size: 20px;
font-size: 20px;
}
.scrm-f22 {
font-size: 22px;
font-size: 22px;
}
.scrm-f24 {
font-size: 24px;
font-size: 24px;
}
.scrm-m10 {
margin: 10px;
margin: 10px;
}
.scrm-m20 {
margin: 20px;
margin: 20px;
}
.scrm-ml10 {
margin-left: 10px;
margin-left: 10px;
}
.scrm-ml20 {
margin-left: 20px;
margin-left: 20px;
}
.scrm-mr10 {
margin-right: 10px;
margin-right: 10px;
}
.scrm-mr20 {
margin-right: 20px;
margin-right: 20px;
}
.scrm-p10 {
padding: 10px;
padding: 10px;
}
.scrm-p20 {
padding: 20px;
padding: 20px;
}
.scrm-box-f {
background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background: #ffffff;
// box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
}
.scrm-flex {
display: flex;
display: flex;
}
.task_icon {
position: relative;
&::after {
content: '';
position: absolute;
top: 8px;
left: -10px;
width: 6px;
height: 6px;
border-radius: 4px;
}
}
.green-icon {
&::after {
background: #2cca74;
}
}
.yellow-icon {
&::after {
background: #fdb757;
}
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
.glsx-table .line-ellipsis {
display: inline;
display: inline;
}
.el-form--inline .el-form-item {
margin-right: 0px;
margin-right: 0px;
}
.el-tag {
color: #666 !important;
font-size: 14px !important;
color: #666 !important;
font-size: 14px !important;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
}
.el-tag.el-tag--info.el-tag--plain {
background: transparent !important;
background: transparent !important;
}
.el-dialog__title {
height: 30px;
display: block;
height: 30px;
display: block;
}
.el-table--enable-row-hover .el-table__body tr:hover {
background: #f4f3ff !important;
background: #f4f3ff !important;
}
.el-table tbody tr:hover > td {
background: #f4f3ff !important;
background: #f4f3ff !important;
}
.el-message-box .el-message-box__title,
.el-message-box .el-message-box__headerbtn {
display: none;
// display: none;
}
.el-message-box__content {
text-align: center;
padding: 50px 0px 50px;
text-align: center;
padding: 50px 0px 50px;
}
.el-message-box__status.el-icon-warning {
display: none;
// display: none;
}
.el-message-box__btns {
text-align: center;
padding: 20px 0px 10px;
border-top: 1px solid #e6e6e6;
text-align: center;
padding: 20px 0px 10px;
border-top: 1px solid #e6e6e6;
}
.el-message-box__btns button:nth-child(2) {
margin-left: 40px;
margin-left: 40px;
}
.el-message-box__status + .el-message-box__message {
padding: 0px 10px;
padding: 0px 10px;
}
.el-message-box--center {
padding: 0px;
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);
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;
color: #5850ff;
font-size: 16px;
}
.el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none !important;
box-shadow: none !important;
}

1.84 KB | W: | H:

2.93 KB | W: | H:

src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
src/assets/img/channel/count1.png
  • 2-up
  • Swipe
  • Onion skin

1.95 KB | W: | H:

2.91 KB | W: | H:

src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
src/assets/img/channel/count2.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -122,10 +122,10 @@ export default {
<style scoped lang="scss">
.full-container {
display: inline-block;
margin-right: 6px;
margin-right: 4px;
/deep/ {
.el-tag {
margin-right: 10px;
// margin-right: 10px;
line-height: 26px;
height: 26px;
}
......
......@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = true) {
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
// return new Http({ request: { timeout: 100000 } }).get('https://oss-config.test.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
return new Http({ request: { timeout: 100000 } }).get('https://oss-config.dev.glsx.com.cn/mock/618a32851072f92988f05a17/drainage/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -105,7 +105,7 @@
<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">
......@@ -359,7 +359,7 @@ export default {
}
}
.welcome-box {
margin-left: 48px;
margin-left: 62px;
}
}
}
......
......@@ -23,20 +23,9 @@
</div>
<div slot="staffInfo" slot-scope="scope">
<el-popover trigger="hover" placement="top" v-if="staffNameSplit(scope.scope.staffName).length > 3">
<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>
<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 v-for="(item, index) in staffNameSplit(scope.scope.staffName)" :key="index" v-show="index < 4">
<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>
......@@ -47,19 +36,7 @@
</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>
<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">
<i class="el-icon-user-solid"></i>
......@@ -68,11 +45,13 @@
</div> -->
</div>
<div slot="qrCode" slot-scope="scope">
<el-popover placement="bottom" width="400" trigger="click">
<img :src="scope.scope.qrCode" style="width: 360px; height: 360px" />
<img :src="scope.scope.qrCode" style="width: 80px; height: 80px" slot="reference" />
<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 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">
......@@ -195,19 +174,19 @@ export default {
{
label: '今日新增客户数',
prop: 'yesterdayNum',
width: '130px',
width: 130,
addHtml: 'yesterdayNum'
},
{
label: '总新增客户数',
prop: 'totalNum',
width: '120px',
width: 120,
addHtml: 'totalNum'
},
{
label: '使用专员',
prop: 'staffInfo',
width: '130px',
minWidth: 400,
addHtml: 'staffInfo',
align: 'left'
},
......@@ -215,18 +194,18 @@ export default {
label: '活码',
prop: 'qrCode',
addHtml: 'qrCode',
width: '126px'
width: '100px'
},
{
label: '标签',
prop: 'tagging',
addHtml: 'tagging',
width: '150px'
minWidth: 200
},
{
label: '创建时间',
prop: 'createdTime',
width: '180px'
minWidth: 180
},
{
label: '操作',
......@@ -363,15 +342,19 @@ export default {
/deep/ .el-popover {
max-width: 1000px;
}
.name-wrapper {
display: flex;
}
}
.download-link {
cursor: pointer;
margin-top: 6px;
margin-top: 4px;
font-size: 14px;
font-weight: 400;
color: #666666;
color: #5850ff;
font-weight: 600;
color: #5850ff;
line-height: 20px;
padding-left: 5px;
text-align: center;
}
.codeRemark {
font-size: 14px;
......@@ -467,7 +450,7 @@ export default {
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
margin-right: 4px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
......
......@@ -24,6 +24,17 @@ export default {
}
},
methods: {
render(createElement){
createElement('div',{
class:{
'channel-main':true
}
},[
createElement('el-tabs',{
})
])
},
jumpWx() {
this.$history.push('/settings/enterpriseWechat/index')
},
......
......@@ -11,20 +11,43 @@
<el-row>
<el-form-item size="small" label="使用员工:">
<div class="form-row">
<div class="emp-item" v-for="(item, index) in detailCodeForm.staffInfo" :key="index">
<i class="el-icon-user-solid"></i>
{{ item.staffName }}
</div>
<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>
</el-form-item>
</el-row>
<el-row>
<el-form-item size="small" label="标签:">
<div class="form-row">
<template v-for="item in tagging">
<div class="tag-item" v-for="(tag, idx) in item.labelList" :key="idx">
{{ tag.name }}
<template v-for="(tag, idx) in tagging">
<div class="tag-item" :key="idx" v-if="idx < 10">
{{ tag }}
</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>
......@@ -180,7 +203,14 @@ export default {
labelList
}
})
this.tagging = taggingList
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.welcomeInfo = res.welcomeInfo.map(item => {
let attContent
if (item.attType == 7) {
......@@ -240,45 +270,6 @@ 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;
......@@ -369,34 +360,67 @@ 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: 0;
border: none;
}
.el-tabs__header {
border: 0;
background-color: #f4f6fc;
margin: 0px;
}
.el-tabs__item {
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;
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;
}
}
}
}
......
......@@ -4,29 +4,32 @@
<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="message-panel">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form">
<!-- <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-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="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">
<label style="width: 100px; text-align: left; color: #666">
自动打标签
<label>
自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -43,8 +46,8 @@
</div>
</div>
<div class="drainage-form-item">
<label>
跟进员工
<label style="margin-left: 20px">
跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -71,7 +74,7 @@
<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">
......@@ -282,7 +285,7 @@ export default {
}
}
.welcome-box {
margin-left: 48px;
margin-left: 70px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -449,9 +452,11 @@ export default {
}
}
label {
width: 120px;
font-size: 14px;
text-align: right;
margin-right: 20px;
color: #666;
width: 140px;
margin-right: 12px;
height: 36px;
line-height: 36px;
img {
......
......@@ -21,15 +21,16 @@
</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 slot="status" slot-scope="scope">
<span :class="['task_icon',scope.scope.status==1?'green-icon':'yellow-icon']">{{ scope.scope.statusName }}</span>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
<GLDialog title="提示" :hasFooter="true" :content="messageContent" :visible.sync="dialogVisible" mode="small">
<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>
<el-button size="small" type="primary" @click="dialogVisible = false">确定</el-button>
</span>
</GLDialog>
</div>
......@@ -75,7 +76,8 @@ export default {
},
{
label: '发送状态',
prop: 'statusName'
prop: 'statusName',
addHtml: 'status'
},
{
label: '发送时间',
......
......@@ -4,7 +4,7 @@
<div class="drainage-title">指定客户</div>
<div class="drainage-form">
<div class="drainage-form-item">
<label>指定方式</label>
<label style="margin: 0 0 0 32px">指定方式:</label>
<div class="upload-box drainage-type">
<el-radio-group v-model="selectType">
<el-radio :label="1">通过标签筛选</el-radio>
......@@ -14,7 +14,7 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 1">
<label>客户信息</label>
<label style="margin: 0 0 0 32px">客户信息:</label>
<div class="upload-box">
<el-button size="small" @click="handleScreenTag">
<i class="el-icon-plus"></i>
......@@ -36,7 +36,7 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 3">
<label>客户信息</label>
<label style="margin: 0 0 0 32px">客户信息:</label>
<div class="upload-box">
<el-button size="small" @click="handleCrowd">
<i class="el-icon-plus"></i>
......@@ -58,7 +58,7 @@
</div>
</div>
<div class="drainage-form-item" v-if="selectType == 2">
<label>客户信息</label>
<label style="margin: 0 0 0 32px">客户信息:</label>
<div class="upload-box">
<div class="upload-file-panel">
<div class="image-uploader">
......@@ -83,22 +83,25 @@
<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="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">
<!-- <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">
<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">
......@@ -109,8 +112,8 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666">
自动打标签
<label>
自动打标签:
<el-popover placement="top" width="400" trigger="hover" content="提示:通过该营销活动添加员工企微的客户,将自动使用以下标签进行标记。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -139,8 +142,8 @@
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<label class="is-require">
跟进员工
<label class="is-require" style="margin-left: 20px">
跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -161,8 +164,8 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<label>
跟进员工
<label style="margin-left: 20px">
跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -189,7 +192,7 @@
<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">
......@@ -313,6 +316,7 @@ export default {
footerLeft: 0,
footerWidth: 0,
addForm: {
imName: '',
desc: '',
content: `【${this.$globalState.session.merchantName}】`,
time: ['9:00:00', '18:00:00']
......@@ -331,6 +335,7 @@ export default {
ModelItem: {},
merchantName: this.$globalState.session.merchantName,
addRules: {
imName: [{ required: true, message: '请输入营销名称', trigger: 'blur' }],
time: [
{ required: true, message: '请选择营销时间', trigger: 'change' },
{ validator: validateTime, trigger: 'change' }
......@@ -344,7 +349,7 @@ export default {
},
watch: {
'addForm.content': {
handler: function() {
handler: function () {
this.content = []
let str = this.addForm.content
let num = 70
......@@ -380,7 +385,7 @@ export default {
deep: true
},
tagging: {
handler: function() {
handler: function () {
this.taggingLength = 0
this.tagging.forEach(item => {
this.taggingLength += item.labelList.length
......@@ -631,7 +636,7 @@ export default {
const groupIds = this.crowding.map(item => item.crowdId)
let params = {
autoWelcome: this.autoWelcome ? 1 : 0,
imName: this.imName,
imName: this.addForm.imName,
imType: 2,
tagging: JSON.stringify(tagging),
filterTagging: JSON.stringify(this.filterTagging),
......@@ -707,7 +712,7 @@ export default {
this.dracImFollowStaffResponses = res.dracImFollowStaffResponses
this.addForm.time = [res.dracImMessageConResponse.startTime, res.dracImMessageConResponse.endTime]
this.addForm.content = res.dracImMessageConResponse.content
this.imName = res.imName
this.addForm.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)
......@@ -776,7 +781,7 @@ export default {
}
}
.welcome-box {
margin-left: 48px;
margin-left: 61px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -947,9 +952,11 @@ export default {
}
}
label {
width: 120px;
font-size: 14px;
text-align: right;
margin-right: 20px;
color: #666;
width: 140px;
margin-right: 12px;
height: 36px;
line-height: 36px;
img {
......@@ -982,7 +989,9 @@ 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;
......@@ -995,7 +1004,7 @@ export default {
.upload-box {
margin-bottom: 10px;
&.drainage-type {
margin-left: -10px;
margin-left: -28px;
}
.tag-count {
color: #666666;
......
......@@ -14,8 +14,11 @@
</div>
<div class="square-tabel scrm-box-f">
<div class="square-tabel-form">
<GLCombiForm ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm :rowNumber="1" ref="formSearch" :formObj="tableSearchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<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> -->
......@@ -92,26 +95,28 @@ export default {
tableColumns: [
{
label: '营销名称',
prop: 'imName'
prop: 'imName',
minWidth: '150px'
},
{
label: '营销客户数',
prop: 'customerCount',
width: '120px'
minWidth: '120px'
},
{
label: '状态',
prop: 'imStatusName'
prop: 'imStatusName',
addHtml:'imStatus'
},
{
label: '创建时间',
prop: 'createdTime',
width: '180px'
minWidth: '180px'
},
{
label: '创建人',
prop: 'createdName',
width: '220px'
minWidth: '220px'
},
{
label: '操作',
......
......@@ -71,14 +71,14 @@
<div class="form-main">
<div class="drainage-form">
<div class="drainage-form-item">
<label>群发短信</label>
<div class="message-panel">
<el-form ref="configForm" label-position="left" label-width="100px" :model="addForm" :rules="addRules" class="code-body-form">
<!-- <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="推送时间:">系统将在「开始营销时间」之后启动智系统将在「开始营销时间」之后启动短信营销,并在「截止营销时间」之后停止短信发送。由于相关管控限制,营销类短信无法实时触达用户,若短信时效要求很高,请谨慎使用。</el-form-item>
<el-form-item size="small" label="营销时间" prop="time">
<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 :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">
......@@ -89,8 +89,8 @@
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<div class="drainage-form-item">
<label style="width: 100px; text-align: left; color: #666">
自动打标签
<label style="width: 140px;font-size:14px; text-align: right; 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>
......@@ -120,8 +120,8 @@
</div>
</div>
<div class="drainage-form-item" v-if="editStatus">
<label class="is-require">
跟进员工
<label class="is-require" style="width: 140px;font-size:14px; text-align: right; 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>
......@@ -142,8 +142,8 @@
</div>
</div>
<div class="drainage-form-item" v-else>
<label>
跟进员工
<label style="width: 140px;font-size:14px; text-align: right; color: #666;margin-left:20px;">
跟进员工:
<el-popover placement="top" width="400" trigger="hover" content="用户点击短信中的链接后,将自动分配以下某位员工的企微名片,客户添加好友将自动回复后台所配置的欢迎语。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
......@@ -170,7 +170,7 @@
<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">
......@@ -620,7 +620,7 @@ export default {
}
}
.welcome-box {
margin-left: 48px;
margin-left: 60px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
......@@ -817,9 +817,9 @@ export default {
display: flex;
margin-top: 20px;
label {
width: 120px;
width: 140px;
text-align: right;
margin-right: 20px;
margin-right: 12px;
height: 36px;
line-height: 36px;
img {
......@@ -828,6 +828,7 @@ export default {
vertical-align: middle;
}
&.is-require {
padding-left: 20px;
&::before {
content: '*';
color: #f56c6c;
......@@ -855,6 +856,8 @@ 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;
......@@ -898,8 +901,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;
......
......@@ -110,6 +110,9 @@
</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>
......@@ -241,11 +244,12 @@ export default {
}
},
{
label: '事件处理状态',
label: '数据处理状态',
prop: 'state',
formatter: cellValue => {
return cellValue.state == 1 ? '已处理' : '处理中'
}
addHtml: 'state',
// formatter: cellValue => {
// return cellValue.state == 1 ? '已处理' : '处理中'
// }
},
{
label: '导入人员',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!