Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
a24fa86d
Commit
a24fa86d
authored
Aug 03, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/electricitysheep
parents
7d6e3933
139a4e68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
6 deletions
+24
-6
choiceArea.vue
src/components/common/choiceArea.vue
+24
-6
No files found.
src/components/common/choiceArea.vue
View file @
a24fa86d
...
...
@@ -146,11 +146,21 @@
</el-row>
</el-form-item>
<el-form-item
label=
"热区链接"
v-if=
"isLink"
>
<el-input
size=
"small"
style=
"width: 100%;"
:disabled=
"true"
v-model=
"hotspotList[index].link.PageName"
>
<
template
slot=
"append"
>
<el-button
@
click=
"isShowLink=true"
>
选择链接
</el-button>
</
template
>
</el-input>
<
template
v-if=
"chooseType=='rubik'"
>
<el-input
size=
"small"
style=
"width: 100%;"
:disabled=
"true"
v-model=
"hotspotList[index].link[0].PageName"
>
<template
slot=
"append"
>
<el-button
@
click=
"isShowLink=true"
>
选择链接
</el-button>
</
template
>
</el-input>
</template>
<
template
v-else
>
<el-input
size=
"small"
style=
"width: 100%;"
:disabled=
"true"
v-model=
"hotspotList[index].link.PageName"
>
<template
slot=
"append"
>
<el-button
@
click=
"isShowLink=true"
>
选择链接
</el-button>
</
template
>
</el-input>
</template>
</el-form-item>
<el-form-item
label=
"热区属性"
v-if=
"mode == 'auth'"
>
<el-radio-group
v-model=
"hotspotList[index].open_type"
>
...
...
@@ -253,6 +263,9 @@
return
parseFloat
(
this
.
height
)
-
this
.
hotspotList
[
this
.
index
].
top
;
},
},
mounted
()
{
console
.
log
(
"hotspotArray"
,
this
.
hotspotArray
);
},
methods
:
{
click
(
e
)
{
this
.
is_mousedown
=
false
;
...
...
@@ -309,6 +322,11 @@
hotspot
.
top
=
position
.
y
;
hotspot
.
defaultX
=
position
.
x
;
hotspot
.
defaultY
=
position
.
y
;
if
(
this
.
chooseType
==
"rubik"
)
{
hotspot
.
link
=
[{
PageName
:
""
}];
}
this
.
hotspotList
.
push
(
hotspot
);
this
.
index
=
this
.
hotspotList
.
length
-
1
;
this
.
zIndex
=
102
;
...
...
@@ -378,11 +396,11 @@
var
obj
=
this
.
$refs
.
chooseMenu
.
getChooseMenu
();
if
(
this
.
index
>
-
1
&&
this
.
hotspotList
.
length
>
0
)
{
if
(
this
.
chooseType
==
"rubik"
)
{
this
.
hotspotList
[
this
.
index
].
link
=
[];
this
.
hotspotList
[
this
.
index
].
link
.
push
(
obj
)
}
else
{
this
.
hotspotList
[
this
.
index
].
link
=
obj
}
}
this
.
isShowLink
=
false
;
},
...
...
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