新增代码生成详情页功能

This commit is contained in:
RuoYi
2026-04-12 09:58:40 +08:00
parent 0afa578310
commit 5e17bce1a0
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -55,6 +55,7 @@ declare global {
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const resolveComponent: typeof import('vue')['resolveComponent']
const selectDictLabel: typeof import('@/utils/ruoyi')['selectDictLabel']
const setActivePinia: typeof import('pinia')['setActivePinia']
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
const shallowReactive: typeof import('vue')['shallowReactive']
@@ -70,6 +71,7 @@ declare global {
const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: typeof import('vue')['useCssVars']
const useDict: typeof import('@/utils/dict')['useDict']
const useId: typeof import('vue')['useId']
const useLink: typeof import('vue-router')['useLink']
const useModel: typeof import('vue')['useModel']
+1
View File
@@ -149,6 +149,7 @@ function submitForm(): void {
const genTable = Object.assign({}, info.value)
genTable.columns = columns.value
genTable.params = {
genView: info.value.view ? '1' : '0',
treeCode: info.value.treeCode,
treeName: info.value.treeName,
treeParentCode: info.value.treeParentCode,
+8 -1
View File
@@ -71,7 +71,7 @@
</el-form-item>
</el-col>
<el-col :span="24">
<el-col :span="12">
<el-form-item prop="formColNum">
<template #label>
表单布局
@@ -87,6 +87,13 @@
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="genView">
<template #label>扩展功能</template>
<el-checkbox v-model="info.view">生成详情页</el-checkbox>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="genType">
<template #label>