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 713adbc5
authored
Jun 13, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat
1 parent
9d507379
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
128 deletions
src/components/verbal/index.vue
src/views/bulletin/addConfig.vue
src/views/bulletin/components/dialogs/charactersDialog.vue
src/views/bulletin/components/dialogs/personalDialog.vue
src/views/bulletin/components/dialogs/replenishmentDialog.vue
src/components/verbal/index.vue
View file @
713adbc
...
@@ -181,7 +181,6 @@ export default {
...
@@ -181,7 +181,6 @@ export default {
}
}
.btn-group-panel
{
.btn-group-panel
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding
:
10px
0
10px
20px
;
padding
:
10px
0
10px
20px
;
border
:
1px
solid
#e5e5e5
;
border
:
1px
solid
#e5e5e5
;
...
@@ -191,7 +190,6 @@ export default {
...
@@ -191,7 +190,6 @@ export default {
border-bottom-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
.btn-group
{
.btn-group
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
column-gap
:
20px
;
column-gap
:
20px
;
line-height
:
20px
;
line-height
:
20px
;
.add-btn
{
.add-btn
{
...
...
src/views/bulletin/addConfig.vue
View file @
713adbc
...
@@ -39,82 +39,19 @@
...
@@ -39,82 +39,19 @@
</gl-select-menu>
</gl-select-menu>
</transition>
</transition>
</el-form-item>
</el-form-item>
<!-- #1.SA个人喜报>> : -->
<!-- #喜报>> : -->
<el-form-item
label=
"#1.SA个人喜报>> :"
class=
"group-item-box"
>
<
template
v-for=
"(bulletin, index) in buttetinList"
>
<div
class=
"group-box"
>
<el-form-item
:label=
"'#' + (index + 1) + bulletin.label + '>>' + ':'"
class=
"group-item-box"
:key=
"index"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.saPerReportValue"
:key=
"k"
>
<div
class=
"group-box"
>
<el-input
v-model=
"i.name"
placeholder=
"将SA个人喜报推送至群聊"
></el-input>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput[bulletin.storageList]"
:key=
"k"
>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.saPerReportValue)"
></i>
<el-input
v-model=
"i.name"
:placeholder=
"'将' + bulletin.label + '推送至群聊'"
></el-input>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.saPerReportValue, k)"
></i>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput[bulletin.storageList])"
></i>
</div>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput[bulletin.storageList], k)"
></i>
</div>
</div>
<span
class=
"group-config-text"
@
click=
"openConfigDialog('personalDialog')"
>
配置
</span>
</el-form-item>
<!-- SA喜报 -->
<el-form-item
label=
"#2.SA喜报>> :"
class=
"group-item-box"
>
<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>
<span
class=
"group-config-text"
@
click=
"openConfigDialog('bulletinDialog')"
>
配置
</span>
</el-form-item>
<!-- #3.文字喜报>> : -->
<el-form-item
label=
"#3.文字喜报>> :"
class=
"group-item-box"
>
<div
class=
"group-box"
>
<div
class=
"input-box"
v-for=
"(i, k) in groupCofListInput.wordReportValue"
:key=
"k"
>
<el-input
v-model=
"i.name"
placeholder=
"将文字喜报至群聊"
></el-input>
<i
class=
"el-icon-circle-plus"
v-if=
"k == 0"
@
click=
"addGroup(groupCofListInput.wordReportValue)"
></i>
<i
class=
"el-icon-remove"
v-else
@
click=
"delGroup(groupCofListInput.wordReportValue, k)"
></i>
</div>
</div>
<span
class=
"group-config-text"
@
click=
"openConfigDialog('charactersDialog')"
>
配置
</span>
</el-form-item>
<!-- <el-form-item label="#4.收款喜报" class="group-item-box">
<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>
<span class="group-config-text" @click="openConfigDialog('xibaoDialog')">配置</span>
</el-form-item> -->
<!-- #4.早报>> : -->
<el-form-item
label=
"#4.早报>> :"
class=
"group-item-box"
>
<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>
<span
class=
"group-config-text"
@
click=
"openConfigDialog('dailyDialog')"
>
配置
</span>
</el-form-item>
<!-- #5.客户进度消息>> : -->
<el-form-item
label=
"#5.客户进度消息>> :"
class=
"group-item-box"
>
<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>
<span
class=
"group-config-text"
@
click=
"openConfigDialog('progressDialog')"
>
配置
</span>
</el-form-item>
<!-- #6.补单通知>> : -->
<el-form-item
label=
"#6.补单通知>> :"
class=
"group-item-box"
>
<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>
</div
>
<span
class=
"group-config-text"
@
click=
"openConfigDialog(bulletin.componentName)"
>
配置
</span
>
<
span
class=
"group-config-text"
@
click=
"openConfigDialog('replenishmentDialog')"
>
配置
</span
>
<
/el-form-item
>
</
el-form-item
>
</
template
>
</el-form>
</el-form>
</div>
</div>
</div>
</div>
...
@@ -229,6 +166,38 @@ export default {
...
@@ -229,6 +166,38 @@ export default {
attr
:
'wordReport'
,
attr
:
'wordReport'
,
type
:
7
type
:
7
}
}
],
buttetinList
:
[
{
label
:
'SA个人喜报'
,
storageList
:
'saPerReportValue'
,
componentName
:
'personalDialog'
},
{
label
:
'SA喜报'
,
storageList
:
'saReportValue'
,
componentName
:
'bulletinDialog'
},
{
label
:
'文字喜报'
,
storageList
:
'wordReportValue'
,
componentName
:
'charactersDialog'
},
{
label
:
'早报'
,
storageList
:
'zhanReportValue'
,
componentName
:
'dailyDialog'
},
{
label
:
'客户进度消息'
,
storageList
:
'scheduleReportValue'
,
componentName
:
'progressDialog'
},
{
label
:
'补单通知'
,
storageList
:
'orderReportValue'
,
componentName
:
'replenishmentDialog'
}
]
]
}
}
},
},
...
@@ -526,15 +495,15 @@ export default {
...
@@ -526,15 +495,15 @@ export default {
console
.
log
(
params
,
'params---'
)
console
.
log
(
params
,
'params---'
)
this
.
$apis
.
saasOrder
.
updateYqConfig
(
params
).
then
(
res
=>
{
this
.
$apis
.
saasOrder
.
updateYqConfig
(
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'配置成功'
:
res
.
message
,
message
:
res
.
code
==
'0'
?
'配置成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
data
)
{
this
.
$router
.
go
(
-
1
)
}
})
})
if
(
res
.
data
)
{
this
.
$router
.
go
(
-
1
)
}
})
},
},
handlebattleClose
()
{
handlebattleClose
()
{
this
.
$router
.
go
(
-
1
)
this
.
$router
.
go
(
-
1
)
...
@@ -590,9 +559,9 @@ export default {
...
@@ -590,9 +559,9 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.placeholder
{
.placeholder
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#c0c6ce
;
color
:
#c0c6ce
;
line-height
:
20px
;
line-height
:
20px
;
}
}
}
}
</
style
>
</
style
>
src/views/bulletin/components/dialogs/charactersDialog.vue
View file @
713adbc
...
@@ -93,7 +93,7 @@ export default {
...
@@ -93,7 +93,7 @@ export default {
console
.
log
(
val
)
console
.
log
(
val
)
if
(
val
)
{
if
(
val
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
'${销售顾问用户名}7'
)
this
.
$refs
.
verbalRef
&&
this
.
$refs
.
verbalRef
.
update
(
this
.
wordType
.
switchText
)
})
})
}
}
}
}
...
@@ -105,16 +105,15 @@ export default {
...
@@ -105,16 +105,15 @@ export default {
this
.
params
.
find
(
data
=>
{
this
.
params
.
find
(
data
=>
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
if
(
this
[
data
].
switchType
==
i
.
switchType
)
{
this
[
data
]
=
i
this
[
data
]
=
i
this
[
data
].
switchStatus
=
this
[
data
].
switchStatus
==
'Y'
?
true
:
false
}
}
})
})
})
})
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
console
.
log
(
this
.
$refs
.
verbalRef
.
getTextValue
())
this
.
isDialogVisible
=
false
this
.
isDialogVisible
=
false
let
switchList
=
[]
let
switchList
=
[]
this
.
params
.
forEach
(
data
=>
{
this
.
params
.
forEach
(
data
=>
{
if
(
data
==
'wordType'
)
this
[
data
].
switchText
=
this
.
$refs
.
verbalRef
.
getTextValue
()
switchList
.
push
(
this
[
data
])
switchList
.
push
(
this
[
data
])
})
})
this
.
$emit
(
'handlePreview'
,
{
key
:
'wordReport'
,
data
:
switchList
})
this
.
$emit
(
'handlePreview'
,
{
key
:
'wordReport'
,
data
:
switchList
})
...
...
src/views/bulletin/components/dialogs/personalDialog.vue
View file @
713adbc
...
@@ -99,14 +99,14 @@ export default {
...
@@ -99,14 +99,14 @@ export default {
})
})
},
},
handlebattleConfirm
()
{
handlebattleConfirm
()
{
console
.
log
(
this
.
$refs
.
verbalRef
.
getTextValue
)
this
.
isDialogVisible
=
false
// this.isDialogVisible = false
let
switchList
=
[]
// let switchList = []
this
.
params
.
forEach
(
data
=>
{
// this.params.forEach(data => {
if
(
data
==
'verbalType'
)
this
[
data
].
switchText
=
this
.
$refs
.
verbalRef
.
getTextValue
()
// if(data =='verbalType') data.switchText = this.$refs.verbalRef.getTextValue(
)
switchList
.
push
(
this
[
data
]
)
// switchList.push(this[data]
)
}
)
// }
)
console
.
log
(
switchList
)
//
this.$emit('handlePreview', { key: 'saPerReport', data: switchList })
this
.
$emit
(
'handlePreview'
,
{
key
:
'saPerReport'
,
data
:
switchList
})
}
}
}
}
}
}
...
...
src/views/bulletin/components/dialogs/replenishmentDialog.vue
View file @
713adbc
...
@@ -9,9 +9,9 @@
...
@@ -9,9 +9,9 @@
</div>
</div>
<div
class=
"right-wrap"
>
<div
class=
"right-wrap"
>
<div
class=
"empty"
>
<div
class=
"empty"
>
<img
src=
"@/assets/buttetin/empty.png"
/>
<img
src=
"@/assets/buttetin/empty.png"
/>
</div>
</div>
<p
class=
""
>
暂无配置项
</p>
<div
class=
"explain"
>
<div
class=
"explain"
>
<div
class=
"color6 weight-6 font-14"
>
<div
class=
"color6 weight-6 font-14"
>
<i
class=
"el-icon-warning"
></i>
<i
class=
"el-icon-warning"
></i>
...
@@ -29,7 +29,7 @@ export default {
...
@@ -29,7 +29,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
isDialogVisible
:
false
,
isDialogVisible
:
false
,
mode
:
'big'
,
mode
:
'big'
}
}
},
},
methods
:
{
methods
:
{
...
@@ -61,6 +61,9 @@ export default {
...
@@ -61,6 +61,9 @@ export default {
}
}
}
}
.right-wrap
{
.right-wrap
{
display
:
1
;
position
:
relative
;
width
:
100%
;
margin-top
:
12px
;
margin-top
:
12px
;
/deep/.el-form-item
{
/deep/.el-form-item
{
margin-bottom
:
0px
;
margin-bottom
:
0px
;
...
@@ -68,32 +71,17 @@ export default {
...
@@ -68,32 +71,17 @@ export default {
.item-line
{
.item-line
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.switchStyle
/
deep
/
.el-switch__label
{
.empty
{
width
:
420px
;
height
:
260px
;
position
:
absolute
;
position
:
absolute
;
display
:
none
;
top
:
35%
;
color
:
#fff
;
left
:
50%
;
font-size
:
12px
!important
;
transform
:
translate
(
-50%
,
-50%
);
line-height
:
20px
;
img{
}
width
:
100%
;
.el-switch__core
{
height
:
100%
;
background-color
:
rgba
(
166
,
166
,
166
,
1
);
}
}
.switchStyle
/
deep
/
.el-switch__label--left
{
z-index
:
9
;
left
:
20px
;
}
.switchStyle
/
deep
/
.el-switch__label--right
{
z-index
:
9
;
left
:
4px
;
}
.switchStyle
/
deep
/
.el-switch__label.is-active
{
display
:
block
;
}
.switchStyle
/
deep
/
.el-switch__core
{
width
:
56px
!important
;
}
.switchStyle
/
deep
/
.el-switch__label
{
width
:
56px
!important
;
}
}
.explain
{
.explain
{
width
:
486px
;
width
:
486px
;
...
...
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