Result.vue 1.07 KB
<!--
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-05-26 10:04:03
-->
<template>
  <div class='result'>
    <div class="result-con" style="margin-bottom: 15px;">
      <p>响应xml</p>
      <el-input type="textarea" disabled :rows="6" class="resulttext" v-model="REPMSGXML">
      </el-input>
    </div>
    <div class="result-con" style="margin-top: 15px;">
      <p>错误信息</p>
      <el-input type="textarea" disabled :rows="6" class="resulttext" v-model="ERRORINFO">
      </el-input>
    </div>
  </div>
</template>
<script>
  import { getReceiveDataReportResult } from "@/api/dataReport.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'>
</style>