pdfDialog.vue 2.61 KB
Newer Older
乐宝呗666's avatar
乐宝呗666 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
<template>
    <el-dialog
      :visible.sync="isShow"
      :close-on-click-modal="false"
      center
      @close="close"
      :modal-append-to-body=true
      append-to-body>
        <div>
            {{src}}
            <pdf :src="src"></pdf>
        </div>
    </el-dialog>
</template>

<script>
import pdf from 'vue-pdf'
export default {
  components: { pdf },
  props: ['src', 'isShow'],
  data () {
    return {
    }
  },
  mounted () {
  },
  methods: {
    // 关闭
    close () {
      this.$emit('update:isShow', false)
    }
  }
}
</script>
<style lang="scss" scoped>
    .el-dialog{
        width: 60vw;
        height: 60vh;
        background: url("~@/assets/img/dialogBg.png") rgba(0,14,66,0.8);
        background-size: 100% 100%;
        box-shadow:0px 0px 8px 4px rgba(10,18,35,0.5);
        .el-dialog__header{padding: 0;}
        .el-dialog__body{
            height: 100%;
            padding: 0;
        }
        .el-dialog__headerbtn {
            font-size: 24px;
            z-index: 1;
            .el-dialog__close{
                color: #30DDF4;
            }
        }
        .el-input__inner{
            background:rgba(144,224,255,0.15);
            border-radius:2px;
            border:1px solid rgba(119,226,255,1);
            color: #FFFFFF;
            font-size:12px;
            font-family:PingFang-SC-Bold,PingFang-SC;
            font-weight:bold;
        }
        .search{
          font-size:12px;
          font-family:PingFang-SC-Bold,PingFang-SC;
          font-weight:bold;
          width: 100%;
          height:.28rem;
          margin-top:.2rem;
          border-bottom:1px solid rgba(119,226,255,1);
          display: flex;
          .el-autocomplete{
            flex: 1;
            .el-input__inner{
              width: 100%;
              background:transparent;
              color: #FFFFFF;
              border: 0 !important;
            }
          }
        }
        .el-checkbox{
            float: left;
            margin:4px 0;
            width: calc(100% - 20px);
            padding-left: 20px;
            .el-checkbox__inner{
                background: #000E42;
                border: 1px solid #30DDF4;
            }
            .el-checkbox__label{
                height: 16px;
                font-size:14px;
                font-family:PingFang-SC-Regular,PingFang-SC;
                font-weight:400;
                color:rgba(255,255,255,1);
                line-height:16px
            }
            .el-checkbox__inner::after{
                border: 1px solid #30DDF4;
                border-left: 0;
                border-top: 0;
            }
        }
    }
</style>