diff --git a/modules/Develop/views/generate/components/structure.vue b/modules/Develop/views/generate/components/structure.vue index a6e3bfb..80dd051 100644 --- a/modules/Develop/views/generate/components/structure.vue +++ b/modules/Develop/views/generate/components/structure.vue @@ -60,6 +60,20 @@ import { Delete } from '@element-plus/icons-vue' const generateStore = useGenerateStore() const structures = computed(() => { + generateStore.getStructures.forEach(struct => { + if (struct.field === 'id' || struct.field === 'created_at' || struct.field === 'updated_at') { + struct.form = false + } + + if (struct.field === 'sort') { + struct.form_component = 'input-number' + } + + if (struct.field === 'status') { + struct.form_component = 'select' + } + }) + return generateStore.getStructures }) diff --git a/modules/Develop/views/schema/steps/structure.vue b/modules/Develop/views/schema/steps/structure.vue index 9b9237f..b7672d6 100644 --- a/modules/Develop/views/schema/steps/structure.vue +++ b/modules/Develop/views/schema/steps/structure.vue @@ -88,14 +88,13 @@