Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
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
4c178603
authored
2022-12-02 16:29:51 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:上报报文查询
1 parent
17929302
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
14 additions
and
217 deletions
src/mixins/tableMixin.js
src/router/index.js
src/styles/index.scss
src/views/reportLog/components/errorLog-dialog.vue
src/views/reportLog/components/preview-dialog.vue
src/views/reportLog/components/resend-dialog.vue
src/views/reportLog/components/response-dialog.vue
src/views/reportLog/components/retransfer-dialog.vue
src/views/reportLog/index.vue
src/mixins/tableMixin.js
View file @
4c17860
...
...
@@ -3,8 +3,6 @@ import business from '@/api/business'
let
mixin
=
{
data
()
{
return
{
xml
:
''
,
message
:
''
,
formData
:
{
pageSize
:
10
}
...
...
src/router/index.js
View file @
4c17860
...
...
@@ -46,29 +46,29 @@ export const asyncRoutes = [
}
]
},
//
登簿
日志
//
上报
日志
{
path
:
'/re
gister
Log'
,
path
:
'/re
port
Log'
,
component
:
Layout
,
children
:
[
{
path
:
'index'
,
component
:
()
=>
import
(
'@/views/re
gister
Log/index'
),
name
:
're
gister
Log'
,
meta
:
{
title
:
'
登簿日志'
,
icon
:
'zhcx
'
}
component
:
()
=>
import
(
'@/views/re
port
Log/index'
),
name
:
're
port
Log'
,
meta
:
{
title
:
'
上报报文查询'
,
icon
:
'zsgl
'
}
}
]
},
//
上报
日志
//
登簿
日志
{
path
:
'/re
port
Log'
,
path
:
'/re
gister
Log'
,
component
:
Layout
,
children
:
[
{
path
:
'index'
,
component
:
()
=>
import
(
'@/views/re
port
Log/index'
),
name
:
're
port
Log'
,
meta
:
{
title
:
'
上报日志'
,
icon
:
'zsgl
'
}
component
:
()
=>
import
(
'@/views/re
gister
Log/index'
),
name
:
're
gister
Log'
,
meta
:
{
title
:
'
登簿日志'
,
icon
:
'zhcx
'
}
}
]
},
...
...
src/styles/index.scss
View file @
4c17860
...
...
@@ -177,6 +177,10 @@ div:focus {
display
:
block
;
}
.marginbtm5
{
margin-bottom
:
5px
!
important
;
}
.clearfix
{
&
:after
{
visibility
:
hidden
;
...
...
src/views/reportLog/components/errorLog-dialog.vue
deleted
100644 → 0
View file @
1792930
<
template
>
<!-- 错误日志 -->
<dialogBox
ref=
"error"
isReset
saveButton=
"关闭"
divider
width=
"50%"
@
submitForm=
"handleResclose"
multiple
title=
"错误日志"
>
<div
class=
"xmlMessage"
>
{{
errorData
}}
</div>
</dialogBox>
</
template
>
<
script
>
export
default
{
props
:
{
errorData
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
}
},
methods
:
{
handleResclose
()
{
this
.
$refs
.
error
.
isHide
();
}
}
}
</
script
>
\ No newline at end of file
src/views/reportLog/components/preview-dialog.vue
deleted
100644 → 0
View file @
1792930
<
template
>
<!-- 预览 -->
<dialogBox
ref=
"preview"
:isReset=
"false"
divider
:isButton=
"false"
multiple
title=
"XML报文"
>
<div
class=
"xmlMessage"
>
{{
content
}}
</div>
<div
class=
"preview-dialog-button"
>
<el-button
id=
"copy_text"
type=
"primary"
plain
@
click=
"handleSubmit"
:data-clipboard-text=
"content"
>
复制报文
</el-button>
<el-button
@
click=
"handleclose"
>
关闭
</el-button>
</div>
</dialogBox>
</
template
>
<
script
>
import
Clipboard
from
'clipboard'
export
default
{
props
:
{
content
:
{
type
:
String
,
default
:
''
},
},
data
()
{
return
{
}
},
methods
:
{
handleSubmit
()
{
var
_this
=
this
;
var
clipboard
=
new
Clipboard
(
'#copy_text'
);
clipboard
.
on
(
'success'
,
e
=>
{
// 释放内存
this
.
$message
({
message
:
'复制成功!'
,
type
:
'success'
})
clipboard
.
destroy
()
_this
.
$refs
.
preview
.
isHide
()
})
clipboard
.
on
(
'error'
,
e
=>
{
// 不支持复制
this
.
$message
({
message
:
'该浏览器不支持自动复制'
,
type
:
'warning'
});
// 释放内存
clipboard
.
destroy
()
})
},
handleclose
()
{
this
.
$refs
.
preview
.
isHide
();
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.preview-dialog-button
{
text-align
:
center
;
margin
:
20px
0
;
}
</
style
>
\ No newline at end of file
src/views/reportLog/components/resend-dialog.vue
deleted
100644 → 0
View file @
1792930
<
template
>
<!-- 重新发报 -->
<dialogBox
ref=
"resend"
saveButton=
"确定"
width=
"500px"
divider
@
submitForm=
"handleResclose"
multiple
title=
"提示"
>
<div
class=
"confirmDialog"
>
您确定重新发送报文吗?
</div>
</dialogBox>
</
template
>
<
script
>
import
journal
from
'@/api/journal.js'
export
default
{
props
:
{
msgid
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
}
},
methods
:
{
async
handleResclose
()
{
try
{
let
res
=
await
journal
.
sendXmlForPlat
(
this
.
msgid
)
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
res
.
message
,
type
:
'success'
})
this
.
$parent
.
featchData
();
this
.
$refs
.
resend
.
isHide
()
}
}
catch
(
error
)
{
this
.
$message
({
showClose
:
true
,
message
:
'服务器出错,请稍后重试'
,
type
:
'error'
})
this
.
$refs
.
resend
.
isHide
()
}
}
}
}
</
script
>
\ No newline at end of file
src/views/reportLog/components/response-dialog.vue
deleted
100644 → 0
View file @
1792930
<
template
>
<!-- 相应日志 -->
<dialogBox
ref=
"response"
isReset
saveButton=
"关闭"
divider
@
submitForm=
"handleResclose"
multiple
title=
"相应日志"
>
<div
class=
"xmlMessage"
>
{{
journalData
}}
</div>
</dialogBox>
</
template
>
<
script
>
export
default
{
props
:
{
journalData
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
}
},
methods
:
{
handleResclose
()
{
this
.
$refs
.
response
.
isHide
();
}
}
}
</
script
>
\ No newline at end of file
src/views/reportLog/components/retransfer-dialog.vue
deleted
100644 → 0
View file @
1792930
<
template
>
<!-- 重新转换 -->
<dialogBox
ref=
"resend"
saveButton=
"确定"
width=
"500px"
divider
@
submitForm=
"handleResclose"
multiple
title=
"提示"
>
<div
class=
"confirmDialog"
>
您确定重新抽取业务转换报文吗?
</div>
</dialogBox>
</
template
>
<
script
>
import
journal
from
'@/api/journal.js'
export
default
{
props
:
{
msgid
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
}
},
methods
:
{
async
handleResclose
()
{
try
{
let
res
=
await
journal
.
sendXmlForPlat
(
this
.
msgid
)
if
(
res
.
code
==
200
)
{
this
.
$message
({
message
:
res
.
message
,
type
:
'success'
})
this
.
$parent
.
featchData
();
this
.
$refs
.
resend
.
isHide
()
}
}
catch
(
error
)
{
this
.
$message
({
showClose
:
true
,
message
:
'服务器出错,请稍后重试'
,
type
:
'error'
})
}
}
}
}
</
script
>
\ No newline at end of file
src/views/reportLog/index.vue
View file @
4c17860
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to post a comment