xml响应结果
Showing
3 changed files
with
68 additions
and
5 deletions
... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
8 | <el-tabs v-model="titleName" type="card" @tab-click="handleTitleTab"> | 8 | <el-tabs v-model="titleName" type="card" @tab-click="handleTitleTab"> |
9 | <el-tab-pane label="数据模型" name="sjmx"></el-tab-pane> | 9 | <el-tab-pane label="数据模型" name="sjmx"></el-tab-pane> |
10 | <el-tab-pane label="xml报文" name="xml"></el-tab-pane> | 10 | <el-tab-pane label="xml报文" name="xml"></el-tab-pane> |
11 | <el-tab-pane label="响应结果" name="xyjg"></el-tab-pane> | ||
11 | </el-tabs> | 12 | </el-tabs> |
12 | <div v-if="titleName == 'sjmx'" class="sjmx"> | 13 | <div v-if="titleName == 'sjmx'" class="sjmx"> |
13 | <div class="dialog-from"> | 14 | <div class="dialog-from"> |
... | @@ -99,7 +100,10 @@ | ... | @@ -99,7 +100,10 @@ |
99 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport" /> | 100 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport" /> |
100 | </div> | 101 | </div> |
101 | </div> | 102 | </div> |
102 | <JsonEditor :resultInfo="resultInfo" v-else /> | 103 | <div v-if="titleName == 'xyjg'"> |
104 | <Xyjg :form-data = 'dataReport'></Xyjg> | ||
105 | </div> | ||
106 | <JsonEditor :resultInfo="resultInfo" v-if="titleName == 'xml'" /> | ||
103 | <!-- <div slot="footer" class="dialog_footer" ref="dialogFooter"> | 107 | <!-- <div slot="footer" class="dialog_footer" ref="dialogFooter"> |
104 | <div class="dialog_button"> | 108 | <div class="dialog_button"> |
105 | <el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding">确定 | 109 | <el-button type="primary" plain @click="submitForm" v-if="!Edit" :loading="saveloding">确定 |
... | @@ -113,10 +117,11 @@ | ... | @@ -113,10 +117,11 @@ |
113 | <script> | 117 | <script> |
114 | import { mapGetters } from "vuex"; | 118 | import { mapGetters } from "vuex"; |
115 | import JsonEditor from "@/components/JsonEditor/index"; | 119 | import JsonEditor from "@/components/JsonEditor/index"; |
120 | import Xyjg from "./result"; | ||
116 | import { getDetail, getXml } from "@/api/sbbwcx.js"; | 121 | import { getDetail, getXml } from "@/api/sbbwcx.js"; |
117 | import { MessageBox } from "element-ui"; | 122 | import { MessageBox } from "element-ui"; |
118 | export default { | 123 | export default { |
119 | components: { JsonEditor }, | 124 | components: { JsonEditor, Xyjg }, |
120 | props: { | 125 | props: { |
121 | title: { | 126 | title: { |
122 | type: String, | 127 | type: String, | ... | ... |
src/components/dataDetails/result.vue
0 → 100644
1 | <!-- | ||
2 | 功能:结果 | ||
3 | 作者:calliope | ||
4 | --> | ||
5 | <template> | ||
6 | <div class='result'> | ||
7 | <p>响应xml</p> | ||
8 | <el-input type="textarea" :rows="6" class="resulttext" placeholder="请输入内容" v-model="REPMSGXML"> | ||
9 | </el-input> | ||
10 | <p>错误信息</p> | ||
11 | <el-input type="textarea" :rows="6" class="resulttext" placeholder="请输入内容" v-model="ERRORINFO"> | ||
12 | </el-input> | ||
13 | </div> | ||
14 | </template> | ||
15 | <script> | ||
16 | import { getReceiveDataReportResult } from "@/api/sbbwcx.js"; | ||
17 | export default { | ||
18 | components: {}, | ||
19 | props: { | ||
20 | formData: { | ||
21 | type: Object, | ||
22 | default: {} | ||
23 | } | ||
24 | }, | ||
25 | data () { | ||
26 | return { | ||
27 | REPMSGXML: '', | ||
28 | ERRORINFO: '', | ||
29 | } | ||
30 | }, | ||
31 | created () { | ||
32 | getReceiveDataReportResult(this.formData.bsmReport).then(res => { | ||
33 | let data = res.result | ||
34 | this.REPMSGXML = data.REPMSGXML | ||
35 | this.ERRORINFO = data.ERRORINFO | ||
36 | }) | ||
37 | } | ||
38 | } | ||
39 | </script> | ||
40 | <style scoped lang='scss'> | ||
41 | @import '~@/styles/public.scss'; | ||
42 | |||
43 | .result { | ||
44 | padding: 15px; | ||
45 | |||
46 | p { | ||
47 | color: #ffffff; | ||
48 | line-height: 26px; | ||
49 | font-size: 18px; | ||
50 | } | ||
51 | |||
52 | /deep/.el-textarea__inner { | ||
53 | min-height: 33vh !important; | ||
54 | background-color: #08346F !important; | ||
55 | color: #ffffff; | ||
56 | border: none !important; | ||
57 | } | ||
58 | |||
59 | } | ||
60 | |||
61 | </style> |
-
Please register or sign in to post a comment