Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ebd8e744
authored
2021-01-21 13:46:51 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
日志管理页面修改
1 parent
6b98ae2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
src/views/manage/log/index.vue
src/views/manage/log/index.vue
View file @
ebd8e74
<
template
>
<div
class=
"
log-content
"
>
<div
class=
"
main
"
>
<div
class=
"log-search"
>
开始时间:
<el-date-picker
...
...
@@ -47,7 +47,7 @@
</el-dialog>
<div
class=
"log-table"
>
<el-table
:data=
"tableData"
>
<el-table
:data=
"tableData"
:height=
"tableHeight"
:row-class-name=
"tableRowClassName"
>
<el-table-column
type=
"index"
width=
"80"
align=
"center"
label=
"序号"
>
</el-table-column>
<el-table-column
prop=
"operationtype"
align=
"center"
label=
"操作类型"
>
...
...
@@ -84,7 +84,7 @@
total
:
0
,
pageNo
:
1
,
pageSize
:
50
,
pageSize
:
15
,
outerVisible
:
false
,
innerVisible
:
false
,
...
...
@@ -114,7 +114,7 @@
},
startValue
:
''
,
endValue
:
''
,
tableHeight
:
0
,
}
},
methods
:{
...
...
@@ -140,11 +140,12 @@
"startTime"
:
this
.
startValue
,
"endTime"
:
this
.
endValue
,
"pageNo"
:
1
,
"pageSize"
:
50
"pageSize"
:
15
};
getLogData
(
data
).
then
((
res
)
=>
{
console
.
log
(
res
.
result
);
this
.
tableData
=
res
.
result
.
records
;
this
.
total
=
res
.
result
.
total
})
},
getError
(){
...
...
@@ -167,10 +168,20 @@
openDetail
(
data
){
this
.
operationDataVisible
=
true
;
this
.
currentOperationData
=
data
.
operationJson
;
}
},
tableRowClassName
({
row
,
rowIndex
})
{
if
(
rowIndex
%
2
!==
0
)
{
return
"even-row"
;
}
else
{
return
""
;
}
},
},
mounted
()
{
this
.
getData
();
this
.
$nextTick
(()
=>
{
this
.
tableHeight
=
(
document
.
documentElement
.
clientHeight
||
document
.
body
.
clientHeight
)
-
290
;
})
}
}
</
script
>
...
...
@@ -191,7 +202,7 @@
.log-table
{
margin-top
:
10px
;
width
:
100%
;
bo
rder
:
1px
solid
#E6E6E6
;
bo
x-shadow
:
0
2px
15px
1px
rgba
(
49
,
132
,
245
,
0.1
)
;
}
.el-button
{
width
:
100px
;
...
...
Please
register
or
sign in
to post a comment