Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
7e6ee1da
Commit
7e6ee1da
authored
Mar 21, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 小程序跳转链接
parent
ec59f22b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
10 deletions
+24
-10
salutatorySet.vue
src/views/enterprise/salutatorySet.vue
+24
-10
No files found.
src/views/enterprise/salutatorySet.vue
View file @
7e6ee1da
...
...
@@ -29,7 +29,10 @@
<div
class=
"flexBoxContainer"
v-for=
"(item, index) in form.welcomeMediaList"
:key=
"index"
>
<div
class=
"flexBox"
>
<svg-icon
:iconname=
"iconType[item.mediaType]"
size=
"16"
style=
"margin-right: 13px;"
>
</svg-icon>
<span
class=
"popverText"
>
{{
item
.
mediaTitle
}}
</span>
<span
class=
"popverText"
>
{{
item
.
mediaTitle
}}
<span
v-if=
"item.mediaType == 5"
>
(
{{
item
.
miniProgramPage
}}
)
</span>
</span>
<i
class=
"el-icon-close"
style=
"margin-left: 20px;cursor: pointer;"
@
click=
"handleDelMedia(item, index)"
></i>
</div>
</div>
...
...
@@ -175,7 +178,7 @@
<el-button
type=
"primary"
@
click=
"addSuitDepartment"
>
确认
</el-button>
</div>
</el-dialog>
<el-dialog
title=
"添加小程序"
width=
"6
0
0px"
:visible
.
sync=
"appletDialogVisible"
@
closed=
"closeAppletDialog"
>
<el-dialog
title=
"添加小程序"
width=
"6
4
0px"
:visible
.
sync=
"appletDialogVisible"
@
closed=
"closeAppletDialog"
>
<div
class=
"admin-tip-body"
>
<div
role=
"alert"
class=
"el-alert el-alert--info"
style=
"width: 550px;"
>
<i
class=
"el-alert__icon el-icon-info"
></i>
...
...
@@ -188,12 +191,15 @@
</div>
</div>
</div>
<el-form
label-position=
"right"
ref=
"
form"
:model=
"
{}" label-width="10
0px" style="margin-top:20px" @submit.native.prevent>
<el-form-item
label=
"小程序配置"
>
<el-select
v-model=
"selectedApple"
style=
"width:458px;"
>
<el-form
label-position=
"right"
ref=
"
appletForm"
:model=
"appletForm"
label-width=
"12
0px"
style=
"margin-top:20px"
@
submit
.
native
.
prevent
>
<el-form-item
label=
"小程序配置"
required
>
<el-select
v-model=
"
appletForm.
selectedApple"
style=
"width:458px;"
>
<el-option
v-for=
"item in appTableData"
:key=
"item.miniprogramSettingId"
:label=
"item.miniprogramName"
:value=
"item.miniprogramSettingId"
:disabled=
"handleDiabled(item)"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"小程序路径"
required
v-show=
"appletForm.selectedApple != -1"
>
<el-input
v-model=
"appletForm.appletPath"
style=
"width: 458px;"
placeholder=
"请输入小程序跳转路径,例如:/page "
/>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
""
>
<el-button
@
click=
"closeAppletDialog"
>
取消
</el-button>
...
...
@@ -218,6 +224,10 @@ export default {
defaultProps
:
{
label
:
'departmentName'
},
appletForm
:
{
appletPath
:
''
,
selectedApple
:
''
},
form
:
{
title
:
''
,
welcomeContent
:
'你好,<微信昵称>'
,
...
...
@@ -286,7 +296,6 @@ export default {
showTree
:
true
,
appTableData
:
[],
appletDialogVisible
:
false
,
selectedApple
:
''
,
defaultWelcomeFlag
:
false
,
isNew
:
true
,
echoDefaultWelcomeFlag
:
0
...
...
@@ -348,25 +357,30 @@ export default {
}
},
addApplet
(
val
)
{
if
(
!
this
.
selectedApple
)
{
if
(
!
this
.
appletForm
.
selectedApple
)
{
this
.
$message
.
error
(
'请选择小程序'
);
return
;
}
const
obj
=
this
.
appTableData
.
filter
(
item
=>
item
.
miniprogramSettingId
==
this
.
selectedApple
)[
0
];
if
(
this
.
appletForm
.
selectedApple
!=
-
1
&&
!
this
.
appletForm
.
appletPath
)
{
this
.
$message
.
error
(
'请输入小程序跳转路径'
);
return
;
}
const
obj
=
this
.
appTableData
.
filter
(
item
=>
item
.
miniprogramSettingId
==
this
.
appletForm
.
selectedApple
)[
0
];
if
(
!
this
.
form
.
welcomeMediaList
.
filter
(
item
=>
item
.
miniprogramSettingId
&&
item
.
miniprogramSettingId
==
obj
.
miniprogramSettingId
).
length
)
{
this
.
form
.
welcomeMediaList
.
push
({
miniProgramName
:
obj
.
miniprogramName
,
mediaType
:
obj
.
miniprogramSettingId
==
-
1
?
6
:
5
,
mediaUrl
:
obj
.
imageUrl
,
miniProgramPage
:
obj
.
miniprogramSettingId
!=
-
1
?
this
.
appletForm
.
appletPath
:
''
,
mediaTitle
:
obj
.
title
,
miniprogramSettingId
:
obj
.
miniprogramSettingId
});
}
console
.
log
(
this
.
form
.
welcomeMediaList
);
this
.
closeAppletDialog
();
},
closeAppletDialog
()
{
this
.
selectedApple
=
''
;
this
.
appletForm
.
selectedApple
=
''
;
this
.
appletForm
.
appletPath
=
''
;
this
.
appletDialogVisible
=
false
;
},
getAppleList
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment