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
849019bd
Commit
849019bd
authored
Jun 04, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7bd5af46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
32 deletions
+21
-32
choiceAreaAuth.vue
src/components/common/choiceAreaAuth.vue
+21
-32
No files found.
src/components/common/choiceAreaAuth.vue
View file @
849019bd
<
style
>
.
app-hotspot
.shadow
{
.
choiceAreaAuth
.shadow
{
position
:
absolute
;
left
:
0
;
top
:
0
;
...
...
@@ -9,7 +9,7 @@
border
:
1px
solid
#2E9FFF
;
}
.
app-hotspot
.hotspot
{
.
choiceAreaAuth
.hotspot
{
position
:
absolute
;
left
:
0
;
top
:
0
;
...
...
@@ -17,22 +17,22 @@
z-index
:
100
;
}
.
app-hotspot
.hotspot
.close
{
.
choiceAreaAuth
.hotspot
.close
{
position
:
absolute
;
right
:
-16px
;
top
:
-16px
;
z-index
:
101
}
.
app-hotspot
.el-input
{
.
choiceAreaAuth
.el-input
{
width
:
70px
;
}
.
app-hotspot
.right
label
{
.
choiceAreaAuth
.right
label
{
padding
:
0
10px
;
}
.
app-hotspot
.inside
{
.
choiceAreaAuth
.inside
{
position
:
relative
;
width
:
750px
;
min-height
:
1334px
;
...
...
@@ -40,7 +40,7 @@
zoom
:
0.5
;
}
.
app-hotspot
.pic
{
.
choiceAreaAuth
.pic
{
width
:
auto
;
height
:
auto
;
max-width
:
750px
;
...
...
@@ -48,34 +48,34 @@
transform
:
scale
(
0.5
);
}
.
app-hotspot
.pic-list
{
.
choiceAreaAuth
.pic-list
{
position
:
relative
;
}
.
app-hotspot
.pic-list
div
{
.
choiceAreaAuth
.pic-list
div
{
position
:
absolute
;
left
:
0
;
top
:
0
;
}
.
app-hotspot
{
.
choiceAreaAuth
{
-moz-user-select
:
none
;
-khtml-user-select
:
none
;
user-select
:
none
;
}
.
app-hotspot
.el-input-group__append
{
.
choiceAreaAuth
.el-input-group__append
{
background-color
:
#fff
;
}
</
style
>
<
template
id=
"
app-hotspot
"
>
<div
class=
"
app-hotspot
"
>
<
template
id=
"
choiceAreaAuth
"
>
<div
class=
"
choiceAreaAuth
"
>
<div
@
click=
"dialogVisible = !dialogVisible"
style=
"display: inline-block"
>
<slot></slot>
</div>
<el-dialog
append-to-body
title=
"热区划分"
:visible
.
sync=
"dialogVisible"
:close-on-click-modal=
"false"
class=
"
app-hotspot
"
width=
"900px"
>
class=
"
choiceAreaAuth
"
width=
"900px"
>
<div
flex=
"dir:left box:first"
>
<div
class=
"inside"
flex=
"dir:left main:center cross:center"
ref=
"inside"
>
<div
style=
"position: relative;"
ref=
"box"
>
...
...
@@ -145,13 +145,7 @@
</el-col>
</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>
</el-form-item>
<el-form-item
label=
"热区属性"
v-if=
"mode == 'auth'"
>
<el-radio-group
v-model=
"hotspotList[index].open_type"
>
<el-radio
label=
"login"
:disabled=
"radioDisabled('login')"
>
登录按钮
</el-radio>
...
...
@@ -161,20 +155,15 @@
</div>
<div
v-if=
"index == -1 && hotspotList.length == 0"
style=
"padding: 20px 40px;"
>
请先在左侧蓝框内用鼠标划出热区范围
</div>
<el-form-item
v-else
label=
""
>
<el-button
style=
"margin-left: 10px"
v-if=
"hotspotList.length==2"
type=
"primary"
size=
"small"
@
click=
"confirm"
>
保存
</el-button>
<el-button
style=
"margin-left: 10px"
v-if=
"hotspotList.length==2"
type=
"primary"
size=
"small"
@
click=
"confirm"
>
保存
</el-button>
<el-button
size=
"small"
@
click=
"clearAll"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
</el-dialog>
<el-dialog
title=
"选择链接"
:visible
.
sync=
"isShowLink"
width=
"800px"
>
<chooseMenu
ref=
"chooseMenu"
></chooseMenu>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowLink=false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"danger"
@
click=
"getChoiceLink()"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
...
...
@@ -203,7 +192,7 @@
},
data
()
{
return
{
isShowLink
:
false
,
dialogVisible
:
false
,
is_mousedown
:
false
,
is_mousemove
:
false
,
...
...
@@ -232,7 +221,7 @@
dialogVisible
(
oldVal
,
newVal
)
{
this
.
hotspotList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
hotspotArray
))
this
.
index
=
-
1
;
if
(
this
.
hotspotList
.
length
>
0
)
{
if
(
this
.
hotspotList
.
length
>
0
)
{
this
.
select
(
1
);
}
}
...
...
@@ -377,7 +366,7 @@
if
(
this
.
index
>
-
1
&&
this
.
hotspotList
.
length
>
0
)
{
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