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 5e0b0762
authored
Sep 23, 2021
by
吴娟华
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
'1.2.1'
1 parent
5269e924
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
8 deletions
src/App.vue
src/main.js
src/pages/monitor/editFence.vue
src/pages/monitor/monitor.vue
src/utils/mapService.js
src/App.vue
View file @
5e0b076
...
@@ -66,6 +66,12 @@ export default {
...
@@ -66,6 +66,12 @@ export default {
// d.getElementsByTagName('main')[0].style['minHeight'] = y+'px'
// d.getElementsByTagName('main')[0].style['minHeight'] = y+'px'
// }
// }
// window.onresize()
// window.onresize()
this
.
$onGlobalStateChange
((
state
,
prev
)
=>
{
if
(
state
.
isCollapsed
!=
this
.
isCollapse
)
{
this
.
toggleCollapse
()
}
})
},
},
computed
:
{
computed
:
{
...
mapGetters
([
...
mapGetters
([
...
...
src/main.js
View file @
5e0b076
...
@@ -65,10 +65,14 @@ export async function bootstrap() {
...
@@ -65,10 +65,14 @@ export async function bootstrap() {
export
async
function
mount
(
props
)
{
export
async
function
mount
(
props
)
{
console
.
log
(
'props from main framework'
,
props
.
data
);
console
.
log
(
'props from main framework'
,
props
.
data
);
actions
.
setActions
(
props
);
actions
.
setActions
(
props
);
Vue
.
prototype
.
$onGlobalStateChange
=
props
.
onGlobalStateChange
Vue
.
prototype
.
$setGlobalState
=
props
.
setGlobalState
render
(
props
);
render
(
props
);
props
.
setGlobalState
({
props
.
setGlobalState
({
})
})
console
.
log
(
props
)
}
}
export
async
function
unmount
()
{
export
async
function
unmount
()
{
...
...
src/pages/monitor/editFence.vue
View file @
5e0b076
...
@@ -564,6 +564,14 @@ export default{
...
@@ -564,6 +564,14 @@ export default{
},
},
lat
(
newVal
){
lat
(
newVal
){
//this.transfer()
//this.transfer()
},
filterText
(
val
)
{
this
.
_timeout
&&
clearTimeout
(
this
.
_timeout
)
this
.
_timeout
=
setTimeout
(()
=>
{
this
.
$refs
.
tree
.
filter
(
val
)
},
500
)
}
}
},
},
...
...
src/pages/monitor/monitor.vue
View file @
5e0b076
...
@@ -351,11 +351,22 @@
...
@@ -351,11 +351,22 @@
this
.
removeMonitor
(
item
)
this
.
removeMonitor
(
item
)
}
}
}
else
{
}
else
{
if
(
this
.
isTreeChecked
)
{
this
.
$confirm
(
'当所选分组包含车辆过多时,请尝试分多次查询,以防等待时间过久。'
,
'提示'
,
{
this
.
$confirm
(
'当所选分组包含车辆过多时,请尝试分多次查询,以防等待时间过久。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
checkFlow
(
data
,
node
)
})
}
else
{
this
.
checkFlow
(
data
,
node
)
}
}
},
checkFlow
(
data
,
node
)
{
let
action
=
MONITOR_SERVICE
.
getVehicleTreeUserIds
let
action
=
MONITOR_SERVICE
.
getVehicleTreeUserIds
let
params
=
{
oId
:
data
.
id
}
let
params
=
{
oId
:
data
.
id
}
...
@@ -405,9 +416,6 @@
...
@@ -405,9 +416,6 @@
}
}
})
})
})
}
},
},
getAllChild
(
node
)
{
getAllChild
(
node
)
{
if
(
node
.
childNodes
.
length
===
0
&&
!
node
.
data
.
test
)
{
if
(
node
.
childNodes
.
length
===
0
&&
!
node
.
data
.
test
)
{
...
@@ -1004,4 +1012,8 @@
...
@@ -1004,4 +1012,8 @@
.el-autocomplete-suggestion
li
:last-child
{
.el-autocomplete-suggestion
li
:last-child
{
border-bottom
:
none
;
border-bottom
:
none
;
}
}
.full-width
.main-wrap.full-width
{
left
:
0
;
width
:
100%
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/utils/mapService.js
View file @
5e0b076
...
@@ -349,11 +349,11 @@ MapService.prototype = {
...
@@ -349,11 +349,11 @@ MapService.prototype = {
if
(
info
.
alarmTypeSet
&&
info
.
alarmTypeSet
.
length
){
if
(
info
.
alarmTypeSet
&&
info
.
alarmTypeSet
.
length
){
let
_html
=
'<i class="icon icon-info_device_alarm"></i>报警状态:'
let
_html
=
'<i class="icon icon-info_device_alarm"></i>报警状态:'
info
.
alarmTypeSet
.
forEach
((
item
)
=>
{
info
.
alarmTypeSet
.
forEach
((
alarmType
)
=>
{
if
(
item
.
alarmType
===
1
){
if
(
alarmType
===
1
){
_html
+=
`<button type="button" class="el-button el-button--mini el-button--danger" data-alarmoff
data-alarmtime="
${
item
.
alarmTime
}
"
>断电</button>`
_html
+=
`<button type="button" class="el-button el-button--mini el-button--danger" data-alarmoff >断电</button>`
}
else
if
(
item
.
alarmType
===
99
){
}
else
if
(
alarmType
===
99
){
_html
+=
`<button type="button" class="el-button el-button--mini el-button--danger" data-alarmlight
data-alarmtime="
${
item
.
alarmTime
}
"
>光感</button>`
_html
+=
`<button type="button" class="el-button el-button--mini el-button--danger" data-alarmlight >光感</button>`
}
}
});
});
infoDiv
.
querySelector
(
'[data-alarm]'
).
innerHTML
=
_html
;
infoDiv
.
querySelector
(
'[data-alarm]'
).
innerHTML
=
_html
;
...
...
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