Commit df353fd1 by yangming

new

1 parent 0b4923bb
......@@ -12,7 +12,7 @@
"core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.6",
"glsx-components": "^1.2.2",
"glsx-components": "^1.2.4",
"glsx-table": "^1.0.9",
"vue-draggable-resizable": "^2.3.0"
},
......
......@@ -18,6 +18,15 @@ export default {
}
},
created() {
document.onkeydown = function () {
var evt = window.event || arguments[0]
if (evt && evt.keyCode == 13) {
if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true
if (typeof evt.stopPropagation == 'function') evt.stopPropagation()
return false
}
return true
}
this.myMsg = this.msg
this.myMessage = this.message
}
......@@ -30,7 +39,7 @@ export default {
line-height: 36px;
}
#app {
background: #F4F5FA;
background: #f4f5fa;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
......
......@@ -35,6 +35,16 @@ const getCard = params => {
sign: true
})
}
const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const findAllByPage = params => {
params.method = 'entmicro.api.dracIm.findAllByPage'
params.sessionId = session
......@@ -129,6 +139,7 @@ export default {
getCoupon,
getMerchant,
getCard,
getPackage,
listChannelCodeBill,
findAllByPage,
dracImMessage,
......
......@@ -96,7 +96,7 @@ const findMessageStatic = params => {
}
const viewChart = params => {
params.method = 'entmicro.api.customer.view.chart'
params.method = 'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend'
params.sessionId = session
return http({
url: 'rop-scrm-entmicro/router',
......
/**
* type : primary,success,default,error,danger
* size: 按钮大小,参照elementui
* id: 权限判断id
* mode:按钮类型 是a标签还是button,可选值为:button、link
*/
import { Button, Link } from 'element-ui'
const TYPE = Object.freeze({
none: ''
})
// 权限校验
function judgePermissions(options) {
if (!options) {
return false
}
let _list = options.parent.permissions || []
let _o = options.props
let idx = _list.findIndex(k => k == _o.id)
// 如果没有权限,则返回空标签
if (idx < 0) {
return ''
}
if (_o.mode == 'link') {
return 'a'
}
return 'button'
}
// 获取class
function getClass(context) {
let o = context.props
let _class = []
_class.push('el-' + o.mode)
_class.push('el-' + o.mode + '--' + o.type)
if (o.size) {
_class.push('el-' + o.mode + '--' + o.size)
}
if (o.class) {
_class.push(o.class)
function permission(ctx) {
console.log(ctx)
if (!ctx) return TYPE.none
const {
props: { fn, mode },
parent: {
$GLBUTTION_PERMISSIONS: { routes = [], routerBase }
}
} = ctx
const router = routes.find(route => location.pathname === `${routerBase}${route.path.split(':/')[0]}`)
if (router && router.meta && router.meta.permissions && router.meta.permissions.includes(fn)) {
return mode
}
return _class
return TYPE.none
}
export default {
functional: true,
name: 'GLButton',
props: {
type: {
type: String,
default: 'default'
},
size: {
type: String,
default: 'medium'
},
id: {
type: [String, Number]
fn: {
type: String
},
mode: {
type: String,
default: 'button'
},
class: {
type: String,
default: ''
default: 'el-button'
}
},
render: function(createElement, context) {
let _props = context.props
let options = {
props: _props,
attrs: context.props,
class: getClass(context),
on: {
click: event => {
context.listeners.click('click', event)
}
}
}
return createElement(judgePermissions(context), options, context.children)
return createElement(permission(context), context.data, context.children)
}
}
}
\ No newline at end of file
......@@ -12,5 +12,5 @@ import Vue from 'vue'
import _button from '@/components/glsx-button/index'
Vue.component('basic-dialog', () =>
import ('./basic-dialog/index.vue'))
Vue.component('glsx-button', _button)
Vue.component('GLButton', _button)
// Vue.component('glsx-table', glsxTable)
\ No newline at end of file
<template>
<div class="square-main" v-loading="loading">
<el-dialog title="选择跟进专员" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<el-form :inline="true" :model="tableSearchForm" label-width="80px">
<el-form :inline="true" :model="tableSearchForm">
<el-form-item size="small" label="员工">
<el-input v-model="tableSearchForm.staffName" placeholder="请输入员工姓名"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-form-item size="small">
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"></GLTable>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">新增专员</a>
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click.native="handleSelect">确 定</el-button>
</span>
......@@ -58,6 +59,9 @@ export default {
}
},
methods: {
jumpUrl() {
this.$history.push('/home/followUp/index')
},
getFollower() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
......@@ -122,6 +126,13 @@ export default {
</script>
<style lang="scss" scoped>
.dialog-jump {
color: #5850FF;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.square-main {
/deep/ {
.el-table {
......
......@@ -38,6 +38,7 @@
</div>
</div>
<span slot="footer" class="dialog-footer">
<a class="dialog-jump" @click="jumpUrl">没有意向标签?点我创建</a>
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
......@@ -86,10 +87,10 @@ export default {
}
},
watch: {
labelTreeRets: {
labelTreeRetSelect: {
handler() {
this.selectNum = 0
this.labelTreeRets.forEach(item => {
this.labelTreeRetSelect.forEach(item => {
this.selectNum += item.tagChecked.length
})
},
......@@ -97,6 +98,9 @@ export default {
}
},
methods: {
jumpUrl() {
this.$history.push('/custom/tagsManage/index')
},
init(item) {
this.labelGroupName = ''
this.dialogVisible = true
......@@ -262,12 +266,19 @@ export default {
},
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 300
this.heightBox = clientHeight - 0.15 * clientHeight - 350
}
}
</script>
<style lang="scss" scoped>
.dialog-jump {
color: #5850FF;
float: left;
line-height: 24px;
text-decoration: underline;
cursor: pointer;
}
.tag-panel {
display: flex;
.tag-panel-select {
......
......@@ -5,63 +5,52 @@
<div class="model-panel-tab">
<label>活动类型:</label>
<el-tabs v-model="activeName" @tab-click="handleClick" type="card">
<el-tab-pane label="券营销" name="1"></el-tab-pane>
<el-tab-pane label="权益卡" name="2"></el-tab-pane>
<el-tab-pane label="精品券" name="1"></el-tab-pane>
<el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="权益卡试用" name="3"></el-tab-pane>
<el-tab-pane label="权益套餐" name="4"></el-tab-pane>
</el-tabs>
</div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
<div
class="model-item"
:class="{ checked: selectItem == item }"
v-for="(item, index) in modelList"
:key="index"
@click="handleSelectItem(item)"
>
<div class="model-item-title" v-show="activeName == 2">{{ item.cardClassName }}</div>
<div class="model-item-title" v-show="activeName == 1">{{ item.couponName }}</div>
<div class="model-item-content" v-show="activeName == 1">数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 2">价格:{{ item.price }}</div>
<div
class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 2"
>有效期:{{ item.effectiveNum }}天</div>
<div
class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 1"
>有效期:无限制</div>
<div
class="model-item-content"
v-show="activeName == 1 && item.effectiveType == 2"
>有效期:{{ item.effectiveStartTime }}~{{ item.effectiveEndTime }}</div>
<div
class="model-item-content"
v-show="activeName == 1 && item.effectiveType == 1"
>有效期:{{ item.effectiveDays }}天</div>
<div
class="model-item-content"
v-show="activeName == 1 && item.effectiveType == 3"
>有效期:无限制</div>
<div
class="model-item-content"
v-show="activeName == 1"
>类型:{{ item.discountType == 1 ? '满减劵' : item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '实物券' : item.discountType == 5 ? '购车代金券' : item.discountType == 6 ? '商品折扣券' : item.discountType == 7 ? '会员服务' : '' }}</div>
<div class="model-item-content" v-show="activeName == 2">类型:权益卡</div>
<div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div class="model-item-title" :title="item.cardClassName" v-show="activeName == 3">{{ item.cardClassName }}</div>
<div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div>
<div class="model-item-title" :title="item.cardClassName" v-show="activeName == 1">{{ item.couponName }}</div>
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div>
<div class="model-item-content" v-show="activeName == 1 || activeName == 4"></div>
<div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div>
<div class="model-item-content" v-show="activeName == 3">价格:{{ item.price }}元</div>
<div class="model-item-content" v-show="activeName == 4">价格:{{ item.packagePrice }}元</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 3">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 1">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 3 && item.effectiveType == 2">有效期:{{ item.effectiveNum}}天</div>
<div class="model-item-content" v-show="activeName == 2">
类型:
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券': ''}}</span>
</div>
<div class="model-item-content" v-show="activeName == 1">
类型:
<span>精品券</span>
</div>
<div class="model-item-content" v-show="activeName == 3">
类型:
<span>权益卡</span>
</div>
<div class="model-item-content" v-show="activeName == 4">
类型:
<span>权益套餐</span>
</div>
</div>
</div>
<div class="model-item-empty" v-else v-loading="loading">
<img src="@/assets/img/empty.png" />
<div class="empty-item">暂无数据</div>
</div>
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageNum"
:page-sizes="[10, 20, 30, 40]"
:page-size="pageSize"
:total="tableTotal"
layout="total, sizes, prev, pager, next, jumper"
></el-pagination>
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum" :page-sizes="[12, 24, 36, 48]" :page-size="pageSize" :total="tableTotal" layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
......@@ -81,7 +70,7 @@ export default {
activeName: '1',
modelList: [],
pageNum: 1,
pageSize: 10,
pageSize: 12,
tableTotal: 0,
selectItem: {}
}
......@@ -99,7 +88,7 @@ export default {
return
}
this.dialogVisible = false
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 2 ? this.selectItem.cardClassName : this.selectItem.couponName })
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.cardClassName : this.activeName == 4 ? this.selectItem.packageName : this.selectItem.couponName })
},
handleSizeChange(val) {
this.pageSize = val
......@@ -115,16 +104,29 @@ export default {
let market = ''
switch (this.activeName) {
case '1':
market = 'getMerchant'
market = 'getCoupon'
break
case '2':
market = 'getMerchant'
break
case '3':
market = 'getCard'
break
case '4':
market = 'getPackage'
break
}
let params = {
pageSize: this.pageSize,
pageNum: this.pageNum
}
if (this.activeName == 3) {
params.tryAble = 1
params.merchantId = this.$globalState.session.merchantId
}
if (this.activeName == 2) {
params.discountTypes = [2,3,4]
}
this.$apis.marketing[market](params).then(res => {
this.modelList = res.list ? res.list : res.data
this.tableTotal = res.total
......@@ -178,6 +180,7 @@ export default {
.el-tabs__item.is-active {
background-color: #fff;
border-radius: 4px;
font-weight: 600;
}
}
}
......@@ -201,8 +204,10 @@ export default {
display: grid;
grid-template-columns: repeat(4, 25%);
grid-row-gap: 10px;
height: 40vh;
height: 38vh;
padding: 10px;
overflow: auto;
text-align: center;
.model-item {
position: relative;
height: 128px;
......@@ -245,6 +250,9 @@ export default {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
span {
color: #5850ff;
}
}
}
}
......
......@@ -9,14 +9,7 @@
</div>-->
<!-- <div id="toolbar-container" style="display: none;"></div>
<div id="text-container" class="editor-container"></div>-->
<div
id="editor"
ref="editor"
@input="changeInput"
class="text-editor"
contenteditable="true"
autofocus
></div>
<wTextarea ref="textContent" :value.sync="textValue" @updateText="updateText"></wTextarea>
<!-- <el-input
type="textarea"
:rows="9"
......@@ -27,23 +20,24 @@
style="-webkit-user-modify: read-write-plaintext-only !important;"
placeholder="请输入内容"
></el-input>-->
<div v-for="itm in previewList" :key="itm.id">
<div v-for="(itm, index) in previewList" :key="itm.id">
<div class="welcome-file" v-if="itm.attType != 1">
<template v-if="itm.attType == 2">
<img src="@/assets/img/guestCustom/icon-img.png" alt />
<span>{{ itm.attContent }}</span>
<i v-show="index == previewList.length - 1 && loading" class="el-icon-loading"></i>
<img v-show="!loading" src="@/assets/img/guestCustom/icon-img.png" alt />
<span :title="itm.attContent">{{ itm.attContent }}</span>
</template>
<template v-else-if="itm.attType == 3">
<img src="@/assets/img/guestCustom/icon-img.png" alt />
<span>{{ itm.attContent }}</span>
<span :title="itm.attContent">{{ itm.attContent }}</span>
</template>
<template v-else-if="itm.attType == 7">
<img src="@/assets/img/guestCustom/icon-applet.png" alt />
<span>{{ itm.attContent.marketingName }}</span>
<span :title="itm.attContent.marketingName">{{ itm.attContent.marketingName }}</span>
</template>
<template v-else-if="itm.attType == 5">
<img src="@/assets/img/guestCustom/icon-applet.png" alt />
<span>{{ itm.attContent.title }}</span>
<span :title="itm.attContent.title">{{ itm.attContent.title }}</span>
</template>
<i class="el-icon-circle-close" @click="close(index)"></i>
</div>
......@@ -53,33 +47,15 @@
<!-- <i class="el-icon-circle-plus-outline"></i> -->
<img :src="require(`@/assets/img/guestCustom/add-${item.type}.png`)" alt />
<span>{{ item.name }}</span>
<input
v-if="item.type == 'img'"
type="file"
style="opacity: 0"
:id="item.name + 'file'"
ref="file"
class="welcome-input"
:accept="item.accept || 'image/png, image/jpeg, image/jpg'"
@change="e => handleImgChange(e, item)"
/>
<input
v-else-if="item.type == 'video'"
type="file"
style="opacity: 0"
:id="item.name + 'file'"
ref="file"
class="welcome-input"
:accept="item.accept || 'video/*'"
@change="e => handleVideoChange(e, item)"
/>
<input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" />
<el-link v-else style="opacity: 0" @click="handleFun(item.funName)">{{ item.name }}</el-link>
</div>
</div>
</div>
<div class="tips-text">
<img src="@/assets/img/guestCustom/tips.png" class="tips-icon" alt />
<span>客户每个月最多接收来自同一企业的管理员的 4 条群发消息,4条消息可在同一天发送,达到上限后,无法再接收管理员的群发消息。</span>
<span>如在企业微信管理后台已为所选员工设置了欢迎语,则此处设置的将不生效。</span>
</div>
</div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
......@@ -97,15 +73,18 @@ const ATT_TYPE = {
}
// import E from 'wangeditor'
import ActivityModel from './activityModel'
import wTextarea from './tag-textarea'
import { utils } from 'glsx-common'
export default {
name: 'WelcomeWords',
components: {
ActivityModel
ActivityModel,
wTextarea
},
props: { eventBus: Object },
data() {
return {
loading: false,
btnList: [
// {
// id: 1,
......@@ -139,7 +118,8 @@ export default {
sendType: '',
sendTime: '',
sendDate: '',
editor: {}
editor: {},
textValue: ''
}
},
mounted() {
......@@ -160,6 +140,9 @@ export default {
this.eventBus.$emit('update', this.previewList)
},
methods: {
updateText(val) {
this.textInput(val)
},
// 上传图片
handleImgChange(e, targetItem) {
var reader = new FileReader()
......@@ -172,7 +155,12 @@ export default {
this.$message.error('上传图片大小不能超过' + limitSize + 'MB!')
return true
}
this.loading = true
reader.readAsDataURL(file)
this.previewList.push({
attType: ATT_TYPE.IMAGE,
attContent: ''
})
reader.onload = e => {
var image = new Image()
image.src = e.target.result
......@@ -182,12 +170,14 @@ export default {
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({ file: base64 }).then(res => {
if (res) {
console.log(res)
this.previewList.push({
attType: ATT_TYPE.IMAGE,
attContent: res
})
let len = this.previewList.length - 1
this.previewList[len].attContent = res
document.querySelector('.upload-img').value = ''
} else {
let len = this.previewList.length - 1
this.previewList.splice(len, 1)
}
this.loading = false
})
}
}
......@@ -218,27 +208,9 @@ export default {
})
}
},
// 添加昵称
handleFun(name) {
if (name == 'nickname') {
this.$refs.editor.focus()
this.insertHtmlAtCaret('@昵称')
this.changeInput()
// var range = window.getSelection().getRangeAt(0)
// console.log(range)
// range.selectNodeContents(range.endContainer.childNodes[range.startOffset - 2])
// var el = document.createElement('span')
// el.setAttribute('contenteditable', false)
// el.setAttribute('class', 'nickname')
// el.innerHTML = '@昵称<i class="el-icon-error"></i>'
// el.innerHTML = '<span id="nick" contenteditable="false" class="nickname">@昵称<i class="el-icon-error"></i></span>'
// var node = document.getElementById('nick')
// var targetNode = document.getElementById('editor')
// targetNode.appendChild(el)
// var EL = document.createElement('div')
// EL.setAttribute('contenteditable', true)
// targetNode.appendChild(EL)
// this.editor.txt.append('<span class="nickname">@昵称<i class="el-icon-error"></i><span>')
this.$refs.textContent.addTag('@昵称')
} else if (name == 'activity') {
this.$refs.activity.init()
}
......@@ -311,7 +283,7 @@ export default {
}
}
},
changeInput: utils.debounce(function() {
changeInput: utils.debounce(function () {
console.log(document.getElementById('editor').childNodes)
var allNodes = document.getElementById('editor').childNodes
var str = ''
......@@ -324,18 +296,17 @@ export default {
})
console.log(str)
this.textInput(str)
},300),
}, 300),
updateList(val) {
console.log(val)
this.previewList = val
this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1)
if (obj) {
this.text = obj.attContent
} else {
this.text = ''
}
const editor = document.getElementById('editor')
editor.innerHTML = this.text
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
document.querySelector('.w-textarea_input').focus()
setTimeout(() => {
document.querySelector('.w-textarea_input').innerHTML = attContent
}, 100)
}
}
}
......@@ -377,6 +348,10 @@ export default {
}
i {
font-size: 16px;
cursor: pointer;
}
.el-icon-loading {
font-size: 24px;
}
&:last-child {
margin-bottom: 0;
......@@ -397,15 +372,19 @@ export default {
span {
font-size: 14px;
margin-left: 5px;
cursor: pointer;
}
input {
position: absolute;
width: 100%;
cursor: pointer;
font-size: 0;
height: 40px;
}
img {
width: 16px;
height: 16px;
cursor: pointer;
}
.el-link {
position: absolute;
......
......@@ -5,7 +5,7 @@ const staticRoutes = Object.freeze([{
meta: {},
}, {
name: 'channel',
path: '/channel/store/:id/:codeUuid',
path: '/channel/store/:id/:codeUuid/:codeState',
component: resolve => require([`@/views/channel/store.vue`], resolve),
meta: {}
}, {
......@@ -57,6 +57,6 @@ const staticRoutes = Object.freeze([{
name: 'friends',
path: '/friends/index/:id',
component: resolve => require([`@/views/friends/index.vue`], resolve),
meta: {}
meta: { permissions: ['新增'] }
}])
export default staticRoutes
\ No newline at end of file
......@@ -2,7 +2,8 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLButton ,GLTable} from 'glsx-components' //权限按钮 (根据权限动态创建)
import { GLTable} from 'glsx-components' //权限按钮 (根据权限动态创建)
import GLButton from 'glsx-components/src/packages/Button'
import { getRoutes } from '@/router'
import render from './render'
Vue.use(ElementUI)
......@@ -14,7 +15,7 @@ import '@/assets/css/common.scss'
let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState }) {
export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) {
const { response, request, sign, secret, request_common, sign_common } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
......@@ -22,10 +23,11 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
subscribe({ messenger })
console.log(routes,routesData)
Vue.use(GLButton, { routes, routerBase})
}
export async function mount(props) {
console.log('11111', props)
......
......@@ -33,10 +33,10 @@
个标签
</span>
<div class="el-input-tag input-tag-wrapper">
<template v-if="tagging && tagging.length>0">
<template v-if="tagging && tagging.length > 0">
<template v-for="item in tagging">
<el-tag v-for="(tag, idx) in item.labelList" :key="idx" closable :disable-transitions="false" @close="removeTag(item.labelList, idx)">
{{ tag?tag.name:'' }}
{{ tag ? tag.name : '' }}
</el-tag>
</template>
</template>
......@@ -75,7 +75,7 @@
<label>自动发送欢迎语</label>
<el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box">
<div class="welcome-box" v-show="autoWelcome">
<welcome-words :eventBus="eventBus" ref="welcome"></welcome-words>
</div>
</div>
......@@ -110,7 +110,7 @@ export default {
addCodeForm: {
codeName: '',
codeRemark: '',
autoAdd: false
autoAdd: true
},
staffStatus: false,
staffInfo: [],
......@@ -119,7 +119,7 @@ export default {
codeId: null,
footerLeft: 0,
footerWidth: 0,
autoWelcome: false,
autoWelcome: true,
codeRules: {
codeName: [{ required: true, message: '请输入渠道名称', trigger: 'blur' }]
}
......@@ -164,7 +164,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
......@@ -172,7 +172,21 @@ export default {
this.$refs['codeForm'].validate(valid => {
if (valid) {
let param = Object.assign({ id: this.codeId }, this.addCodeForm)
param.tagging = JSON.stringify(this.tagging)
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
}
})
param.tagging = JSON.stringify(tagging)
param.autoWelcome = this.autoWelcome ? 1 : 0
param.codeSystem = 0
let staffId = []
......@@ -188,22 +202,23 @@ export default {
delete param.staffInfo
param.staffId = staffId.join(',')
param.autoAdd ? (param.autoAdd = 1) : (param.autoAdd = 0)
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
const attachmentList = previewList.map(item => {
if (item.attType == 1) {
item.attContent = item.attContent.replace('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
}
return item
})
param.welcomeInfo = attachmentList
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
const attachmentList = previewList.map(item => {
if (item.attType == 1) {
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
}
return item
})
param.welcomeInfo = attachmentList
this.$apis.channel[channel](param).then(res => {
if (res) this.$router.push('/channel/index')
})
}
})
},300),
}, 300),
detailChannelCode(id, codeUuid) {
let param = {
id,
......@@ -213,7 +228,23 @@ export default {
this.addCodeForm = Object.assign({}, res)
this.addCodeForm.autoAdd = this.addCodeForm.autoAdd == 1 ? true : false
this.staffInfo = res.staffInfo
this.tagging = eval(res.tagging)
const tagging = eval(res.tagging)
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
this.autoWelcome = res.autoWelcome ? true : false
const previewList = res.welcomeInfo.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent)
......
......@@ -29,7 +29,7 @@
</div>
<div slot="reference" class="name-wrapper">
<div class="accountType-row" v-for="(item, index) in scope.scope.staffInfo" :key="index" v-show="index < 4">
{{ index == 3 && scope.scope.staffInfo.length > 3 ? '...' : item.staffName }}
{{ index == 3 && scope.scope.staffInfo.length > 3 ? '...('+scope.scope.staffInfo.length+')' : item.staffName }}
</div>
</div>
</el-popover>
......@@ -44,19 +44,22 @@
<div slot="tagging" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3">
<div class="accountType-row" v-for="(item, index) in scope.scope.taggingList" :key="index">
{{ item?item.name:'' }}
{{ item ? item.name : '' }}
</div>
<div slot="reference" class="name-wrapper">
<div class="accountType-row" v-for="(item, index) in scope.scope.taggingList" :key="index" v-show="index < 4">
{{ index == 3 && scope.scope.taggingList.length > 3 ? '...' : item?item.name:'' }}
{{ index == 3 && scope.scope.taggingList.length > 3 ? '...('+scope.scope.taggingList.length+')' : item ? item.name : '' }}
</div>
</div>
</el-popover>
<template v-if="scope.scope.taggingList && scope.scope.taggingList.length <= 3">
<template v-if="scope.scope.taggingList && scope.scope.taggingList.length <= 3 && scope.scope.taggingList.length > 0">
<div class="accountType-row" v-for="(item, index) in scope.scope.taggingList" :key="index">
{{ item?item.name:'' }}
{{ item ? item.name : '' }}
</div>
</template>
<div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">
--
</div>
</div>
<div slot="codeRemark" slot-scope="scope">
<div class="codeName">{{ scope.scope.codeName }}</div>
......@@ -132,7 +135,7 @@ export default {
},
methods: {
handleDetail(scope) {
this.$router.push('/channel/store/' + scope.id + '/' + scope.codeUuid)
this.$router.push('/channel/store/' + scope.id + '/' + scope.codeUuid + '/' + scope.codeState)
},
handleEdit(scope) {
this.$router.push('/channel/addCode/' + scope.id + '/' + scope.codeUuid)
......@@ -208,16 +211,14 @@ export default {
this.tableData = res.data
this.tableData.forEach(item => {
this.$set(item, 'taggingList', [])
let tagging = eval(item.tagging)
if (tagging && tagging.length > 0) {
tagging.forEach(tag => {
tag.labelList.forEach(itm => {
item.taggingList.push(itm)
})
const tagging = eval(item.tagging)
tagging.forEach(itm => {
let name = itm.name.split(',')
name.forEach((tag, index) => {
item.taggingList.push({ name: tag })
})
}
})
})
console.log(this.tableData)
this.tableTotal = res.count
}
})
......
......@@ -34,7 +34,7 @@
</div>
<div class="chart-desc-item" v-for="(item, index) in codeIds" :key="index">
<div class="chart-item-title">
<span :style="{color: colorList[index]}">—</span>
<span :style="{color: colorList[index],'font-size': '18px'}">—</span>
{{ item.codeName }}
</div>
<div class="chart-item-num">{{ item.totalNum }}</div>
......@@ -120,6 +120,7 @@ export default {
this.trendType = 1
}
this.codeTrend()
this.codeSearch()
}
},
methods: {
......@@ -128,6 +129,7 @@ export default {
this.startTime = ''
this.endTime = ''
this.codeTrend()
this.codeSearch()
},
handleSearch() {
this.codeSearch()
......
......@@ -36,7 +36,15 @@ export default {
return {
name: codeName[index],
type: 'line',
data: newlyQyCount
data: newlyQyCount,
itemStyle: {
normal: {
color: this.colorList[index],
lineStyle: {
color: this.colorList[index]
}
}
}
}
})
echarts.init(document.getElementById('channel-main')).clear()
......@@ -72,12 +80,12 @@ export default {
}
myChart.setOption(option)
let dataList = []
seriesList.forEach(item=>{
seriesList.forEach(item => {
dataList = dataList.concat(item.data)
})
if(dataList.every(item => item == 0)) {
if (dataList.every(item => item == 0)) {
this.lineStatus = false
}else {
} else {
this.lineStatus = true
}
}
......
<template>
<div class="square-main">
<el-dialog title="选择渠道" :visible.sync="dialogVisible" width="70%" :before-close="handleClose">
<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>
......@@ -9,8 +9,9 @@
<div class="selected-title">已选渠道</div>
<div class="selected-panel">
<div class="selected-item" v-for="(item, index) in selectedList" :key="index">
<div><span :style="{color: colorList[index]}">—</span>
{{ item.codeName }}
<div>
<span :style="{ color: colorList[index] ,'font-size': '18px'}">—</span>
{{ item.codeName }}
</div>
<img src="@/assets/img/channel/del.png" @click="delTag(item)" />
</div>
......@@ -18,7 +19,7 @@
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" @click="handleCancel">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span>
</el-dialog>
......@@ -99,6 +100,10 @@ export default {
delTag(item) {
this.$refs.table.$refs.salelistMutiTable.toggleRowSelection(item)
},
handleCancel() {
this.dialogVisible = false
this.$refs.table.$refs.salelistMutiTable.clearSelection()
},
handleSelect: utils.debounce(function () {
if (this.selectedList.length == 0) {
this.$message.error('请选择渠道')
......
......@@ -2,9 +2,6 @@
<div class="channel-main scrm-box-f" v-loading="loading">
<div class="channel-header">
<el-button type="primary" size="small" @click="goBack">返回</el-button>
<el-upload action='#' class="image-uploader" :before-upload="upLoadImg">
<el-button type="primary" size="small">创建活码海报</el-button>
</el-upload>
</div>
<div class="poster-body">
<div class="poster-item" @dblclick="setPoster(item)" @mouseenter="item.show = true" @mouseleave="item.show = false" v-for="(item, index) in posterList" :key="index">
......@@ -24,6 +21,19 @@
</div>
<div class="poster-item-link" @click="downloadIamge(item.autoUrl)">下载海报</div>
</div>
<div class="poster-item">
<div class="poster-item-box">
<div>
<div class="poster-upload-image">
<img src="@/assets/img/channel/upload.png" />
<div class="poster-tips">上传海报图片,将自动配上渠道活码</div>
</div>
<el-upload action="#" class="image-uploader" :before-upload="upLoadImg">
<div class="poster-item-link">上传海报</div>
</el-upload>
</div>
</div>
</div>
</div>
<el-dialog v-loading="loadingDrag" title="创建活码海报" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
<div class="poster-draggable-title">拖动活码可调整活码位置</div>
......@@ -126,7 +136,6 @@ export default {
leavePoster() {},
upLoadImg(file) {
console.log(file.size / 1024 / 1000 > 5)
this.loading = true
let fileName = file.name
if (file.name.lastIndexOf('.') === -1) {
this.$message.info('路径不正确')
......@@ -138,11 +147,11 @@ export default {
this.$message.info('图片格式不正确')
return false
}
if (file.size / 1024 / 1000 > 5) {
this.$message.info('请上次小于5M的图片')
if (file.size / 1024 / 1000 > 10) {
this.$message.info('请上传小于10M的图片')
return
}
// if (fileSize < 3145728) {
this.loading = true
if (window.FileReader) {
let reader = new FileReader()
let self = this
......@@ -187,8 +196,8 @@ export default {
this.height = height
},
savePoster() {
this.loadingDrag = true;
let { x, y, width, height, backUrl, codeUrl, id ,dragHeight} = this
this.loadingDrag = true
let { x, y, width, height, backUrl, codeUrl, id, dragHeight } = this
let params = {
x,
y,
......@@ -262,6 +271,7 @@ export default {
<style lang="scss" scoped>
.channel-main {
padding: 10px 20px;
min-height: calc(100% - 30px);
}
.image-uploader {
display: inline-block;
......@@ -328,6 +338,21 @@ export default {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
.poster-upload-image {
text-align: center;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
img {
width: 90px;
height: auto;
}
.poster-tips {
margin: 10px 0px 20px;
}
}
.poster-image {
background-size: 100% 100%;
width: 300px;
......
......@@ -76,11 +76,11 @@ export default {
tableColumns: [
{
label: '新增客户数',
prop: 'newlyTotalCount'
prop: 'newlyCount'
},
{
label: '留存客户数',
prop: 'keepTotalCount'
prop: 'newlyKeepCount'
},
{
label: '日期',
......@@ -98,11 +98,11 @@ export default {
},
{
label: '新增客户数',
prop: 'newlyTotalCount'
prop: 'newlyCount'
},
{
label: '留存客户数',
prop: 'keepTotalCount'
prop: 'newlyKeepCount'
},
{
label: '日期',
......@@ -113,7 +113,10 @@ export default {
pageMemberConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
layout: 'sizes, prev, pager, next, jumper, ->, total',
tagging: [],
welcomeInfo: [],
tableTotal: 0,
codeState: '',
codeUuid: '',
codeId: ''
}
},
......@@ -128,11 +131,41 @@ export default {
}
this.$apis.channel.detailChannelCode(param).then(res => {
this.detailCodeForm = Object.assign({}, res)
this.tagging = eval('(' + res.tagging + ')')
const tagging = eval(res.tagging)
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
this.welcomeInfo = res.welcomeInfo.map(item => {
let attContent
if (item.attType == 7) {
attContent = eval('(' + item.attContent + ')')
} else if (item.attType == 1) {
attContent = item.attContent.replaceAll('[@昵称]', '<span style="color:#5850FF">@昵称</span>')
} else {
attContent = item.attContent
}
return {
attType: item.attType,
attContent
}
})
})
},
listTime(codeId) {
this.$apis.overview.listTime({ codeId }).then(res => {
listTime() {
this.$apis.overview.listTime({ codeId: this.codeId }).then(res => {
this.getTimeApi = res
})
},
......@@ -142,19 +175,21 @@ export default {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.memberTabel.page.pageSize,
pageNum: this.$refs.memberTabel.page.pageNum,
codeId: this.codeId
codeState: this.codeState
}
this.$apis.overview.listStaff(params).then(res => {
this.getMemberApi = res.data;
this.getMemberApi = res.data
this.tableTotal = res.count
})
}
},
mounted() {
const { id, codeUuid } = this.$route.params
this.codeId = id;
const { id, codeUuid, codeState } = this.$route.params
this.codeId = id
this.codeState = codeState
this.codeUuid = codeUuid
this.detailChannelCode(id, codeUuid)
this.listTime(id)
this.listTime()
this.listStaff()
}
}
......@@ -207,6 +242,43 @@ export default {
}
}
}
.welcome-panel {
.welcome-title {
font-size: 16px;
color: #333333;
text-align: left;
line-height: 16px;
font-weight: 500;
padding: 20px 0px;
border-bottom: 1px solid #d8d8d8;
}
.welcome-box {
margin: 20px 0px;
display: flex;
font-size: 14px;
color: #333333;
text-align: right;
line-height: 20px;
font-weight: 400;
&-contant {
text-align: left;
}
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
border-radius: 2px;
line-height: 22px;
padding: 10px;
min-width: 500px;
}
img {
width: 16px;
height: 16px;
vertical-align: sub;
margin-right: 5px;
}
}
}
.count-panel {
display: flex;
&-item {
......
......@@ -5,7 +5,7 @@
<div class="drainage-title" v-else>批量加好友</div>
<div class="drainage-panel">
<div class="drainage-config-wrap">
<div class="drainage-item-label" v-if="configType">平台将识别尚未补充联系方式的企微客户,并自动发送消息提醒对应员工跟进。若客户尚未添加任何员工,系统将自动分配员工进行跟进。</div>
<div class="drainage-item-label" v-if="configType">平台将识别尚未补充联系方式的企微客户,并自动发送消息提醒对应员工跟进。</div>
<div class="drainage-item-label" v-else>通过企微魔方导入客户数据后,平台将识别尚未添加企微的客户,并自动发送消息提醒对应员工跟进。</div>
<div class="drainage-item-switch">
......@@ -13,7 +13,7 @@
</div>
</div>
<div class="config-title">
<span v-if="!editStatus" @click="editStatus = true">
<span v-if="!editStatus && !configType" @click="editStatus = true">
<label>编辑配置</label>
<i class="el-icon-edit-outline"></i>
</span>
......@@ -136,10 +136,10 @@
</div>
</div>
</div>
<div class="drainage-wrap scrm-box-f">
<div class="drainage-wrap scrm-box-f" v-if="!configType">
<div class="drainage-title">营销配置</div>
<div class="drainage-form">
<div class="drainage-form-item el-form-item is-required" v-if="editStatus">
<div class="drainage-form-item el-form-item is-required" v-if="editStatus">
<label class="el-form-item__label">跟进员工</label>
<div style="position: relative">
<el-button size="small" @click="handleAddEmp">
......@@ -152,20 +152,21 @@
{{ tag.staffName }}
</el-tag>
</div>
<div class="el-form-item__error" v-if="imNameStatus">请选择跟进专员</div>
<div class="el-form-item__error" v-if="imNameStatus">请选择跟进专员</div>
</div>
</div>
<div class="drainage-form-item" v-else>
<label>跟进员工</label>
<div class="drainage-emp">
<template v-for="item in staffIds">
<div class="emp-tag" :key="index" v-for="(item, index) in staffIds">
{{ item.staffName }}
</template>
</div>
</div>
</div>
</div>
</div>
<div
v-if="(editStatus && !configType) || configType"
class="footer-panel"
:style="{
left: footerLeft + 'px',
......@@ -174,7 +175,7 @@
>
<el-button type="primary" @click="goback" v-if="configType">返回</el-button>
<el-button type="primary" @click="handleCancel" v-if="!configType">取消</el-button>
<el-button type="primary" @click="handleSave">确定</el-button>
<el-button type="primary" @click="handleSave" v-if="!configType">确定</el-button>
</div>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
</div>
......@@ -203,31 +204,54 @@ export default {
}
},
watch: {
$route:{
handler(newRouter){
this.init()
},
}
$route: {
handler(newRouter) {
this.init()
}
}
},
methods: {
goback() {
this.$router.push('/square/index')
},
handleAddSwitch() {
if(this.noStatus) {
if (this.noStatus) {
this.handleSwitch()
return
}
if (this.addValue) {
this.$alert('启动前,先完善营销配置', '提示', {
confirmButtonText: '知道了'
})
this.handleSwitch()
} else {
this.$alert('系统将停止此类营销,营销配置仍然保留', '提示', {
confirmButtonText: '知道了'
showConfirmButton: false,
center: true
}).catch(action => {
this.handleSwitch()
})
}
},
handleSwitch() {
let params = {
id: this.configItem.id,
delFlag: this.addValue ? 0 : 1,
configType: this.configType ? 2 : 1,
}
let config;
if (this.configItem.id) {
config = 'updateConfig'
} else {
config = 'addConfig'
}
this.$apis.marketing[config](params).then(res => {
if (res) {
this.$message({
message: '操作成功',
type: 'success'
})
this.init()
}
})
},
remove(index) {
this.staffIds.splice(index, 1)
},
......@@ -240,21 +264,21 @@ export default {
})
},
handleAddEmp() {
this.imNameStatus = false;
this.imNameStatus = false
this.$refs.selectEmpForm.init(this.staffIds)
},
handleCancel() {
this.init()
},
handleSave() {
if(this.editStatus && this.staffIds && this.staffIds.length == 0) {
this.imNameStatus = true;
if (this.editStatus && this.staffIds && this.staffIds.length == 0) {
this.imNameStatus = true
return
}
let params = {
configType: this.configType ? 2 : 1,
id: this.configItem.id,
staffIds: JSON.stringify(this.staffIds)
staffIds: this.configType ? null : JSON.stringify(this.staffIds)
}
let config
if (this.configItem.id) {
......@@ -284,15 +308,15 @@ export default {
})
},
findAllByPage() {
this.$apis.marketing.findAllByPage({pageSize:1,pageNum:1}).then(res => {
if(res.data && res.data.length) {
this.noStatus = true;
this.$apis.marketing.findAllByPage({ pageSize: 1, pageNum: 1 }).then(res => {
if (res.data && res.data.length) {
this.noStatus = true
}
})
},
init() {
this.editStatus = false;
this.findAllByPage();
this.editStatus = false
this.findAllByPage()
let { id } = this.$route.params
if (id) {
this.configType = true
......@@ -347,8 +371,21 @@ export default {
}
}
.drainage-emp {
height: 36px;
line-height: 36px;
display: flex;
margin-top: 6px;
flex-wrap: wrap;
div {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
height: 26px;
padding: 0px 5px;
border-radius: 4px;
border: 1px solid #333333;
margin-right: 5px;
margin-bottom: 5px;
}
}
.input-tag-wrapper {
position: relative;
......
......@@ -88,7 +88,7 @@ export default {
type: this.activeName,
};
this.$apis.marketing.dracImMessage(params).then((res) => {
console.log(res);
this.messageRadio = {};
this.modelList = res.data;
this.tableTotal = res.count;
this.loading = false;
......
......@@ -26,11 +26,40 @@
<div class="welcome-panel">
<div class="welcome-switch">
<label>自动发送欢迎语</label>
<el-switch v-model="autoWelcome" active-color="#5850FF" inactive-color="#999999"></el-switch>
<el-switch v-model="autoWelcome" :disabled="!editStatus" active-color="#5850FF" inactive-color="#999999"></el-switch>
</div>
<div class="welcome-box">
<div class="welcome-box" v-show="editStatus && autoWelcome">
<welcome-words :eventBus="eventBus" ref="welcome"></welcome-words>
</div>
<div class="welcome-box" v-show="!editStatus && autoWelcome">
<div class="welcome-box-contaner">
<div :key="index" v-for="(item, index) in welcomeInfo">
<div v-if="item.attType == 1">
<div v-html="item.attContent" class="welcome-box-name"></div>
</div>
<div v-else-if="item.attType == 2">
<img src="@/assets/img/guestCustom/icon-img.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 3">
<img src="@/assets/img/guestCustom/icon-img.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 4">
<img src="@/assets/img/guestCustom/icon-link.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 5">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent }}</span>
</div>
<div v-else-if="item.attType == 7">
<img src="@/assets/img/guestCustom/icon-applet.png" alt="" />
<span>{{ item.attContent.marketingName }}</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="drainage-wrap scrm-box-f">
......@@ -63,9 +92,9 @@
<div class="drainage-form-item" v-else>
<label>跟进员工</label>
<div class="drainage-emp">
<template v-for="item in dracImFollowStaffResponses">
<div :key="index" v-for="(item, index) in dracImFollowStaffResponses">
{{ item.staffName }}
</template>
</div>
</div>
</div>
<div class="drainage-form-item">
......@@ -77,16 +106,15 @@
<el-time-picker is-range :disabled="!editStatus" value-format="HH:mm:ss" v-model="addForm.time" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" placeholder="选择时间范围"></el-time-picker>
</el-form-item>
<el-form-item label="短信内容" prop="content">
<el-input type="textarea" v-model="addForm.content" rows="5" :disabled="!editStatus" maxlength="500" show-word-limit></el-input>
<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">
<i class="el-icon-circle-plus-outline"><span>选择模板</span></i>
</div>
</div>
<div class="form-tips">共可输入500字,70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">70字內(含70字)计一条,超过70字,按70字/条计费。</div>
<div class="form-tips">提示:当前短信已有{{ addForm.content.length }}字,按{{ content.length }}条短信发送且计费。</div>
</el-form-item>
<el-form-item label="审核通知人:">短信内容审核结果会通过企微消息的形式发送给设置的员工,员工可以及时跟进。</el-form-item>
<el-form-item label="自动打标签">
<div class="tag-item-panel" v-if="editStatus">
<div>
......@@ -100,11 +128,11 @@
</div>
</div>
</div>
<div v-else>
<div v-else class="drainage-emp">
<template v-for="item in tagging">
<template v-for="tag in item.labelList">
<div :key="index" v-for="(tag, index) in item.labelList">
{{ tag.name }}
</template>
</div>
</template>
</div>
</el-form-item>
......@@ -174,8 +202,9 @@ export default {
},
data() {
return {
welcomeInfo: [],
eventBus: new Vue(),
autoWelcome: false,
autoWelcome: true,
imName: '',
imNameStatus: false,
empStatus: false,
......@@ -305,12 +334,26 @@ export default {
exportUrl: this.exportUrl
}
} else {
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
}
})
config = 'exportAdd'
params = {
autoWelcome: this.autoWelcome ? 1 : 0,
imName: this.imName,
imType: 2,
tagging: JSON.stringify(this.tagging),
tagging: JSON.stringify(tagging),
exportUrl: this.exportUrl,
dracImFollowStaffRequestList: this.dracImFollowStaffResponses,
dracImMessageConfigRequest: {
......@@ -323,7 +366,8 @@ export default {
const previewList = this.$common ? this.$common.utils.deepClone(this.$refs.welcome.previewList) : this.$refs.welcome.previewList
const attachmentList = previewList.map(item => {
if (item.attType == 1) {
item.attContent = item.attContent.replace('@昵称', '[@昵称]')
item.attContent = item.attContent.replaceAll('[@昵称]', '@昵称')
item.attContent = item.attContent.replaceAll('@昵称', '[@昵称]')
} else if (item.attType == 7) {
item.attContent = JSON.stringify(item.attContent)
}
......@@ -366,10 +410,27 @@ export default {
this.autoWelcome = res.autoWelcome ? true : false
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>')
return item
})
this.$refs.welcome.updateList(previewList)
this.tagging = eval(res.tagging)
this.welcomeInfo = previewList
const tagging = eval(res.tagging)
const taggingList = tagging.map(item => {
let name = item.name.split(',')
let ids = item.tagIds.split(',')
console.log(ids)
let labelList = name.map((tag, index) => {
return { id: ids[index], name: tag }
})
return {
labelGroup: {
id: item.groupId,
name: item.labelType
},
labelList
}
})
this.tagging = taggingList
})
}
},
......@@ -412,6 +473,20 @@ export default {
}
.welcome-box {
margin-left: 55px;
&-contaner {
margin: 20px;
background: rgba(247, 247, 247, 0.52);
border-radius: 2px;
line-height: 22px;
padding: 10px;
min-width: 500px;
}
img {
width: 16px;
height: 16px;
vertical-align: sub;
margin-right: 5px;
}
}
}
}
......@@ -641,7 +716,21 @@ export default {
}
}
.drainage-emp {
line-height: 36px;
display: flex;
margin-top: 6px;
flex-wrap: wrap;
div {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 24px;
height: 26px;
padding: 0px 5px;
border-radius: 4px;
border: 1px solid #333333;
margin-right: 5px;
margin-bottom: 5px;
}
}
.input-tag-wrapper {
position: relative;
......
......@@ -5,6 +5,8 @@
<i class="el-icon-plus"></i>
新增营销
</el-button>
<!-- <GLButton type="primary" @click="addConfig" size="small" fn="新增" mode="el-button">新增营销</GLButton> -->
<label>结合门店营销活动,指定客户创建智能营销,提高活动转化率</label>
<el-popover placement="top" width="400" trigger="hover" content="通过导入的客户,门店可通过智能外呼及智能短信,结合营销活动的需要向离店用户进行智能营销,可实现标准、高效的营销同时实现用户线上化。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
......@@ -54,12 +56,8 @@ export default {
label: '待处理'
},
{
value: '2',
label: '处理中'
},
{
value: '3',
label: '已处理'
label: '已完成'
}
],
pickerOptions: {
......@@ -95,8 +93,7 @@ export default {
},
{
label: '创建人',
prop: 'staffPhone',
width: '130px'
prop: 'createdName'
},
{
label: '操作',
......
......@@ -53,7 +53,7 @@ export default {
labelLine: {
show: false,
},
data: [{ value: 100 }, { value: this.coustomCount.split('%')[0] }],
data: [{ value: 100 }, { value: this.coustomCount}],
},
],
};
......
......@@ -21,14 +21,14 @@ export default {
methods: {
getChart(lineData) {
let newCustomerCount = lineData.customerGrowthTrends.map(item => {
return item.newCustomerCount
let entMicroCount = lineData.map(item => {
return item.entMicroCount
})
let newEntmicroCount = lineData.customerGrowthTrends.map(item => {
return item.newEntmicroCount
let notAddEntMicroCount = lineData.map(item => {
return item.notAddEntMicroCount
})
let dateTime = lineData.customerGrowthTrends.map(item => {
return item.dateTime
let dateTime = lineData.map(item => {
return item.dayTime
})
let chartDom = document.getElementById('channel-main')
let myChart = echarts.init(chartDom)
......@@ -55,12 +55,12 @@ export default {
dataZoom: [
{
type: 'inside',
start: 0,
end: 20
startValue: 0,
endValue: 29
},
{
start: 0,
end: 20
startValue: 0,
endValue: 29
}
],
xAxis: {
......@@ -74,22 +74,22 @@ export default {
},
series: [
{
name: '未匹配企微',
name: '未加企微客户数',
type: 'line',
lineStyle: { color: '#5850FF' },
data: newCustomerCount
data: notAddEntMicroCount
},
{
name: '已匹配企微',
name: '企微客户数',
type: 'line',
lineStyle: { color: '#FF6D00' },
data: newEntmicroCount
data: entMicroCount
}
]
}
option && myChart.setOption(option)
if(newCustomerCount.every(item => item == 0) && newEntmicroCount.every(item => item == 0)) {
if(notAddEntMicroCount.every(item => item == 0) && entMicroCount.every(item => item == 0)) {
this.lineStatus = false
}else {
this.lineStatus = true
......
......@@ -11,7 +11,7 @@
<div class="circle-box">
<echart-circle bgColor1="#F0F0F0" bgColor2="#6F76EE" coustomId="coustomId_5" :coustomCount="percentage"></echart-circle>
<div class="circle-box-item">
<div class="circle-item-scale">{{percentage}}</div>
<div class="circle-item-scale">{{percentage}}%</div>
<div class="circle-item-num">{{totalCount}}</div>
</div>
</div>
......
......@@ -49,9 +49,9 @@
智能外呼
</div>
<ul class="store-item-ul">
<li>意向判断、精准记录</li>
<li>话术灵活、语气灵动</li>
<li>多路并发、提效降本</li>
<li>客户意向判断</li>
<li>营销话术灵活</li>
<li>多线并发外呼</li>
</ul>
</div>
<div class="store-item-s">
......@@ -68,7 +68,7 @@
</div>
</div>
</div>
<div class="user-panel">
<div class="user-panel" v-loading="loading">
<div class="user-panel-line scrm-box-f">
<div class="echart-title">用户线上化趋势</div>
<div class="echart-count-panel">
......@@ -76,14 +76,14 @@
<div class="echart-icon"><img src="@/assets/img/overview/h5.png" /></div>
<div class="echart-num-desc">
<div class="echart-num-1">客户总数</div>
<div class="echart-num-2">{{ customerCount }}人</div>
<div class="echart-num-2">{{ totalCount }}人</div>
</div>
</div>
<div class="echart-count-item">
<div class="echart-icon"><img src="@/assets/img/overview/h6.png" /></div>
<div class="echart-num-desc">
<div class="echart-num-1">匹配企微客户数</div>
<div class="echart-num-2">{{ entmicroCustomerCount }}人</div>
<div class="echart-num-1">企微客户数</div>
<div class="echart-num-2">{{ entMicroCount }}人</div>
</div>
</div>
</div>
......@@ -91,10 +91,8 @@
</div>
<div class="user-panel-balance scrm-box-f">
<div class="balance-title">资源剩余</div>
<div class="balance-image" v-if="customerCount"><img src="@/assets/img/overview/balance1.png" /></div>
<div class="balance-image" v-if="customerCount"><img src="@/assets/img/overview/balance2.png" /></div>
<div class="balance-image" v-if="!customerCount"><img src="@/assets/img/overview/balance3.png" /></div>
<div class="balance-image" v-if="!customerCount"><img src="@/assets/img/overview/balance4.png" /></div>
<div class="balance-image"><img src="@/assets/img/overview/balance3.png" /></div>
<div class="balance-image"><img src="@/assets/img/overview/balance4.png" /></div>
</div>
</div>
<div class="statistics-main">
......@@ -115,12 +113,16 @@ export default {
},
data() {
return {
loading: false,
activeName: 'first',
customerCount: 0,
entmicroCustomerCount: 0
entMicroCount: 0,
totalCount: 0
}
},
methods: {
jumpUrl() {
this.$router.push('/square/import')
},
jumpChannel() {
this.$router.push('/channel/index')
},
......@@ -128,10 +130,12 @@ export default {
this.$router.push('/square/import')
},
viewChart() {
this.$apis.overview.viewChart({ day: 30 }).then(res => {
this.customerCount = res.customerCount
this.entmicroCustomerCount = res.entmicroCustomerCount
this.$refs.customerForm.getChart(res)
this.loading = true;
this.$apis.overview.viewChart({}).then(res => {
this.loading = false;
this.entMicroCount = res.entMicroCount
this.totalCount = res.totalCount
this.$refs.customerForm.getChart(res.trendItemList)
})
},
handleClick() {}
......@@ -282,10 +286,10 @@ export default {
font-size: 12px !important;
}
.store-item-s {
padding: 10px !important;
padding: 6px !important;
}
.store-item-title {
font-size: 17px !important;
font-size: 15px !important;
}
}
</style>
\ No newline at end of file
<template>
<div class="squre-main">
<el-button type="primary" size="small" @click="goBack">返回</el-button>
<div class="squre-title">
企微魔方
<span>智能分析客户数据,自动人群分类,推荐策略。</span>
</div>
<div class="squre-safe-panel scrm-box-f" v-loading="loading">
<div class="dialog-step">
<div class="el-steps el-steps--horizontal">
<div class="el-step is-horizontal" style="flex-basis: 50%; margin-right: 0px">
<div class="el-step__head is-finish">
<div class="el-step__line" style="margin-right: 0px">
<i class="el-step__line-inner" style="transition-delay: 0ms; border-width: 0px; width: 0%"></i>
</div>
<div class="el-step__icon is-text">
<div class="el-step__icon-inner"><i class="el-icon-check"></i></div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title">导入信息</div>
<div class="el-step__title">数据脱敏</div>
</div>
<div class="el-steps el-steps--horizontal">
<div class="el-step is-horizontal" style="flex-basis: 50%; margin-right: 0px">
<div class="el-step__head is-finish">
<div class="el-step__line" style="margin-right: 0px">
<i class="el-step__line-inner" style="transition-delay: 0ms; border-width: 0px; width: 0%"></i>
</div>
<div class="el-step__icon is-text">
<div class="el-step__icon-inner"><i class="el-icon-check"></i></div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title">导入信息</div>
<div class="el-step__title">数据脱敏</div>
</div>
</div>
<div class="el-step is-horizontal" style="flex-basis: 50%; margin-right: 0px">
<div class="el-step__head is-finish">
<div class="el-step__line" style="margin-right: 0px">
<i class="el-step__line-inner" style="transition-delay: -150ms; border-width: 0px; width: 0%"></i>
</div>
<div class="el-step__icon is-text">
<!---->
<div class="el-step__icon-inner">2</div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title">智能识别</div>
<div class="el-step__title">自动归类</div>
</div>
</div>
<div class="el-step is-horizontal" style="flex-basis: 50%; margin-right: 0px">
<div class="el-step__head is-finish">
<div class="el-step__line" style="margin-right: 0px">
<i class="el-step__line-inner" style="transition-delay: -150ms; border-width: 0px; width: 0%"></i>
</div>
<div class="el-step__icon is-text">
<!---->
<div class="el-step__icon-inner">2</div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title">智能识别</div>
<div class="el-step__title">自动归类</div>
</div>
</div>
<div class="el-step is-horizontal is-flex" style="flex-basis: 50%; max-width: 33.3333%">
<div class="el-step__head">
<div class="el-step__line"><i class="el-step__line-inner"></i></div>
<div class="el-step__icon is-text">
<!---->
<div class="el-step__icon-inner">3</div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title is-wait">集客引流</div>
</div>
<div class="el-step is-horizontal is-flex" style="flex-basis: 50%; max-width: 33.3333%">
<div class="el-step__head">
<div class="el-step__line"><i class="el-step__line-inner"></i></div>
<div class="el-step__icon is-text">
<!---->
<div class="el-step__icon-inner">3</div>
</div>
<div class="el-step__main el-step__desc">
<div class="el-step__title is-wait">集客引流</div>
<div class="el-step__title is-wait">策略推荐</div>
</div>
<div class="el-step__title is-wait">策略推荐</div>
</div>
</div>
</div>
</div>
</div>
<div class="safe-upload-panel" id="drop_area">
<el-upload action="" class="image-uploader" :before-upload="uploadFile">
<div class="safe-upload-icon"><i class="el-icon-tickets"></i></div>
......@@ -141,10 +145,10 @@ export default {
},
downloadModel() {
this.$apis.square.downloadModel({}).then(res => {
const link = document.createElement('a');
link.setAttribute('href', res); //设置下载文件的url地址
//link.setAttribute('download', 'download'); //用于设置下载文件的文件名
link.click();
const link = document.createElement('a')
link.setAttribute('href', res) //设置下载文件的url地址
//link.setAttribute('download', 'download'); //用于设置下载文件的文件名
link.click()
})
},
enentDrop(e) {
......@@ -223,6 +227,21 @@ export default {
</script>
<style lang="scss" scoped>
.squre-title {
margin-top: 20px;
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
span {
margin-left: 4px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 14px;
}
}
.dialog-step {
width: 80%;
margin: 0 auto 40px;
......@@ -300,7 +319,8 @@ export default {
padding: 40px;
margin-top: 20px;
/deep/ {
.el-carousel__indicators,.el-carousel__arrow {
.el-carousel__indicators,
.el-carousel__arrow {
display: none;
}
}
......
......@@ -25,7 +25,7 @@
<div class="coustom-box-item">
<div class="coustom-box-title">待添加企微客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#6395FA" coustomId="coustomId_1" :lineData="[countAll.unQyCount,countAll.totalCount - countAll.unQyCount]"></echart-circle>
<echart-circle bgColor="#6395FA" coustomId="coustomId_1" :lineData="[countAll.unQyCount, countAll.totalCount - countAll.unQyCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unQyCount }}/{{ countAll.totalCount }}</div>
......@@ -37,7 +37,7 @@
<div class="coustom-box-item">
<div class="coustom-box-title">信息待完善客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#5AD8A6" coustomId="coustomId_2" :lineData="[countAll.unInfoCount,countAll.totalCount - countAll.unInfoCount]"></echart-circle>
<echart-circle bgColor="#5AD8A6" coustomId="coustomId_2" :lineData="[countAll.unInfoCount, countAll.totalCount - countAll.unInfoCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unInfoCount }}/{{ countAll.totalCount }}</div>
......@@ -49,7 +49,7 @@
<div class="coustom-box-item">
<div class="coustom-box-title">待续保客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#5D7092" coustomId="coustomId_3" :lineData="[countAll.unRenewCount,countAll.totalCount - countAll.unRenewCount]"></echart-circle>
<echart-circle bgColor="#5D7092" coustomId="coustomId_3" :lineData="[countAll.unRenewCount, countAll.totalCount - countAll.unRenewCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unRenewCount }}/{{ countAll.totalCount }}</div>
......@@ -59,15 +59,15 @@
<div class="coustom-box-config">敬请期待</div>
</div>
<div class="coustom-box-item">
<div class="coustom-box-title">待定保客户</div>
<div class="coustom-box-title">待首保客户</div>
<div class="coustom-echart">
<echart-circle bgColor="#5B8FF9" coustomId="coustomId_4" :lineData="[countAll.unRegularCount,countAll.totalCount - countAll.unRegularCount]"></echart-circle>
<echart-circle bgColor="#5B8FF9" coustomId="coustomId_4" :lineData="[countAll.unRegularCount, countAll.totalCount - countAll.unRegularCount]"></echart-circle>
<div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unRegularCount }}/{{ countAll.totalCount }}</div>
</div>
</div>
<div class="coustom-box-content">智能提醒用户定期保养,推荐保养项目和优惠活动,提高用户返店率。</div>
<div class="coustom-box-content">智能提醒用户回店首保,提高用户返店率。</div>
<div class="coustom-box-config">敬请期待</div>
</div>
</div>
......@@ -79,7 +79,7 @@
导入魔方
</el-button>
<el-form-item size="small" label="导入时间">
<el-date-picker :default-time="['00:00:00', '23:59:59']" :picker-options="pickerOptions" v-model="createTime" type="datetimerange" value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker>
<el-date-picker :picker-options="pickerOptions" v-model="createTime" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button @click="handleReset">重置</el-button>
......@@ -87,8 +87,13 @@
</el-form-item>
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div slot="importNumber" slot-scope="scope">{{ scope.scope.entmicroNumber }} | {{ scope.scope.importNumber }}</div>
<div slot="newCostomerNumber" slot-scope="scope">{{ scope.scope.newCustomerNumber }} | {{ scope.scope.importNumber }}</div>
<div slot="importNumber" slot-scope="scope">
<div class="number-form"><span>{{ scope.scope.entmicroNumber }}</span> | <span>{{ scope.scope.importNumber }}</span></div>
</div>
<div slot="newCostomerNumber" slot-scope="scope">
<div class="number-form"><span>{{ scope.scope.newCustomerNumber }}</span> | <span>{{ scope.scope.importNumber }}</span>
</div>
</div>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
</div>
......@@ -192,8 +197,8 @@ export default {
watch: {
createTime(value) {
if (value) {
this.tableSearchForm.startTime = value[0]
this.tableSearchForm.endTime = value[1]
this.tableSearchForm.startTime = value[0] + ' 00:00:00'
this.tableSearchForm.endTime = value[1] + ' 23:59:59'
} else {
delete this.tableSearchForm.startTime
delete this.tableSearchForm.endTime
......@@ -210,9 +215,10 @@ export default {
this.countAll = res
})
},
handleReset() {
this.tableSearchForm = {};
this.handleSearch();
handleReset() {
this.tableSearchForm = {}
this.createTime = null
this.handleSearch()
},
handleSearch() {
this.$refs.employeeRef.refreshTable()
......@@ -232,19 +238,29 @@ export default {
findLogin() {
this.$apis.square.findLoginCount({ loginType: 1005 }).then(res => {
if (res) {
this.dialogVisible = true
this.dialogVisible = true
}
})
}
},
mounted() {
this.importsCount()
this.findLogin();
this.findLogin()
}
}
</script>
<style lang="scss" scoped>
.number-form {
span {
display: inline-block;
min-width: 80px;
text-align: left;
&:first-child {
text-align: right;
}
}
}
.dialog-wrap-box {
z-index: 2001;
position: fixed;
......@@ -408,7 +424,7 @@ export default {
}
}
.square-tabel {
padding: 10px;
padding: 20px;
margin-top: 20px;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!