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 765877ac
authored
Sep 02, 2019
by
wangql
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能代码提交
1 parent
0341a211
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
155 additions
and
143 deletions
src/api/reportLogs.js
src/api/userManage.js
src/layout/header-aside/components/header-user/index.vue
src/layout/header-aside/components/header-user/passwordDialog.vue
src/layout/header-aside/components/header-user/personMsgDialog.vue
src/views/reportingLogs/index.vue
src/views/userManage/loginLogs/index.vue
src/api/reportLogs.js
0 → 100644
View file @
765877a
import
request
from
'./request'
import
RequestMethods
from
'./request.methods'
const
path
=
'fims.'
export
function
searchReportLog
(
data
)
{
data
.
method
=
`
${
path
}
reportlog.search`
return
request
(
data
)
}
src/api/userManage.js
View file @
765877a
...
@@ -2,9 +2,9 @@ import request from './request'
...
@@ -2,9 +2,9 @@ import request from './request'
import
RequestMethods
from
'./request.methods'
import
RequestMethods
from
'./request.methods'
const
path
=
'fims.user.'
const
path
=
'fims.user.'
export
function
Modify
(
data
)
{
export
function
Modify
Password
(
data
)
{
data
.
method
=
`
${
path
}
modify`
data
.
method
=
`
${
path
}
password.
modify`
return
request
(
data
,
RequestMethods
.
POS
T
)
return
request
(
data
,
RequestMethods
.
GE
T
)
}
}
export
function
getLoginlogs
(
data
)
{
export
function
getLoginlogs
(
data
)
{
...
...
src/layout/header-aside/components/header-user/index.vue
View file @
765877a
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<
/div
>
<
/div
>
<
PersonDetailDialog
<
PersonDetailDialog
:
personDialogVisible
=
"detailVisible"
:
personDialogVisible
=
"detailVisible"
@
detailClose
=
"detailDialogClose"
/>
/>
<
PasswordDialog
<
PasswordDialog
:
passwordDialogVisible
=
"passVisible"
:
passwordDialogVisible
=
"passVisible"
...
@@ -36,6 +37,9 @@ export default {
...
@@ -36,6 +37,9 @@ export default {
PersonDetailDialog
,
PersonDetailDialog
,
PasswordDialog
PasswordDialog
}
,
}
,
mounted
()
{
this
.
$event
.
$on
(
'e-password-dialog'
,
res
=>
this
.
passVisible
=
res
)
}
,
computed
:
{
computed
:
{
...
mapState
(
'd2admin/user'
,
[
'info'
])
...
mapState
(
'd2admin/user'
,
[
'info'
])
}
,
}
,
...
@@ -54,6 +58,10 @@ export default {
...
@@ -54,6 +58,10 @@ export default {
this
.
logout
({
this
.
logout
({
confirm
:
true
confirm
:
true
}
)
}
)
}
,
detailDialogClose
(){
this
.
detailVisible
=
false
}
}
}
}
}
}
...
...
src/layout/header-aside/components/header-user/passwordDialog.vue
View file @
765877a
...
@@ -50,14 +50,14 @@
...
@@ -50,14 +50,14 @@
type=
"primary"
type=
"primary"
@
click=
"savePassword('info')"
@
click=
"savePassword('info')"
>
保 存
</el-button>
>
保 存
</el-button>
<el-button
@
click=
"
passwordDialogVisible = fal
se"
>
取 消
</el-button>
<el-button
@
click=
"
handleClo
se"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Modify
}
from
'@api/userManage'
import
{
Modify
Password
}
from
'@api/userManage'
export
default
{
export
default
{
name
:
'PasswordDialog'
,
name
:
'PasswordDialog'
,
components
:
{
components
:
{
...
@@ -112,8 +112,7 @@ export default {
...
@@ -112,8 +112,7 @@ export default {
},
},
props
:
{
props
:
{
passwordDialogVisible
:
{
passwordDialogVisible
:
{
type
:
Boolean
,
type
:
Boolean
default
:
false
}
}
// info: {
// info: {
// type: Object,
// type: Object,
...
@@ -123,29 +122,23 @@ export default {
...
@@ -123,29 +122,23 @@ export default {
// }
// }
},
},
watch
:
{
watch
:
{
// passwordDialogVisible(val) {
// this.$validator.errors.clear()
// }
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
// getPersonalType() {
// const params = {}
// params.method = ctMethods.GetPersonalType
// request
// .req(params)
// .then(res => {
// this.sendObjList = res.merchantDictList
// })
// .catch(err => {
// console.log(err)
// })
// },
// 修改密码
// 修改密码
savePassword
(
formName
)
{
savePassword
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
alert
(
'submit!'
)
const
params
=
{}
params
.
userId
=
''
params
.
oldPassword
=
this
.
info
.
oldPassword
params
.
newPassword
=
this
.
info
.
newPassword
this
.
mergePassWord
(
params
)
}
else
{
}
else
{
console
.
log
(
'error submit!!'
)
console
.
log
(
'error submit!!'
)
return
false
return
false
...
@@ -153,16 +146,21 @@ export default {
...
@@ -153,16 +146,21 @@ export default {
})
})
},
},
handleClose
()
{
handleClose
()
{
this
.
passwordDialogVisible
=
false
this
.
$event
.
$emit
(
'e-password-dialog'
,
false
)
// this.passwordDialogVisible = false
},
},
// mergePassWord (params) {
mergePassWord
(
params
)
{
// Modify(params)
ModifyPassword
(
params
)
// .then(res => {
.
then
(
res
=>
{
this
.
$message
({
// })
message
:
'密码修改成功'
,
// .catch(err => console.log(err))
type
:
'success'
// }
});
//this.passwordDialogVisible = false
})
.
catch
(
err
=>
console
.
log
(
err
))
}
}
}
}
}
...
...
src/layout/header-aside/components/header-user/personMsgDialog.vue
View file @
765877a
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"
personDialogVisible = fal
se"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"
handleClo
se"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
...
@@ -94,8 +94,7 @@ export default {
...
@@ -94,8 +94,7 @@ export default {
},
},
props
:
{
props
:
{
personDialogVisible
:
{
personDialogVisible
:
{
type
:
Boolean
,
type
:
Boolean
default
:
false
}
}
// detail: {
// detail: {
// type: Object,
// type: Object,
...
@@ -138,7 +137,7 @@ export default {
...
@@ -138,7 +137,7 @@ export default {
// })
// })
// },
// },
handleClose
()
{
handleClose
()
{
this
.
personDialogVisible
=
false
this
.
$emit
(
'detailClose'
)
}
}
}
}
}
}
...
...
src/views/reportingLogs/index.vue
View file @
765877a
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆编号"
>
<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>
<el-form-item
label=
"归属车辆段"
>
<el-form-item
label=
"归属车辆段"
>
<el-select
v-model=
"searchForm.
depot
"
placeholder=
"请选择"
clearable
filterable
>
<el-select
v-model=
"searchForm.
stationName
"
placeholder=
"请选择"
clearable
filterable
>
<el-option
label=
"111"
value=
"1"
></el-option>
<el-option
label=
"111"
value=
"1"
></el-option>
<el-option
label=
"222"
value=
"2"
></el-option>
<el-option
label=
"222"
value=
"2"
></el-option>
</el-select>
</el-select>
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-table
<el-table
:data=
"tableData"
:data=
"tableData
.data
"
border
border
style=
"margin: 20px 0;"
style=
"margin: 20px 0;"
>
>
...
@@ -49,21 +49,13 @@
...
@@ -49,21 +49,13 @@
type=
'index'
type=
'index'
></el-table-column>
></el-table-column>
<el-table-column
<el-table-column
v-for=
"(item, index) in table
Columns
"
v-for=
"(item, index) in table
Data.column
"
:key=
"index"
:key=
"index"
:label=
"item.label"
:label=
"item.label"
:prop=
"item.prop"
:prop=
"item.prop"
:width=
"item.width"
:width=
"item.width"
align=
"center"
align=
"center"
>
>
<template
slot-scope=
"scope"
>
<template
v-if=
"item.formatter"
>
{{
item
.
formatter
(
scope
.
row
)
}}
</
template
>
<
template
v-else
>
{{
tableData
[
scope
.
$index
][
item
.
prop
]
}}
</
template
>
</template>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<el-pagination
<el-pagination
...
@@ -81,6 +73,7 @@
...
@@ -81,6 +73,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
searchReportLog
}
from
'@api/reportLogs'
export
default
{
export
default
{
name
:
'reportingLogs'
,
name
:
'reportingLogs'
,
data
()
{
data
()
{
...
@@ -89,68 +82,101 @@ export default {
...
@@ -89,68 +82,101 @@ export default {
searchForm
:
{
searchForm
:
{
beginTime
:
''
,
beginTime
:
''
,
endTime
:
''
,
endTime
:
''
,
carNum
:
''
,
trafficCode
:
''
,
depot
:
''
,
stationName
:
''
,
subsystemNum
:
''
subsystemNum
:
''
},
},
tableData
:
[{
tableData
:
{
reportTime
:
'2019-08-16 14:45:21'
,
border
:
true
,
carNum
:
'CRH45661-5648'
,
align
:
'center'
,
depot
:
'青岛'
,
data
:
[],
subsystemNum
:
'3#1F'
,
column
:
[
subsystemType
:
'座椅'
,
{
subsystemManufactor
:
'长春通富机电设备有限公司'
,
label
:
'上报时间'
,
reportContent
:
'00x4561aa'
prop
:
'reportTime'
},
{
},
reportTime
:
'2019-08-16 14:45:21'
,
{
carNum
:
'CRH45661-5648'
,
label
:
'车辆编号'
,
depot
:
'青岛'
,
prop
:
'trafficCode'
subsystemNum
:
'3#1F'
,
},
subsystemType
:
'座椅'
,
{
subsystemManufactor
:
'长春通富机电设备有限公司'
,
label
:
'归属车辆段'
,
reportContent
:
'00x4561aa'
prop
:
'stationName'
},
{
},
reportTime
:
'2019-08-16 14:45:21'
,
{
carNum
:
'CRH45661-5648'
,
label
:
'子系统编号'
,
depot
:
'青岛'
,
prop
:
'subSystemCode'
subsystemNum
:
'3#1F'
,
},
subsystemType
:
'座椅'
,
{
subsystemManufactor
:
'长春通富机电设备有限公司'
,
label
:
'子系统类型'
,
reportContent
:
'00x4561aa'
prop
:
'subSystemType'
}],
},
tableColumns
:
[{
{
label
:
'上报时间'
,
label
:
'子系统厂家'
,
prop
:
'reportTime'
prop
:
'merchantName'
},
{
},
label
:
'车辆编号'
,
{
prop
:
'carNum'
label
:
'上报内容'
,
},
{
prop
:
'reportValue'
label
:
'归属车辆段'
,
}
prop
:
'depot'
],
},
{
number
:
{
label
:
'子系统编号'
,
label
:
'序号'
,
prop
:
'subsystemNum'
width
:
'50px'
,
},
{
index
:
index
=>
{
label
:
'子系统类型'
,
++
index
prop
:
'subsystemType'
return
index
<
10
&&
index
>
0
?
'0'
+
index
:
index
},
{
}
label
:
'子系统厂家'
,
},
prop
:
'subsystemManufactor'
console
:
{
},
{
label
:
'上报内容'
,
}
prop
:
'reportContent'
},
}],
// 页码
// 页码
currentPage
:
1
,
currentPage
:
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
3
0
total
:
1
0
}
}
},
},
mounted
()
{
this
.
loadingGetList
()
},
methods
:
{
methods
:
{
loadingGetList
()
{
this
.
tableLoading
=
true
this
.
getList
()
},
getParams
()
{
return
Object
.
assign
(
{
pageCount
:
this
.
pageSize
,
pageSize
:
this
.
pageNum
},
this
.
searchForm
)
},
getList
()
{
if
(
this
.
times
.
length
)
{
this
.
searchForm
.
beginTime
=
this
.
times
[
0
]
this
.
searchForm
.
endTime
=
this
.
times
[
1
]
}
const
params
=
this
.
getParams
()
searchReportLog
(
params
).
then
(
res
=>
{
// res.pagination && (this.total = res.pagination.totalCount)
this
.
tableData
.
data
=
res
console
.
log
(
this
.
tableData
)
this
.
tableLoading
=
false
})
.
catch
(
err
=>
{
this
.
tableLoading
=
false
console
.
log
(
err
)
})
},
// 搜索
// 搜索
handleSearch
()
{
handleSearch
()
{
console
.
log
(
this
.
searchForm
)
this
.
loadingGetList
(
)
},
},
// 页码
// 页码
...
...
src/views/userManage/loginLogs/index.vue
View file @
765877a
...
@@ -32,9 +32,24 @@
...
@@ -32,9 +32,24 @@
<el-col>
登录日志列表
</el-col>
<el-col>
登录日志列表
</el-col>
</el-row>
</el-row>
<el-table
<el-table
:
table=
"tableD
ata"
:
data=
"tableData.d
ata"
v-loading=
"tableLoading"
v-loading=
"tableLoading"
>
>
<el-table-column
align=
"center"
width=
"60px"
label=
"序号"
type=
'index'
></el-table-column>
<el-table-column
v-for=
"(item, index) in tableData.column"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
align=
"center"
>
</el-table-column>
</el-table>
</el-table>
<el-pagination
<el-pagination
background
background
...
@@ -64,51 +79,9 @@ export default {
...
@@ -64,51 +79,9 @@ export default {
field
:
''
,
field
:
''
,
loginType
:
''
loginType
:
''
},
},
// tableData: [{
// loginTime: '2019-08-16 14:45:21',
// loginUser: 'abc123',
// userName: '张三',
// phone: '13511111111',
// loginType: 'PC',
// loginDevice: 'win10/chrome'
// }, {
// loginTime: '2019-08-16 14:45:21',
// loginUser: 'abc123',
// userName: '李四',
// phone: '13511111111',
// loginType: '小程序',
// loginDevice: 'iphone8'
// }, {
// loginTime: '2019-08-16 14:45:21',
// loginUser: 'abc123',
// userName: '王五',
// phone: '13511111111',
// loginType: 'PC',
// loginDevice: 'win10/chrome'
// }],
// tableColumns: [{
// label: '登录时间',
// prop: 'loginTime'
// }, {
// label: '登录用户',
// prop: 'loginUser'
// }, {
// label: '姓名',
// prop: 'userName'
// }, {
// label: '联系电话',
// prop: 'phone'
// }, {
// label: '登录方式',
// prop: 'loginType'
// }, {
// label: '登录设备',
// prop: 'loginDevice'
// }],
tableData
:
{
tableData
:
{
border
:
true
,
border
:
true
,
align
:
'center'
,
align
:
'center'
,
// height: parseInt(this.$client_height() - 140),
data
:
[],
data
:
[],
column
:
[
column
:
[
{
{
...
@@ -117,7 +90,7 @@ export default {
...
@@ -117,7 +90,7 @@ export default {
},
},
{
{
label
:
'登录用户'
,
label
:
'登录用户'
,
prop
:
'login
User
'
prop
:
'login
Name
'
},
},
{
{
label
:
'姓名'
,
label
:
'姓名'
,
...
@@ -125,15 +98,15 @@ export default {
...
@@ -125,15 +98,15 @@ export default {
},
},
{
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'
phon
e'
prop
:
'
mobil
e'
},
},
{
{
label
:
'登录方式'
,
label
:
'登录方式'
,
prop
:
'loginType'
prop
:
'loginType
Value
'
},
},
{
{
label
:
'登录设备'
,
label
:
'登录设备'
,
prop
:
'
loginDevic
e'
prop
:
'
deviceCod
e'
}
}
],
],
number
:
{
number
:
{
...
...
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