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 3e3be707
authored
Jun 14, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
fde783bd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
src/views/bulletin/addConfig.vue
src/views/bulletin/components/dialogs/charactersDialog.vue
src/views/bulletin/components/saasOrder/index.vue
src/views/bulletin/addConfig.vue
View file @
3e3be70
...
@@ -304,7 +304,7 @@ export default {
...
@@ -304,7 +304,7 @@ export default {
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
let
groupHideAttr
=
this
.
groupToType
.
find
(
k
=>
k
.
type
==
item
.
actionReportType
)?.
attr
if
(
item
.
groupId
)
{
if
(
item
.
groupId
)
{
if
(
item
.
groupId
.
split
(
'_R:'
)[
1
]
&&
item
.
groupId
.
split
(
'_R:'
)[
1
]
==
item
.
groupName
)
{
if
(
item
.
groupId
.
split
(
'_R:'
)[
1
]
&&
item
.
groupId
.
split
(
'_R:'
)[
1
]
==
item
.
groupName
)
{
this
.
groupCofListInput
[
groupHideAttr
+
'Value'
].
push
({
name
:
item
.
groupName
})
groupHideAttr
&&
this
.
groupCofListInput
[
groupHideAttr
+
'Value'
].
push
({
name
:
item
.
groupName
})
this
.
idBefEncryption
=
item
.
groupId
.
split
(
'_R:'
)[
0
]
this
.
idBefEncryption
=
item
.
groupId
.
split
(
'_R:'
)[
0
]
}
else
if
(
item
.
groupName
)
{
}
else
if
(
item
.
groupName
)
{
this
.
groupCofList
[
groupHideAttr
].
push
({
this
.
groupCofList
[
groupHideAttr
].
push
({
...
...
src/views/bulletin/components/dialogs/charactersDialog.vue
View file @
3e3be70
...
@@ -34,6 +34,7 @@ export default {
...
@@ -34,6 +34,7 @@ export default {
isDialogVisible
:
false
,
isDialogVisible
:
false
,
mode
:
'big'
,
mode
:
'big'
,
wordType
:
{
wordType
:
{
switchType
:
701
,
switchType
:
701
,
switchText
:
''
switchText
:
''
},
},
...
...
src/views/bulletin/components/saasOrder/index.vue
View file @
3e3be70
...
@@ -14,9 +14,12 @@
...
@@ -14,9 +14,12 @@
<GLTable
ref=
"battleRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
@
selectionTable=
"selectionTable"
>
<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=
"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>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<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-if=
"!scope.scope.staffId"
@
click=
"handlebattleOn(scope.scope)"
>
配置
</el-button>
<el-button
type=
"text"
v-else
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
<el-button
type=
"text"
v-else
@
click=
"handlebattleOn(scope.scope, 'edit')"
>
编辑
</el-button>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -520,23 +523,7 @@ export default {
...
@@ -520,23 +523,7 @@ export default {
{
{
label
:
'内容'
,
label
:
'内容'
,
prop
:
''
,
prop
:
''
,
formatter
:
cellValue
=>
{
addHtml
:
'content'
let
typeToTxt
=
{
1
:
'(推收款喜报)'
,
2
:
'(推战报)'
,
3
:
'(推补录订单)'
,
4
:
'(推SA喜报)'
,
5
:
'(推SA个人喜报)'
,
6
:
'(推客户进度消息)'
}
let
txt
=
''
cellValue
.
groupConfigList
?.
forEach
(
item
=>
{
if
(
item
.
groupId
)
{
txt
=
(
txt
?
txt
+
';'
:
txt
)
+
item
.
groupName
+
typeToTxt
[
item
.
actionReportType
]
}
})
return
txt
}
}
}
]
]
},
},
...
@@ -606,7 +593,19 @@ export default {
...
@@ -606,7 +593,19 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
// 图片查看
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
}
】`
:
''
)
}
})
txt
=
[...
typeToTxt
.
values
()].
filter
(
item
=>
item
.
includes
(
'【'
))
return
txt
},
// 图片查看,
handlePoster
(
name
)
{
handlePoster
(
name
)
{
this
.
isImgVisible
=
true
this
.
isImgVisible
=
true
this
.
dialogImageUrl
=
name
this
.
dialogImageUrl
=
name
...
...
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