3328350766
6 天以前 761eb03d6b3bebd0b197179564c84d89d3d12a0d
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
<template>
  <el-dialog
    width="700px"
    title="提示"
    :visible.sync="checkDatasourceVisible"
    :append-to-body="true"
    :close-on-click-modal="false"
    :before-close="handleClose"
    class="bs-dialog-wrap bs-el-dialog"
  >
    <div class="text-style">
      <div
        v-for="(item,index) in reasonList"
        :key="index"
        class="item"
      >
        <span v-if="reasonList.length>1"> {{ index+1 }}、</span>{{ item }}
      </div>
    </div>
    <span
      slot="footer"
      class="dialog-footer"
    >
      <el-button
        type="primary"
        @click="handleClose"
      >
        确定
      </el-button>
    </span>
  </el-dialog>
</template>
 
<script>
export default {
  props: {
    reasonList: {
      type: Array,
      default: () => []
    }
  },
  data () {
    return {
      checkDatasourceVisible: false
    }
  },
  methods: {
    handleClose () {
      this.checkDatasourceVisible = false
    }
 
  }
}
</script>
 
<style lang="scss" scoped>
@import '../../assets/style/bsTheme.scss';
::v-deep .el-dialog__body{
  min-height: 0 !important;
}
.item{
  padding: 8px 0;
}
.text-style{
  padding-right: 80px;
  color: var(--bs-el-text);
}
</style>