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 bba20059
authored
Sep 06, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/tFIMS
2 parents
d2ecb332
1ffdf470
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
160 additions
and
75 deletions
src/views/deviceManagement/editDialog.vue
src/views/deviceManagement/index.vue
src/views/maintainManagement/index.vue
src/views/subSysManagement/editDialog.vue
src/views/subSysManagement/index.vue
src/views/system/login/index.vue
src/views/systemMonitor/index.vue
src/views/trafficManagement/editDialog.vue
src/views/trafficManagement/index.vue
src/views/deviceManagement/editDialog.vue
View file @
bba2005
...
@@ -56,8 +56,12 @@
...
@@ -56,8 +56,12 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"所在地"
prop=
"stationName"
>
<el-form-item
label=
"所在地"
prop=
"stationName"
>
<el-select
v-model=
"editForm.stationName"
placeholder=
"请选择所在地"
clearable
filterable
>
<el-select
v-model=
"editForm.stationName"
placeholder=
"请选择所在地"
clearable
filterable
>
<el-option
label=
"仓库"
value=
"1"
></el-option>
<el-option
<el-option
label=
"广州站"
value=
"2"
></el-option>
v-for=
"(item, index) in station"
:key=
"index"
:value=
"item.confCode"
:label=
"item.confValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -130,6 +134,7 @@ export default {
...
@@ -130,6 +134,7 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
station
:
Array
,
editForm
:
Object
editForm
:
Object
},
},
...
...
src/views/deviceManagement/index.vue
View file @
bba2005
...
@@ -11,8 +11,12 @@
...
@@ -11,8 +11,12 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"所在地"
>
<el-form-item
label=
"所在地"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择所在地"
clearable
filterable
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择所在地"
clearable
filterable
>
<el-option
value=
"1"
label=
"仓库"
></el-option>
<el-option
<el-option
value=
"2"
label=
"广州站"
></el-option>
v-for=
"(item, index) in baseData.station"
:key=
"index"
:value=
"item.confCode"
:label=
"item.confValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"责任人"
>
<el-form-item
label=
"责任人"
>
...
@@ -27,9 +31,16 @@
...
@@ -27,9 +31,16 @@
</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; position: relative;"
>
<el-col
:span=
"12"
style=
"position: relative; display: flex; justify-content: flex-end; "
>
<span
style=
"margin-right: 10px;"
>
<auth-button
category=
"Button"
label=
"导出"
></auth-button>
</span>
<auth-button
<auth-button
category=
"Button"
category=
"Button"
label=
"导入"
>
>
<input
<input
type=
"file"
type=
"file"
...
@@ -37,7 +48,6 @@
...
@@ -37,7 +48,6 @@
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@
change=
"importFile($event)"
/>
@
change=
"importFile($event)"
/>
</auth-button>
</auth-button>
<!--
<auth-button
label=
"导出"
type=
"Button"
@
e-auth-click=
"exportFile"
></auth-button>
-->
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
...
@@ -100,6 +110,7 @@
...
@@ -100,6 +110,7 @@
<edit-dialog
<edit-dialog
:isVisible=
"editVisible"
:isVisible=
"editVisible"
:editForm=
"editForm"
:editForm=
"editForm"
:station=
"baseData.station"
@
closeDialog=
"handleEditClose"
@
closeDialog=
"handleEditClose"
@
confirmDialog=
"handleEditConfirm"
@
confirmDialog=
"handleEditConfirm"
></edit-dialog>
></edit-dialog>
...
@@ -108,6 +119,7 @@
...
@@ -108,6 +119,7 @@
<
script
>
<
script
>
import
EditDialog
from
'./editDialog'
import
EditDialog
from
'./editDialog'
import
{
BaseData
}
from
'@/common/constants'
import
{
getListApi
,
editApi
,
removeApi
,
importApi
,
exportApi
}
from
'@api/deviceManagement'
import
{
getListApi
,
editApi
,
removeApi
,
importApi
,
exportApi
}
from
'@api/deviceManagement'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
export
default
{
export
default
{
...
@@ -172,15 +184,23 @@ export default {
...
@@ -172,15 +184,23 @@ export default {
// 页码
// 页码
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
30
total
:
30
,
baseData
:
{
station
:
[]
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
loadingGetList
()
this
.
loadingGetList
()
this
.
loadBaseData
()
},
},
methods
:
{
methods
:
{
async
loadBaseData
()
{
this
.
baseData
.
station
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
this
.
getList
()
this
.
getList
()
...
@@ -313,7 +333,7 @@ export default {
...
@@ -313,7 +333,7 @@ export default {
right
:
0
;
right
:
0
;
top
:
0
;
top
:
0
;
width
:
70px
;
width
:
70px
;
height
:
100%
;
height
:
36px
;
cursor
:
pointer
;
cursor
:
pointer
;
font-size
:
0
font-size
:
0
}
}
...
...
src/views/maintainManagement/index.vue
View file @
bba2005
...
@@ -26,8 +26,8 @@
...
@@ -26,8 +26,8 @@
<el-option
<el-option
v-for=
"(optionItem, optionIndex) in item.options"
v-for=
"(optionItem, optionIndex) in item.options"
:key=
"optionIndex"
:key=
"optionIndex"
:label=
"optionItem.
label
"
:label=
"optionItem.
confValue
"
:value=
"optionItem.
valu
e"
:value=
"optionItem.
confCod
e"
></el-option>
></el-option>
</el-select>
</el-select>
<el-date-picker
<el-date-picker
...
@@ -108,6 +108,7 @@
...
@@ -108,6 +108,7 @@
<
script
>
<
script
>
import
{
getListApi
,
removeApi
,
exportApi
}
from
'@api/maintainManagement'
import
{
getListApi
,
removeApi
,
exportApi
}
from
'@api/maintainManagement'
import
{
mapActions
}
from
'vuex'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
export
default
{
export
default
{
name
:
'maintainManagement'
,
name
:
'maintainManagement'
,
...
@@ -159,24 +160,12 @@ export default {
...
@@ -159,24 +160,12 @@ export default {
label
:
'车辆站点'
,
label
:
'车辆站点'
,
type
:
'select'
,
type
:
'select'
,
model
:
'stationName'
,
model
:
'stationName'
,
options
:
[{
options
:
[]
label
:
'青岛'
,
value
:
'1'
},
{
label
:
'深圳'
,
value
:
'2'
}]
},
{
},
{
label
:
'子系统'
,
label
:
'子系统'
,
type
:
'select'
,
type
:
'select'
,
model
:
'subsystemTypeCode'
,
model
:
'subsystemTypeCode'
,
options
:
[{
options
:
[]
label
:
'3#4F'
,
value
:
'1'
},
{
label
:
'3#5F'
,
value
:
'2'
}]
}],
}],
// 表格
// 表格
tableLoading
:
false
,
tableLoading
:
false
,
...
@@ -255,9 +244,29 @@ export default {
...
@@ -255,9 +244,29 @@ export default {
mounted
()
{
mounted
()
{
this
.
loadingGetList
()
this
.
loadingGetList
()
this
.
loadBaseData
()
},
},
methods
:
{
methods
:
{
...
mapActions
(
'd2admin/base'
,
[
"load"
]),
async
loadBaseData
()
{
const
modelToOptions
=
{
'stationName'
:
'station'
,
'subsystemTypeCode'
:
'subsys'
}
const
data
=
await
this
.
load
()
if
(
data
)
{
for
(
var
item
in
modelToOptions
)
{
let
pos
=
this
.
searchFormArr
.
findIndex
(
arrItem
=>
arrItem
.
model
==
item
)
this
.
searchFormArr
[
pos
].
options
=
data
[
modelToOptions
[
item
]]
}
}
// this.load().then(res => {
// for(var item in modelToOptions) {
// let pos = this.searchFormArr.findIndex(arrItem => arrItem.model == item)
// this.searchFormArr[pos].options = res[modelToOptions[item]]
// }
// })
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
this
.
getList
()
this
.
getList
()
...
...
src/views/subSysManagement/editDialog.vue
View file @
bba2005
...
@@ -33,8 +33,11 @@ import { constants } from 'fs';
...
@@ -33,8 +33,11 @@ import { constants } from 'fs';
</el-form-item>
</el-form-item>
<el-form-item
label=
"类型"
prop=
"systemType"
>
<el-form-item
label=
"类型"
prop=
"systemType"
>
<el-select
v-model=
"editForm.systemType"
placeholder=
"请选择类型"
clearable
filterable
>
<el-select
v-model=
"editForm.systemType"
placeholder=
"请选择类型"
clearable
filterable
>
<el-option
label=
"座椅"
value=
"1"
></el-option>
<el-option
v-for=
"(item, index) in subsys"
<el-option
label=
"桌板"
value=
"2"
></el-option>
:key=
"index"
:value=
"item.confCode"
:label=
"item.confValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"生产厂家"
prop=
"merchantName"
>
<el-form-item
label=
"生产厂家"
prop=
"merchantName"
>
...
@@ -105,13 +108,14 @@ export default {
...
@@ -105,13 +108,14 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
subsys
:
Array
,
editForm
:
Object
editForm
:
Object
},
},
watch
:
{
watch
:
{
isVisible
(
val
)
{
isVisible
(
val
)
{
this
.
disabled
=
!!
this
.
editForm
.
subsystemCode
this
.
disabled
=
!!
this
.
editForm
.
subsystemCode
this
.
$refs
.
editRuleForm
.
resetFields
()
this
.
$refs
.
editRuleForm
&&
this
.
$refs
.
editRuleForm
.
resetFields
()
}
}
},
},
...
...
src/views/subSysManagement/index.vue
View file @
bba2005
...
@@ -11,8 +11,11 @@
...
@@ -11,8 +11,11 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"类型"
>
<el-form-item
label=
"类型"
>
<el-select
v-model=
"searchForm.systemTypeCode"
placeholder=
"请选择类型"
clearable
filterable
>
<el-select
v-model=
"searchForm.systemTypeCode"
placeholder=
"请选择类型"
clearable
filterable
>
<el-option
label=
"座椅"
value=
"1"
></el-option>
<el-option
v-for=
"(item, index) in baseData.subsys"
<el-option
label=
"桌板"
value=
"2"
></el-option>
:key=
"index"
:value=
"item.confCode"
:label=
"item.confValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆编号"
>
<el-form-item
label=
"车辆编号"
>
...
@@ -95,6 +98,7 @@
...
@@ -95,6 +98,7 @@
<edit-dialog
<edit-dialog
:isVisible=
"editVisible"
:isVisible=
"editVisible"
:editForm=
"editForm"
:editForm=
"editForm"
:subsys=
"baseData.subsys"
@
closeDialog=
"handleEditClose"
@
closeDialog=
"handleEditClose"
@
confirmDialog=
"handleEditConfirm"
@
confirmDialog=
"handleEditConfirm"
></edit-dialog>
></edit-dialog>
...
@@ -103,6 +107,7 @@
...
@@ -103,6 +107,7 @@
<
script
>
<
script
>
import
EditDialog
from
'./editDialog'
import
EditDialog
from
'./editDialog'
import
{
BaseData
}
from
'@/common/constants'
import
{
getListApi
,
methods
,
editApi
,
removeApi
}
from
'@api/subSysManagement'
import
{
getListApi
,
methods
,
editApi
,
removeApi
}
from
'@api/subSysManagement'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
export
default
{
export
default
{
...
@@ -171,15 +176,24 @@ export default {
...
@@ -171,15 +176,24 @@ export default {
// 页码
// 页码
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
30
total
:
30
,
baseData
:
{
subsys
:
[]
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
loadingGetList
()
this
.
loadingGetList
()
this
.
loadBaseData
()
},
},
methods
:
{
methods
:
{
async
loadBaseData
()
{
this
.
baseData
.
subsys
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
SUBSYS
.
KEY
)
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
this
.
getList
()
this
.
getList
()
...
@@ -235,19 +249,19 @@ export default {
...
@@ -235,19 +249,19 @@ export default {
this
.
loadingGetList
()
this
.
loadingGetList
()
},
},
resetForm
(
obj
)
{
//
resetForm (obj) {
for
(
var
item
in
obj
)
{
//
for (var item in obj) {
if
(
obj
[
item
]
instanceof
Array
)
{
//
if (obj[item] instanceof Array) {
obj
[
item
]
=
[]
//
obj[item] = []
}
else
{
//
} else {
obj
[
item
]
=
''
//
obj[item] = ''
}
//
}
}
//
}
},
//
},
handleEditClose
()
{
handleEditClose
()
{
this
.
editVisible
=
!
this
.
editVisible
this
.
editVisible
=
!
this
.
editVisible
this
.
resetForm
(
this
.
editForm
)
//
this.resetForm(this.editForm)
// console.log(this.editForm)
// console.log(this.editForm)
},
},
...
...
src/views/system/login/index.vue
View file @
bba2005
...
@@ -147,6 +147,7 @@ export default {
...
@@ -147,6 +147,7 @@ export default {
},
},
// 提交登录信息
// 提交登录信息
submit
()
{
submit
()
{
// console.log(navigator.userAgent.toLocaleLowerCase())
this
.
$refs
.
loginForm
.
validate
((
valid
)
=>
{
this
.
$refs
.
loginForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
{
browser
,
os
}
=
this
.
$store
.
state
.
d2admin
.
ua
.
data
const
{
browser
,
os
}
=
this
.
$store
.
state
.
d2admin
.
ua
.
data
...
...
src/views/systemMonitor/index.vue
View file @
bba2005
...
@@ -7,9 +7,10 @@
...
@@ -7,9 +7,10 @@
<span
style=
"margin-right: 20px;"
>
子系统类型
</span>
<span
style=
"margin-right: 20px;"
>
子系统类型
</span>
<el-radio-group
v-model=
"subSystemRadio"
@
change=
"radioChange"
>
<el-radio-group
v-model=
"subSystemRadio"
@
change=
"radioChange"
>
<el-radio-button
<el-radio-button
v-for=
"(item, index) in
systemTypeArr
"
v-for=
"(item, index) in
baseData.subsys
"
:key=
"index"
:key=
"index"
:label=
"item.label"
:value=
"item.confCode"
:label=
"item.confValue"
>
>
</el-radio-button>
</el-radio-button>
</el-radio-group>
</el-radio-group>
...
@@ -30,11 +31,16 @@
...
@@ -30,11 +31,16 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"归属车辆段"
>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
filterable
clearable
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
filterable
clearable
>
<el-option
<
!--
<
el-option
v-for=
"(item,index) in stationCodeArr"
v-for=
"(item,index) in stationCodeArr"
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
:value=
"item.value"
></el-option>
-->
<el-option
v-for=
"(item, index) in baseData.station"
:key=
"index"
:value=
"item.confCode"
:label=
"item.confValue"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -113,6 +119,8 @@
...
@@ -113,6 +119,8 @@
<
script
>
<
script
>
import
{
getListApi
,
reportApi
,
exportApi
}
from
'@api/systemMonitor'
import
{
getListApi
,
reportApi
,
exportApi
}
from
'@api/systemMonitor'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
import
{
mapActions
}
from
'vuex'
// import { BaseData } from '@/common/constants'
require
(
'echarts/lib/chart/pie'
)
require
(
'echarts/lib/chart/pie'
)
require
(
'echarts/lib/component/tooltip'
)
require
(
'echarts/lib/component/tooltip'
)
...
@@ -123,13 +131,13 @@ export default {
...
@@ -123,13 +131,13 @@ export default {
data
()
{
data
()
{
return
{
return
{
subSystemRadio
:
'全部'
,
subSystemRadio
:
'全部'
,
systemTypeArr
:
[{
//
systemTypeArr: [{
label
:
'全部'
,
//
label: '全部',
value
:
'1'
//
value: '1'
},
{
//
}, {
label
:
'座椅'
,
//
label: '座椅',
value
:
'2'
//
value: '2'
}],
//
}],
// 绘图
// 绘图
totalECharts
:
''
,
totalECharts
:
''
,
totalOptions
:
{
totalOptions
:
{
...
@@ -203,13 +211,13 @@ export default {
...
@@ -203,13 +211,13 @@ export default {
subsystemCode
:
''
,
subsystemCode
:
''
,
onlineStatus
:
''
onlineStatus
:
''
},
},
stationCodeArr
:
[{
//
stationCodeArr: [{
label
:
'归属1'
,
//
label: '归属1',
value
:
'1'
//
value: '1'
},
{
//
}, {
label
:
'归属2'
,
//
label: '归属2',
value
:
'2'
//
value: '2'
}],
//
}],
// 表格
// 表格
tableData
:
[],
tableData
:
[],
tableLoading
:
false
,
tableLoading
:
false
,
...
@@ -235,19 +243,33 @@ export default {
...
@@ -235,19 +243,33 @@ export default {
// 翻页
// 翻页
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
20
total
:
20
,
baseData
:
{
station
:
[],
subsys
:
[]
}
}
}
},
},
mounted
()
{
mounted
()
{
// this.drawPie()
this
.
$echarts
=
echarts
this
.
$echarts
=
echarts
this
.
loadingGetList
()
this
.
loadingGetList
()
this
.
loadBaseData
()
this
.
totalECharts
=
this
.
$echarts
.
init
(
document
.
getElementById
(
'totalEcharts'
))
this
.
totalECharts
=
this
.
$echarts
.
init
(
document
.
getElementById
(
'totalEcharts'
))
this
.
getPie
()
this
.
getPie
()
},
},
methods
:
{
methods
:
{
...
mapActions
(
"d2admin/base"
,
[
"load"
]),
async
loadBaseData
()
{
// this.baseData.station = await this.$store.dispatch('d2admin/base/get', BaseData.STATION.KEY)
const
{
station
,
subsys
}
=
await
this
.
load
()
this
.
baseData
.
station
=
station
this
.
baseData
.
subsys
=
subsys
// console.log(this.baseData)
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
this
.
getList
()
this
.
getList
()
...
...
src/views/trafficManagement/editDialog.vue
View file @
bba2005
...
@@ -23,8 +23,11 @@
...
@@ -23,8 +23,11 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"归属车辆段"
prop=
"stationName"
>
<el-form-item
label=
"归属车辆段"
prop=
"stationName"
>
<el-select
v-model=
"editForm.stationName"
placeholder=
"请选择归属车辆段"
clearable
filterable
>
<el-select
v-model=
"editForm.stationName"
placeholder=
"请选择归属车辆段"
clearable
filterable
>
<el-option
label=
"青岛"
value=
"1"
></el-option>
<el-option
v-for=
"(item, index) in station"
<el-option
label=
"深圳"
value=
"2"
></el-option>
:key=
"index"
:value=
"item.confCode"
:label=
"item.confValue"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"维修承包商"
prop=
"merchantName"
>
<el-form-item
label=
"维修承包商"
prop=
"merchantName"
>
...
@@ -75,6 +78,7 @@ export default {
...
@@ -75,6 +78,7 @@ export default {
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
},
station
:
Array
,
editForm
:
Object
editForm
:
Object
},
},
...
...
src/views/trafficManagement/index.vue
View file @
bba2005
...
@@ -11,8 +11,13 @@
...
@@ -11,8 +11,13 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"归属车辆段"
>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
clearable
filterable
>
<el-select
v-model=
"searchForm.stationCode"
placeholder=
"请选择归属车辆段"
clearable
filterable
>
<el-option
label=
"青岛"
value=
"1"
></el-option>
<el-option
v-for=
"(item, index) in baseData.station"
<el-option
label=
"深圳"
value=
"2"
></el-option>
:key=
"index"
:value=
"item.confCode"
:label=
"item.confValue"
></el-option>
<!--
<el-option
label=
"青岛"
value=
"1"
></el-option>
<el-option
label=
"深圳"
value=
"2"
></el-option>
-->
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"维修承包商"
>
<el-form-item
label=
"维修承包商"
>
...
@@ -96,6 +101,7 @@
...
@@ -96,6 +101,7 @@
<edit-dialog
<edit-dialog
:isVisible=
"editVisible"
:isVisible=
"editVisible"
:editForm=
"editForm"
:editForm=
"editForm"
:station=
"baseData.station"
@
closeDialog=
"handleEditClose"
@
closeDialog=
"handleEditClose"
@
confirmDialog=
"handleEditConfirm"
@
confirmDialog=
"handleEditConfirm"
></edit-dialog>
></edit-dialog>
...
@@ -104,6 +110,8 @@
...
@@ -104,6 +110,8 @@
<
script
>
<
script
>
import
EditDialog
from
'./editDialog'
import
EditDialog
from
'./editDialog'
import
{
BaseData
}
from
'@/common/constants'
// import { mapActions } from 'vuex'
import
{
getListApi
,
methods
,
editApi
,
removeApi
}
from
'@api/trafficManagement'
import
{
getListApi
,
methods
,
editApi
,
removeApi
}
from
'@api/trafficManagement'
import
notice
from
'@/common/notice'
import
notice
from
'@/common/notice'
export
default
{
export
default
{
...
@@ -163,15 +171,24 @@ export default {
...
@@ -163,15 +171,24 @@ export default {
// 页码
// 页码
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
30
total
:
30
,
baseData
:
{
station
:
[]
}
}
}
},
},
mounted
()
{
mounted
()
{
this
.
loadingGetList
()
this
.
loadingGetList
()
this
.
loadBaseData
()
},
},
methods
:
{
methods
:
{
async
loadBaseData
()
{
this
.
baseData
.
station
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
this
.
getList
()
this
.
getList
()
...
@@ -227,19 +244,8 @@ export default {
...
@@ -227,19 +244,8 @@ export default {
this
.
loadingGetList
()
this
.
loadingGetList
()
},
},
resetForm
(
obj
)
{
for
(
var
item
in
obj
)
{
if
(
obj
[
item
]
instanceof
Array
)
{
obj
[
item
]
=
[]
}
else
{
obj
[
item
]
=
''
}
}
},
handleEditClose
()
{
handleEditClose
()
{
this
.
editVisible
=
!
this
.
editVisible
this
.
editVisible
=
!
this
.
editVisible
this
.
resetForm
(
this
.
editForm
)
delete
this
.
editForm
.
id
delete
this
.
editForm
.
id
},
},
...
...
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