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 02eb1269
authored
May 17, 2022
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
冒烟发现问题
1 parent
caab304b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
8 deletions
src/common/index.js
src/views/alarmCenter/speed.vue
src/views/reportManage/statistics_car.vue
src/views/reportManage/statistics_device.vue
src/views/vehicleManage/vehicleList.vue
src/common/index.js
View file @
02eb126
...
...
@@ -221,3 +221,60 @@ export const deviceActivedShortcuts = [
},
},
]
// 超速报警
export
const
speedShortcuts
=
[
{
text
:
'全部'
,
onClick
(
picker
)
{
const
end
=
''
const
start
=
''
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'昨日'
,
onClick
(
picker
)
{
const
start
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
format
(
'YYYY-MM-DD'
)
const
end
=
moment
()
.
day
(
moment
().
day
()
-
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
()
.
subtract
(
weekOfDay
+
7
-
1
,
'days'
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'本月'
,
onClick
(
picker
)
{
const
start
=
moment
().
add
(
'month'
,
0
).
format
(
'YYYY-MM'
)
+
'-01'
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'上月'
,
onClick
(
picker
)
{
const
end
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
endOf
(
'month'
)
.
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
startOf
(
'month'
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
]
src/views/alarmCenter/speed.vue
View file @
02eb126
...
...
@@ -25,7 +25,7 @@
<div
class=
"search_box"
>
<el-form
:inline=
"true"
size=
"small"
>
<el-form-item
label=
"关键字"
>
<el-input
v-model
.
trim=
"searchForm.keywords"
class=
"long_input"
placeholder=
"设备号 | 车架号 | 姓名 | 工单号"
maxlength=
"20"
></el-input>
<el-input
v-model
.
trim=
"searchForm.keywords"
class=
"long_input"
placeholder=
"设备号 | 车架号 | 姓名 |
业务
工单号"
maxlength=
"20"
></el-input>
</el-form-item>
<el-form-item
label=
"车辆归属:"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
...
...
@@ -92,11 +92,9 @@
</div>
</template>
<
script
>
import
moment
from
"moment"
;
import
{
fenceShortcuts
}
from
"@/common"
;
import
{
speedShortcuts
}
from
"@/common"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
GET_FENCEALARM_LIST
,
GET_SPEEDING_EXPORT
,
GET_SPEEDING_SEARCH
,
}
from
"@/services/alarmCenter"
;
...
...
@@ -118,7 +116,7 @@ export default {
showResult
:
false
,
loading
:
false
,
offPickerOptions
:
{
shortcuts
:
fence
Shortcuts
,
shortcuts
:
speed
Shortcuts
,
},
filterVisible
:
false
,
orgInfo
:
{},
...
...
src/views/reportManage/statistics_car.vue
View file @
02eb126
...
...
@@ -158,7 +158,7 @@ export default {
// 重置
rest
()
{
this
.
tableParams
=
{};
this
.
searchForm
=
{};
this
.
searchForm
=
{
queryTimeType
:
1
};
this
.
$refs
.
glsxTable
.
rest
();
},
},
...
...
src/views/reportManage/statistics_device.vue
View file @
02eb126
...
...
@@ -157,7 +157,7 @@ export default {
// 重置
rest
()
{
this
.
tableParams
=
{};
this
.
searchForm
=
{};
this
.
searchForm
=
{
queryTimeType
:
1
};
this
.
$refs
.
glsxTable
.
rest
();
},
},
...
...
src/views/vehicleManage/vehicleList.vue
View file @
02eb126
...
...
@@ -922,7 +922,7 @@ export default {
//this.snForm.deviceArr = [{ sn: "", deviceType: "" }];
//this.snForm.deviceInfoDtos = [{}];
this
.
snForm
=
{};
this
.
snForm
=
{
settleFlag
:
0
};
this
.
$set
(
this
.
snForm
,
"deviceInfoDtos"
,
[
{
sn
:
""
,
deviceClassifyName
:
""
},
]);
...
...
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