Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
曾琪
/
tFIMS
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 014bcf9e
authored
Sep 12, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
addc33fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
84 deletions
src/views/reportingLogs/index.vue
src/views/subSysManagement/index.vue
src/views/reportingLogs/index.vue
View file @
014bcf9
...
@@ -19,22 +19,6 @@
...
@@ -19,22 +19,6 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆编号"
>
<el-form-item
label=
"车辆编号"
>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
@
clear=
"loadingGetList"
></el-input>
<el-input
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
clearable
@
clear=
"loadingGetList"
></el-input>
<!--
<el-select
v-model=
"searchForm.trafficCode"
placeholder=
"请输入车辆编号"
@
clear=
"remoteAndGetList('trafficCode')"
clearable
filterable
remote
:remote-method=
"(query) => remoteArr(query, 'trafficCode')"
>
<el-option
v-for=
"item in remoteOptionArr.trafficCode"
:key=
"item"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
-->
</el-form-item>
</el-form-item>
<el-form-item
label=
"归属车辆段"
>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择"
clearable
filterable
@
clear=
"loadingGetList"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择"
clearable
filterable
@
clear=
"loadingGetList"
>
...
@@ -47,22 +31,6 @@
...
@@ -47,22 +31,6 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"子系统编号"
>
<el-form-item
label=
"子系统编号"
>
<el-input
v-model=
"searchForm.subSystemCode"
placeholder=
"请输入子系统编号"
clearable
@
clear=
"loadingGetList"
></el-input>
<el-input
v-model=
"searchForm.subSystemCode"
placeholder=
"请输入子系统编号"
clearable
@
clear=
"loadingGetList"
></el-input>
<!--
<el-select
v-model=
"searchForm.subSystemCode"
placeholder=
"请输入子系统编号"
@
clear=
"remoteAndGetList('subSystemCode')"
clearable
filterable
remote
:remote-method=
"(query) => remoteArr(query, 'subSystemCode')"
>
<el-option
v-for=
"item in remoteOptionArr.subSystemCode"
:key=
"item"
:label=
"item"
:value=
"item"
></el-option>
</el-select>
-->
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"handleSearch"
>
查询
</el-button>
...
@@ -70,9 +38,6 @@
...
@@ -70,9 +38,6 @@
</el-form>
</el-form>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-row
style=
"height: 40px; line-height: 40px"
>
<el-col
:span=
"12"
>
上报日志列表
</el-col>
<el-col
:span=
"12"
>
上报日志列表
</el-col>
<!--
<el-col
:span=
"12"
style=
"text-align: right"
>
<auth-button
category=
"Button"
></auth-button>
</el-col>
-->
</el-row>
</el-row>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData"
...
@@ -118,15 +83,8 @@ export default {
...
@@ -118,15 +83,8 @@ export default {
name
:
'FimsReportingLogs'
,
name
:
'FimsReportingLogs'
,
data
()
{
data
()
{
return
{
return
{
// 远程搜索-返回数组
remoteOptionArr
:
{
trafficCode
:
[],
subSystemCode
:
[]
},
tableLoading
:
false
,
tableLoading
:
false
,
searchForm
:
{
searchForm
:
{
// beginTime: '',
// endTime: '',
reportTime
:
''
,
reportTime
:
''
,
trafficCode
:
''
,
trafficCode
:
''
,
stationCode
:
''
,
stationCode
:
''
,
...
@@ -182,54 +140,23 @@ export default {
...
@@ -182,54 +140,23 @@ export default {
this
.
baseData
.
station
=
data
this
.
baseData
.
station
=
data
},
},
// 防抖
debounce
(
fn
,
delay
=
50
)
{
let
timer
=
null
return
(...
args
)
=>
{
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
fn
.
apply
(
this
.
args
)
},
delay
)
}
},
// 远程搜索
remoteArr
(
value
,
attr
)
{
this
.
debounce
(
this
.
getRemote
(
attr
,
value
),
50
)
},
// 清空远程搜索列表;表格数据刷新
remoteAndGetList
(
attr
)
{
this
.
remoteOptionArr
[
attr
]
=
[]
this
.
loadingGetList
()
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
this
.
getList
()
this
.
getList
()
},
},
getParams
()
{
getParams
()
{
return
Object
.
assign
(
var
time
=
[{
attr
:
'startTime'
,
addTime
:
'00:00:00'
},
{
attr
:
'endTime'
,
addTime
:
'23:59:59'
}]
{
this
.
searchForm
.
reportTime
&&
this
.
searchForm
.
reportTime
.
map
((
value
,
i
)
=>
this
.
searchForm
[
time
[
i
].
attr
]
=
value
+
' '
+
time
[
i
].
addTime
)
return
{
pageCount
:
this
.
pageSize
,
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
currentPage
pageSize
:
this
.
currentPage
,
},
...
this
.
searchForm
this
.
searchForm
}
)
},
getRemote
(
attr
,
value
)
{
let
params
=
{}
params
[
attr
]
=
value
delete
params
.
pageCount
delete
params
.
pageSize
getLogsApi
(
params
).
then
(
res
=>
{
this
.
remoteOptionArr
[
attr
]
=
new
Set
(
res
.
loges
.
map
(
item
=>
item
[
attr
]))
})
},
},
getList
()
{
getList
()
{
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
params
.
startTime
=
params
.
reportTime
?
params
.
reportTime
[
0
]
+
' '
+
'00:00:00 '
:
''
params
.
endTime
=
params
.
reportTime
?
params
.
reportTime
[
1
]
+
' '
+
'23:59:59'
:
''
delete
params
.
reportTime
delete
params
.
reportTime
getLogsApi
(
params
).
then
(
res
=>
{
getLogsApi
(
params
).
then
(
res
=>
{
// res.pagination && (this.total = res.pagination.totalCount)
// res.pagination && (this.total = res.pagination.totalCount)
...
@@ -245,8 +172,6 @@ export default {
...
@@ -245,8 +172,6 @@ export default {
handleExport
()
{
handleExport
()
{
const
params
=
this
.
getParams
()
const
params
=
this
.
getParams
()
params
.
startTime
=
params
.
reportTime
?
params
.
reportTime
[
0
]
+
' '
+
'00:00:00 '
:
''
params
.
endTime
=
params
.
reportTime
?
params
.
reportTime
[
1
]
+
' '
+
'23:59:59'
:
''
delete
params
.
reportTime
delete
params
.
reportTime
exportApi
(
params
).
then
(
res
=>
{
exportApi
(
params
).
then
(
res
=>
{
// console.log(res)
// console.log(res)
...
...
src/views/subSysManagement/index.vue
View file @
014bcf9
...
@@ -83,7 +83,8 @@
...
@@ -83,7 +83,8 @@
<el-table-column
<el-table-column
align=
"center"
align=
"center"
label=
"操作"
label=
"操作"
fix=
"right"
fixed=
"right"
width=
"100"
>
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<auth-button
<auth-button
...
...
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