Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 52257343
authored
Jul 11, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
喜报配置
1 parent
0ede34d7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
952 deletions
src/api/modules/clewOrder.js
src/views/bulletin/addClewConfig.vue
src/views/bulletin/components/clewOrder/index.vue
src/views/bulletin/components/dialogs/clewWordDialog.vue
src/api/modules/clewOrder.js
View file @
5225734
...
...
@@ -35,6 +35,15 @@ const updateClueReportConfig = params => {
returnAll
:
true
})
}
export
default
{
getMerchantList
,
getClueReportList
,
updateClueReportConfig
}
// 根据ID获取线索喜报配置信息
const
getClueDetailById
=
params
=>
{
params
.
method
=
`scrm.api.shopmall.clueReportConfig.getById`
return
http
({
url
,
method
:
'post'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getMerchantList
,
getClueReportList
,
updateClueReportConfig
,
getClueDetailById
}
src/views/bulletin/addClewConfig.vue
View file @
5225734
...
...
@@ -8,7 +8,7 @@
<div
class=
"config-wrap gl-form-page"
>
<el-form
ref=
"battleRef"
:model=
"config"
label-width=
"154px"
:rules=
"rules"
>
<el-form-item
label=
"门店信息:"
prop=
"merchantId"
>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<el-button
type=
"default"
class=
"el-icon-plus"
@
click=
"handleRelateStoreClose"
:disabled=
"id!=''"
>
选择门店
</el-button>
<div
class=
"merchantNameLabel"
v-if=
"config.merchantName"
>
<p>
所属门店
</p>
<div
class=
"merchantName ellipsis-1"
>
{{
config
.
merchantName
}}
</div>
...
...
@@ -87,10 +87,10 @@ export default {
},
data
()
{
return
{
id
:
this
.
$route
.
query
.
id
?
this
.
$route
.
query
.
id
:
''
,
selectGroupName
:
[],
isDialogVisible
:
false
,
relateStoreVisible
:
false
,
// 选择门店
paramsData
:
this
.
$route
.
query
,
dialogComponent
:
''
,
merchantList
:
[],
automaticData
:
[],
...
...
@@ -113,7 +113,7 @@ export default {
},
rules
:
{
merchantId
:
[{
required
:
true
,
message
:
'请选择门店信息'
,
trigger
:
'change'
}],
groupMerchantId
:
[{
required
:
true
,
message
:
'请选择所属企业'
,
trigger
:
'change'
}]
,
groupMerchantId
:
{
required
:
true
,
message
:
'请选择所属企业'
,
trigger
:
[
'blur'
,
'change'
],
type
:
'number'
}
,
staffId
:
[{
required
:
true
,
message
:
'请选择推送人'
,
trigger
:
'change'
}]
},
groupCofListInput
:
{
...
...
@@ -149,10 +149,9 @@ export default {
}
},
mounted
()
{
let
{
data
}
=
this
.
paramsData
this
.
getMerchantList
(
data
)
this
.
getMerchantList
()
this
.
getDepartmentTree
()
if
(
data
)
this
.
handlebattleOn
(
data
)
if
(
this
.
id
)
this
.
getClueDetailById
(
)
},
methods
:
{
// 选择门店
...
...
@@ -193,10 +192,9 @@ export default {
getMerchantList
(
sign
)
{
this
.
$apis
.
battle
.
getMerchantList
({}).
then
(
res
=>
{
this
.
merchantList
=
res
if
(
!
sign
)
{
if
(
!
this
.
id
)
{
this
.
config
.
groupMerchantId
=
res
[
0
]?.
merchantId
this
.
config
.
groupMerchantName
=
res
[
0
]?.
merchantName
console
.
log
(
this
.
config
)
}
})
},
...
...
@@ -208,26 +206,22 @@ export default {
this
.
hideSelect
()
this
.
config
.
automaticName
=
data
.
name
this
.
config
.
staffId
=
data
.
staffId
this
.
idBefEncryption
=
data
.
idBefEncryption
this
.
idBefEncryption
=
data
.
idBefEncryption
?
data
.
idBefEncryption
:
'1688855154413617'
this
.
$refs
.
battleRef
.
clearValidate
(
'staffId'
)
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
1688855154413617
}).
then
(
res
=>
{
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
this
.
groupCofListInput
=
{
clewWordReportValue
:
[{
name
:
''
}]
}
})
},
//编辑回显
handlebattleOn
(
data
,
sign
)
{
this
.
config
=
{
staffId
:
''
,
automaticName
:
''
}
getClueDetailById
()
{
this
.
groupCofListInput
=
{
// xiReportValue: [],
clewWordReportValue
:
[]
}
this
.
battleVisible
=
true
// 编辑
if
(
sign
)
{
this
.
$apis
.
clewOrder
.
getClueDetailById
({
id
:
this
.
id
}).
then
(
res
=>
{
let
data
=
res
.
data
// 编辑
this
.
config
.
staffId
=
data
.
staffId
this
.
config
.
automaticName
=
data
.
staffName
this
.
config
.
merchantId
=
data
.
merchantId
...
...
@@ -236,7 +230,8 @@ export default {
this
.
config
.
groupMerchantName
=
data
.
groupMerchantName
this
.
config
.
content
=
data
.
content
data
.
groupConfigList
.
forEach
(
item
=>
{
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
// let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType)?.attr
let
groupHideAttr
=
'clewWordReport'
if
(
!
groupHideAttr
)
return
if
(
item
.
groupId
)
{
if
(
item
.
groupId
.
split
(
'_R:'
)[
1
]
&&
item
.
groupId
.
split
(
'_R:'
)[
1
]
==
item
.
groupName
)
{
...
...
@@ -262,16 +257,12 @@ export default {
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
})
}
else
{
this
.
groupCofListInput
=
{
clewWordReportValue
:
[{
name
:
''
}]
}
}
this
.
getDepartmentTree
()
this
.
getDepartmentTree
()
})
},
//所属企业
handleMerchatChange
(
val
)
{
console
.
log
(
val
)
this
.
getDepartmentTree
()
this
.
merchantList
.
forEach
(
item
=>
{
item
.
merchantId
==
val
?
(
this
.
config
.
groupMerchantName
=
item
.
merchantName
)
:
''
...
...
@@ -364,13 +355,15 @@ export default {
groupConfigList
:
[],
content
:
this
.
config
.
content
}
if
(
this
.
id
)
params
.
id
=
this
.
id
Object
.
keys
(
this
.
groupCofList
).
map
(
item
=>
{
if
(
this
.
groupCofList
[
item
].
length
)
{
this
.
groupCofList
[
item
].
forEach
(
k
=>
{
params
.
groupConfigList
.
push
({
groupId
:
k
.
groupId
,
groupName
:
k
.
roomName
,
groupMerchantId
:
this
.
config
.
groupMerchantId
groupMerchantId
:
this
.
config
.
groupMerchantId
,
groupMerchantName
:
this
.
config
.
groupMerchantName
})
})
}
else
if
(
this
.
groupCofListInput
[
item
+
'Value'
].
length
)
{
...
...
@@ -378,7 +371,8 @@ export default {
params
.
groupConfigList
.
push
({
groupId
:
this
.
idBefEncryption
+
'_R:'
+
k
.
name
,
groupName
:
k
.
name
,
groupMerchantId
:
this
.
config
.
groupMerchantId
groupMerchantId
:
this
.
config
.
groupMerchantId
,
groupMerchantName
:
this
.
config
.
groupMerchantName
})
})
}
...
...
src/views/bulletin/components/clewOrder/index.vue
View file @
5225734
...
...
@@ -8,455 +8,29 @@
<div
class=
"title-text"
>
喜报列表
</div>
<el-button
:size=
"size"
type=
"primary"
class=
"battle-set-btn"
@
click=
"handlebattleOn()"
>
新增
</el-button>
</div>
<GLTable
ref=
"battleRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<div
slot=
"activityTime"
slot-scope=
"scope"
>
{{
dateFormatFun
(
scope
.
scope
.
startTime
)
}}
-
{{
dateFormatFun
(
scope
.
scope
.
endTime
)
}}
</div>
<GLTable
ref=
"battleRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"content"
slot-scope=
"scope"
>
<div
v-for=
"(item, index) in formatterContent(scope.scope)"
:key=
"index"
>
{{
item
}}
</div>
<div
>
{{
formatterContent
(
scope
.
scope
)
}}
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handlebattleOn(scope.scope
, 'edit')"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"handlebattleOn(scope.scope.id
, 'edit')"
>
编辑
</el-button>
</div>
</GLTable>
</div>
<GLDialog
:mode=
"mode"
class=
"battle-dialog"
title=
"配置专员"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClose"
:visible
.
sync=
"battleVisible"
>
<div
class=
"gl-form-page gl-form-min"
>
<el-form
:model=
"wechat"
ref=
"form"
label-width=
"230px"
:rules=
"rules"
>
<el-form-item
label=
"所属企业:"
>
<el-select
v-model=
"config.merchantId"
placeholder=
"请选择"
@
change=
"handleMerchatChange"
>
<el-option
v-for=
"item in merchantList"
:key=
"item.merchantId"
:label=
"item.merchantName"
:value=
"item.merchantId"
></el-option>
</el-select>
</el-form-item>
<!-- 推送人 -->
<el-form-item
class=
"select-wrap"
label=
"推送人:"
prop=
"staffId"
>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"automaticRef"
>
<div
class=
"el-input__inner"
@
click=
"openAutomatic"
>
<span
v-if=
"wechat.automaticName == ''"
class=
"placeholder"
>
选择成员
</span>
{{
wechat
.
automaticName
}}
</div>
<span
class=
"el-input__suffix"
@
click=
"openAutomatic"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', isAutomatic ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!isAutomatic"
>
<gl-select-menu
:domEl=
"automaticEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
v-model=
"filterText"
></el-input>
</el-form-item>
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
>
<template
v-if=
"automaticData.length > 0"
>
<el-tree
class=
"filter-tree"
:data=
"automaticData"
node-key=
"id"
:default-expanded-keys=
"expandedKeys"
:props=
"defaultProps"
default-expand-all
:filter-node-method=
"filterNode"
ref=
"tree"
@
node-click=
"handleNodeClick"
></el-tree>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
</div>
</gl-select-menu>
</transition>
</el-form-item>
<!-- 收款喜报 - 关联群 -->
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 收款喜报
<img
class=
"icon-eye"
@
click=
"handlePoster('xiReport')"
src=
"@/assets/icon-eye.png"
/>
:推送至群聊:
</div>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"groupXiRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('xiReport')"
>
<span
class=
"placeholder"
>
请选择(可多选)
</span>
</div>
<span
class=
"el-input__suffix"
@
click=
"openGroup('xiReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.xiReport ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.xiReport"
>
<gl-select-menu
:domEl=
"domXiEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
prefix-icon=
"el-icon-search"
v-model=
"roomName"
></el-input>
</el-form-item>
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
>
<ul
class=
"el-scrollbar__view el-select-dropdown__list"
>
<
template
v-if=
"groupList.length > 0"
>
<li
v-for=
"(k, kIdx) in roomName == '' ? groupList : stageList"
class=
"el-select-dropdown__item"
:key=
"kIdx"
@
click=
"e => selectGroup(e, k, 'xiReport')"
>
<span
:class=
"[groupCofList.xiReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
</li>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
</ul>
</div>
</gl-select-menu>
</transition>
<div
class=
"group-list-box"
>
<div
class=
"list-tag"
v-for=
"(k, kIdx) in groupCofList.xiReport"
:key=
"kIdx"
>
<span
class=
"tag-txt"
>
{{ k.roomName }}
</span>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'xiReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动输入群名:"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.xiReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将收款喜报推送至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.xiReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.xiReportValue, k)"
></i>
</div>
</div>
</el-form-item>
<!-- 战报 - 关联群 -->
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 战报
<img
class=
"icon-eye"
@
click=
"handlePoster('zhanReport')"
src=
"@/assets/icon-eye.png"
/>
:推送至群聊:
</div>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"groupZhanRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('zhanReport')"
>
<span
class=
"placeholder"
>
请选择(可多选)
</span>
</div>
<span
class=
"el-input__suffix"
@
click=
"openGroup('zhanReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.zhanReport ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.zhanReport"
>
<gl-select-menu
:domEl=
"domZhanEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
prefix-icon=
"el-icon-search"
v-model=
"roomName"
></el-input>
</el-form-item>
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
>
<ul
class=
"el-scrollbar__view el-select-dropdown__list"
>
<
template
v-if=
"groupList.length > 0"
>
<li
v-for=
"(k, kIdx) in roomName == '' ? groupList : stageList"
class=
"el-select-dropdown__item"
:key=
"kIdx"
@
click=
"e => selectGroup(e, k, 'zhanReport')"
>
<span
:class=
"[groupCofList.zhanReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
</li>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
</ul>
</div>
</gl-select-menu>
</transition>
<div
class=
"group-list-box"
>
<div
class=
"list-tag"
v-for=
"(k, kIdx) in groupCofList.zhanReport"
:key=
"kIdx"
>
<span
class=
"tag-txt"
>
{{ k.roomName }}
</span>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'zhanReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动输入群名:"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.zhanReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将战报推送至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.zhanReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.zhanReportValue, k)"
></i>
</div>
</div>
</el-form-item>
<!-- 补单通知 - 关联群 -->
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 补单通知
<img
class=
"icon-eye"
@
click=
"handlePoster('orderReport')"
src=
"@/assets/icon-eye.png"
/>
:推送至群聊:
</div>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"groupOrderRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('orderReport')"
>
<span
class=
"placeholder"
>
请选择(可多选)
</span>
</div>
<span
class=
"el-input__suffix"
@
click=
"openGroup('orderReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.orderReport ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.orderReport"
>
<gl-select-menu
:domEl=
"domOrderEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
prefix-icon=
"el-icon-search"
v-model=
"roomName"
></el-input>
</el-form-item>
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
>
<ul
class=
"el-scrollbar__view el-select-dropdown__list"
>
<
template
v-if=
"groupList.length > 0"
>
<li
v-for=
"(k, kIdx) in roomName == '' ? groupList : stageList"
class=
"el-select-dropdown__item"
:key=
"kIdx"
@
click=
"e => selectGroup(e, k, 'orderReport')"
>
<span
:class=
"[groupCofList.orderReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
</li>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
</ul>
</div>
</gl-select-menu>
</transition>
<div
class=
"group-list-box"
>
<div
class=
"list-tag"
v-for=
"(k, kIdx) in groupCofList.orderReport"
:key=
"kIdx"
>
<span
class=
"tag-txt"
>
{{ k.roomName }}
</span>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'orderReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动输入群名:"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.orderReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将补单通知推送至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.orderReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.orderReportValue, k)"
></i>
</div>
</div>
</el-form-item>
<!-- SA喜报 - 关联群 -->
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 SA喜报
<img
class=
"icon-eye"
@
click=
"handlePoster('saReport')"
src=
"@/assets/icon-eye.png"
/>
:推送至群聊:
</div>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"groupSaRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('saReport')"
>
<span
class=
"placeholder"
>
请选择(可多选)
</span>
</div>
<span
class=
"el-input__suffix"
@
click=
"openGroup('saReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.saReport ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.saReport"
>
<gl-select-menu
:domEl=
"domSaEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
prefix-icon=
"el-icon-search"
v-model=
"roomName"
></el-input>
</el-form-item>
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
>
<ul
class=
"el-scrollbar__view el-select-dropdown__list"
>
<
template
v-if=
"groupList.length > 0"
>
<li
v-for=
"(k, kIdx) in roomName == '' ? groupList : stageList"
class=
"el-select-dropdown__item"
:key=
"kIdx"
@
click=
"e => selectGroup(e, k, 'saReport')"
>
<span
:class=
"[groupCofList.saReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
</li>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
</ul>
</div>
</gl-select-menu>
</transition>
<div
class=
"group-list-box"
>
<div
class=
"list-tag"
v-for=
"(k, kIdx) in groupCofList.saReport"
:key=
"kIdx"
>
<span
class=
"tag-txt"
>
{{ k.roomName }}
</span>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'saReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动输入群名:"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.saReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将SA喜报推送至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.saReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.saReportValue, k)"
></i>
</div>
</div>
</el-form-item>
<!-- SA个人喜报 - 关联群 -->
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 SA个人喜报
<img
class=
"icon-eye"
@
click=
"handlePoster('saPerReport')"
src=
"@/assets/icon-eye.png"
/>
:推送至群聊:
</div>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"groupSaPerRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('saPerReport')"
>
<span
class=
"placeholder"
>
请选择(可多选)
</span>
</div>
<span
class=
"el-input__suffix"
@
click=
"openGroup('saPerReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.saPerReport ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.saPerReport"
>
<gl-select-menu
:domEl=
"domSaPerEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
prefix-icon=
"el-icon-search"
v-model=
"roomName"
></el-input>
</el-form-item>
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
>
<ul
class=
"el-scrollbar__view el-select-dropdown__list"
>
<
template
v-if=
"groupList.length > 0"
>
<li
v-for=
"(k, kIdx) in roomName == '' ? groupList : stageList"
class=
"el-select-dropdown__item"
:key=
"kIdx"
@
click=
"e => selectGroup(e, k, 'saPerReport')"
>
<span
:class=
"[groupCofList.saPerReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
</li>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
</ul>
</div>
</gl-select-menu>
</transition>
<div
class=
"group-list-box"
>
<div
class=
"list-tag"
v-for=
"(k, kIdx) in groupCofList.saPerReport"
:key=
"kIdx"
>
<span
class=
"tag-txt"
>
{{ k.roomName }}
</span>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'saPerReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动输入群名:"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.saPerReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将SA个人喜报推送至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.saPerReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.saPerReportValue, k)"
></i>
</div>
</div>
</el-form-item>
<!-- 客户进度消息 - 关联群 -->
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 客户进度消息
<!-- <img class="icon-eye"
@click="handlePoster('scheduleReport')"
src="@/assets/icon-eye.png" /> -->
:推送至群聊:
</div>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"groupScheduleRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('scheduleReport')"
>
<span
class=
"placeholder"
>
请选择(可多选)
</span>
</div>
<span
class=
"el-input__suffix"
@
click=
"openGroup('scheduleReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.scheduleReport ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.scheduleReport"
>
<gl-select-menu
:domEl=
"domScheduleEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
prefix-icon=
"el-icon-search"
v-model=
"roomName"
></el-input>
</el-form-item>
<div
class=
"el-select-dropdown__wrap el-scrollbar__wrap"
>
<ul
class=
"el-scrollbar__view el-select-dropdown__list"
>
<
template
v-if=
"groupList.length > 0"
>
<li
v-for=
"(k, kIdx) in roomName == '' ? groupList : stageList"
class=
"el-select-dropdown__item"
:key=
"kIdx"
@
click=
"e => selectGroup(e, k, 'scheduleReport')"
>
<span
:class=
"[groupCofList.scheduleReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
</li>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
</ul>
</div>
</gl-select-menu>
</transition>
<div
class=
"group-list-box"
>
<div
class=
"list-tag"
v-for=
"(k, kIdx) in groupCofList.scheduleReport"
:key=
"kIdx"
>
<span
class=
"tag-txt"
>
{{ k.roomName }}
</span>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'scheduleReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动输入群名:"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.scheduleReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将客户进度消息推送至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.scheduleReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.scheduleReportValue, k)"
></i>
</div>
</div>
</el-form-item>
</el-form>
</div>
</GLDialog>
<!-- 查看 -->
<GLDialog
v-if=
"isImgVisible"
title=
"查看"
mode=
"mid"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
:hasFooter=
"false"
>
<img
width=
"50%"
:src=
"require(`@/assets/${dialogImageUrl}.png`)"
alt=
""
/>
</GLDialog>
</div>
</
template
>
<
script
>
import
url
from
'@/assets/empty.png'
import
{
dateFormat
}
from
'@/utils/index'
import
GlSelectMenu
from
'../battle/components/select-dropdown.vue'
export
default
{
components
:
{
GlSelectMenu
},
data
()
{
return
{
// 推送至群聊,下拉框是否隐藏
groupHideObj
:
{
xiReport
:
true
,
zhanReport
:
true
,
orderReport
:
true
,
saReport
:
true
,
saPerReport
:
true
,
scheduleReport
:
true
},
groupCofList
:
{
xiReport
:
[],
zhanReport
:
[],
orderReport
:
[],
saReport
:
[],
saPerReport
:
[],
scheduleReport
:
[]
},
groupCofListInput
:
{
xiReportValue
:
[],
zhanReportValue
:
[],
orderReportValue
:
[],
saReportValue
:
[],
saPerReportValue
:
[],
scheduleReportValue
:
[]
},
groupToType
:
[
{
attr
:
'xiReport'
,
type
:
1
},
{
attr
:
'zhanReport'
,
type
:
2
},
{
attr
:
'orderReport'
,
type
:
3
},
{
attr
:
'saReport'
,
type
:
4
},
{
attr
:
'saPerReport'
,
type
:
5
},
{
attr
:
'scheduleReport'
,
type
:
6
}
],
// 查看大图
isImgVisible
:
false
,
dialogImageUrl
:
''
,
isgroup
:
true
,
isAutomatic
:
true
,
merchantId
:
''
,
merchantName
:
''
,
size
:
'small'
,
mode
:
'mid'
,
battleVisible
:
false
,
battlestaffVisible
:
false
,
url
:
url
,
setectList
:
[],
merchantList
:
[],
groupList
:
[],
// groupList: [{
// roomChatId: '1688855088375831_R:1970325371975971',
// roomName: '波波的单店'
// }, {
// roomChatId: '111',
// roomName: 'cwq'
// }, {
// roomChatId: '222',
// roomName: '啦啦啦'
// }],
// 搜索
searchForm
:
{
merchantId
:
''
,
merchantName
:
''
,
groupMerchant
Name
:
''
groupMerchant
Id
:
''
},
searchFormData
:
[
{
...
...
@@ -473,7 +47,7 @@ export default {
},
{
label
:
'企微名称'
,
name
:
'groupMerchant
Name
'
,
name
:
'groupMerchant
Id
'
,
type
:
'select'
,
width
:
'215px'
,
optionList
:
[],
...
...
@@ -482,9 +56,6 @@ export default {
optionsName
:
'merchantList'
}
],
// 表格
// userList: [],
selectArray
:
[],
getListApi
:
this
.
$apis
.
clewOrder
.
getClueReportList
,
tableParams
:
{
listName
:
'list'
,
...
...
@@ -503,7 +74,7 @@ export default {
},
{
label
:
'企微'
,
prop
:
'
enterprise
MerchantName'
,
prop
:
'
group
MerchantName'
,
width
:
200
},
{
...
...
@@ -514,100 +85,35 @@ export default {
},
{
label
:
'内容'
,
prop
:
''
,
prop
:
'
content
'
,
addHtml
:
'content'
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
defaultProps
:
{
children
:
'children'
,
label
:
'name'
},
expandedKeys
:
[],
filterText
:
''
,
automaticData
:
[],
stageList
:
[],
roomName
:
''
,
config
:
{
merchantId
:
''
},
rules
:
{
staffId
:
{
required
:
true
,
message
:
'请选择推送人'
,
trigger
:
'change'
},
groupId
:
{
required
:
true
,
message
:
'请选择关联群'
,
trigger
:
'change'
}
},
wechat
:
{
staffId
:
''
,
automaticName
:
''
// roomName: ''
},
baseData
:
{
merchantList
:
[]
}
}
},
mounted
()
{
this
.
getMerchantList
()
// this.merchantList = this.$saasOrder?.merchantList || []
// this.config.merchantId = this.merchantList[0]?.merchantId
// this.config.merchantName = this.merchantList[0]?.merchantName
},
computed
:
{
domXiEl
()
{
return
this
.
$refs
.
groupXiRef
},
domZhanEl
()
{
return
this
.
$refs
.
groupZhanRef
},
domOrderEl
()
{
return
this
.
$refs
.
groupOrderRef
},
domSaEl
()
{
return
this
.
$refs
.
groupSaRef
},
automaticEl
()
{
return
this
.
$refs
.
automaticRef
},
domSaPerEl
()
{
return
this
.
$refs
.
groupSaPerRef
},
domScheduleEl
()
{
return
this
.
$refs
.
groupScheduleRef
}
},
watch
:
{
filterText
(
val
)
{
this
.
$refs
.
tree
.
filter
(
val
)
},
roomName
(
val
)
{
this
.
filterRoomName
(
val
)
}
},
methods
:
{
getMerchantList
()
{
this
.
$apis
.
battle
.
getMerchantList
({}).
then
(
res
=>
{
this
.
baseData
.
merchantList
=
res
this
.
merchantList
=
res
this
.
getOptionsList
(
'searchFormData'
)
})
},
formatterContent
(
cellValue
)
{
let
typeToTxt
=
new
Map
([
[
5
,
'#1.SA个人喜报>>'
],
[
4
,
'#2.SA喜报>>'
],
[
7
,
'#3.文字喜报>>'
],
[
2
,
'#4.早报>>'
],
[
6
,
'#5.客户进度消息>>'
],
[
3
,
'#6.补单通知>>'
]
])
let
txt
=
''
cellValue
.
groupConfigList
?.
forEach
(
item
=>
{
if
(
item
.
groupId
&&
typeToTxt
.
get
(
item
.
actionReportType
))
{
typeToTxt
.
set
(
item
.
actionReportType
,
item
.
groupName
?
typeToTxt
.
get
(
item
.
actionReportType
)
+
`【
${
item
.
groupName
}
】`
:
''
)
}
let
txt
=
'#1线索文字喜报'
cellValue
.
groupConfigList
.
forEach
(
item
=>
{
txt
+=
`【
${
item
.
groupName
}
】`
})
txt
=
[...
typeToTxt
.
values
()].
filter
(
item
=>
item
.
includes
(
'【'
))
return
txt
},
// 图片查看,
handlePoster
(
name
)
{
this
.
isImgVisible
=
true
this
.
dialogImageUrl
=
name
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
...
...
@@ -633,18 +139,6 @@ export default {
})
}
},
getMerchantList
()
{
this
.
$apis
.
battle
.
getMerchantList
({}).
then
(
res
=>
{
this
.
baseData
.
merchantList
=
res
this
.
merchantList
=
res
this
.
getOptionsList
(
'searchFormData'
)
this
.
config
.
merchantId
=
this
.
baseData
.
merchantList
[
0
]?.
merchantId
this
.
config
.
merchantName
=
this
.
baseData
.
merchantList
[
0
]?.
merchantName
// this.config.merchantId = this.merchantList && this.merchantList[0].merchantId
// this.merchantId = this.merchantList && this.merchantList[0].merchantId
// this.merchantName = this.merchantList && this.merchantList[0].merchantName
})
},
handleReset
()
{
this
.
searchForm
=
{
merchantId
:
''
,
...
...
@@ -653,221 +147,16 @@ export default {
}
this
.
handleSearch
()
},
clearData
()
{
this
.
setectList
=
[]
this
.
$refs
.
battleRef
.
clearMutiSelect
()
this
.
config
.
merchantId
=
this
.
merchantList
[
0
]?.
merchantId
this
.
wechat
=
{
staffId
:
''
,
automaticName
:
''
}
this
.
groupCofList
=
{
xiReport
:
[],
zhanReport
:
[],
orderReport
:
[],
saReport
:
[],
saPerReport
:
[],
scheduleReport
:
[]
}
this
.
hideSelect
()
},
filterNode
(
value
,
data
)
{
if
(
!
value
)
return
true
return
data
.
name
.
indexOf
(
value
)
!==
-
1
},
filterRoomName
(
value
)
{
this
.
stageList
=
this
.
groupList
.
filter
(
item
=>
{
if
(
item
.
roomName
.
indexOf
(
value
)
!==
-
1
)
{
return
item
}
})
},
handleNodeClick
(
data
)
{
this
.
hideSelect
()
this
.
wechat
.
automaticName
=
data
.
name
this
.
wechat
.
staffId
=
data
.
staffId
this
.
idBefEncryption
=
data
.
idBefEncryption
this
.
getGroupList
(
this
.
wechat
.
staffId
,
true
)
},
hideSelect
()
{
// this.isgroup = true
this
.
groupHideObj
.
xiReport
=
true
this
.
groupHideObj
.
zhanReport
=
true
this
.
groupHideObj
.
orderReport
=
true
this
.
groupHideObj
.
saReport
=
true
this
.
isAutomatic
=
true
},
selectGroup
(
e
,
data
,
groupHideAttr
)
{
e
.
stopPropagation
()
if
(
this
.
groupCofList
[
groupHideAttr
].
findIndex
(
i
=>
i
.
roomName
==
data
.
roomName
)
!=
-
1
)
{
return
}
// this.hideSelect()
// this.wechat.roomName = data.roomName
// this.wechat.groupId = data.roomChatId
this
.
groupCofList
[
groupHideAttr
].
push
({
groupId
:
data
.
roomChatId
,
roomName
:
data
.
roomName
})
},
openGroup
(
groupHideAttr
)
{
this
.
isAutomatic
=
true
// this.isgroup = !this.isgroup
let
attrList
=
Object
.
keys
(
this
.
groupHideObj
)
attrList
.
forEach
(
item
=>
{
if
(
item
!=
groupHideAttr
)
{
this
.
groupHideObj
[
item
]
=
true
}
})
this
.
roomName
=
''
this
.
stageList
=
[]
this
.
groupHideObj
[
groupHideAttr
]
=
!
this
.
groupHideObj
[
groupHideAttr
]
},
openAutomatic
()
{
// this.isgroup = true
this
.
groupHideObj
.
xiReport
=
true
this
.
groupHideObj
.
zhanReport
=
true
this
.
groupHideObj
.
orderReport
=
true
this
.
groupHideObj
.
saReport
=
true
this
.
groupHideObj
.
saPerReport
=
true
this
.
groupHideObj
.
scheduleReport
=
true
this
.
isAutomatic
=
!
this
.
isAutomatic
},
handleGroupRemove
(
idx
,
groupHideAttr
)
{
this
.
groupCofList
[
groupHideAttr
].
splice
(
idx
,
1
)
},
//所属企业
handleMerchatChange
(
val
)
{
this
.
getDepartmentTree
()
this
.
merchantList
.
forEach
(
item
=>
{
item
.
merchantId
==
val
?
(
this
.
config
.
merchantName
=
item
.
merchantName
)
:
''
})
this
.
wechat
=
{
staffId
:
''
,
automaticName
:
''
}
this
.
groupCofList
=
{
xiReport
:
[],
zhanReport
:
[],
orderReport
:
[],
saReport
:
[],
saPerReport
:
[],
scheduleReport
:
[]
}
},
battleSetHandle
()
{
if
(
this
.
setectList
.
length
==
0
)
{
this
.
$message
({
message
:
'请选择园区店'
,
type
:
'error'
})
return
}
this
.
wechat
=
{
staffId
:
''
,
automaticName
:
''
}
this
.
groupCofList
=
{
xiReport
:
[],
zhanReport
:
[],
orderReport
:
[],
saReport
:
[],
saPerReport
:
[],
scheduleReport
:
[]
}
this
.
getDepartmentTree
()
this
.
battleVisible
=
true
},
dateFormatFun
(
date
)
{
return
dateFormat
(
date
)
},
selectionTable
(
val
)
{
this
.
setectList
=
val
},
handlestaffbattleConfirm
()
{
this
.
battlestaffVisible
=
false
},
handlestaffbattleClose
()
{
this
.
battlestaffVisible
=
false
},
handleDetails
()
{},
handlebattleOn
(
data
,
sign
)
{
handlebattleOn
(
id
)
{
let
params
=
{
data
:
data
id
}
this
.
$router
.
push
({
path
:
'/bulletin/addClewConfig'
,
query
:
params
})
// this.setectList = []
// this.setectList.push(data)
// this.wechat = {
// staffId: '',
// automaticName: ''
// }
// this.groupCofList = {
// xiReport: [],
// zhanReport: [],
// orderReport: [],
// saReport: [],
// saPerReport: [],
// scheduleReport: []
// }
// this.groupCofListInput = {
// xiReportValue: [],
// zhanReportValue: [],
// orderReportValue: [],
// saReportValue: [],
// saPerReportValue: [],
// scheduleReportValue: []
// }
// this.battleVisible = true
// // 编辑
// if (sign) {
// this.wechat.staffId = data.staffId
// this.wechat.automaticName = data.staffName
// // this.wechat.groupId = data.groupId
// // this.wechat.roomName = data.groupName
// this.config.merchantId = data.enterpriseMerchantId
// this.config.merchantName = data.enterpriseMerchantName
// data.groupConfigList.forEach(item => {
// let groupHideAttr = this.groupToType.find(k => k.type == item.actionReportType).attr
// if (item.groupId) {
// if (item.groupId.split('_R:')[1] && item.groupId.split('_R:')[1] == item.groupName) {
// this.groupCofListInput[groupHideAttr + 'Value'].push({ name: item.groupName })
// this.idBefEncryption = item.groupId.split('_R:')[0]
// } else if (item.groupName) {
// this.groupCofList[groupHideAttr].push({
// groupId: item.groupId,
// roomName: item.groupName
// })
// } else {
// this.groupCofListInput[groupHideAttr + 'Value'].push({ name: '' })
// }
// }
// })
// for (let k in this.groupCofListInput) {
// if (this.groupCofListInput.hasOwnProperty(k) && !this.groupCofListInput[k][0]) {
// this.groupCofListInput[k] = [{ name: '' }]
// }
// }
// console.log(this.groupCofListInput)
// this.getGroupList(this.wechat.staffId)
// } else {
// this.groupCofListInput = {
// xiReportValue: [{ name: '' }],
// zhanReportValue: [{ name: '' }],
// orderReportValue: [{ name: '' }],
// saReportValue: [{ name: '' }],
// saPerReportValue: [{ name: '' }],
// scheduleReportValue: [{ name: '' }]
// }
// }
// this.getDepartmentTree()
},
handleSetting
()
{
this
.
drawer
=
true
},
handleClick
()
{
this
.
handleSearch
()
},
...
...
@@ -879,58 +168,6 @@ export default {
handleSearch
()
{
this
.
$refs
.
battleRef
.
refreshTable
()
},
async
getDepartmentTree
()
{
let
params
=
{
addChildrensFlag
:
true
,
queryMerchantId
:
this
.
config
.
merchantId
,
loginStatus
:
1
}
// let params = { addChildrensFlag: true, queryMerchantId: 44209846, loginStatus: 1 }
let
data
=
await
this
.
$apis
.
saasOrder
.
getlistDepartmentTree
(
params
)
this
.
ids
=
[]
this
.
automaticData
=
data
await
this
.
initData
(
this
.
automaticData
)
this
.
expandedKeys
=
[
this
.
automaticData
[
0
].
id
]
},
initData
(
data
)
{
data
.
forEach
((
item
,
index
)
=>
{
this
.
$set
(
item
,
'name'
,
item
.
staffName
?
item
.
staffName
:
item
.
departmentName
)
let
entmicroStaffResponses
=
this
.
$common
.
utils
.
deepClone
(
item
.
entmicroStaffResponses
)
||
[]
entmicroStaffResponses
=
entmicroStaffResponses
.
filter
((
staff
,
idx
)
=>
{
if
(
staff
.
staffName
)
{
this
.
$set
(
staff
,
'name'
,
staff
.
staffName
)
}
else
{
this
.
$set
(
staff
,
'name'
,
staff
.
departmentName
)
}
if
(
staff
.
staffId
&&
!
this
.
ids
.
includes
(
staff
.
staffId
))
{
this
.
ids
.
push
(
staff
.
staffId
)
return
true
}
else
if
(
staff
.
staffId
&&
this
.
ids
.
includes
(
staff
.
staffId
))
{
return
false
}
})
let
child
=
this
.
$common
.
utils
.
deepClone
(
item
.
children
)
||
[]
child
=
child
.
filter
((
staff
,
idx
)
=>
{
if
(
staff
.
staffName
)
{
this
.
$set
(
staff
,
'name'
,
staff
.
staffName
)
}
else
{
this
.
$set
(
staff
,
'name'
,
staff
.
departmentName
)
}
if
(
staff
.
staffId
&&
!
this
.
ids
.
includes
(
staff
.
staffId
))
{
this
.
ids
.
push
(
staff
.
staffId
)
return
true
}
else
if
(
staff
.
staffId
&&
this
.
ids
.
includes
(
staff
.
staffId
))
{
return
false
}
else
if
(
staff
.
entmicroStaffResponses
)
{
staff
.
staffId
=
staff
.
id
return
true
}
})
const
children
=
[...
child
,
...
entmicroStaffResponses
]
item
.
children
=
children
//清除没有员工的部门
if
(
!
item
.
staffName
&&
item
.
entmicroStaffResponses
===
null
)
{
// data.splice(index, 1)
}
children
.
length
&&
this
.
initData
(
children
)
})
}
}
}
...
...
@@ -955,138 +192,5 @@ export default {
}
}
}
.group-box
{
padding
:
20px
;
background
:
#f9f9f9
;
.input-box
{
display
:
flex
;
align-items
:
center
;
i
{
cursor
:
pointer
;
font-size
:
20px
;
color
:
#5850ff
;
margin-left
:
6px
;
}
}
}
.input-tag-wrapper
{
position
:
relative
;
font-size
:
14px
;
background-color
:
#fff
;
background-image
:
none
;
border-radius
:
4px
;
border
:
1px
solid
#dcdfe6
;
box-sizing
:
border-box
;
color
:
#666
;
display
:
inline-block
;
outline
:
none
;
padding
:
5px
;
max-height
:
68px
;
overflow
:
auto
;
flex-wrap
:
wrap
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
450px
;
display
:
flex
;
align-items
:
center
;
margin-top
:
6px
;
font-size
:
14px
;
i
{
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
/
deep
/
.el-tag
{
background-color
:
#fff
!important
;
margin-bottom
:
4px
;
}
}
.select-wrap
{
.icon-eye
{
width
:
20px
;
height
:
20px
;
cursor
:
pointer
;
vertical-align
:
middle
;
}
.common
{
margin
:
4px
0
;
height
:
40px
!important
;
overflow
:
hidden
;
/deep/
.el-input
{
height
:
40px
!important
;
line-height
:
40px
!important
;
}
/
deep
/
.el-input__suffix
{
height
:
40px
!important
;
margin-top
:
-4px
;
.is-reverse
{
transform
:
rotate
(
180deg
);
}
}
}
.group-list-box
{
display
:
flex
;
flex-wrap
:
wrap
;
.list-tag
{
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
//
height
:
30px
;
//
line-height
:
30px
;
background
:
#fafbfe
;
border
:
1px
solid
#e8e8ea
;
padding
:
0
8px
;
margin-right
:
4px
;
border-radius
:
4px
;
.tag-txt
{
font-size
:
14px
;
color
:
#666666
;
box-sizing
:
border-box
;
padding-right
:
8px
;
line-height
:
26px
;
}
.icon-close
{
width
:
8px
;
height
:
8px
;
}
img
{
width
:
16px
;
height
:
16px
;
cursor
:
pointer
;
}
}
}
}
}
.search-groomname
{
width
:
400px
;
margin
:
12px
16px
0
;
/deep/.el-input
{
width
:
252px
;
}
}
.filter-tree
{
padding
:
0
16px
;
}
.grey-txt
{
color
:
#c8c8c8
;
cursor
:
not-allowed
;
}
.empty
{
padding
:
10px
0
;
margin
:
0
;
text-align
:
center
;
color
:
#999
;
font-size
:
13px
;
}
.placeholder
{
font-size
:
14px
;
color
:
#c0c6ce
;
line-height
:
20px
;
}
.dialog-look
{
text-align
:
center
;
}
</
style
>
src/views/bulletin/components/dialogs/clewWordDialog.vue
View file @
5225734
...
...
@@ -80,12 +80,10 @@ export default {
}
}
},
watch
:
{
content
(
val
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
val
)
created
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
content
)
})
}
},
methods
:
{
handlebattleConfirm
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment