Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 6b924cd1
authored
Dec 30, 2021
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
2edba1cb
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
53 additions
and
57 deletions
src/views/alarmCenter/hadoop.vue
src/views/alarmCenter/offline.vue
src/views/alarmCenter/tamper.vue
src/views/reportManage/actived.vue
src/views/reportManage/lastLocation.vue
src/views/reportManage/mileage.vue
src/views/reportManage/mileageGeneral.vue
src/views/reportManage/summary.vue
src/views/alarmCenter/hadoop.vue
View file @
6b924cd
...
@@ -97,7 +97,7 @@ export default {
...
@@ -97,7 +97,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
alarmStatus
:
1
},
searchForm
:
{
alarmStatus
:
1
,
alarmType
:
''
},
currentPage
:
1
,
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
pageSize
:
10
,
...
@@ -118,53 +118,48 @@ export default {
...
@@ -118,53 +118,48 @@ export default {
},
},
},
},
{
{
text
:
"
昨
日"
,
text
:
"
今
日"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
new
Date
();
const
end
=
new
Date
();
const
start
=
new
Date
();
const
start
=
new
Date
();
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
1
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
本周
"
,
text
:
"
昨日
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
new
Date
();
const
start
=
moment
().
weekday
(
1
).
format
(
"YYYY-MM-DD"
);
const
start
=
new
Date
();
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
1
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
上周
"
,
text
:
"
近7天
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
let
weekOfDay
=
parseInt
(
moment
().
format
(
"E"
));
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
moment
()
.
subtract
(
weekOfDay
,
"days"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
const
start
=
moment
()
.
subtract
(
weekOfDay
+
7
-
1
,
"days"
)
.
day
(
moment
().
day
()
-
7
)
.
format
(
"YYYY-MM-DD"
);
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
本月
"
,
text
:
"
近15天
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
start
=
moment
().
add
(
"month"
,
0
).
format
(
"YYYY-MM"
)
+
"-01"
;
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
15
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
上月
"
,
text
:
"
近30天
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
moment
()
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
.
month
(
moment
().
month
()
-
1
)
.
endOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
const
start
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
day
(
moment
().
day
()
-
30
)
.
startOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
...
@@ -189,7 +184,7 @@ export default {
...
@@ -189,7 +184,7 @@ export default {
methods
:
{
methods
:
{
// 重置
// 重置
rest
()
{
rest
()
{
this
.
searchForm
=
{};
this
.
searchForm
=
{
alarmType
:
''
};
this
.
getList
();
this
.
getList
();
},
},
...
@@ -233,6 +228,7 @@ export default {
...
@@ -233,6 +228,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
...
src/views/alarmCenter/offline.vue
View file @
6b924cd
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
searchForm
:
{},
searchForm
:
{
deviceTypeAndSource
:
""
},
currentPage
:
1
,
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
pageSize
:
10
,
...
@@ -189,14 +189,14 @@ export default {
...
@@ -189,14 +189,14 @@ export default {
let
start
=
moment
()
let
start
=
moment
()
.
day
(
moment
().
day
()
-
3
)
.
day
(
moment
().
day
()
-
3
)
.
format
(
"YYYY-MM-DD"
);
.
format
(
"YYYY-MM-DD"
);
this
.
searchForm
.
offDate
=
[
start
,
end
]
;
this
.
$set
(
this
.
searchForm
,
"offDate"
,
[
start
,
end
])
;
this
.
getList
();
this
.
getList
();
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
// 重置
// 重置
rest
()
{
rest
()
{
this
.
searchForm
=
{};
this
.
searchForm
=
{
deviceTypeAndSource
:
""
};
this
.
getList
();
this
.
getList
();
},
},
...
@@ -248,6 +248,7 @@ export default {
...
@@ -248,6 +248,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
...
src/views/alarmCenter/tamper.vue
View file @
6b924cd
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<div
class=
"search_box"
>
<div
class=
"search_box"
>
<el-form
:inline=
"true"
size=
"small"
>
<el-form
:inline=
"true"
size=
"small"
>
<el-form-item
label=
"报警时间:"
>
<el-form-item
label=
"报警时间:"
>
<el-date-picker
v-model=
"searchForm.timeDate"
type=
"daterange"
class=
"data_picker"
unlink-panels
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
>
<el-date-picker
v-model=
"searchForm.timeDate"
type=
"daterange"
class=
"data_picker"
unlink-panels
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
@
change=
"changeDate"
>
</el-date-picker>
</el-date-picker>
<p
class=
"date_tips"
>
单次查询日期的最长跨度为31天
</p>
<p
class=
"date_tips"
>
单次查询日期的最长跨度为31天
</p>
</el-form-item>
</el-form-item>
...
@@ -98,7 +98,7 @@ export default {
...
@@ -98,7 +98,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
alarmStatus
:
1
},
searchForm
:
{
alarmStatus
:
1
,
alarmType
:
""
},
currentPage
:
1
,
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
pageSize
:
10
,
...
@@ -111,10 +111,10 @@ export default {
...
@@ -111,10 +111,10 @@ export default {
pickerOptions
:
{
pickerOptions
:
{
shortcuts
:
[
shortcuts
:
[
{
{
text
:
"
全部
"
,
text
:
"
今日
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
""
;
const
end
=
new
Date
()
;
const
start
=
""
;
const
start
=
new
Date
()
;
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
...
@@ -128,51 +128,37 @@ export default {
...
@@ -128,51 +128,37 @@ export default {
},
},
},
},
{
{
text
:
"
本周
"
,
text
:
"
最近7天
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
().
weekday
(
1
).
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"上周"
,
onClick
(
picker
)
{
let
weekOfDay
=
parseInt
(
moment
().
format
(
"E"
));
const
end
=
moment
()
.
subtract
(
weekOfDay
,
"days"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
const
start
=
moment
()
.
subtract
(
weekOfDay
+
7
-
1
,
"days"
)
.
day
(
moment
().
day
()
-
7
)
.
format
(
"YYYY-MM-DD"
);
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"本
月
"
,
text
:
"本
周
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
start
=
moment
().
add
(
"month"
,
0
).
format
(
"YYYY-MM"
)
+
"-01"
;
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
().
weekday
(
1
).
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
上
月"
,
text
:
"
本
月"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
moment
()
const
start
=
moment
().
add
(
"month"
,
0
).
format
(
"YYYY-MM"
)
+
"-01"
;
.
month
(
moment
().
month
()
-
1
)
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
.
endOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
startOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
],
],
onPick
:
({
maxDate
,
minDate
})
=>
{
onPick
:
({
maxDate
,
minDate
})
=>
{
this
.
pickerMinDate
=
minDate
.
getTime
();
this
.
pickerMinDate
=
minDate
.
getTime
();
if
(
maxDate
)
{
this
.
pickerMinDate
=
""
;
}
},
},
disabledDate
:
(
time
)
=>
{
disabledDate
:
(
time
)
=>
{
if
(
this
.
pickerMinDate
)
{
if
(
this
.
pickerMinDate
)
{
...
@@ -182,7 +168,7 @@ export default {
...
@@ -182,7 +168,7 @@ export default {
return
(
return
(
time
.
getTime
()
>
maxTime
||
time
.
getTime
()
>
maxTime
||
time
.
getTime
()
<
minTime
||
time
.
getTime
()
<
minTime
||
time
.
getTime
()
>
Date
.
now
()
-
1
*
24
*
3600
*
1000
time
.
getTime
()
>
Date
.
now
()
);
);
}
else
{
}
else
{
return
time
.
getTime
()
>
Date
.
now
()
+
0
*
24
*
3600
*
1000
;
return
time
.
getTime
()
>
Date
.
now
()
+
0
*
24
*
3600
*
1000
;
...
@@ -206,7 +192,7 @@ export default {
...
@@ -206,7 +192,7 @@ export default {
methods
:
{
methods
:
{
// 重置
// 重置
rest
()
{
rest
()
{
this
.
searchForm
=
{};
this
.
searchForm
=
{
alarmType
:
""
};
this
.
pickerMinDate
=
""
;
this
.
pickerMinDate
=
""
;
this
.
getList
();
this
.
getList
();
},
},
...
@@ -251,6 +237,7 @@ export default {
...
@@ -251,6 +237,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
@@ -282,6 +269,13 @@ export default {
...
@@ -282,6 +269,13 @@ export default {
let
path
=
`/oEshield#/monitor/activeLocation`
;
let
path
=
`/oEshield#/monitor/activeLocation`
;
history
.
pushState
(
oParams
,
"报警位置点"
,
path
);
history
.
pushState
(
oParams
,
"报警位置点"
,
path
);
},
},
//
changeDate
(
e
)
{
if
(
!
e
)
{
this
.
pickerMinDate
=
""
;
}
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/reportManage/actived.vue
View file @
6b924cd
...
@@ -224,6 +224,7 @@ export default {
...
@@ -224,6 +224,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
...
src/views/reportManage/lastLocation.vue
View file @
6b924cd
...
@@ -275,6 +275,7 @@ export default {
...
@@ -275,6 +275,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
@@ -298,7 +299,7 @@ export default {
...
@@ -298,7 +299,7 @@ export default {
let
oParams
=
{
...
row
};
let
oParams
=
{
...
row
};
oParams
.
lng
=
row
.
gpsLng
;
oParams
.
lng
=
row
.
gpsLng
;
oParams
.
lat
=
row
.
gpsLat
;
oParams
.
lat
=
row
.
gpsLat
;
oParams
.
address
=
row
.
activeDate
;
oParams
.
address
=
row
.
lastGpsAddress
;
oParams
.
name
=
row
.
ownerName
;
oParams
.
name
=
row
.
ownerName
;
oParams
.
standNo
=
row
.
vin
;
oParams
.
standNo
=
row
.
vin
;
oParams
.
time
=
row
.
finalGpsTime
;
oParams
.
time
=
row
.
finalGpsTime
;
...
...
src/views/reportManage/mileage.vue
View file @
6b924cd
...
@@ -195,6 +195,7 @@ export default {
...
@@ -195,6 +195,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
...
src/views/reportManage/mileageGeneral.vue
View file @
6b924cd
...
@@ -188,6 +188,7 @@ export default {
...
@@ -188,6 +188,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
...
src/views/reportManage/summary.vue
View file @
6b924cd
...
@@ -113,6 +113,7 @@ export default {
...
@@ -113,6 +113,7 @@ export default {
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgType
=
e
.
origin
.
type
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
this
.
searchForm
.
orgName
=
e
.
origin
.
orgName
;
}
}
},
},
...
...
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