Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
SHR
/
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 cd83f85f
authored
Aug 28, 2019
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
40a7ddf8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
108 additions
and
62 deletions
src/api/request.js
src/api/sys.traffic.subsys.js
src/api/systemMonitor.js
src/menu/aside.js
src/router/routes.js
src/views/systemMonitor/index.vue
src/views/carManagement/editDialog.vue → src/views/trafficManagement/editDialog.vue
src/views/carManagement/index.vue → src/views/trafficManagement/index.vue
src/api/request.js
View file @
cd83f85
...
...
@@ -8,8 +8,9 @@
import
axios
from
'@/plugin/axios'
import
sign
from
'./sign'
import
{
methods
as
sysMonitorMethods
}
from
'./systemMonitor'
sysMonitorMethods
,
trafficManageMethods
}
from
'./sys.traffic.subsys.js'
const
request
=
(
params
,
method
)
=>
{
params
.
source
=
''
params
.
app_key
=
'48e5e13229b82c1b4e6e8c96151f0637'
...
...
@@ -26,5 +27,6 @@ const request = (params,method) => {
}
export
{
request
,
sysMonitorMethods
sysMonitorMethods
,
trafficManageMethods
}
src/api/sys.traffic.subsys.js
0 → 100644
View file @
cd83f85
const
sysMonitorPath
=
'fims.system.'
const
trafficManagePath
=
'fims.traffic.'
const
sysMonitorMethods
=
{
Search
:
`
${
sysMonitorPath
}
list`
,
Report
:
`
${
sysMonitorPath
}
report`
}
const
trafficManageMethods
=
{
Add
:
`
${
trafficManagePath
}
add`
,
Search
:
`
${
trafficManagePath
}
list`
,
Edit
:
`
${
trafficManagePath
}
edit`
,
Remove
:
`
${
trafficManagePath
}
remove`
}
export
{
sysMonitorMethods
,
trafficManageMethods
}
\ No newline at end of file
src/api/systemMonitor.js
deleted
100644 → 0
View file @
40a7ddf
const
path
=
'fims.system.'
const
methods
=
{
Search
:
`
${
path
}
list`
,
Report
:
`
${
path
}
report`
}
export
{
methods
}
\ No newline at end of file
src/menu/aside.js
View file @
cd83f85
...
...
@@ -12,7 +12,7 @@ export default [
},
{
title
:
'车辆管理'
,
icon
:
'folder-o'
,
path
:
'/
car
Management'
path
:
'/
traffic
Management'
},
{
title
:
'子系统管理'
,
icon
:
'folder-o'
,
...
...
src/router/routes.js
View file @
cd83f85
...
...
@@ -51,13 +51,13 @@ const frameIn = [
},
// 车辆管理
{
path
:
'
car
Management'
,
name
:
'
car
Management'
,
path
:
'
traffic
Management'
,
name
:
'
traffic
Management'
,
meta
:
{
title
:
'车辆管理'
,
auth
:
true
},
component
:
_import
(
'
car
Management'
)
component
:
_import
(
'
traffic
Management'
)
},
// 子系统管理
{
...
...
src/views/systemMonitor/index.vue
View file @
cd83f85
...
...
@@ -233,7 +233,7 @@ export default {
mounted
()
{
// this.drawPie()
this
.
g
etList
()
this
.
loadingG
etList
()
this
.
totalECharts
=
this
.
$echarts
.
init
(
document
.
getElementById
(
'totalEcharts'
))
this
.
getPie
()
},
...
...
@@ -246,8 +246,8 @@ export default {
/* 接口请求-start */
getParams
()
{
return
{
page
Size
:
this
.
pageSize
,
currentPag
e
:
this
.
currentPage
,
page
Count
:
this
.
pageSize
,
pageSiz
e
:
this
.
currentPage
,
...
this
.
searchForm
}
},
...
...
@@ -307,7 +307,6 @@ export default {
handleSearch
()
{
console
.
log
(
this
.
searchForm
)
// 调接口
this
.
tableLoading
=
true
this
.
loadingGetList
()
},
...
...
@@ -315,14 +314,12 @@ export default {
handleSizeChange
(
value
)
{
this
.
pageSize
=
value
// 调接口
this
.
tableLoading
=
true
this
.
loadingGetList
()
},
handleCurrentChange
(
value
)
{
this
.
currentPage
=
value
// 调接口
this
.
tableLoading
=
true
this
.
loadingGetList
()
}
}
...
...
src/views/
car
Management/editDialog.vue
→
src/views/
traffic
Management/editDialog.vue
View file @
cd83f85
File moved
src/views/
car
Management/index.vue
→
src/views/
traffic
Management/index.vue
View file @
cd83f85
<!-- 车辆管理 -->
<
template
>
<d2-container
class=
"
car
Management"
>
<d2-container
class=
"
traffic
Management"
>
<el-form
:inline=
"true"
:model=
"searchForm"
label-width=
"85px"
>
<el-form-item
label=
"车辆编号"
>
<el-input
v-model=
"searchForm.
carNum
"
placeholder=
"请输入车辆编号"
clearable
></el-input>
<el-input
v-model=
"searchForm.
trafficCode
"
placeholder=
"请输入车辆编号"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.
belongCar
"
placeholder=
"请选择归属车辆段"
clearable
filterable
>
<el-select
v-model=
"searchForm.
stationCode
"
placeholder=
"请选择归属车辆段"
clearable
filterable
>
<el-option
label=
"青岛"
value=
"1"
></el-option>
<el-option
label=
"深圳"
value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"维修承包商"
>
<el-input
v-model=
"searchForm.
repairContractor
"
placeholder=
"请输入维修承包商"
clearable
></el-input>
<el-input
v-model=
"searchForm.
merchantName
"
placeholder=
"请输入维修承包商"
clearable
></el-input>
</el-form-item>
<el-form-item
label=
"状态"
>
<el-select
v-model=
"searchForm.
status
"
placeholder=
"请选择状态"
clearable
filterable
>
<el-select
v-model=
"searchForm.
openType
"
placeholder=
"请选择状态"
clearable
filterable
>
<el-option
label=
"在网"
value=
"1"
></el-option>
<el-option
label=
"离网"
value=
"2"
></el-option>
</el-select>
...
...
@@ -36,6 +36,7 @@
</el-row>
<el-table
:data=
"tableData"
v-loading=
"tableLoading"
border
style=
"margin: 20px 0;"
>
...
...
@@ -100,8 +101,10 @@
<
script
>
import
EditDialog
from
'./editDialog'
import
{
request
,
trafficManageMethods
}
from
'@api/request'
import
notice
from
'@/common/notice'
export
default
{
name
:
'
car
Management'
,
name
:
'
traffic
Management'
,
components
:
{
EditDialog
},
...
...
@@ -110,52 +113,55 @@ export default {
// 新增/编辑弹窗
editVisible
:
false
,
editForm
:
{
carNum
:
''
,
belongCar
:
''
,
repairContractor
:
''
,
interfac
e
:
''
trafficCode
:
''
,
stationName
:
''
,
merchantName
:
''
,
openTyp
e
:
''
},
// 搜索
searchForm
:
{
carNum
:
''
,
belongCar
:
''
,
repairContractor
:
''
,
status
:
''
},
tableData
:
[{
carNum
:
'CRH45661-0001'
,
belongCar
:
'青岛'
,
repairContractor
:
'长春通富机电设备有限公司'
,
interface
:
'1'
},
{
carNum
:
'CRH45661-0002'
,
belongCar
:
'青岛'
,
repairContractor
:
'长春通富机电设备有限公司'
,
interface
:
'0'
},
{
carNum
:
'CRH45661-0003'
,
belongCar
:
'青岛'
,
repairContractor
:
'长春通富机电设备有限公司'
,
interface
:
'1'
}],
trafficCode
:
''
,
stationCode
:
''
,
merchantName
:
''
,
openType
:
''
},
// 表格
tableLoading
:
false
,
tableData
:
[],
// tableData: [{
// trafficCode: 'CRH45661-0001',
// stationName: '青岛',
// merchantName: '长春通富机电设备有限公司',
// openType: '1'
// }, {
// trafficCode: 'CRH45661-0002',
// stationName: '青岛',
// merchantName: '长春通富机电设备有限公司',
// openType: '0'
// }, {
// trafficCode: 'CRH45661-0003',
// stationName: '青岛',
// merchantName: '长春通富机电设备有限公司',
// openType: '1'
// }],
tableColumns
:
[{
label
:
'车辆编号'
,
prop
:
'
carNum
'
prop
:
'
trafficCode
'
},
{
label
:
'归属车辆段'
,
prop
:
'
belongCar
'
prop
:
'
stationName
'
},
{
label
:
'维修承包商'
,
prop
:
'
repairContractor
'
prop
:
'
merchantName
'
},
{
label
:
'接口开放'
,
prop
:
'
interfac
e'
,
prop
:
'
openTyp
e'
,
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
interfac
e
)
{
if
(
cellValue
.
openTyp
e
)
{
return
{
0
:
'否'
,
1
:
'是'
}[
cellValue
.
interfac
e
]
}[
cellValue
.
openTyp
e
]
}
}
}],
...
...
@@ -166,23 +172,55 @@ export default {
}
},
mounted
()
{
this
.
loadingGetList
()
},
methods
:
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
getList
()
},
/* 接口请求-start */
getParams
()
{
return
{
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
currentPage
,
...
this
.
searchForm
}
},
getList
()
{
const
params
=
this
.
getParams
()
params
.
method
=
trafficManageMethods
.
Search
request
(
params
).
then
(
res
=>
{
// console.log(res)
this
.
tableData
=
res
this
.
tableLoading
=
false
}).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
this
.
tableLoading
=
false
})
},
/* 接口请求-end */
// 搜索
handleSearch
()
{
console
.
log
(
this
.
searchForm
)
this
.
loadingGetList
()
},
// 页码
handleSizeChange
(
value
)
{
console
.
log
(
value
)
//
console.log(value)
this
.
pageSize
=
value
// 调接口
this
.
loadingGetList
()
},
handleCurrentChange
(
value
)
{
console
.
log
(
value
)
//
console.log(value)
this
.
currentPage
=
value
// 调接口
this
.
loadingGetList
()
},
resetForm
(
obj
)
{
...
...
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