feat: 主机连接记录.

This commit is contained in:
lijiahangmax
2023-12-26 23:47:34 +08:00
parent c0982bfc2c
commit 459002f666
25 changed files with 943 additions and 7 deletions

View File

@@ -27,7 +27,7 @@ public class CodeGenerators {
// 作者
String author = Const.ORION_AUTHOR;
// 模块
String module = "infra";
String module = "asset";
// 生成的表
Table[] tables = {
// Template.create("dict_key", "字典配置项", "dict")
@@ -45,9 +45,9 @@ public class CodeGenerators {
// .color("blue", "gray", "red", "green", "white")
// .valueUseFields()
// .build(),
Template.create("data_extra", "数据拓展信息", "data")
Template.create("host_connect_log", "主机连接日志", "host")
.disableUnitTest()
.enableProviderApi()
.vue("asset", "host-connect-log")
.build(),
};
// jdbc 配置 - 使用配置文件

View File

@@ -141,7 +141,7 @@ public class DictTemplate extends Template {
*/
public DictTemplate extra(String key, Object... values) {
// 初始化额外值
if (dictMeta.extraValues.size() == 0) {
if (dictMeta.extraValues.isEmpty()) {
for (int i = 0; i < dictMeta.fields.size(); i++) {
dictMeta.extraValues.add(new LinkedHashMap<>());
}

View File

@@ -56,7 +56,7 @@
import { useAppStore } from '@/store';
#end
#else
import { ref } from 'vue';
import { ref, onBeforeMount } from 'vue';
#if($dictMap.entrySet().size() > 0)
import { useDictStore } from '@/store';
import { dictKeys } from './types/const';