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
54d8d89c
authored
2023-01-30 16:20:18 +0800
by
赵千
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
xml响应结果
1 parent
141b23f4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
5 deletions
src/components/dataDetails/edit-dialog.vue
src/components/dataDetails/result.vue
src/views/jsbwcx/index.vue
src/components/dataDetails/edit-dialog.vue
View file @
54d8d89
...
...
@@ -8,6 +8,7 @@
<el-tabs
v-model=
"titleName"
type=
"card"
@
tab-click=
"handleTitleTab"
>
<el-tab-pane
label=
"数据模型"
name=
"sjmx"
></el-tab-pane>
<el-tab-pane
label=
"xml报文"
name=
"xml"
></el-tab-pane>
<el-tab-pane
label=
"响应结果"
name=
"xyjg"
></el-tab-pane>
</el-tabs>
<div
v-if=
"titleName == 'sjmx'"
class=
"sjmx"
>
<div
class=
"dialog-from"
>
...
...
@@ -99,7 +100,10 @@
:bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport" />
</div>
</div>
<JsonEditor
:resultInfo=
"resultInfo"
v-else
/>
<div
v-if=
"titleName == 'xyjg'"
>
<Xyjg
:form-data =
'dataReport'
></Xyjg>
</div>
<JsonEditor
:resultInfo=
"resultInfo"
v-if=
"titleName == 'xml'"
/>
<!--
<div
slot=
"footer"
class=
"dialog_footer"
ref=
"dialogFooter"
>
<div
class=
"dialog_button"
>
<el-button
type=
"primary"
plain
@
click=
"submitForm"
v-if=
"!Edit"
:loading=
"saveloding"
>
确定
...
...
@@ -113,10 +117,11 @@
<
script
>
import
{
mapGetters
}
from
"vuex"
;
import
JsonEditor
from
"@/components/JsonEditor/index"
;
import
Xyjg
from
"./result"
;
import
{
getDetail
,
getXml
}
from
"@/api/sbbwcx.js"
;
import
{
MessageBox
}
from
"element-ui"
;
export
default
{
components
:
{
JsonEditor
},
components
:
{
JsonEditor
,
Xyjg
},
props
:
{
title
:
{
type
:
String
,
...
...
src/components/dataDetails/result.vue
0 → 100644
View file @
54d8d89
<!--
功能:结果
作者:calliope
-->
<
template
>
<div
class=
'result'
>
<p>
响应xml
</p>
<el-input
type=
"textarea"
:rows=
"6"
class=
"resulttext"
placeholder=
"请输入内容"
v-model=
"REPMSGXML"
>
</el-input>
<p>
错误信息
</p>
<el-input
type=
"textarea"
:rows=
"6"
class=
"resulttext"
placeholder=
"请输入内容"
v-model=
"ERRORINFO"
>
</el-input>
</div>
</
template
>
<
script
>
import
{
getReceiveDataReportResult
}
from
"@/api/sbbwcx.js"
;
export
default
{
components
:
{},
props
:
{
formData
:
{
type
:
Object
,
default
:
{}
}
},
data
()
{
return
{
REPMSGXML
:
''
,
ERRORINFO
:
''
,
}
},
created
()
{
getReceiveDataReportResult
(
this
.
formData
.
bsmReport
).
then
(
res
=>
{
let
data
=
res
.
result
this
.
REPMSGXML
=
data
.
REPMSGXML
this
.
ERRORINFO
=
data
.
ERRORINFO
})
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
@import
'~@/styles/public.scss'
;
.result
{
padding
:
15px
;
p
{
color
:
#ffffff
;
line-height
:
26px
;
font-size
:
18px
;
}
/
deep
/
.el-textarea__inner
{
min-height
:
33vh
!important
;
background-color
:
#08346F
!important
;
color
:
#ffffff
;
border
:
none
!important
;
}
}
</
style
>
src/views/jsbwcx/index.vue
View file @
54d8d89
...
...
@@ -185,9 +185,6 @@ export default {
>
详情
<
/el-button
>
<
el
-
button
type
=
"primary"
onClick
=
{()
=>
{
this
.
handleResult
(
scope
.
row
);
}}
>
结果
<
/el-button
>
<
/div
>
)
}
...
...
Please
register
or
sign in
to post a comment