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 09800889
authored
Apr 21, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
98a54dcd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
26 deletions
src/pages/monitor/addFence.vue
src/pages/monitor/fence.vue
src/pages/monitor/monitor.vue
src/utils/utils.js
src/pages/monitor/addFence.vue
View file @
0980088
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<div
class=
"ibox-content scrollbar"
style=
"padding: 30px 20px;"
>
<div
class=
"ibox-content scrollbar"
style=
"padding: 30px 20px;"
>
<el-form
ref=
"fenceForm"
:model=
"form"
:rules=
"rules"
:inline=
"false"
size=
"mini"
label-width=
"100px"
class=
"fence_form"
align=
"left"
>
<el-form
ref=
"fenceForm"
:model=
"form"
:rules=
"rules"
:inline=
"false"
size=
"mini"
label-width=
"100px"
class=
"fence_form"
align=
"left"
>
<el-form-item
label=
"围栏名称"
prop=
"fenceName"
>
<el-form-item
label=
"围栏名称"
prop=
"fenceName"
>
<el-input
v-model
.
trim=
"form.fenceName"
placeholder=
"请输入围栏名称"
maxlength=
"200"
show-word-limit
:disabled=
"readonlyStatus"
></el-input>
<el-input
v-model
.
trim=
"form.fenceName"
placeholder=
"请输入围栏名称"
m
inlength=
"2"
m
axlength=
"200"
show-word-limit
:disabled=
"readonlyStatus"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"监控类型"
prop=
"triggerType"
>
<el-form-item
label=
"监控类型"
prop=
"triggerType"
>
<el-select
v-model=
"form.triggerType"
placeholder=
"请选择"
size=
"small"
>
<el-select
v-model=
"form.triggerType"
placeholder=
"请选择"
size=
"small"
>
...
@@ -286,7 +286,7 @@ export default {
...
@@ -286,7 +286,7 @@ export default {
rules
:
{
rules
:
{
fenceName
:
[
fenceName
:
[
{
required
:
true
,
message
:
"请输入围栏名称"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"请输入围栏名称"
,
trigger
:
"blur"
},
{
pattern
:
/^
\S{2,200}
$/
,
message
:
"至少2字"
,
trigger
:
"blur"
},
{
min
:
2
,
max
:
200
,
message
:
"至少2字"
,
trigger
:
"blur"
},
// {validator: checkFenceName, trigger: 'blur'}
// {validator: checkFenceName, trigger: 'blur'}
],
],
triggerType
:
[
triggerType
:
[
...
@@ -687,6 +687,9 @@ export default {
...
@@ -687,6 +687,9 @@ export default {
obj
.
lng
=
lnglat
[
0
];
obj
.
lng
=
lnglat
[
0
];
obj
.
lat
=
lnglat
[
1
];
obj
.
lat
=
lnglat
[
1
];
}
}
if
(
obj
.
areaCode
){
obj
.
areaCode
=
[
obj
.
areaCode
]
}
_this
.
form
=
obj
;
_this
.
form
=
obj
;
mapData
.
fenceType
=
_typeList
[
obj
.
shapeType
];
mapData
.
fenceType
=
_typeList
[
obj
.
shapeType
];
...
...
src/pages/monitor/fence.vue
View file @
0980088
...
@@ -217,14 +217,14 @@ export default {
...
@@ -217,14 +217,14 @@ export default {
mounted
()
{
mounted
()
{
//store.dispatch("setFullsize", true);
//store.dispatch("setFullsize", true);
},
},
//
watch: {
watch
:
{
//
"form.shapeType": {
"form.shapeType"
:
{
//
handler: function (n, o) {
handler
:
function
(
n
,
o
)
{
//
this.changeShapeType(n);
this
.
changeShapeType
(
n
);
//
},
},
//
immediate: true,
immediate
:
true
,
//
},
},
//
},
},
methods
:
{
methods
:
{
// 初始化地图
// 初始化地图
initMap
()
{
initMap
()
{
...
@@ -289,7 +289,7 @@ export default {
...
@@ -289,7 +289,7 @@ export default {
}
}
showToast
({
showToast
({
message
:
"保存成功"
,
message
:
"保存成功"
,
type
:
"success"
,
type
:
"success"
});
});
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
...
...
src/pages/monitor/monitor.vue
View file @
0980088
...
@@ -639,12 +639,9 @@ export default {
...
@@ -639,12 +639,9 @@ export default {
}
}
};
};
},
},
// 搜索车架号、设备号、工单号
searchSubmit
()
{
searchSubmit
()
{
/* this.addMonitor({
sn: '75108160001'
})
return */
//if(!this.searchText) return;
switch
(
this
.
searchType
)
{
switch
(
this
.
searchType
)
{
case
"1"
:
case
"1"
:
case
"2"
:
case
"2"
:
...
@@ -704,6 +701,8 @@ export default {
...
@@ -704,6 +701,8 @@ export default {
}
}
}); */
}); */
},
},
// 根据搜索条件查询组织树结构
querySearch
()
{
querySearch
()
{
let
_this
=
this
;
let
_this
=
this
;
//this.autocompleteHide = true
//this.autocompleteHide = true
...
@@ -718,22 +717,14 @@ export default {
...
@@ -718,22 +717,14 @@ export default {
if
(
!
list
||
list
.
length
<=
0
)
{
if
(
!
list
||
list
.
length
<=
0
)
{
return
false
;
return
false
;
}
}
for
(
var
i
=
0
,
len
=
list
.
length
;
i
<
len
;
i
++
)
{
for
(
var
i
=
0
,
len
=
list
.
length
;
i
<
len
;
i
++
)
{
_this
.
handleSelect
(
list
[
i
]);
_this
.
handleSelect
(
list
[
i
]);
}
}
//cb(res.data)
// if(!res.data.length) {
// cb([{
// tip: '无数据'
// }])
// }
//this.autocompleteHide = false
});
});
}
}
},
},
// 查询树node
// 查询树node
层级
handleSelect
(
item
)
{
handleSelect
(
item
)
{
if
(
!
item
.
tip
)
{
if
(
!
item
.
tip
)
{
MONITOR_SERVICE
.
getVehicleTree
({
MONITOR_SERVICE
.
getVehicleTree
({
...
...
src/utils/utils.js
View file @
0980088
...
@@ -60,7 +60,7 @@ export const Util = {
...
@@ -60,7 +60,7 @@ export const Util = {
Message
({
Message
({
message
:
options
.
message
||
'提示'
,
message
:
options
.
message
||
'提示'
,
type
:
options
.
type
||
'error'
,
type
:
options
.
type
||
'error'
,
duration
:
options
.
time
||
2000
,
duration
:
options
.
duration
||
options
.
time
||
2000
,
onClose
:
options
.
onClose
||
''
,
onClose
:
options
.
onClose
||
''
,
})
})
},
},
...
...
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