mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-07 18:30:55 +00:00
refactor(gencode): 统一属性命名规范并优化代码结构
将表字段属性从驼峰式改为下划线式命名 调整组件属性顺序以保持一致性 优化API调用和数据响应处理
This commit is contained in:
@@ -102,7 +102,7 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="24" v-if="info.genType == '1'">
|
||||
<el-col v-if="info.genType == '1'" :span="24">
|
||||
<el-form-item prop="genPath">
|
||||
<template #label>
|
||||
自定义路径
|
||||
@@ -261,7 +261,7 @@ const rules = ref({
|
||||
functionName: [{ required: true, message: "请输入生成功能名", trigger: "blur" }]
|
||||
});
|
||||
|
||||
function subSelectChange(value) {
|
||||
function subSelectChange() {
|
||||
props.info.subTableFkName = "";
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ function tplSelectChange(value) {
|
||||
}
|
||||
|
||||
function setSubTableColumns(value) {
|
||||
for (var item in props.tables) {
|
||||
for (const item in props.tables) {
|
||||
const name = props.tables[item].tableName;
|
||||
if (value === name) {
|
||||
subColumns.value = props.tables[item].columns;
|
||||
|
||||
Reference in New Issue
Block a user