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 f00ace4a
authored
Jun 25, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
7b289ef0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
274 additions
and
318 deletions
src/api/modules/battle.js
src/views/bulletin/addConfig.vue
src/views/bulletin/components/battle/components/select-dropdown.vue
src/views/bulletin/components/battle/index.vue
src/views/bulletin/components/saasOrder/index.vue
src/views/bulletin/components/vehicleDamageOrder/index.vue
src/api/modules/battle.js
View file @
f00ace4
...
...
@@ -75,5 +75,14 @@ const getGroupList = params => {
returnAll
:
true
})
}
export
default
{
getStaffList
,
getMerchantList
,
getlistDepartmentTree
,
getActivitylist
,
insertStaff
,
getGroupList
,
activityOpen
}
const
activityreportWorktool
=
params
=>
{
params
.
method
=
`entmicro.api.wechatcloudcontrol.activityreport.worktool.grouplist`
return
http
({
url
:
url1
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
activityreportWorktool
,
getStaffList
,
getMerchantList
,
getlistDepartmentTree
,
getActivitylist
,
insertStaff
,
getGroupList
,
activityOpen
}
src/views/bulletin/addConfig.vue
View file @
f00ace4
...
...
@@ -26,7 +26,7 @@
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!isAutomatic"
>
<gl-select-menu
:domEl=
"automaticEl"
@
changeStatu=
"hideSelect"
>
<gl-select-menu
:domEl=
"automaticEl"
@
changeStatu=
"hideSelect"
style=
"width:432px"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
v-model=
"filterText"
></el-input>
</el-form-item>
...
...
@@ -44,7 +44,10 @@
<el-form-item
:label=
"'#' + (index + 1) + bulletin.label + '>>' + ':'"
class=
"group-item-box"
:key=
"index"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput[bulletin.storageList]"
:key=
"k"
>
<el-input
v-model=
"i.name"
:placeholder=
"'将' + bulletin.label + '推送至群聊'"
></el-input>
<!--
<el-input
v-model=
"i.name"
></el-input>
-->
<el-select
v-model=
"i.name"
:placeholder=
"'将' + bulletin.label + '推送至群聊'"
>
<el-option
v-for=
"item in selectGroupName"
:key=
"item.groupName"
:label=
"item.groupName"
:value=
"item.groupName"
></el-option>
</el-select>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput[bulletin.storageList])"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput[bulletin.storageList], k)"
></i>
</div>
...
...
@@ -55,7 +58,7 @@
</el-form>
</div>
</div>
<GLFooter>
<GLFooter
class=
"footer-panel"
>
<el-button
@
click=
"handlebattleClose"
size=
"medium"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handlebattleConfirm"
size=
"medium"
:loading=
"loading"
>
保存
</el-button>
</GLFooter>
...
...
@@ -84,6 +87,7 @@ export default {
},
data
()
{
return
{
selectGroupName
:
[],
isDialogVisible
:
false
,
merchantName
:
''
,
paramsData
:
this
.
$route
.
query
,
...
...
@@ -264,6 +268,10 @@ export default {
this
.
wechat
.
automaticName
=
data
.
name
this
.
wechat
.
staffId
=
data
.
staffId
this
.
idBefEncryption
=
data
.
idBefEncryption
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
this
.
groupCofListInput
=
{
wordReportValue
:
[{
name
:
''
}],
orderReportValue
:
[{
name
:
''
}],
saReportValue
:
[{
name
:
''
}],
saPerReportValue
:
[{
name
:
''
}],
scheduleReportValue
:
[{
name
:
''
}],
zhanReportValue
:
[{
name
:
''
}]
}
})
},
// 弹窗数据回显
initswitchList
(
switchList
)
{
...
...
@@ -306,6 +314,7 @@ export default {
this
.
initswitchList
(
data
.
switchList
)
data
.
groupConfigList
.
forEach
(
item
=>
{
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
if
(
!
groupHideAttr
)
return
if
(
item
.
groupId
)
{
if
(
item
.
groupId
.
split
(
'_R:'
)[
1
]
&&
item
.
groupId
.
split
(
'_R:'
)[
1
]
==
item
.
groupName
)
{
groupHideAttr
&&
this
.
groupCofListInput
[
groupHideAttr
+
'Value'
].
push
({
name
:
item
.
groupName
})
...
...
@@ -317,6 +326,7 @@ export default {
roomName
:
item
.
groupName
})
}
else
{
this
.
idBefEncryption
=
item
.
groupId
.
split
(
'_R:'
)[
0
]
groupHideAttr
&&
this
.
groupCofListInput
[
groupHideAttr
+
'Value'
].
push
({
name
:
''
})
}
}
...
...
@@ -326,6 +336,9 @@ export default {
this
.
groupCofListInput
[
k
]
=
[{
name
:
''
}]
}
}
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
})
this
.
getGroupList
(
this
.
wechat
.
staffId
)
}
else
{
this
.
groupCofListInput
=
{
...
...
@@ -524,6 +537,16 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.footer-panel
{
margin-top
:
20px
;
}
.search-groomname
{
width
:
402px
;
margin
:
12px
16px
0
;
/deep/.el-input
{
width
:
402px
;
}
}
.addConfig-wrap
{
background
:
#fff
;
.header
{
...
...
@@ -552,6 +575,12 @@ export default {
.input-box
{
display
:
flex
;
align-items
:
center
;
/deep/
{
.el-select,
.el-input
{
width
:
355px
!important
;
}
}
i
{
cursor
:
pointer
;
font-size
:
20px
;
...
...
src/views/bulletin/components/battle/components/select-dropdown.vue
View file @
f00ace4
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-21 19:07:21
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-06-21 20:12:35
* @FilePath: \scrm-micro-battles\src\views\bulletin\components\battle\components\select-dropdown.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div
class=
"el-select-dropdown el-popper group-select"
:style=
"groupStyle"
>
<div
class=
"el-select-dropdown el-popper group-select"
:style=
"groupStyle"
v-bind=
"$attrs"
>
<slot></slot>
</div>
</
template
>
...
...
@@ -21,10 +29,10 @@ export default {
data
()
{
return
{
groupStyle
:
''
,
includeData
:
[
'el-input__inner'
,
'placeholder'
,
'el-select__caret el-input__icon el-icon-arrow-up'
]
includeData
:
[
'el-input__inner'
,
'placeholder'
,
'el-select__caret el-input__icon el-icon-arrow-up'
]
}
},
mounted
()
{
mounted
()
{
if
(
this
.
appendToBody
)
document
.
body
.
appendChild
(
this
.
$el
)
this
.
getBoundingClientRect
()
window
.
addEventListener
(
'resize'
,
this
.
getBoundingClientRect
)
...
...
@@ -40,8 +48,8 @@ export default {
this
.
groupStyle
=
{
left
:
left
+
'px'
,
top
:
top
+
45
+
'px'
}
},
removeEl
()
{
document
.
body
.
contains
(
this
.
$el
)
&&
document
.
body
.
removeChild
(
this
.
$el
)
this
.
$emit
(
'changeStatu'
)
document
.
body
.
contains
(
this
.
$el
)
&&
document
.
body
.
removeChild
(
this
.
$el
)
this
.
$emit
(
'changeStatu'
)
}
},
beforeDestroy
()
{
...
...
@@ -65,4 +73,3 @@ export default {
}
}
</
style
>
src/views/bulletin/components/battle/index.vue
View file @
f00ace4
<
template
>
<div
class=
"activity"
>
<GLTabs
v-model=
"activeName"
:tabPaneList=
"tabPaneList"
@
tab-click=
"handleClick"
></GLTabs>
<!-- 表格区域 开始 -->
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<template
slot=
"activityStatus"
>
<el-select
v-model=
"tableSearchForm.activityStatus"
placeholder=
"请选择活动状态"
>
<el-option
v-for=
"item in baseData.activityStatuList"
:key=
"item.confId"
:label=
"item.confName"
:value=
"item.confId"
></el-option>
</el-select>
</
template
>
</GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex-between title"
>
<div
class=
"title-text"
>
专员列表
</div>
<
template
v-if=
"
tableSearchForm.activityStatus == 2
"
>
<template
v-if=
"
activeName == 'first'
"
>
<el-button
:size=
"size"
type=
"primary"
class=
"battle-set-btn"
@
click=
"battleSetHandle"
>
批量配置专员
</el-button>
</
template
>
</div>
...
...
@@ -138,7 +133,9 @@
</transition>
</el-form-item>
<el-form-item
class=
"select-wrap"
label=
"群名:"
>
<el-input
v-model=
"groupName"
placeholder=
"请输入群名"
@
blur=
"importGroup"
></el-input>
<el-select
v-model=
"groupName"
placeholder=
"请选择"
>
<el-option
v-for=
"item in selectGroupName"
:key=
"item.groupName"
:label=
"item.groupName"
:value=
"item.groupName"
></el-option>
</el-select>
</el-form-item>
</el-form>
</div>
...
...
@@ -152,8 +149,8 @@
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
{
dateFormat
}
from
'@/utils/index'
import
SelectMember
from
'.
./battle
/components/SelectMember.vue'
import
GlSelectMenu
from
'.
./battle
/components/select-dropdown.vue'
import
SelectMember
from
'./components/SelectMember.vue'
import
GlSelectMenu
from
'./components/select-dropdown.vue'
export
default
{
components
:
{
SelectMember
,
...
...
@@ -161,12 +158,14 @@ export default {
},
data
()
{
return
{
selectGroupName
:
[],
groupName
:
''
,
isgroup
:
true
,
isAutomatic
:
true
,
menuIndex
:
0
,
merchantId
:
''
,
merchantName
:
''
,
activeName
:
'first'
,
size
:
'small'
,
mode
:
'mid'
,
battleVisible
:
false
,
...
...
@@ -176,6 +175,16 @@ export default {
setectEditList
:
[],
merchantList
:
[],
groupList
:
[],
tabPaneList
:
[
{
label
:
'进行中'
,
name
:
'first'
},
{
label
:
'已结束'
,
name
:
'second'
}
],
searchFormData
:
[
{
label
:
'活动门店'
,
...
...
@@ -197,16 +206,6 @@ export default {
optionLabel
:
'confName'
},
{
label
:
'活动状态'
,
name
:
'activityStatus'
,
type
:
'select'
,
optionList
:
[],
addHtml
:
'activityStatus'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'activityStatuList'
},
{
label
:
'活动类型'
,
name
:
'marketingType'
,
type
:
'select'
,
...
...
@@ -219,8 +218,7 @@ export default {
tableSearchForm
:
{
merchantName
:
''
,
activityName
:
''
,
activityType
:
''
,
activityStatus
:
2
activityType
:
''
},
// 表格
userList
:
[],
...
...
@@ -292,10 +290,6 @@ export default {
activityTypeList
:
[
{
confId
:
'3'
,
confName
:
'众筹'
},
{
confId
:
'5'
,
confName
:
'膨胀金'
}
],
activityStatuList
:
[
{
confId
:
2
,
confName
:
'进行中'
},
{
confId
:
3
,
confName
:
'已结束'
}
]
}
}
...
...
@@ -317,12 +311,30 @@ export default {
}
},
watch
:
{
idBefEncryptionBattle
(
val
)
{
this
.
importGroup
()
},
idBefEncryptionGood
(
val
)
{
this
.
importGroup
()
},
activeName
:
{
handler
(
val
)
{
if
(
val
==
'first'
)
{
this
.
tableParams
.
tableOption
=
true
this
.
$nextTick
(()
=>
{
this
.
tableParams
.
mutiSelectUniqueKey
=
'activityId'
this
.
tableParams
.
mutiSelectName
=
'activityId'
})
}
else
{
this
.
tableParams
.
tableOption
=
false
this
.
$nextTick
(()
=>
{
this
.
tableParams
.
mutiSelectUniqueKey
=
''
this
.
tableParams
.
mutiSelectName
=
''
})
}
},
immediate
:
true
},
// idBefEncryptionBattle(val) {
// this.importGroup()
// },
// idBefEncryptionGood(val) {
// this.importGroup()
// },
filterText
(
val
)
{
this
.
$refs
.
tree
.
filter
(
val
)
},
...
...
@@ -331,6 +343,15 @@ export default {
},
roomName
(
val
)
{
this
.
filterRoomName
(
val
)
},
groupName
(
val
)
{
if
(
this
.
wechat
.
roomName
)
return
if
(
this
.
wechat
.
battleStaffName
)
{
this
.
wechat
.
battleGroupId
=
this
.
idBefEncryptionBattle
+
'_R:'
+
val
}
if
(
this
.
wechat
.
goodStaffName
)
{
this
.
wechat
.
goodGroupId
=
this
.
idBefEncryptionGood
+
'_R:'
+
val
}
}
},
methods
:
{
...
...
@@ -401,14 +422,15 @@ export default {
})
},
handleNodeClick
(
data
)
{
this
.
setSendName
(
data
.
name
,
data
.
staffId
)
// this.wechat.roomName = ''
if
(
this
.
menuIndex
==
1
)
{
this
.
idBefEncryptionBattle
=
data
.
idBefEncryption
}
if
(
this
.
menuIndex
==
2
)
{
this
.
idBefEncryptionGood
=
data
.
idBefEncryption
this
.
groupName
=
''
}
this
.
setSendName
(
data
.
name
,
data
.
staffId
)
this
.
hideSelect
()
},
setSendName
(
name
,
staffId
,
isClear
,
i
)
{
...
...
@@ -420,8 +442,10 @@ export default {
if
(
this
.
menuIndex
==
2
||
i
==
2
)
{
if
(
staffId
==
this
.
wechat
.
goodStaffId
&&
staffId
)
return
Object
.
assign
(
this
.
wechat
,
{
goodStaffName
:
name
,
goodStaffId
:
staffId
})
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryptionGood
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
})
}
console
.
log
(
this
.
wechat
)
if
(
isClear
&&
!
this
.
wechat
.
battleStaffName
&&
!
this
.
wechat
.
goodStaffName
)
{
this
.
wechat
.
roomName
=
''
this
.
groupList
=
[]
...
...
@@ -448,15 +472,15 @@ export default {
}
// this.wechat.groupId = data.roomChatId
},
importGroup
()
{
if
(
this
.
wechat
.
roomName
)
return
if
(
this
.
wechat
.
battleStaffName
)
{
this
.
wechat
.
battleGroupId
=
this
.
idBefEncryptionBattle
+
'_R:'
+
this
.
groupName
}
if
(
this
.
wechat
.
goodStaffName
)
{
this
.
wechat
.
goodGroupId
=
this
.
idBefEncryptionGood
+
'_R:'
+
this
.
groupName
}
},
//
importGroup() {
//
if (this.wechat.roomName) return
//
if (this.wechat.battleStaffName) {
//
this.wechat.battleGroupId = this.idBefEncryptionBattle + '_R:' + this.groupName
//
}
//
if (this.wechat.goodStaffName) {
//
this.wechat.goodGroupId = this.idBefEncryptionGood + '_R:' + this.groupName
//
}
//
},
openMenu
(
e
)
{
if
(
e
==
this
.
menuIndex
)
return
(
this
.
menuIndex
=
0
)
this
.
menuIndex
=
e
...
...
@@ -551,7 +575,7 @@ export default {
// this.$refs.selectMember.$refs.tree.setCheckedKeys(this.ids)
// }
},
handlebattleConfirm
()
{
async
handlebattleConfirm
()
{
if
(
this
.
userList
.
length
==
0
)
{
this
.
$message
({
message
:
'请选择专员'
,
...
...
@@ -607,6 +631,7 @@ export default {
if
(
res
.
data
)
{
this
.
battleVisible
=
false
this
.
handleSearch
()
this
.
activeName
=
'first'
this
.
clearData
()
}
})
...
...
@@ -658,7 +683,7 @@ export default {
roomName
:
''
,
autoGroupMerchantId
}
const
groupId
=
battleGroupId
||
goodGroupId
const
groupId
=
battleGroupId
||
goodGroupId
||
''
if
(
groupId
.
split
(
'_R:'
)[
1
]
==
autoGroupName
)
{
this
.
groupName
=
autoGroupName
this
.
idBefEncryptionBattle
=
battleGroupId
.
split
(
'_R:'
)[
0
]
...
...
@@ -666,7 +691,9 @@ export default {
}
else
{
this
.
wechat
.
roomName
=
autoGroupName
}
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryptionGood
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
})
this
.
getGroupList
(
this
.
wechat
.
staffId
)
})
},
...
...
@@ -693,6 +720,7 @@ export default {
let
params
=
{
...
this
.
tableSearchForm
}
this
.
activeName
==
'first'
?
(
params
.
activityStatus
=
2
)
:
(
params
.
activityStatus
=
3
)
return
params
},
beforeSearchFn
()
{
...
...
@@ -710,7 +738,7 @@ export default {
},
async
getDepartmentTree
()
{
// let params = { addChildrensFlag: true, queryMerchantId: this.config.merchantId,loginStatus:1 }
let
params
=
{
addChildrensFlag
:
true
,
queryMerchantId
:
this
.
$merchantId
,
loginStatus
:
1
}
let
params
=
{
addChildrensFlag
:
true
,
queryMerchantId
:
this
.
$merchantId
,
loginStatus
:
1
}
//this.$merchantId
let
data
=
await
this
.
$apis
.
battle
.
getlistDepartmentTree
(
params
)
this
.
ids
=
[]
this
.
automaticData
=
data
...
...
src/views/bulletin/components/saasOrder/index.vue
View file @
f00ace4
...
...
@@ -15,7 +15,7 @@
<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>
<div
slot=
"content"
slot-scope=
"scope"
>
<div
v-for=
"(item,
index) in formatterContent(scope.scope)"
:key=
"index"
>
{{
item
}}
</div>
<div
v-for=
"(item,
index) in formatterContent(scope.scope)"
:key=
"index"
>
{{
item
}}
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"!scope.scope.staffId"
@
click=
"handlebattleOn(scope.scope)"
>
配置
</el-button>
...
...
@@ -584,15 +584,21 @@ export default {
},
methods
:
{
formatterContent
(
cellValue
)
{
let
typeToTxt
=
new
Map
([[
5
,
'#1.SA个人喜报>>'
],[
4
,
'#2.SA喜报>>'
],[
7
,
'#3.文字喜报>>'
],[
2
,
'#4.早报>>'
],[
6
,
'#5.客户进度消息>>'
],[
3
,
'#6.补单通知>>'
]])
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
}
】`
:
''
)
if
(
item
.
groupId
&&
typeToTxt
.
get
(
item
.
actionReportType
))
{
typeToTxt
.
set
(
item
.
actionReportType
,
item
.
groupName
?
typeToTxt
.
get
(
item
.
actionReportType
)
+
`【
${
item
.
groupName
}
】`
:
''
)
}
})
txt
=
[...
typeToTxt
.
values
()].
filter
(
item
=>
item
.
includes
(
'【'
))
txt
=
[...
typeToTxt
.
values
()].
filter
(
item
=>
item
.
includes
(
'【'
))
return
txt
},
// 图片查看,
...
...
@@ -1159,7 +1165,7 @@ export default {
}
}
.search-groomname
{
width
:
252
px
;
width
:
400
px
;
margin
:
12px
16px
0
;
/deep/.el-input
{
width
:
252px
;
...
...
src/views/bulletin/components/vehicleDamageOrder/index.vue
View file @
f00ace4
...
...
@@ -10,99 +10,46 @@
class=
"battle-set-btn"
@
click=
"battleSetHandle"
>
批量配置专员
</el-button>
-->
</div>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<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>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"!scope.scope.staffId"
@
click=
"handlebattleOn(scope.scope)"
>
配置
</el-button>
<el-button
type=
"text"
v-else
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<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>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"!scope.scope.staffId"
@
click=
"handlebattleOn(scope.scope)"
>
配置
</el-button>
<el-button
type=
"text"
v-else
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
</div>
</GLTable>
</div>
<GLDialog
:mode=
"mode"
class=
"battle-dialog"
title=
"配置专员"
@
onOk=
"handlebattleConfirm"
@
onCancel=
"handlebattleClose"
:visible
.
sync=
"battleVisible"
>
<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
: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
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"
>
<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>
<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
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"
>
<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-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>
<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
class=
"empty"
v-else
>
暂无数据
</div>
</div>
</gl-select-menu>
</transition>
...
...
@@ -111,75 +58,51 @@
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 收款喜报
<img
class=
"icon-eye"
@
click=
"handlePoster('xiReport_qy')"
src=
"@/assets/icon-eye.png"
/>
<img
class=
"icon-eye"
@
click=
"handlePoster('xiReport_qy')"
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')"
>
<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
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"
>
<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-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
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>
<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"
>
<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"
/>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'xiReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动
输入
群名:"
>
<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
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.xiReportValue"
:key=
"k"
>
<el-select
v-model=
"i.name"
placeholder=
"请选择"
>
<el-option
v-for=
"item in selectGroupName"
:key=
"item.groupName"
:label=
"item.groupName"
:value=
"item.groupName"
></el-option>
</el-select>
<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>
...
...
@@ -187,75 +110,51 @@
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 战报
<img
class=
"icon-eye"
@
click=
"handlePoster('zhanReport_qy')"
src=
"@/assets/icon-eye.png"
/>
<img
class=
"icon-eye"
@
click=
"handlePoster('zhanReport_qy')"
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')"
>
<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
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"
>
<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-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
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>
<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"
>
<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"
/>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'zhanReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动
输入
群名:"
>
<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
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.zhanReportValue"
:key=
"k"
>
<el-select
v-model=
"i.name"
placeholder=
"请选择"
>
<el-option
v-for=
"item in selectGroupName"
:key=
"item.groupName"
:label=
"item.groupName"
:value=
"item.groupName"
></el-option>
</el-select>
<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>
...
...
@@ -263,75 +162,51 @@
<el-form-item
class=
"select-wrap"
>
<div
slot=
"label"
>
将 服务商战报
<img
class=
"icon-eye"
@
click=
"handlePoster('zhanServerReport_qy')"
src=
"@/assets/icon-eye.png"
/>
<img
class=
"icon-eye"
@
click=
"handlePoster('zhanServerReport_qy')"
src=
"@/assets/icon-eye.png"
/>
:推送至群聊:
</div>
<div
class=
"common el-form-item__content"
>
<div
class=
"el-input"
ref=
"groupZhanServerRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('zhanServerReport')"
>
<div
class=
"el-input"
ref=
"groupZhanServerRef"
>
<div
class=
"el-input__inner"
@
click=
"openGroup('zhanServerReport')"
>
<span
class=
"placeholder"
>
请选择(可多选)
</span>
</div>
<span
class=
"el-input__suffix"
@
click=
"openGroup('zhanServerReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.zhanServerReport ? 'is-reverse' : '']"
></i></span>
<span
class=
"el-input__suffix"
@
click=
"openGroup('zhanServerReport')"
>
<span
class=
"el-input__suffix-inner"
><i
:class=
"['el-select__caret', 'el-input__icon', 'el-icon-arrow-up', groupHideObj.zhanServerReport ? 'is-reverse' : '']"
></i></span>
</span>
</div>
</div>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.zhanServerReport"
>
<gl-select-menu
:domEl=
"domZhanServerEl"
@
changeStatu=
"hideSelect"
>
<transition
name=
"el-zoom-in-top"
v-if=
"!groupHideObj.zhanServerReport"
>
<gl-select-menu
:domEl=
"domZhanServerEl"
@
changeStatu=
"hideSelect"
>
<el-form-item
class=
"search-groomname"
>
<el-input
placeholder=
"请输入搜索关键词"
prefix-icon=
"el-icon-search"
v-model=
"roomName"
></el-input>
<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, 'zhanServerReport')"
>
<span
:class=
"[groupCofList.zhanServerReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
<li
v-for=
"(k, kIdx) in roomName == '' ? groupList : stageList"
class=
"el-select-dropdown__item"
:key=
"kIdx"
@
click=
"e => selectGroup(e, k, 'zhanServerReport')"
>
<span
:class=
"[groupCofList.zhanServerReport.findIndex(i => i.roomName == k.roomName) != -1 ? 'grey-txt' : '']"
>
{{
k
.
roomName
}}
</span>
</li>
</
template
>
<div
class=
"empty"
v-else
>
暂无数据
</div>
<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.zhanServerReport"
:key=
"kIdx"
>
<div
class=
"list-tag"
v-for=
"(k, kIdx) in groupCofList.zhanServerReport"
:key=
"kIdx"
>
<span
class=
"tag-txt"
>
{{ k.roomName }}
</span>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'zhanServerReport')"
src=
"@/assets/icon-close.png"
/>
<img
class=
"icon-close"
@
click=
"handleGroupRemove(kIdx, 'zhanServerReport')"
src=
"@/assets/icon-close.png"
/>
</div>
</div>
</el-form-item>
<el-form-item
label=
"手动
输入
群名:"
>
<el-form-item
label=
"手动
选择
群名:"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.zhanServerReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将服务商战报推送至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.zhanServerReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.zhanServerReportValue, k)"
></i>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.zhanServerReportValue"
:key=
"k"
>
<el-select
v-model=
"i.name"
placeholder=
"请选择"
>
<el-option
v-for=
"item in selectGroupName"
:key=
"item.groupName"
:label=
"item.groupName"
:value=
"item.groupName"
></el-option>
</el-select>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.zhanServerReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.zhanServerReportValue, k)"
></i>
</div>
</div>
</el-form-item>
...
...
@@ -395,7 +270,7 @@
</div>
</div>
</el-form-item>
<el-form-item label="手动
输入
群名:">
<el-form-item label="手动
选择
群名:">
<div class="group-box">
<div class="input-box"
v-for="(i, k) in groupCofListInput.orderReportValue"
...
...
@@ -471,7 +346,7 @@
</div>
</div>
</el-form-item>
<el-form-item label="手动
输入
群名:">
<el-form-item label="手动
选择
群名:">
<div class="group-box">
<div class="input-box"
v-for="(i, k) in groupCofListInput.saReportValue"
...
...
@@ -547,7 +422,7 @@
</div>
</div>
</el-form-item>
<el-form-item label="手动
输入
群名:">
<el-form-item label="手动
选择
群名:">
<div class="group-box">
<div class="input-box"
v-for="(i, k) in groupCofListInput.saPerReportValue"
...
...
@@ -563,7 +438,6 @@
</div>
</div>
</el-form-item> -->
<!-- 客户进度消息 - 关联群 -->
<!-- <el-form-item class="select-wrap">
<div slot="label">
...
...
@@ -621,7 +495,7 @@
</div>
</div>
</el-form-item>
<el-form-item label="手动
输入
群名:">
<el-form-item label="手动
选择
群名:">
<div class="group-box">
<div class="input-box"
v-for="(i, k) in groupCofListInput.scheduleReportValue"
...
...
@@ -641,19 +515,11 @@
</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
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'
...
...
@@ -664,6 +530,7 @@ export default {
},
data
()
{
return
{
selectGroupName
:
[],
// 推送至群聊,下拉框是否隐藏
groupHideObj
:
{
xiReport
:
true
,
...
...
@@ -720,7 +587,7 @@ export default {
{
attr
:
'zhanServerReport'
,
type
:
22
}
,
}
],
// 查看大图
isImgVisible
:
false
,
...
...
@@ -833,7 +700,6 @@ export default {
// 5: '(推SA个人喜报)',
// 6: '(推客户进度消息)',
22
:
'(推服务商战报)'
}
let
txt
=
''
cellValue
.
groupConfigList
?.
forEach
(
item
=>
{
...
...
@@ -873,7 +739,6 @@ export default {
}
}
},
mounted
()
{
this
.
getMerchantList
()
// this.merchantList = this.$saasOrder?.merchantList || []
...
...
@@ -904,7 +769,7 @@ export default {
// },
domZhanServerEl
()
{
return
this
.
$refs
.
groupZhanServerRef
}
,
}
},
watch
:
{
filterText
(
val
)
{
...
...
@@ -1002,6 +867,14 @@ export default {
this
.
wechat
.
staffId
=
data
.
staffId
this
.
idBefEncryption
=
data
.
idBefEncryption
this
.
getGroupList
(
this
.
wechat
.
staffId
,
true
)
this
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
this
.
groupCofListInput
=
{
xiReportValue
:
[{
name
:
''
}],
zhanReportValue
:
[{
name
:
''
}],
zhanServerReportValue
:
[{
name
:
''
}]
}
})
},
hideSelect
()
{
// this.isgroup = true
...
...
@@ -1108,7 +981,7 @@ export default {
handlestaffbattleClose
()
{
this
.
battlestaffVisible
=
false
},
handlebattleConfirm
()
{
async
handlebattleConfirm
()
{
if
(
!
this
.
wechat
.
staffId
)
{
this
.
$message
({
message
:
'请选择推送人'
,
...
...
@@ -1145,7 +1018,6 @@ export default {
merchantId
:
this
.
setectList
[
0
]?.
merchantId
,
scene
:
0
}
this
.
setectList
.
forEach
(
item
=>
{
params
.
yqMerchantIdList
.
push
(
item
.
yqMerchantId
)
})
...
...
@@ -1173,7 +1045,6 @@ export default {
}
})
console
.
log
(
params
,
'params---'
)
this
.
$apis
.
saasOrder
.
updateYqConfig
(
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'配置成功'
:
res
.
message
,
...
...
@@ -1190,7 +1061,7 @@ export default {
this
.
battleVisible
=
false
this
.
clearData
()
},
handleDetails
()
{
},
handleDetails
()
{},
addGroup
(
group
)
{
group
.
push
({
name
:
''
})
},
...
...
@@ -1231,28 +1102,37 @@ export default {
// 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
:
''
})
const
groupConfigList
=
data
.
groupConfigList
groupConfigList
&&
groupConfigList
.
forEach
(
item
=>
{
console
.
log
(
item
,
'999999'
)
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
if
(
!
groupHideAttr
)
{
return
}
}
})
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
.
idBefEncryption
=
item
.
groupId
.
split
(
'_R:'
)[
0
]
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
.
$apis
.
battle
.
activityreportWorktool
({
cloudId
:
this
.
idBefEncryption
}).
then
(
res
=>
{
this
.
selectGroupName
=
res
.
data
.
result
||
[]
})
this
.
getGroupList
(
this
.
wechat
.
staffId
)
}
else
{
this
.
groupCofListInput
=
{
...
...
@@ -1262,7 +1142,7 @@ export default {
// saReportValue: [{ name: '' }],
// saPerReportValue: [{ name: '' }],
// scheduleReportValue: [{ name: '' }],
zhanServerReportValue
:
[{
name
:
''
}]
,
zhanServerReportValue
:
[{
name
:
''
}]
}
}
this
.
getDepartmentTree
()
...
...
@@ -1291,12 +1171,10 @@ export default {
handleClick
()
{
this
.
handleSearch
()
},
setTableFinishFun
()
{
//接收到的数据为空
this
.
$refs
.
battleRef
.
data
.
length
?
(
this
.
$refs
.
battleRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
battleRef
.
setTableHeightFun
()
},
handleSearch
()
{
this
.
$refs
.
battleRef
.
refreshTable
()
},
...
...
@@ -1355,7 +1233,6 @@ export default {
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.message-Z-zinde
{
z-index
:
9999
!important
;
...
...
@@ -1378,6 +1255,9 @@ export default {
.group-box
{
padding
:
20px
;
background
:
#f9f9f9
;
/deep/
.el-input
{
width
:
255px
!important
;
}
.input-box
{
display
:
flex
;
align-items
:
center
;
...
...
@@ -1389,7 +1269,6 @@ export default {
}
}
}
.input-tag-wrapper
{
position
:
relative
;
font-size
:
14px
;
...
...
@@ -1447,7 +1326,6 @@ export default {
.group-list-box
{
display
:
flex
;
flex-wrap
:
wrap
;
.list-tag
{
box-sizing
:
border-box
;
display
:
flex
;
...
...
@@ -1505,7 +1383,6 @@ export default {
color
:
#c0c6ce
;
line-height
:
20px
;
}
.dialog-look
{
text-align
:
center
;
}
...
...
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