Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 410fa059
authored
Jul 29, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
首页设置-弹窗
1 parent
87da18c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
17 deletions
src/views/homeSet/index.vue
src/views/homeSet/index.vue
View file @
410fa05
...
...
@@ -187,21 +187,22 @@
</GLFooter>
<select-single-pro-dialog
v-if=
"isSingleSelectVisible"
:isSingleSelectVisible=
"isSingleSelectVisible"
:selectedProInfo=
"selectedProInfo"
@
handleSingleSelectConfirm=
"handleSingleSelectConfirm"
@
handleSingleSelectClose=
"handleSingleSelectClose"
></select-single-pro-dialog>
<!-- 在线客服 -->
<
glsx-dialog
class=
"server-dialog"
title=
"在线客服"
width=
"712px"
:noBtnOk=
"true"
:isVisible
.
sync=
"isConsultantVisible"
@
confirmDialog=
"handleConsultantConfirm"
@
closeDialog
=
"handleConsultantClose"
>
<
GLDialog
class=
"server-dialog"
title=
"在线客服"
mode=
"mid"
:visible
.
sync=
"isConsultantVisible"
@
onOk=
"handleConsultantConfirm"
@
onCancel
=
"handleConsultantClose"
>
<div
class=
"server-container"
>
<img
src=
"@/assets/no-server.png"
/>
<p
class=
"server-txt"
>
系统暂无已创建的在线客服
</p>
</div>
<
template
slot=
"btn-middle"
>
<
template
slot=
"footer"
>
<el-button
size=
"small"
@
click=
"handleConsultantClose"
>
取 消
</el-button>
<GLButton
type=
"primary"
:size=
"size"
fn=
"创建客服"
@
click=
"handleConsultantConfirm"
>
创建客服
</GLButton>
</
template
>
</
glsx-d
ialog>
<
el-dialog
v-if=
"isImgVisible"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look
"
>
</
GLD
ialog>
<
GLDialog
v-if=
"isImgVisible"
bigTitle=
"查看"
mode=
"big"
:visible
.
sync=
"isImgVisible"
class=
"dialog-look"
:hasFooter=
"false
"
>
<video
v-if=
"dialogObj.uploadType == 'video'"
class=
"dialog-video"
controls
>
<source
:src=
"dialogObj.url"
type=
"video/mp4"
/>
</video>
<img
v-else
class=
"dialog-img"
width=
"100%"
:src=
"dialogObj.url"
alt=
""
/>
</
el-d
ialog>
</
GLD
ialog>
<!-- banner管理配置门店 -->
<relate-store-dialog
v-if=
"relateStoreVisible"
ref=
"relateStore"
:relateStoreVisible=
"relateStoreVisible"
:storeApi=
"storeApi"
:storeSearchForm=
"storeSearchForm"
:storeSelected=
"selectedList"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
<el-row
slot
>
...
...
@@ -442,7 +443,7 @@ export default {
this
.
getInfo
()
this
.
getConsultant
()
// 非集团账号隐藏配置门店
if
(
!
this
.
$isGroupUp
)
{
if
(
!
this
.
$isGroupUp
)
{
let
idx
=
this
.
externalFormList
.
findIndex
(
item
=>
item
.
title
==
'Banner管理'
)
let
idxx
=
this
.
externalFormList
[
idx
].
editFormData
.
findIndex
(
item
=>
item
.
name
==
'bannerToSubMerchant'
)
let
idxxx
=
this
.
externalFormList
.
findIndex
(
item
=>
item
.
title
==
'公告管理'
)
...
...
@@ -455,7 +456,7 @@ export default {
},
methods
:
{
selectAddAttr
(
value
){
selectAddAttr
(
value
)
{
var
tempObj
=
{
customerServerName
:
''
,
customerServerUserTitle
:
''
...
...
@@ -541,18 +542,18 @@ export default {
// 选择门店
handleRelateStoreClose
(
v
)
{
this
.
state
=
v
if
(
v
==
'banner'
)
{
if
(
v
==
'banner'
)
{
this
.
selectedList
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
bannerMerchantList
)
}
else
if
(
v
==
'notice'
)
{
}
else
if
(
v
==
'notice'
)
{
this
.
selectedList
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
noticeMerchantList
)
}
this
.
relateStoreVisible
=
!
this
.
relateStoreVisible
},
handleRelateStoreConfirm
(
selectedData
)
{
console
.
log
(
'selectedData'
,
selectedData
);
if
(
this
.
state
==
'banner'
)
{
console
.
log
(
'selectedData'
,
selectedData
);
if
(
this
.
state
==
'banner'
)
{
this
.
editForm
.
bannerMerchantList
=
selectedData
}
else
if
(
this
.
state
==
'notice'
)
{
}
else
if
(
this
.
state
==
'notice'
)
{
this
.
editForm
.
noticeMerchantList
=
selectedData
}
this
.
selectedList
=
selectedData
...
...
@@ -600,7 +601,7 @@ export default {
this
.
$messageBox
.
confirm
(
'是否删除该banner?'
,
'删除'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
// type: 'error
',
type
:
'warning
'
,
callback
:
action
=>
{
if
(
action
==
'confirm'
)
{
this
.
editForm
[
attrName
].
splice
(
subIndex
,
1
)
...
...
@@ -792,7 +793,7 @@ export default {
})
// banner管理配置门店
params
.
bannerMerchantList
=
[]
if
(
this
.
editForm
.
bannerToSubMerchant
==
'Y'
)
{
if
(
this
.
editForm
.
bannerToSubMerchant
==
'Y'
)
{
this
.
editForm
.
bannerMerchantList
.
forEach
(
item
=>
{
params
.
bannerMerchantList
.
push
({
merchantId
:
item
.
merchantNo
,
...
...
@@ -803,7 +804,7 @@ export default {
}
// 公告管理配置门店
params
.
noticeMerchantList
=
[]
if
(
this
.
editForm
.
noticeToSubMerchant
==
'Y'
)
{
if
(
this
.
editForm
.
noticeToSubMerchant
==
'Y'
)
{
this
.
editForm
.
noticeMerchantList
.
forEach
(
item
=>
{
params
.
noticeMerchantList
.
push
({
merchantId
:
item
.
merchantNo
,
...
...
@@ -967,9 +968,9 @@ export default {
height
:
20px
;
font-size
:
16px
;
}
.home-set
.server-dialog
.el-dialog__footer
{
/*
.home-set .server-dialog .el-dialog__footer {
text-align: center;
}
}
*/
.merchantTable
{
width
:
800px
;
margin-left
:
45px
;
...
...
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