😎优化代码生成
This commit is contained in:
parent
4d75942c5b
commit
03f3851bb4
@ -353,9 +353,9 @@ public class SysCodeGenService : IDynamicApiController, ITransient
|
|||||||
var entityInfos = new List<EntityInfo>();
|
var entityInfos = new List<EntityInfo>();
|
||||||
foreach (var ct in cosType)
|
foreach (var ct in cosType)
|
||||||
{
|
{
|
||||||
// 若实体贴[SysTable]特性,则禁止显示系统自带的
|
//// 若实体贴[SysTable]特性,则禁止显示系统自带的
|
||||||
if (ct.IsDefined(typeof(SysTableAttribute), false))
|
//if (ct.IsDefined(typeof(SysTableAttribute), false))
|
||||||
continue;
|
// continue;
|
||||||
|
|
||||||
var des = ct.GetCustomAttributes(typeof(DescriptionAttribute), false);
|
var des = ct.GetCustomAttributes(typeof(DescriptionAttribute), false);
|
||||||
var description = des.Length > 0 ? ((DescriptionAttribute)des[0]).Description : "";
|
var description = des.Length > 0 ? ((DescriptionAttribute)des[0]).Description : "";
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<template #header>
|
<template #header>
|
||||||
<div style="color: #fff">
|
<div style="color: #fff">
|
||||||
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"> <ele-Edit /> </el-icon>
|
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"> <ele-Edit /> </el-icon>
|
||||||
<span> 外键配置</span>
|
<span> 外键配置 </span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<el-form :model="state.ruleForm" ref="ruleFormRef" label-width="auto">
|
<el-form :model="state.ruleForm" ref="ruleFormRef" label-width="auto">
|
||||||
|
|||||||
@ -290,12 +290,12 @@ const effectTypeChange = (data: any, index: number) => {
|
|||||||
let value = data.effectType;
|
let value = data.effectType;
|
||||||
if (value === 'ForeignKey') {
|
if (value === 'ForeignKey') {
|
||||||
openFkDialog(data, index);
|
openFkDialog(data, index);
|
||||||
} else if (value === 'ApiTreeSelect') {
|
} else if (value === 'ApiTreeSelector') {
|
||||||
openTreeDialog(data, index);
|
openTreeDialog(data, index);
|
||||||
} else if (value === 'DictSelector') {
|
} else if (value === 'DictSelector') {
|
||||||
data.dictTypeCode = '';
|
data.dictTypeCode = '';
|
||||||
state.dictTypeCodeList = state.dictDataAll;
|
state.dictTypeCodeList = state.dictDataAll;
|
||||||
} else if (value === 'ApiTreeSelector') {
|
} else if (value === 'ConstSelector') {
|
||||||
data.dictTypeCode = '';
|
data.dictTypeCode = '';
|
||||||
state.dictTypeCodeList = state.allConstSelector;
|
state.dictTypeCodeList = state.allConstSelector;
|
||||||
} else if (value == 'EnumSelector') {
|
} else if (value == 'EnumSelector') {
|
||||||
@ -336,8 +336,7 @@ function judgeColumns(data: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function effectTypeEnable(data: any) {
|
function effectTypeEnable(data: any) {
|
||||||
var lst = ['Radio', 'Select', 'Checkbox', 'ConstSelector', 'EnumSelector'];
|
return !['Radio', 'Checkbox', 'DictSelector', 'ConstSelector', 'EnumSelector'].some((e: any) => e === data.effectType);
|
||||||
return lst.indexOf(data.effectType) === -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 打开弹窗
|
// 打开弹窗
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user