diff --git a/src/api/gen/template.ts b/src/api/gen/template.ts
index b3416426..c3dc98ed 100644
--- a/src/api/gen/template.ts
+++ b/src/api/gen/template.ts
@@ -15,6 +15,21 @@ export function list() {
});
}
+export function online() {
+ return request({
+ url: '/gen/template/online',
+ method: 'get',
+ });
+}
+
+export function checkVersion() {
+ return request({
+ url: '/gen/template/checkVersion',
+ method: 'get',
+ });
+}
+
+
export function addObj(obj?: Object) {
return request({
url: '/gen/template',
diff --git a/src/utils/validate.ts b/src/utils/validate.ts
index 5e38b9a0..0ef6de21 100644
--- a/src/utils/validate.ts
+++ b/src/utils/validate.ts
@@ -21,6 +21,13 @@ export const validateNull = (val: any) => {
};
export const rule = {
+ overLength(rule: any, value: any, callback: any) {
+ if (value?.length > 255) {
+ callback(new Error('输入内容过长,请重新输入'));
+ } else {
+ callback();
+ }
+ },
/**
* 校验 请输入中文、英文、数字包括下划线
* 名称校验
diff --git a/src/views/admin/dict/i18n/en.ts b/src/views/admin/dict/i18n/en.ts
index 7a75dc02..84954840 100644
--- a/src/views/admin/dict/i18n/en.ts
+++ b/src/views/admin/dict/i18n/en.ts
@@ -26,6 +26,7 @@ export default {
},
dictItem: {
index: '#',
+ name: 'dict item',
importsysDictItemTip: 'import SysDictItem',
id: 'id',
dictId: 'dictId',
diff --git a/src/views/admin/dict/i18n/zh-cn.ts b/src/views/admin/dict/i18n/zh-cn.ts
index dd9b9c69..a4cf25a4 100644
--- a/src/views/admin/dict/i18n/zh-cn.ts
+++ b/src/views/admin/dict/i18n/zh-cn.ts
@@ -29,6 +29,7 @@ export default {
},
dictItem: {
index: '#',
+ name: '字典项',
importsysDictItemTip: '导入字典项',
id: '编号',
dictId: ' dictId',
diff --git a/src/views/gen/datasource/form.vue b/src/views/gen/datasource/form.vue
index dd7881e2..783fe172 100644
--- a/src/views/gen/datasource/form.vue
+++ b/src/views/gen/datasource/form.vue
@@ -1,81 +1,85 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
diff --git a/src/views/gen/datasource/index.vue b/src/views/gen/datasource/index.vue
index 2e10bc59..0cf1fb10 100644
--- a/src/views/gen/datasource/index.vue
+++ b/src/views/gen/datasource/index.vue
@@ -4,13 +4,13 @@
-
+
{{ $t('common.queryBtn') }}
- {{ $t('common.resetBtn') }}
+ {{ $t('common.resetBtn') }}
diff --git a/src/views/gen/design/form.vue b/src/views/gen/design/form.vue
new file mode 100644
index 00000000..3b1652cb
--- /dev/null
+++ b/src/views/gen/design/form.vue
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+ 回滚
+ 删除
+
+
+
+
+
+
+
+
diff --git a/src/views/gen/design/index.vue b/src/views/gen/design/index.vue
new file mode 100644
index 00000000..370d93b7
--- /dev/null
+++ b/src/views/gen/design/index.vue
@@ -0,0 +1,132 @@
+
+
+
+
+
+ 保存
+ 导出
+ 历史
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gen/field-type/form.vue b/src/views/gen/field-type/form.vue
index 1131f155..86540aef 100644
--- a/src/views/gen/field-type/form.vue
+++ b/src/views/gen/field-type/form.vue
@@ -1,33 +1,32 @@
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
-
+
+
diff --git a/src/views/gen/gener/index.vue b/src/views/gen/gener/index.vue
index 6a9bde84..7bca2175 100644
--- a/src/views/gen/gener/index.vue
+++ b/src/views/gen/gener/index.vue
@@ -2,16 +2,16 @@
-
-
+
+
-
+
-
+
下一步
@@ -22,17 +22,17 @@
-
+
diff --git a/src/views/gen/table/add-dict.vue b/src/views/gen/table/add-dict.vue
new file mode 100644
index 00000000..c82223ef
--- /dev/null
+++ b/src/views/gen/table/add-dict.vue
@@ -0,0 +1,151 @@
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gen/table/edit.vue b/src/views/gen/table/edit.vue
index a7d7d4ba..40446ed7 100644
--- a/src/views/gen/table/edit.vue
+++ b/src/views/gen/table/edit.vue
@@ -2,10 +2,11 @@
-
+
-
+
@@ -23,21 +24,25 @@
-
+
-
+
-
+
-
-
+
+
+
+
+
@@ -50,30 +55,33 @@
-
+
-
+
-
+
-
+
-
+
@@ -86,38 +94,44 @@
-
+
-
+
-
+
-
+
+
+
+
diff --git a/src/views/gen/table/preview.vue b/src/views/gen/table/preview.vue
index 2ef80131..d964e63e 100644
--- a/src/views/gen/table/preview.vue
+++ b/src/views/gen/table/preview.vue
@@ -1,33 +1,33 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/gen/template/form.vue b/src/views/gen/template/form.vue
index 05ffa80f..b3e61ff5 100644
--- a/src/views/gen/template/form.vue
+++ b/src/views/gen/template/form.vue
@@ -1,33 +1,33 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
+
diff --git a/src/views/gen/template/index.vue b/src/views/gen/template/index.vue
index ddc6e826..8ac7b7e8 100644
--- a/src/views/gen/template/index.vue
+++ b/src/views/gen/template/index.vue
@@ -1,92 +1,101 @@
-
-
-
-
-
-
-
-
-
- {{ $t('common.queryBtn') }}
-
- {{ $t('common.resetBtn') }}
-
-
-
-
-
-
- {{ $t('common.addBtn') }}
-
-
- {{ $t('common.delBtn') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('common.editBtn') }}
-
- {{ $t('common.delBtn') }}
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ $t('common.queryBtn') }}
+
+ {{ $t('common.resetBtn') }}
+
+
+
+
+
+
+ {{ $t('common.addBtn') }}
+
+
+ {{ $t('common.delBtn') }}
+
+
+ 更新
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('common.editBtn') }}
+
+ {{ $t('common.delBtn') }}
+
+
+
+
+
+
-
-
-
+
+
+