Blame view

src/components/EditDialog/Result.vue 1.67 KB
yangwei committed
1
<!--
任超 committed
2 3 4
 * @Description: 
 * @Autor: renchao
 * @LastEditTime: 2023-03-13 11:09:01
yangwei committed
5 6 7
-->
<template>
  <div class='result'>
任超 committed
8 9 10 11 12 13 14 15 16 17
    <div class="result-con" style="margin-bottom: 15px;">
      <p>响应xml</p>
      <el-input type="textarea" disabled :rows="6" class="resulttext" placeholder="响应xml" 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" placeholder="错误信息" v-model="ERRORINFO">
      </el-input>
    </div>
yangwei committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
  </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'>
@import '~@/styles/public.scss';

任超 committed
48

yangwei committed
49 50
.result {
  padding: 15px;
51
  height: 100%;
yangwei committed
52 53

  /deep/.el-textarea__inner {
任超 committed
54
    height: 30vh !important;
yangwei committed
55 56
    color: #ffffff;
    border: none !important;
任超 committed
57
    color: #ffffff;
yangwei committed
58 59
  }

任超 committed
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
  &-con {
    background: #04275B;
    border-radius: 2px;
    padding: 10px;
    box-sizing: border-box;

    p {
      color: #2997E8;
      font-size: 14px;
      position: relative;
      padding-left: 10px;
    }

    p::before {
      position: absolute;
      content: '';
      width: 3px;
      height: 10px;
      background-color: #2997E8;
      left: 0;
      top: 3px;
    }
  }
yangwei committed
83 84
}
</style>