阅行客电子档案
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.

66 lines
1.7 KiB

  1. <template>
  2. <el-dialog class="field-setting-dialog" :modal-append-to-body="false" :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu > 0" :title="crud.status.title">
  3. <div class="setting-dialog">
  4. <SettingForm ref="editForm" :is-disabled="false" :is-add="crud.status.add === 1" :this-fields="form" />
  5. <div slot="footer" class="dialog-footer">
  6. <el-button @click="crud.cancelCU">
  7. 取消
  8. </el-button>
  9. <el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">
  10. 确定
  11. </el-button>
  12. </div>
  13. </div>
  14. </el-dialog>
  15. </template>
  16. <script>
  17. import { form } from '@crud/crud'
  18. import SettingForm from '@/views/components/category/SettingForm'
  19. const defaultForm = {
  20. id: null,
  21. fieldName: null,
  22. fieldCnName: null,
  23. isDefaultValue: null,
  24. isInputClass: 'text',
  25. isDataType: null,
  26. isDataTypeDetails: null,
  27. isColumnLength: null,
  28. isColumnType: 1,
  29. isSequence: null,
  30. isType: 2,
  31. isSystem: true,
  32. isLine: false,
  33. isInput: true,
  34. isRequired: false,
  35. isAutomatic: false,
  36. isAdd: null,
  37. isSearch: null,
  38. isInherit: null,
  39. isFilling: false,
  40. fillingDigit: null,
  41. isRepeat: null,
  42. isDisplay: false,
  43. displayOrder: null,
  44. isDisplayformat: null,
  45. displayformatType: null,
  46. editLength: 196,
  47. displayLength: null,
  48. dictionaryConfigId: {
  49. id: null
  50. }
  51. }
  52. export default {
  53. components: { SettingForm },
  54. mixins: [
  55. form(function() {
  56. return Object.assign({ categoryId: this.$parent.selectedCategory.id }, defaultForm)
  57. })
  58. ],
  59. data() {
  60. return {
  61. }
  62. }
  63. }
  64. </script>