234681e2 by 任超
2 parents fe32fb49 202ba23b
...@@ -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,
...@@ -169,6 +174,7 @@ export default { ...@@ -169,6 +174,7 @@ export default {
169 }, 174 },
170 isShow (item) { 175 isShow (item) {
171 this.dataReport = item; 176 this.dataReport = item;
177 this.titleName = 'sjmx';
172 this.dialogVisible = true; 178 this.dialogVisible = true;
173 //获取表头列表 179 //获取表头列表
174 getDetail({ bsmReport: this.dataReport.bsmReport }).then((res) => { 180 getDetail({ bsmReport: this.dataReport.bsmReport }).then((res) => {
......
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>
...@@ -185,9 +185,6 @@ export default { ...@@ -185,9 +185,6 @@ export default {
185 > 185 >
186 详情 186 详情
187 </el-button> 187 </el-button>
188 <el-button type="primary" onClick={() => {
189 this.handleResult(scope.row);
190 }}>结果</el-button>
191 </div> 188 </div>
192 ) 189 )
193 } 190 }
......