😎清理无效代码(待完善)
This commit is contained in:
parent
69b1052474
commit
8d9dfe73cd
@ -46,7 +46,7 @@
|
||||
<PackageReference Include="SSH.NET" Version="2024.2.0" />
|
||||
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.5.1" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1144" />
|
||||
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1145" />
|
||||
<PackageReference Include="UAParser" Version="3.1.47" />
|
||||
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -68,6 +68,8 @@ public class CustomViewEngine : ViewEngineModel
|
||||
|
||||
private List<ColumnOuput> ColumnList { get; set; }
|
||||
|
||||
public List<TableUniqueConfigItem> TableUniqueConfigList { get; set; }
|
||||
|
||||
public string GetColumnNetType(object tbName, object colName)
|
||||
{
|
||||
if (tbName == null || colName == null) return null;
|
||||
|
||||
@ -582,6 +582,7 @@ public class SysCodeGenService : IDynamicApiController, ITransient
|
||||
ClassName = input.TableName!, // 类名称
|
||||
PagePath = input.PagePath!, // 页面目录
|
||||
ProjectLastName = input.NameSpace!.Split('.').Last(), // 项目最后个名称,生成的时候赋值
|
||||
TableUniqueConfigList = input.TableUniqueList ?? new(), // 唯一字段列表
|
||||
QueryWhetherList = queryWhetherList, // 查询条件
|
||||
TableField = tableFieldList, // 表字段配置信息
|
||||
IsJoinTable = joinTableList.Count > 0,//是否联表
|
||||
|
||||
@ -166,7 +166,8 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-divider border-style="dashed" content-position="center">
|
||||
|
||||
<!-- <el-divider border-style="dashed" content-position="center">
|
||||
<div style="color: #b1b3b8">数据唯一性配置</div>
|
||||
</el-divider>
|
||||
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
||||
@ -203,7 +204,7 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-tab-pane>
|
||||
@ -384,7 +385,7 @@ const cancel = () => {
|
||||
|
||||
// 提交
|
||||
const submit = () => {
|
||||
//检查是否选中有模板
|
||||
// 检查是否选中有模板
|
||||
if (multipleSelection.value.length == 0) {
|
||||
ElMessage({
|
||||
message: `请选择模板`,
|
||||
@ -393,6 +394,7 @@ const submit = () => {
|
||||
activeTab.value = 'template';
|
||||
return;
|
||||
}
|
||||
|
||||
let codeGenTemplateIds: any[] = [];
|
||||
multipleSelection.value.forEach((item: any) => {
|
||||
codeGenTemplateIds.push(item.id);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user