💄 修改表单宽度.

This commit is contained in:
lijiahang
2024-03-13 17:23:42 +08:00
parent 81ae46c181
commit 149e5bc40c
19 changed files with 131 additions and 92 deletions

View File

@@ -10,7 +10,6 @@ import com.orion.ops.framework.mybatis.core.generator.template.Table;
import com.orion.ops.framework.mybatis.core.generator.template.Template;
import java.io.File;
import java.util.concurrent.TimeUnit;
/**
* 代码生成器
@@ -45,10 +44,28 @@ public class CodeGenerators {
// .color("blue", "gray", "red", "green", "white")
// .valueUseFields()
// .build(),
Template.create("exec_host_log", "批量执行主机日志", "exec")
Template.create("exec_log", "执行记录", "exec")
.disableUnitTest()
.vue("exec", "exec-log-exec")
.enableDrawerForm()
.vue("exec", "exec-log")
.enableRowSelection()
.dict("execLogStatus", "status")
.keyName("execStatus")
.field("execStatus")
.fields("WAITING", "RUNNING", "COMPLETED", "FAILED")
.labels("等待中", "运行中", "执行完成", "执行失败")
.color("gray", "green", "arcoblue", "red")
.valueUseFields()
.build(),
Template.create("exec_host_log", "主机执行记录", "exec")
.disableUnitTest()
.vue("exec", "exec-host-log")
.dict("execHostLogStatus", "status")
.keyName("execHostStatus")
.field("execHostStatus")
.fields("WAITING", "RUNNING", "COMPLETED", "FAILED", "INTERRUPTED")
.labels("等待中", "运行中", "执行完成", "执行失败", "已中断")
.color("gray", "green", "arcoblue", "red", "purple")
.valueUseFields()
.build(),
};
// jdbc 配置 - 使用配置文件

View File

@@ -8,7 +8,7 @@
@keyup.enter="() => fetchTableData()">
#foreach($field in ${table.fields})
<!-- $field.comment -->
<a-form-item field="${field.propertyName}" label="${field.comment}" label-col-flex="50px">
<a-form-item field="${field.propertyName}" label="${field.comment}">
#if(${dictMap.containsKey(${field.propertyName})})
<a-select v-model="formModel.${field.propertyName}"
:options="toOptions($dictMap.get(${field.propertyName}).keyField)"
@@ -96,7 +96,7 @@
#if(${dictMap.containsKey(${field.propertyName})})
<!-- $field.comment -->
<template #${field.propertyName}="{ record }">
{{ getDictValue($dictMap.get(${field.propertyName}).keyField, record.${field.propertyName}}) }}
{{ getDictValue($dictMap.get(${field.propertyName}).keyField, record.${field.propertyName}) }}
</template>
#end
#end