Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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 ce0c114a
authored
Apr 16, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.6.0版本需求
1 parent
ee4dcd7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
5 deletions
src/pages/monitor/addFence.vue
src/pages/monitor/addFence.vue
View file @
ce0c114
<
template
>
<
template
>
<div>
<div>
<!--
线路
调用地图弹框 -->
<!--
围栏
调用地图弹框 -->
<div
class=
"ibox-content"
style=
"height: 500px; padding:0 10px;z-index: 100"
>
<div
class=
"ibox-content"
style=
"height: 500px; padding:0 10px;z-index: 100"
>
<fence-map
:mapData=
"mapData"
@
onUpdateMapData=
"updateMapData"
:readonlyStatus=
"readonlyStatus"
ref=
"fenceMap"
>
<fence-map
:mapData=
"mapData"
@
onUpdateMapData=
"updateMapData"
:readonlyStatus=
"readonlyStatus"
ref=
"fenceMap"
>
</fence-map>
</fence-map>
</div>
</div>
<!-- 线路调用地图弹框 /-->
<!-- 围栏调用地图弹框 /-->
<!-- 围栏内容 开始 -->
<div
class=
"fold_box"
>
<div
class=
"fold_btn"
@
click=
"foldEvent"
>
<i
class=
"el-icon-arrow-down"
v-if=
"showContent"
></i>
<i
class=
"el-icon-arrow-up"
v-else
></i>
<span>
{{
showContent
?
'收起'
:
'展开'
}}
</span>
</div>
</div>
<el-collapse-transition>
<div
v-show=
"showContent"
>
<div
class=
"tab_wrap"
>
<div
class=
"tab_wrap"
>
<el-tabs
type=
"card"
v-show=
"hideTab"
>
<el-tabs
type=
"card"
v-show=
"hideTab"
>
<el-tab-pane
label=
"围栏基础信息"
>
<el-tab-pane
label=
"围栏基础信息"
>
...
@@ -88,6 +99,10 @@
...
@@ -88,6 +99,10 @@
<el-button
v-if=
"!readonlyStatus"
type=
"primary"
@
click=
"saveFence"
size=
"small"
:loading=
"submitting"
>
保存
</el-button>
<el-button
v-if=
"!readonlyStatus"
type=
"primary"
@
click=
"saveFence"
size=
"small"
:loading=
"submitting"
>
保存
</el-button>
<el-button
@
click=
"cancel"
size=
"small"
>
取消
</el-button>
<el-button
@
click=
"cancel"
size=
"small"
>
取消
</el-button>
</div>
</div>
</div>
</el-collapse-transition>
<!-- 围栏内容 end -->
<user-list
:init=
"userListInit"
v-if=
"userListModalVisible"
@
onUserListInit=
"(res)=>userListInit=res"
:userData=
"tableData"
@
onUpdateUserData=
"updateUserData"
:userListModalVisible=
"userListModalVisible"
:shopId=
"form.specialShopId"
@
onUserListModalChange=
"userListModalChange"
ref=
"userList"
>
<user-list
:init=
"userListInit"
v-if=
"userListModalVisible"
@
onUserListInit=
"(res)=>userListInit=res"
:userData=
"tableData"
@
onUpdateUserData=
"updateUserData"
:userListModalVisible=
"userListModalVisible"
:shopId=
"form.specialShopId"
@
onUserListModalChange=
"userListModalChange"
ref=
"userList"
>
</user-list>
</user-list>
</div>
</div>
...
@@ -99,14 +114,13 @@ import fenceMap from "./fenceMap.vue";
...
@@ -99,14 +114,13 @@ import fenceMap from "./fenceMap.vue";
import
userList
from
"./fence_userlist.vue"
;
import
userList
from
"./fence_userlist.vue"
;
import
InfiniteLoading
from
"vue-infinite-loading"
;
import
InfiniteLoading
from
"vue-infinite-loading"
;
import
CitySelect
from
"@/components/area"
;
import
CitySelect
from
"@/components/area"
;
const
MONITOR_SERVICE
=
services
.
monitor
;
import
{
deepClone
,
showToast
,
showModal
}
from
"@/utils/utils"
;
import
{
deepClone
,
showToast
,
showModal
}
from
"@/utils/utils"
;
import
{
import
{
GET_ELECFENCE_LINKEDDEVICES
,
GET_ELECFENCE_LINKEDDEVICES
,
GET_ELECFENCE_INFO
,
GET_ELECFENCE_INFO
,
SAVE_ELECFENCE_INFO
,
SAVE_ELECFENCE_INFO
,
UPDATE_ELECFENCE_INFO
,
UPDATE_ELECFENCE_INFO
,
REMOVE_ELECFENCE_LINKEDDEVICES
REMOVE_ELECFENCE_LINKEDDEVICES
,
}
from
"@/api/services/fence"
;
}
from
"@/api/services/fence"
;
export
default
{
export
default
{
props
:
[
"fenceModalVisible"
,
"fenceId"
],
props
:
[
"fenceModalVisible"
,
"fenceId"
],
...
@@ -154,7 +168,7 @@ export default {
...
@@ -154,7 +168,7 @@ export default {
cb
();
cb
();
};
};
let
checkMsgtel
=
(
rule
,
vaule
,
cb
)
=>
{
let
checkMsgtel
=
(
rule
,
vaule
,
cb
)
=>
{
let
reg
=
/^1
\d{10}((\,
1
\d{10})
|
(\,
1
\d{10}))?
$/
let
reg
=
/^1
\d{10}((\,
1
\d{10})
|
(\,
1
\d{10}))?
$/
;
if
(
this
.
form
.
telNumbers
&&
!
reg
.
test
(
this
.
form
.
telNumbers
))
{
if
(
this
.
form
.
telNumbers
&&
!
reg
.
test
(
this
.
form
.
telNumbers
))
{
cb
(
new
Error
(
"请输入正确的格式"
));
cb
(
new
Error
(
"请输入正确的格式"
));
}
else
{
}
else
{
...
@@ -218,6 +232,7 @@ export default {
...
@@ -218,6 +232,7 @@ export default {
mapData
:
null
,
mapData
:
null
,
polygonPath
:
[],
polygonPath
:
[],
loading
:
false
,
loading
:
false
,
showContent
:
true
,
};
};
},
},
computed
:
{
computed
:
{
...
@@ -599,6 +614,11 @@ export default {
...
@@ -599,6 +614,11 @@ export default {
}
}
});
});
},
},
// 显示隐藏内容
foldEvent
(){
this
.
showContent
=
!
this
.
showContent
}
},
},
};
};
</
script
>
</
script
>
...
@@ -660,6 +680,21 @@ form {
...
@@ -660,6 +680,21 @@ form {
flex
:
0
0
100%
;
flex
:
0
0
100%
;
}
}
}
}
.fold_box
{
display
:
flex
;
justify-content
:
flex-end
;
border-bottom
:
1px
solid
#f2f2f2
;
.fold_btn{
cursor
:
pointer
;
padding
:
6px
16px
;
border
:
1px
solid
#2196F3
;
border-bottom
:
0
;
border-top-left-radius
:
10px
;
border-top-right-radius
:
10px
;
background
:
#2196F3
;
color
:
#fff
;
}
}
</
style
>
</
style
>
<
style
>
<
style
>
.scrollbar
::-webkit-scrollbar
{
.scrollbar
::-webkit-scrollbar
{
...
...
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