FieldFillDialog.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <div>
  3. <!-- 字段填充方式 -->
  4. <el-dialog
  5. title="提示"
  6. :visible.sync="dialogVisible"
  7. width="420px"
  8. append-to-body
  9. :close-on-click-modal="false"
  10. class="bs-dialog-wrap bs-el-dialog"
  11. >
  12. <p style="color:var(--bs-el-text);line-height: 24px;padding-left: 10px;display: flex;">
  13. <i
  14. class="el-icon-warning"
  15. style="color: #E6A23C;font-size: 24px;margin-right: 5px;"
  16. />
  17. 存在字段描述信息为空,请确认
  18. </p>
  19. <span
  20. slot="footer"
  21. class="dialog-footer"
  22. >
  23. <el-button
  24. class="bs-el-button-default"
  25. @click="fieldDescFill"
  26. >
  27. 使用字段名填充
  28. </el-button>
  29. <el-button
  30. class="bs-el-button-default"
  31. @click="fieldDescEdit"
  32. >
  33. 进入编辑
  34. </el-button>
  35. <el-button
  36. type="primary"
  37. @click="toSave"
  38. >
  39. 继续保存
  40. </el-button>
  41. </span>
  42. </el-dialog>
  43. </div>
  44. </template>
  45. <script>
  46. export default {
  47. name: 'FieldFillDialog',
  48. data () {
  49. return {
  50. dialogVisible: false
  51. }
  52. },
  53. methods: {
  54. open () {
  55. this.dialogVisible = true
  56. },
  57. close () {
  58. this.dialogVisible = false
  59. },
  60. fieldDescFill () {
  61. this.$emit('fieldDescFill')
  62. },
  63. fieldDescEdit () {
  64. this.$emit('fieldDescEdit')
  65. },
  66. toSave () {
  67. this.$emit('toSave')
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. @import '../../../packages/assets/style/bsTheme.scss';
  74. ::v-deep .el-dialog__body {
  75. height: fit-content;
  76. min-height: unset;
  77. }
  78. </style>