result.vue 1.27 KB
<!--
 * @Description:
 * @Autor: renchao
 * @LastEditTime: 2023-03-28 14:11:01
-->
<!--
  功能:结果
  作者:calliope
-->
<template>
  <div class='result'>
    <p>响应xml</p>
    <el-input type="textarea" :rows="6" class="resulttext" placeholder="响应xml" 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/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'>
  .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>