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 2c90ff9a
authored
Mar 17, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.5.0版本需求
1 parent
c6e76831
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
src/services/report.js
src/views/alarmCenter/hadoop.vue
src/views/reportManage/offline.vue
src/services/report.js
View file @
2c90ff9
...
...
@@ -120,7 +120,10 @@ export const GET_FAKEOFFLINE_EXPORT = params => {
}
// 报表管理-假性离线报警-下载模板
export
const
GET_FAKEOFFLINE_TEMPLATEFILES
=
BASEURL
+
"/trialdrive/fakeoffline/downloadtemplate"
;
//export const GET_FAKEOFFLINE_TEMPLATEFILES = BASEURL + "/trialdrive/fakeoffline/downloadtemplate";
export
const
GET_FAKEOFFLINE_TEMPLATEFILES
=
params
=>
{
return
request
(
params
,
'/trialdrive/fakeoffline/downloadtemplate'
)
}
// 报表管理-假性离线报警-导入excel
export
const
IMPORT_FAKEOFFLINE_FILES
=
BASEURL
+
'/trialdrive/fakeoffline/import'
...
...
src/views/alarmCenter/hadoop.vue
View file @
2c90ff9
...
...
@@ -68,10 +68,8 @@
<el-table-column
label=
"报警类型"
prop=
"alarmTypeStr"
></el-table-column>
<el-table-column
label=
"报警状态"
prop=
"alarmStatusStr"
></el-table-column>
<!-- todo等待后台参数 -->
<el-table-column
label=
"报警次数"
prop=
"alarmStatusStr"
></el-table-column>
<el-table-column
label=
"风险等级"
prop=
"alarmStatusStr"
></el-table-column>
<!-- todo等待后台参数 -->
<el-table-column
label=
"报警次数"
prop=
"alarmCount"
></el-table-column>
<el-table-column
label=
"风险等级"
prop=
"alarmLevel"
></el-table-column>
<el-table-column
label=
"报警编号"
prop=
"geoCode"
></el-table-column>
<el-table-column
label=
"报警地点"
prop=
"alarmAddress"
></el-table-column>
...
...
@@ -255,9 +253,9 @@ export default {
let
o
=
window
.
location
.
origin
//this.$root.parentCommon.setBreadCrumbs(path);
window
.
open
(
`
${
o
}${
path
}
?vin=
${
row
.
vin
}
`
)
//
window.open(`${o}${path}?vin=${row.vin}`)
//
history.pushState(oParams, "报警位置点", path);
history
.
pushState
(
oParams
,
"报警位置点"
,
path
);
},
},
};
...
...
src/views/reportManage/offline.vue
View file @
2c90ff9
...
...
@@ -8,7 +8,7 @@
<div
class=
"search_box"
>
<el-form
:model=
"searchForm"
:inline=
"true"
size=
"small"
>
<el-form-item
label=
"关键字:"
>
<el-input
placeholder=
"设备号|
车架号|姓名
|业务工单号"
class=
"a_input"
maxlength=
"20"
v-model=
"searchForm.keywords"
>
<el-input
placeholder=
"设备号|
姓名|车架号
|业务工单号"
class=
"a_input"
maxlength=
"20"
v-model=
"searchForm.keywords"
>
</el-input>
</el-form-item>
<el-form-item
label=
"车辆归属:"
>
...
...
@@ -99,7 +99,7 @@ import {
GET_FAKEOFFLINE_LIST
,
GET_FAKEOFFLINE_EXPORT
,
GET_FAKEOFFLINE_TEMPLATEFILES
,
IMPORT_FAKEOFFLINE_FILES
IMPORT_FAKEOFFLINE_FILES
,
}
from
"services/report"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
...
...
@@ -153,7 +153,7 @@ export default {
showResult
:
false
,
uploadHeaders
:
{},
uploadResult
:
{},
IMPORT_FAKEOFFLINE_FILES
IMPORT_FAKEOFFLINE_FILES
,
};
},
...
...
@@ -177,7 +177,7 @@ export default {
oParams
.
pageNumber
=
options
?
options
.
pageNumber
||
1
:
1
;
this
.
loading
=
true
;
//GET_FAKEOFFLINE_LIST 等后台部署后替换
GET_
JOURNEYS_SEARCH
(
oParams
)
GET_
FAKEOFFLINE_LIST
(
oParams
)
.
then
((
res
)
=>
{
this
.
loading
=
false
;
let
{
data
}
=
res
;
...
...
@@ -193,12 +193,13 @@ export default {
// 查看详情
lookDetail
(
row
)
{
console
.
log
(
row
);
let
o
=
window
.
location
.
origin
let
o
=
window
.
location
.
origin
;
let
query
=
{
vin
:
row
.
vin
};
let
path
=
"/trialRun#/reportManage/map"
;
//let path = "/trialRun#/reportManage/map";
let
path
=
`/oEshield/#/monitor/activeLocation`
;
//history.pushState(query, path, path);
this
.
$root
.
parentCommon
.
setBreadCrumbs
(
path
);
window
.
open
(
path
+
'?sn='
+
row
.
sn
);
window
.
open
(
path
+
"?sns="
+
row
.
sns
);
//this.$router.push({ name: "mileageDetail", query: { vin: row.vin } });
},
...
...
@@ -301,7 +302,15 @@ export default {
// 下载模板
downloadTemplate
()
{
window
.
open
(
GET_FAKEOFFLINE_TEMPLATEFILES
);
GET_FAKEOFFLINE_TEMPLATEFILES
().
then
((
res
)
=>
{
window
.
open
(
res
.
data
);
});
},
// 下载失败模板
downloadFail
()
{
let
o
=
this
.
uploadResult
;
window
.
open
(
o
.
failFile
);
},
},
};
...
...
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