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
2e4d82bc
authored
2020-12-24 09:42:37 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
错误日志显示问题
1 parent
d98a8767
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
4 deletions
src/views/manage/log/index.vue
src/views/manage/log/index.vue
View file @
2e4d82b
...
...
@@ -24,10 +24,19 @@
<el-button
type=
"info"
@
click=
"getError"
>
错误日志
</el-button>
</div>
<el-dialog
title=
"错误日志"
:visible
.
sync=
"outerVisible"
>
<div
v-for=
"(item,index) in errorLog"
:key=
"index"
>
<span>
{{
item
.
name
}}
</span>
<br/>
<span>
{{
item
.
value
}}
</span>
<el-dialog
title=
"错误日志"
width=
"69%"
:visible
.
sync=
"outerVisible"
>
<div
style=
"min-height: 600px;width: 100%"
v-show=
"errorLog.length>0"
>
<div
style=
"min-height: 600px;width: 27%;border-right: 1px solid #b2b7b7;float: left;overflow:auto"
>
<ul>
<li
v-for=
"(it,index) in errorLog"
:key=
"index"
>
<span>
日志
{{
index
+
1
}}
,
</span><el-button
type=
"text"
@
click=
"showMessage(it.value)"
>
{{
it
.
name
}}
</el-button>
</li>
</ul>
</div>
<div
style=
"height: 600px;width: 70%;float: right;overflow:auto"
>
<div
v-html=
"concreteLog"
></div>
</div>
</div>
</el-dialog>
...
...
@@ -54,6 +63,7 @@
return
{
tableData
:[],
errorLog
:[],
concreteLog
:
''
,
outerVisible
:
false
,
innerVisible
:
false
,
...
...
@@ -114,8 +124,14 @@
console
.
log
(
res
.
result
)
this
.
errorLog
=
res
.
result
;
this
.
outerVisible
=
true
;
if
(
this
.
errorLog
.
length
>
0
){
this
.
concreteLog
=
this
.
errorLog
[
this
.
errorLog
.
length
-
1
].
value
;
}
})
},
showMessage
(
data
){
this
.
concreteLog
=
data
;
},
reset
(){
this
.
startValue
=
""
;
this
.
endValue
=
""
;
...
...
@@ -150,4 +166,14 @@
width
:
100px
;
margin-left
:
15px
;
}
ul
{
list-style-type
:
circle
;
}
li
{
display
:
block
;
margin
:
10px
;
}
</
style
>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment