zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
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
<template>
  <div class="fail">
    <el-dialog
      title=""
      :visible.sync="failVisible"
      width="850px"
      center
      :close-on-click-modal='false'
      @close="cancel">
      <div class="message">
        <img src="../../../assets/images/fail.png" alt="">
        <p>提交失败</p>
        <p v-html="reason">{{reason}}</p>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button size="small" plain @click="cancel">确定</el-button>
      </span>
    </el-dialog>
  </div>
</template>
<script>
import { getStorage } from '@/utils/storage'
export default {
  props:['visible','reason'],
  data () {
    return {
      
    }
  },
  computed: {
    failVisible:{
      get(){
        return this.visible
      },
      set(){}
    }
  },
  methods: {
    cancel(){
      this.$emit('closeDialog',false)
    }
  }
}
</script>
<style lang="stylus">
.fail
  .message
    padding-top 40px
    text-align center
    >p
      margin 0
      padding 0
      height auto
      &:nth-child(2)
        font-size 18px
        line-height 22px
        font-weight 500
        color #222222
        margin-bottom 30px
      &:last-child
        padding 20px 18px
        font-size 14px
        color #555555
        background-color #F9F9F9
        border-radius:4px;
        text-align left
    img 
      width:68px
      height 68px
      margin-bottom 12px
  .el-dialog__header
    padding:0
    .el-dialog__headerbtn
      top:12px
  .el-dialog__body
    padding 10px 20px 20px
  .el-dialog__footer
    .el-button
      width 120px
</style>