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 ff6f0371
authored
May 28, 2021
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
edit fence
1 parent
5d8202d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/pages/monitor/editFence.vue
src/pages/monitor/editFence.vue
View file @
ff6f037
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"围栏类型"
prop=
"bizFenceType"
>
<el-form-item
label=
"围栏类型"
prop=
"bizFenceType"
>
<el-radio
v
-model=
"form.bizFenceType
"
label=
"12"
:disabled=
"readonlyStatus"
>
试驾围栏
</el-radio>
<el-radio
v
alue=
"12
"
label=
"12"
:disabled=
"readonlyStatus"
>
试驾围栏
</el-radio>
<!--
<el-radio
v-model=
"form.bizFenceType"
:label=
"1"
:disabled=
"isEditMode"
>
试乘试驾型
</el-radio>
-->
<!--
<el-radio
v-model=
"form.bizFenceType"
:label=
"1"
:disabled=
"isEditMode"
>
试乘试驾型
</el-radio>
-->
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -327,7 +327,7 @@ export default{
...
@@ -327,7 +327,7 @@ export default{
}else{
}else{
cb();
cb();
}*/
}*/
if
(
this
.
form
.
shapeType
==
2
){
if
(
this
.
form
.
shapeType
==
1
){
if
(
this
.
transferError
){
if
(
this
.
transferError
){
cb
(
new
Error
(
'所填经纬度不能正确解析地址,请重新输入'
));
cb
(
new
Error
(
'所填经纬度不能正确解析地址,请重新输入'
));
}
else
{
}
else
{
...
@@ -339,7 +339,7 @@ export default{
...
@@ -339,7 +339,7 @@ export default{
}
}
let
checkRadius
=
(
rule
,
vaule
,
cb
)
=>
{
let
checkRadius
=
(
rule
,
vaule
,
cb
)
=>
{
if
(
this
.
form
.
shapeType
==
2
&&
!
/^
\d
+$/
.
test
(
this
.
form
.
radius
)){
console
.
log
(
this
.
form
.
radius
)
if
(
this
.
form
.
shapeType
==
1
&&
!
/^
\d
+$/
.
test
(
this
.
form
.
radius
)){
console
.
log
(
this
.
form
.
radius
)
cb
(
new
Error
(
'请输入正确的格式,不能输入小数点'
))
cb
(
new
Error
(
'请输入正确的格式,不能输入小数点'
))
}
else
{
}
else
{
cb
();
cb
();
...
@@ -628,14 +628,14 @@ export default{
...
@@ -628,14 +628,14 @@ export default{
this
.
form
.
specialShopName
=
data
.
shopName
;
this
.
form
.
specialShopName
=
data
.
shopName
;
this
.
getFenceSnsList
(
id
,
''
,
data
.
snList
)
this
.
getFenceSnsList
(
id
,
''
,
data
.
snList
)
if
(
form
.
shapeType
===
2
){
if
(
form
.
shapeType
===
1
){
this
.
mapData
=
{
this
.
mapData
=
{
fenceType
:
'circle'
,
fenceType
:
'circle'
,
lng
:
form
.
lng
,
lng
:
form
.
lng
,
lat
:
form
.
lat
,
lat
:
form
.
lat
,
radius
:
form
.
radius
,
radius
:
form
.
radius
,
}
}
}
else
if
(
form
.
shapeType
===
1
){
}
else
if
(
form
.
shapeType
===
4
){
this
.
mapData
=
{
this
.
mapData
=
{
fenceType
:
'area'
,
fenceType
:
'area'
,
areaCode
:
this
.
form
.
areaCode
areaCode
:
this
.
form
.
areaCode
...
@@ -854,10 +854,10 @@ export default{
...
@@ -854,10 +854,10 @@ export default{
// params.des = form.des;
// params.des = form.des;
params
.
shapeType
=
form
.
shapeType
;
params
.
shapeType
=
form
.
shapeType
;
params
.
timeType
=
form
.
timeType
;
params
.
timeType
=
form
.
timeType
;
if
(
params
.
shapeType
==
3
){
if
(
params
.
shapeType
==
4
){
params
.
areaCode
=
form
.
areaCode
;
params
.
areaCode
=
form
.
areaCode
;
params
.
areaString
=
form
.
areaString
;
params
.
areaString
=
form
.
areaString
;
}
else
if
(
params
.
shapeType
==
2
){
}
else
if
(
params
.
shapeType
==
1
){
params
.
lnglat
=
`
${
form
.
lng
}
,
${
form
.
lat
}
`
;
params
.
lnglat
=
`
${
form
.
lng
}
,
${
form
.
lat
}
`
;
params
.
radius
=
form
.
radius
;
params
.
radius
=
form
.
radius
;
params
.
analysisAddress
=
form
.
analysisAddress
;
params
.
analysisAddress
=
form
.
analysisAddress
;
...
...
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