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
69
70
71
72
73
74
75
76
77
78
79
80
81
<template>
  <div>
    <!-- 字段填充方式 -->
    <el-dialog
      title="提示"
      :visible.sync="dialogVisible"
      width="420px"
      append-to-body
      :close-on-click-modal="false"
      class="bs-dialog-wrap bs-el-dialog"
    >
      <p style="color:var(--bs-el-text);line-height: 24px;padding-left: 10px;display: flex;">
        <i
          class="el-icon-warning"
          style="color: #E6A23C;font-size: 24px;margin-right: 5px;"
        />
        存在字段描述信息为空,请确认
      </p>
      <span
        slot="footer"
        class="dialog-footer"
      >
        <el-button
          class="bs-el-button-default"
          @click="fieldDescFill"
        >
          使用字段名填充
        </el-button>
        <el-button
          class="bs-el-button-default"
          @click="fieldDescEdit"
        >
          进入编辑
        </el-button>
        <el-button
          type="primary"
          @click="toSave"
        >
          继续保存
        </el-button>
      </span>
    </el-dialog>
  </div>
</template>
 
<script>
export default {
  name: 'FieldFillDialog',
  data () {
    return {
      dialogVisible: false
    }
  },
  methods: {
    open () {
      this.dialogVisible = true
    },
    close () {
      this.dialogVisible = false
    },
    fieldDescFill () {
      this.$emit('fieldDescFill')
    },
    fieldDescEdit () {
      this.$emit('fieldDescEdit')
    },
    toSave () {
      this.$emit('toSave')
    }
  }
}
</script>
 
<style lang="scss" scoped>
@import '../../../assets/style/bsTheme.scss';
 
::v-deep .el-dialog__body {
    height: fit-content;
    min-height: unset;
}
</style>