a9946e26 by 任超

style:响应结果

1 parent f375ead6
...@@ -49,3 +49,13 @@ export function getDetail (params) { ...@@ -49,3 +49,13 @@ export function getDetail (params) {
49 }) 49 })
50 } 50 }
51 51
52 // 结果
53 export function getReceiveDataReportResult (bsmReport) {
54 return request({
55 url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getReceiveDataReportResult',
56 method: 'get',
57 params: {
58 bsmReport: bsmReport
59 }
60 })
61 }
...\ No newline at end of file ...\ No newline at end of file
......
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
53 /deep/.el-textarea__inner {
54 min-height: 33vh !important;
55 background-color: #08346F !important;
56 color: #ffffff;
57 border: none !important;
58 }
59 </style>
...\ No newline at end of file ...\ No newline at end of file
...@@ -185,7 +185,9 @@ export default { ...@@ -185,7 +185,9 @@ export default {
185 > 185 >
186 详情 186 详情
187 </el-button> 187 </el-button>
188 <el-button type="primary">结果</el-button> 188 <el-button type="primary" onClick={() => {
189 this.handleResult(scope.row);
190 }}>结果</el-button>
189 </div> 191 </div>
190 ) 192 )
191 } 193 }
...@@ -226,6 +228,10 @@ export default { ...@@ -226,6 +228,10 @@ export default {
226 featchData () { 228 featchData () {
227 this.pageData.currentPage = 1 229 this.pageData.currentPage = 1
228 this.queryClick(); 230 this.queryClick();
231 },
232 // 结果
233 handleResult (row) {
234 this.$popupDialog('响应结果', 'views/jsbwcx/components/result', row)
229 } 235 }
230 } 236 }
231 } 237 }
......
...@@ -86,9 +86,9 @@ export default { ...@@ -86,9 +86,9 @@ export default {
86 methods: { 86 methods: {
87 // 初始化数据 87 // 初始化数据
88 queryClick () { 88 queryClick () {
89 this.$startLoading(); 89 // this.$startLoading();
90 getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => { 90 getQlxxDictList({ ...this.ruleForm, ...this.pageData }).then(res => {
91 this.$endLoading(); 91 // this.$endLoading();
92 let { records, total } = res.result 92 let { records, total } = res.result
93 this.tableData.data = records ? records : [] 93 this.tableData.data = records ? records : []
94 this.tableData.total = total ? total : 0 94 this.tableData.total = total ? total : 0
......