Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_vue_manage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨硕
91isoft_vue_manage
Commits
059591b3
Commit
059591b3
authored
Dec 29, 2020
by
Asjoker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志修改 和 彻底干掉zt
parent
ddb944e7
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
138 additions
and
112 deletions
+138
-112
banner.js
src/api/banner.js
+6
-6
internal.js
src/api/internal.js
+6
-6
errorLog.js
src/api/monitor/errorLog.js
+4
-4
loginInfo.js
src/api/monitor/loginInfo.js
+7
-7
operLog.js
src/api/monitor/operLog.js
+7
-7
data.js
src/api/system/dict/data.js
+1
-1
index.vue
src/components/Pagination/index.vue
+2
-2
main.js
src/main.js
+2
-2
dictCons.js
src/utils/dictCons.js
+7
-0
index.vue
src/views/monitor/errorLog/index.vue
+6
-6
index.vue
src/views/monitor/loginInfo/index.vue
+79
-60
index.vue
src/views/monitor/operLog/index.vue
+11
-11
No files found.
src/api/banner.js
View file @
059591b3
...
...
@@ -43,9 +43,9 @@ export function listRole(query) {
})
}
export
function
queryInAdhibitions
()
{
return
request
({
url
:
'/authority/system/app/queryInAdhibitions/'
+
'zt'
,
method
:
'get'
})
}
//
export function queryInAdhibitions() {
//
return request({
//
url: '/authority/system/app/queryInAdhibitions/' + 'zt',
//
method: 'get'
//
})
//
}
src/api/internal.js
View file @
059591b3
...
...
@@ -5,9 +5,9 @@ import request from '@/utils/request'
* @param params
* @returns {AxiosPromise}
*/
export
function
queryInAdhibitions
(
params
)
{
return
request
({
url
:
'/authority/system/app/queryInAdhibitions/'
+
params
.
businessId
,
method
:
'get'
})
}
//
export function queryInAdhibitions(params) {
//
return request({
//
url: '/authority/system/app/queryInAdhibitions/' + params.businessId,
//
method: 'get'
//
})
//
}
src/api/monitor/errorLog.js
View file @
059591b3
...
...
@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询异常日志列表
export
function
list
(
query
)
{
return
request
({
url
:
'/
authority/monitor/operl
og/list'
,
url
:
'/
monitor/operL
og/list'
,
method
:
'get'
,
params
:
query
})
...
...
@@ -12,7 +12,7 @@ export function list(query) {
// 删除异常日志
export
function
delErrLog
(
operId
)
{
return
request
({
url
:
'/authority/monitor/oper
l
og/'
+
operId
,
url
:
'/authority/monitor/oper
L
og/'
+
operId
,
method
:
'delete'
})
}
...
...
@@ -20,7 +20,7 @@ export function delErrLog(operId) {
// 清空异常日志
export
function
cleanErrLog
()
{
return
request
({
url
:
'/authority/monitor/oper
l
og/clean/1'
,
url
:
'/authority/monitor/oper
L
og/clean/1'
,
method
:
'delete'
})
}
...
...
@@ -28,7 +28,7 @@ export function cleanErrLog() {
// 导出异常日志
export
function
exportErrLog
(
query
)
{
return
request
({
url
:
'/authority/monitor/oper
l
og/export'
,
url
:
'/authority/monitor/oper
L
og/export'
,
method
:
'get'
,
params
:
query
})
...
...
src/api/monitor/loginInfo.js
View file @
059591b3
...
...
@@ -3,32 +3,32 @@ import request from '@/utils/request'
// 查询登录日志列表
export
function
list
(
query
)
{
return
request
({
url
:
'/
authority/monitor/logininfor
/list'
,
url
:
'/
monitor/loginInfo
/list'
,
method
:
'get'
,
params
:
query
})
}
// 删除登录日志
export
function
delLogininfo
r
(
infoId
)
{
export
function
delLogininfo
(
infoId
)
{
return
request
({
url
:
'/authority/monitor/logininfo
r
/'
+
infoId
,
url
:
'/authority/monitor/logininfo/'
+
infoId
,
method
:
'delete'
})
}
// 清空登录日志
export
function
cleanLogininfo
r
()
{
export
function
cleanLogininfo
()
{
return
request
({
url
:
'/authority/monitor/logininfo
r
/clean'
,
url
:
'/authority/monitor/logininfo/clean'
,
method
:
'delete'
})
}
// 导出登录日志
export
function
exportLogininfo
r
(
query
)
{
export
function
exportLogininfo
(
query
)
{
return
request
({
url
:
'/authority/monitor/logininfo
r
/export'
,
url
:
'/authority/monitor/logininfo/export'
,
method
:
'get'
,
params
:
query
})
...
...
src/api/monitor/operLog.js
View file @
059591b3
...
...
@@ -3,32 +3,32 @@ import request from '@/utils/request'
// 查询操作日志列表
export
function
list
(
query
)
{
return
request
({
url
:
'/
authority/monitor/operl
og/list'
,
url
:
'/
monitor/operL
og/list'
,
method
:
'get'
,
params
:
query
})
}
// 删除操作日志
export
function
delOper
l
og
(
operId
)
{
export
function
delOper
L
og
(
operId
)
{
return
request
({
url
:
'/authority/monitor/oper
l
og/'
+
operId
,
url
:
'/authority/monitor/oper
L
og/'
+
operId
,
method
:
'delete'
})
}
// 清空操作日志
export
function
cleanOper
l
og
()
{
export
function
cleanOper
L
og
()
{
return
request
({
url
:
'/authority/monitor/oper
l
og/clean/0'
,
url
:
'/authority/monitor/oper
L
og/clean/0'
,
method
:
'delete'
})
}
// 导出操作日志
export
function
exportOper
l
og
(
query
)
{
export
function
exportOper
L
og
(
query
)
{
return
request
({
url
:
'/authority/monitor/oper
l
og/export'
,
url
:
'/authority/monitor/oper
L
og/export'
,
method
:
'get'
,
params
:
query
})
...
...
src/api/system/dict/data.js
View file @
059591b3
...
...
@@ -20,7 +20,7 @@ export function getData(dictCode) {
// 根据字典类型查询字典数据信息
export
function
getDicts
(
dictType
)
{
return
request
({
url
:
'/
authority/
system/dict/data/type/'
+
dictType
,
url
:
'/system/dict/data/type/'
+
dictType
,
method
:
'get'
})
}
...
...
src/components/Pagination/index.vue
View file @
059591b3
...
...
@@ -5,7 +5,7 @@
:current-page
.
sync=
"currentPage"
:page-size
.
sync=
"pageSize"
:layout=
"layout"
:page-sizes=
"
pageSize
s"
:page-sizes=
"
row
s"
:total=
"total"
v-bind=
"$attrs"
@
size-change=
"handleSizeChange"
...
...
@@ -32,7 +32,7 @@ export default {
type
:
Number
,
default
:
20
},
pageSize
s
:
{
row
s
:
{
type
:
Array
,
default
()
{
return
[
10
,
20
,
50
,
100
]
...
...
src/main.js
View file @
059591b3
...
...
@@ -66,7 +66,7 @@ Vue.prototype.$parseDate = (value, format) => {
if
(
!
value
||
value
===
''
)
{
return
'-'
}
return
moment
(
value
).
format
(
format
||
'YYYY-MM-DD HH:mm'
)
return
moment
(
value
).
format
(
format
||
'YYYY-MM-DD HH:mm
:ss
'
)
}
// 如果想要中文版 element-ui,按如下方式声明
// Vue.use(ElementUI)
...
...
@@ -89,5 +89,5 @@ Vue.filter('transformDateByFormat', (value, format) => {
if
(
!
value
||
value
===
''
)
{
return
'-'
}
return
moment
(
value
).
format
(
format
||
'YYYY-MM-DD HH:mm'
)
return
moment
(
value
).
format
(
format
||
'YYYY-MM-DD HH:mm
:ss
'
)
})
src/utils/dictCons.js
0 → 100644
View file @
059591b3
export
default
{
'USER_SEX'
:
'sys_user_sex'
,
// 用户性别
'SHOW_HIDE'
:
'sys_show_hide'
,
// 菜单状态
'NORMAL_DISABLE'
:
'sys_normal_disable'
,
// 系统开关
'OPER_TYPE'
:
'sys_oper_type'
,
// 操作类型
'COMMON_STATUS'
:
'sys_common_status'
// 系统状态
}
src/views/monitor/errorLog/index.vue
View file @
059591b3
...
...
@@ -237,7 +237,7 @@ export default {
pu
:
1
,
ps
:
10
,
status
:
1
,
operTime
:
''
,
//
operTime: '',
title
:
undefined
,
operName
:
undefined
// businessType: undefined
...
...
@@ -245,7 +245,7 @@ export default {
}
},
created
()
{
this
.
queryParams
.
operTime
=
this
.
$parseDate
(
new
Date
(),
'YYYY-MM'
)
//
this.queryParams.operTime = this.$parseDate(new Date(), 'YYYY-MM')
this
.
getList
()
this
.
getDicts
(
'sys_oper_type'
.
toUpperCase
()).
then
(
response
=>
{
this
.
typeOptions
=
response
.
data
...
...
@@ -259,9 +259,9 @@ export default {
getList
()
{
this
.
loading
=
true
const
query
=
Object
.
assign
({},
this
.
queryParams
)
query
.
operTime
=
query
.
operTime
?
this
.
$parseDate
(
new
Date
(
query
.
operTime
),
'YYYYMM'
)
:
''
//
query.operTime = query.operTime ? this.$parseDate(new Date(query.operTime), 'YYYYMM') : ''
list
(
query
).
then
(
response
=>
{
this
.
list
=
response
.
data
.
sysOperLog
s
.
map
(
item
=>
{
this
.
list
=
response
.
row
s
.
map
(
item
=>
{
const
title
=
item
.
title
if
(
title
)
{
const
temp
=
title
.
split
(
'-'
)
...
...
@@ -274,7 +274,7 @@ export default {
}
return
item
})
this
.
total
=
response
.
data
.
totals
this
.
total
=
response
.
total
this
.
loading
=
false
}
)
...
...
@@ -337,7 +337,7 @@ export default {
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
Object
.
assign
({},
this
.
queryParams
)
queryParams
.
operTime
=
queryParams
.
operTime
?
this
.
$parseDate
(
new
Date
(
queryParams
.
operTime
),
'YYYYMM'
)
:
''
//
queryParams.operTime = queryParams.operTime ? this.$parseDate(new Date(queryParams.operTime), 'YYYYMM') : ''
delete
queryParams
.
pu
delete
queryParams
.
ps
queryParams
.
ids
=
this
.
ids
.
join
(
','
)
||
null
...
...
src/views/monitor/loginInfo/index.vue
View file @
059591b3
This diff is collapsed.
Click to expand it.
src/views/monitor/operLog/index.vue
View file @
059591b3
...
...
@@ -208,7 +208,7 @@
</template>
<
script
>
import
{
list
,
delOper
log
,
cleanOperlog
,
exportOperl
og
}
from
'@/api/monitor/operLog'
import
{
list
,
delOper
Log
,
cleanOperLog
,
exportOperL
og
}
from
'@/api/monitor/operLog'
export
default
{
name
:
'Operlog'
,
...
...
@@ -237,7 +237,7 @@ export default {
pu
:
1
,
ps
:
10
,
status
:
0
,
operTime
:
''
,
//
operTime: '',
title
:
undefined
,
operName
:
undefined
// businessType: undefined
...
...
@@ -245,7 +245,7 @@ export default {
}
},
created
()
{
this
.
queryParams
.
operTime
=
this
.
$parseDate
(
new
Date
(),
'YYYY-MM'
)
//
this.queryParams.operTime = this.$parseDate(new Date(), 'YYYY-MM')
this
.
getList
()
this
.
getDicts
(
'sys_oper_type'
.
toUpperCase
()).
then
(
response
=>
{
this
.
typeOptions
=
response
.
data
...
...
@@ -259,9 +259,9 @@ export default {
getList
()
{
this
.
loading
=
true
const
query
=
Object
.
assign
({},
this
.
queryParams
)
query
.
operTime
=
query
.
operTime
?
this
.
$parseDate
(
new
Date
(
query
.
operTime
),
'YYYYMM
'
)
:
''
// query.operTime = query.operTime ? this.$parseDate(new Date(query.operTime), 'YYYY-MM-DD HH:mm:ss
') : ''
list
(
query
).
then
(
response
=>
{
this
.
list
=
response
.
data
.
sysOperLog
s
.
map
(
item
=>
{
this
.
list
=
response
.
row
s
.
map
(
item
=>
{
const
title
=
item
.
title
if
(
title
)
{
const
temp
=
title
.
split
(
'-'
)
...
...
@@ -274,7 +274,7 @@ export default {
}
return
item
})
this
.
total
=
response
.
data
.
totals
this
.
total
=
response
.
total
this
.
loading
=
false
}
)
...
...
@@ -314,7 +314,7 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
delOper
l
og
(
this
.
ids
.
join
(
','
)).
then
(()
=>
{
delOper
L
og
(
this
.
ids
.
join
(
','
)).
then
(()
=>
{
this
.
getList
()
this
.
$message
.
success
(
'删除成功'
)
this
.
ids
=
[]
...
...
@@ -328,7 +328,7 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
cleanOper
l
og
().
then
(()
=>
{
cleanOper
L
og
().
then
(()
=>
{
this
.
getList
()
this
.
$message
.
success
(
'清空成功'
)
}).
catch
(
function
()
{})
...
...
@@ -337,11 +337,11 @@ export default {
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
Object
.
assign
({},
this
.
queryParams
)
queryParams
.
operTime
=
queryParams
.
operTime
?
this
.
$parseDate
(
new
Date
(
queryParams
.
operTime
),
'YYYYMM
'
)
:
''
// queryParams.operTime = queryParams.operTime ? this.$parseDate(new Date(queryParams.operTime), 'YYYY-MM-DD HH:mm:ss
') : ''
delete
queryParams
.
pu
delete
queryParams
.
ps
queryParams
.
ids
=
this
.
ids
.
join
(
','
)
||
null
exportOper
l
og
(
queryParams
).
then
(
response
=>
{
exportOper
L
og
(
queryParams
).
then
(
response
=>
{
this
.
download
(
response
.
msg
)
}).
catch
(
function
()
{})
// this.$confirm('是否确认导出所有操作日志数据项?', '提示', {
...
...
@@ -349,7 +349,7 @@ export default {
// cancelButtonText: '取消',
// type: 'warning'
// }).then(() => {
// exportOper
l
og(queryParams)
// exportOper
L
og(queryParams)
// }).catch()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment