Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
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 027c59cd
authored
Sep 11, 2019
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合并代码
1 parent
e5d040b7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
35 deletions
src/views/materiaOrderManagement/index.vue
src/views/systemMonitor/index.vue
src/views/trafficManagement/index.vue
src/views/userManage/role/editDialog.vue
vue.config.js
src/views/materiaOrderManagement/index.vue
View file @
027c59c
...
...
@@ -114,7 +114,7 @@
<
script
>
import
DetailDialog
from
'./detailDialog'
import
{
getListApi
,
detailApi
,
removeApi
,
exportApi
,
downloadApi
}
from
'@api/materiaOrderManagement'
import
{
getListApi
,
removeApi
,
exportApi
,
downloadApi
}
from
'@api/materiaOrderManagement'
import
notice
from
'@/common/notice'
export
default
{
name
:
'fimsMateriaOrderManagement'
,
...
...
@@ -206,7 +206,7 @@ export default {
/* 接口请求-start */
getParams
()
{
var
time
=
[{
attr
:
'startTime'
,
addTime
:
'00:00:00'
},
{
attr
:
'endTime'
,
addTime
:
'23:59:59'
}]
this
.
searchForm
.
createTime
&&
this
.
searchForm
.
createTime
.
map
((
value
,
i
)
=>
this
.
searchForm
[
time
[
i
].
attr
]
=
value
+
' '
+
time
[
i
].
addTime
)
this
.
searchForm
.
createTime
&&
this
.
searchForm
.
createTime
.
map
((
value
,
i
)
=>
(
this
.
searchForm
[
time
[
i
].
attr
]
=
value
+
' '
+
time
[
i
].
addTime
)
)
return
{
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
currentPage
,
...
...
src/views/systemMonitor/index.vue
View file @
027c59c
...
...
@@ -109,10 +109,9 @@
import
{
getListApi
,
reportApi
,
exportApi
}
from
'@api/systemMonitor'
import
notice
from
'@/common/notice'
import
{
mapActions
}
from
'vuex'
import
{
cloneDeep
}
from
'lodash'
export
default
{
name
:
'index'
,
data
()
{
data
()
{
return
{
subSystemRadio
:
'全部'
,
tag
:
Object
.
freeze
({
...
...
@@ -226,7 +225,7 @@ export default {
}
},
mounted
()
{
mounted
()
{
this
.
$echarts
=
echarts
this
.
loadingGetList
()
this
.
loadBaseData
()
...
...
@@ -237,7 +236,7 @@ export default {
methods
:
{
...
mapActions
(
'd2admin/base'
,
[
'load'
]),
async
loadBaseData
()
{
async
loadBaseData
()
{
// this.baseData.station = await this.$store.dispatch('d2admin/base/get', BaseData.STATION.KEY)
const
{
station
,
subsys
}
=
await
this
.
load
()
this
.
baseData
.
station
=
_
.
cloneDeep
(
station
)
...
...
@@ -245,12 +244,12 @@ export default {
this
.
baseData
.
subsys
.
unshift
({
confCode
:
''
,
confValue
:
'全部'
})
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
getList
()
},
/* 接口请求-start */
getParams
()
{
getParams
()
{
return
{
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
currentPage
,
...
...
@@ -258,7 +257,7 @@ export default {
}
},
getList
()
{
getList
()
{
const
params
=
this
.
getParams
()
getListApi
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
subsystemList
...
...
@@ -269,7 +268,7 @@ export default {
this
.
tableLoading
=
false
})
},
getPie
(
label
=
''
)
{
getPie
(
label
=
''
)
{
const
params
=
{
subsystemTypeCode
:
label
?
this
.
baseData
.
subsys
.
find
(
item
=>
item
.
confValue
===
label
).
confCode
:
''
}
...
...
@@ -279,7 +278,7 @@ export default {
notice
.
errorTips
()
})
},
exportFile
()
{
exportFile
()
{
const
params
=
this
.
getParams
()
exportApi
(
params
).
then
(
res
=>
{
this
.
$open
(
res
.
url
)
...
...
@@ -293,11 +292,11 @@ export default {
// offlineNum 离网数量
// normalNum 正常数量
// breakdownNum 故障数量
drawPie
(
params
)
{
drawPie
(
params
)
{
let
item
=
this
.
totalOptions
.
series
[
0
]
item
.
data
[
0
].
value
=
params
.
onlineNum
?
params
.
onlineNum
:
0
item
.
data
[
1
].
value
=
params
.
offlineNum
?
params
.
offlineNum
:
0
item
=
this
.
totalOptions
.
series
[
1
]
item
.
data
[
0
].
value
=
params
.
breakdownNum
?
params
.
breakdownNum
:
0
item
.
data
[
1
].
value
=
params
.
normalNum
?
params
.
normalNum
:
0
...
...
@@ -306,19 +305,19 @@ export default {
},
// 搜索
handleSearch
()
{
handleSearch
()
{
// 调接口
this
.
loadingGetList
()
},
// 页码
handleSizeChange
(
value
)
{
handleSizeChange
(
value
)
{
this
.
pageSize
=
value
// 调接口
this
.
loadingGetList
()
},
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
this
.
currentPage
=
value
// 调接口
this
.
loadingGetList
()
...
...
src/views/trafficManagement/index.vue
View file @
027c59c
...
...
@@ -112,13 +112,12 @@ import EditDialog from './editDialog'
import
{
BaseData
}
from
'@/common/constants'
import
{
getListApi
,
methods
,
editApi
,
removeApi
}
from
'@api/trafficManagement'
import
notice
from
'@/common/notice'
import
{
clearTimeout
,
setTimeout
}
from
'timers'
export
default
{
name
:
'fimsTrafficManagement'
,
components
:
{
EditDialog
},
data
()
{
data
()
{
return
{
// 新增/编辑弹窗
editVisible
:
false
,
...
...
@@ -179,23 +178,23 @@ export default {
}
},
mounted
()
{
mounted
()
{
this
.
loadingGetList
()
this
.
loadBaseData
()
},
methods
:
{
async
loadBaseData
()
{
async
loadBaseData
()
{
const
data
=
await
this
.
$store
.
dispatch
(
'd2admin/base/get'
,
BaseData
.
STATION
.
KEY
)
this
.
baseData
.
station
=
data
},
loadingGetList
()
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
getList
()
},
/* 接口请求-start */
getParams
()
{
getParams
()
{
return
{
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
currentPage
,
...
...
@@ -203,7 +202,7 @@ export default {
}
},
getList
()
{
getList
()
{
const
params
=
this
.
getParams
()
getListApi
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
trafficList
...
...
@@ -214,10 +213,10 @@ export default {
this
.
tableLoading
=
false
})
},
editTraffic
(
value
)
{
editTraffic
(
value
)
{
// console.log(value)
const
params
=
_
.
cloneDeep
(
this
.
editFormReset
)
Object
.
keys
(
params
).
map
(
key
=>
params
[
key
]
=
value
[
key
]
)
Object
.
keys
(
params
).
map
(
key
=>
(
params
[
key
]
=
value
[
key
])
)
params
.
stationName
=
this
.
baseData
.
station
.
find
(
item
=>
item
.
confCode
===
params
.
stationCode
).
confValue
!
value
.
id
?
delete
params
.
id
:
delete
params
.
trafficCode
params
.
method
=
value
.
id
?
methods
.
Edit
:
methods
.
Add
...
...
@@ -232,43 +231,43 @@ export default {
},
/* 接口请求-end */
// 搜索
handleSearch
()
{
handleSearch
()
{
this
.
loadingGetList
()
},
// 页码
handleSizeChange
(
value
)
{
handleSizeChange
(
value
)
{
// console.log(value)
this
.
pageSize
=
value
// 调接口
this
.
loadingGetList
()
},
handleCurrentChange
(
value
)
{
handleCurrentChange
(
value
)
{
// console.log(value)
this
.
currentPage
=
value
// 调接口
this
.
loadingGetList
()
},
handleEditClose
()
{
handleEditClose
()
{
this
.
editVisible
=
!
this
.
editVisible
// delete this.editForm.id
},
handleEditConfirm
()
{
handleEditConfirm
()
{
var
editParams
=
_
.
cloneDeep
(
this
.
editForm
)
this
.
editTraffic
(
editParams
)
},
// 表格-编辑
handleEdit
(
row
)
{
handleEdit
(
row
)
{
// console.log(row)
this
.
editForm
=
_
.
cloneDeep
(
row
)
this
.
editVisible
=
!
this
.
editVisible
},
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'确认删除?'
,
'删除'
,
{
comfirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
...
...
src/views/userManage/role/editDialog.vue
View file @
027c59c
...
...
@@ -15,7 +15,7 @@
:rules=
"rules"
>
<el-form-item
label=
"角色名:"
prop=
"roleName"
>
<el-input
v-model=
"roleForm.roleName"
requred
maxlength=
"10"
clearable
placeholder=
"请输入角色名"
></el-input>
<el-input
v-model=
"roleForm.roleName"
requred
maxlength=
"10"
clearable
placeholder=
"请输入角色名"
:disabled=
"!!roleForm.roleId"
></el-input>
</el-form-item>
<el-form-item
label=
"描述:"
>
<el-input
...
...
vue.config.js
View file @
027c59c
...
...
@@ -41,7 +41,7 @@ module.exports = {
loaderOptions
:
{
// 设置 scss 公用变量文件
sass
:
{
data
:
`@import '~@/assets/style/public.scss';`
data
:
'@import \'~@/assets/style/public.scss\';'
}
}
},
...
...
@@ -94,7 +94,7 @@ module.exports = {
.
plugin
(
'theme-color-replacer'
)
.
use
(
ThemeColorReplacer
,
[{
fileName
:
'css/theme-colors.[contenthash:8].css'
,
resolveCss
(
resultCss
)
{
// optional. Resolve result css code as you wish.
resolveCss
(
resultCss
)
{
// optional. Resolve result css code as you wish.
return
resultCss
.
replace
(
/process.env.VUE_APP_ELEMENT_COLOR/g
,
process
.
env
.
VUE_APP_ELEMENT_COLOR
)
},
matchColors
:
[
...
...
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