阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.5 KiB

2 years ago
  1. <template>
  2. <!--新增 / 编辑 表单组件-->
  3. <el-dialog class="preview-dialog" :modal-append-to-body="false" :close-on-click-modal="false" :before-close="handleClose" :visible="formVisible" :title="formTitle">
  4. <span class="dialog-right-top" />
  5. <span class="dialog-left-bottom" />
  6. <div class="setting-dialog">
  7. <!-- form -->
  8. <!-- <PreviewForm ref="previewForm" :form-preview-data.sync="formPreviewData" :selected-category="selectedCategory" :parents-id="parentsId" :arc-id="arcId" :is-des-form-type="isDesFormType" @emitTableList="getTableList" /> -->
  9. <div slot="footer" class="dialog-footer">
  10. <!-- :loading="crud.status.cu === 2" -->
  11. <el-button type="text" @click="formVisible = false">取消</el-button>
  12. <el-button type="primary" @click="formVisible = false">确定</el-button>
  13. </div>
  14. </div>
  15. </el-dialog>
  16. </template>
  17. <script>
  18. // import PreviewForm from '@/views/components/category/PreviewForm'
  19. export default {
  20. // components: { PreviewForm },
  21. data() {
  22. return {
  23. formVisible: false,
  24. formTitle: '新增文件',
  25. loading: false
  26. }
  27. },
  28. methods: {
  29. handleClose(done) {
  30. done()
  31. },
  32. save() {
  33. // this.loading = true
  34. // if (this.title === '新增文件') {
  35. // const addData = this.formData.fields.map((item) => {
  36. // return {
  37. // dictionaryId: item.id,
  38. // fieldName: item.fieldName,
  39. // fieldCnName: item.fieldCnName,
  40. // connector: item.connector,
  41. // categoryId: item.categoryId
  42. // }
  43. // })
  44. // add(addData).then((res) => {
  45. // this.$message({
  46. // message: '保存成功',
  47. // type: 'success',
  48. // duration: 2500
  49. // })
  50. // this.cuDialogVisible = false
  51. // this.loading = false
  52. // this.$emit('refresh')
  53. // })
  54. // } else {
  55. // edit(this.formData.fields).then((res) => {
  56. // this.$message({
  57. // message: '保存成功',
  58. // type: 'success',
  59. // duration: 2500
  60. // })
  61. // this.cuDialogVisible = false
  62. // this.loading = false
  63. // this.$emit('refresh')
  64. // })
  65. // }
  66. }
  67. }
  68. }
  69. </script>
  70. <style rel="stylesheet/scss" lang="scss" scoped>
  71. .fields-list {
  72. max-height: calc(100vh - 312px);
  73. overflow-x: hidden;
  74. overflow-y: auto;
  75. position: relative;
  76. }
  77. </style>