mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-22 13:26:39 +08:00
v3.28.1 [前端代码生成 字段类型适配前端组件]
This commit is contained in:
parent
63ef235b95
commit
686f6ac9a3
@ -25,6 +25,7 @@ JavaTypeMap.set('blob', 'String');
|
|||||||
JavaTypeMap.set('date', 'LocalDate');
|
JavaTypeMap.set('date', 'LocalDate');
|
||||||
JavaTypeMap.set('datetime', 'LocalDateTime');
|
JavaTypeMap.set('datetime', 'LocalDateTime');
|
||||||
JavaTypeMap.set('timestamp', 'LocalDateTime');
|
JavaTypeMap.set('timestamp', 'LocalDateTime');
|
||||||
|
JavaTypeMap.set('timestamp without time zone', 'LocalDateTime');
|
||||||
|
|
||||||
export const JavaTypeList = [
|
export const JavaTypeList = [
|
||||||
'Boolean', //
|
'Boolean', //
|
||||||
@ -67,6 +68,7 @@ JsTypeMap.set('blob', 'String');
|
|||||||
JsTypeMap.set('date', 'Date');
|
JsTypeMap.set('date', 'Date');
|
||||||
JsTypeMap.set('datetime', 'Date');
|
JsTypeMap.set('datetime', 'Date');
|
||||||
JsTypeMap.set('timestamp', 'Date');
|
JsTypeMap.set('timestamp', 'Date');
|
||||||
|
JsTypeMap.set('timestamp without time zone', 'Date');
|
||||||
|
|
||||||
export const JsTypeList = [
|
export const JsTypeList = [
|
||||||
'Boolean', //
|
'Boolean', //
|
||||||
@ -106,6 +108,7 @@ FrontComponentMap.set('longtext', 'Textarea');
|
|||||||
FrontComponentMap.set('blob', 'FileUpload');
|
FrontComponentMap.set('blob', 'FileUpload');
|
||||||
FrontComponentMap.set('date', 'Date');
|
FrontComponentMap.set('date', 'Date');
|
||||||
FrontComponentMap.set('datetime', 'DateTime');
|
FrontComponentMap.set('datetime', 'DateTime');
|
||||||
|
FrontComponentMap.set('timestamp without time zone', 'DateTime');
|
||||||
|
|
||||||
export function getFrontComponent(dataType) {
|
export function getFrontComponent(dataType) {
|
||||||
return FrontComponentMap.get(dataType);
|
return FrontComponentMap.get(dataType);
|
||||||
|
@ -25,6 +25,7 @@ JavaTypeMap.set('blob', 'String');
|
|||||||
JavaTypeMap.set('date', 'LocalDate');
|
JavaTypeMap.set('date', 'LocalDate');
|
||||||
JavaTypeMap.set('datetime', 'LocalDateTime');
|
JavaTypeMap.set('datetime', 'LocalDateTime');
|
||||||
JavaTypeMap.set('timestamp', 'LocalDateTime');
|
JavaTypeMap.set('timestamp', 'LocalDateTime');
|
||||||
|
JavaTypeMap.set('timestamp without time zone', 'LocalDateTime');
|
||||||
|
|
||||||
export const JavaTypeList = [
|
export const JavaTypeList = [
|
||||||
'Boolean', //
|
'Boolean', //
|
||||||
@ -67,6 +68,7 @@ JsTypeMap.set('blob', 'String');
|
|||||||
JsTypeMap.set('date', 'Date');
|
JsTypeMap.set('date', 'Date');
|
||||||
JsTypeMap.set('datetime', 'Date');
|
JsTypeMap.set('datetime', 'Date');
|
||||||
JsTypeMap.set('timestamp', 'Date');
|
JsTypeMap.set('timestamp', 'Date');
|
||||||
|
JsTypeMap.set('timestamp without time zone', 'Date');
|
||||||
|
|
||||||
export const JsTypeList = [
|
export const JsTypeList = [
|
||||||
'Boolean', //
|
'Boolean', //
|
||||||
@ -106,6 +108,7 @@ FrontComponentMap.set('longtext', 'Textarea');
|
|||||||
FrontComponentMap.set('blob', 'FileUpload');
|
FrontComponentMap.set('blob', 'FileUpload');
|
||||||
FrontComponentMap.set('date', 'Date');
|
FrontComponentMap.set('date', 'Date');
|
||||||
FrontComponentMap.set('datetime', 'DateTime');
|
FrontComponentMap.set('datetime', 'DateTime');
|
||||||
|
FrontComponentMap.set('timestamp without time zone', 'DateTime');
|
||||||
|
|
||||||
export function getFrontComponent(dataType) {
|
export function getFrontComponent(dataType) {
|
||||||
return FrontComponentMap.get(dataType);
|
return FrontComponentMap.get(dataType);
|
||||||
|
@ -1,9 +1,15 @@
|
|||||||
### 数据库脚本
|
### 数据库支持
|
||||||
默认数据库为Mysql,若为其他数据库,请关注:[SmartAdmin其他数据库](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
#### 第一次
|
序号| 数据库 | 类型 | 支持 | 下载
|
||||||
如果是第一次部署,只需要执行 smart_admin_v3.sql 文件中的SQL语句即可;
|
-------- |-------------------------------------------------------------------|--------------------| ----- | ----
|
||||||
|
1| [Mysql](https://www.mysql.com) | 国外 | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://gitee.com/lab1024/smart-admin/tree/master/%E6%95%B0%E6%8D%AE%E5%BA%93SQL%E8%84%9A%E6%9C%AC/mysql)
|
||||||
|
2| [PostgreSQL](https://www.postgresql.org/) | 国外 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
3| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | 国产 | Java8+Java17 都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
4| [电科(人大)金仓 KingBaseES](https://www.kingbase.com.cn) | 国产 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
5| [华为高斯 GaussDB](https://www.huaweicloud.com/product/gaussdb.html) | 国产 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
6| [OpenGaussDB](https://opengauss.org/zh/) | 国产 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
7| [神通数据库 ShenTong](http://www.shentongdata.com.cn/) | 国产 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
8| [海量数据库 VastData](https://www.vastdata.com.cn) | 国产 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
9| [海扬数据库 OceanBase](https://www.oceanbase.com/) | 国产 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
10| [阿里云 PolarDB](https://www.polardbx.com/) | 国产 | Java8+Java17都支持 ✔️ | [下载代码和SQL](./../buy.md)
|
||||||
|
|
||||||
|
|
||||||
#### 更新
|
|
||||||
跟随 SmartAdmin更新,则需要执行 sql-update-log目录中的SQL脚本,需要按照文件版本从小到大执行;
|
|
||||||
|
9
数据库SQL脚本/mysql/README.md
Normal file
9
数据库SQL脚本/mysql/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
### 数据库脚本
|
||||||
|
默认数据库为Mysql,若为其他数据库,请关注:[SmartAdmin其他数据库](https://smartadmin.vip/views/other/china-db/)
|
||||||
|
|
||||||
|
#### 第一次
|
||||||
|
如果是第一次部署,只需要执行 smart_admin_v3.sql 文件中的SQL语句即可;
|
||||||
|
|
||||||
|
|
||||||
|
#### 更新
|
||||||
|
跟随 SmartAdmin更新,则需要执行 sql-update-log目录中的SQL脚本,需要按照文件版本从小到大执行;
|
@ -1,9 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 主流
|
|
||||||
|
|
||||||
序号| 数据库 | 状态 | 下载
|
|
||||||
-------- |-------------------------------------------|-------------------| -----
|
|
||||||
1| [Mysql](https://www.mysql.com) | Java8+Java17 都支持 ✔️ |
|
|
||||||
2| [PostgreSQL](https://www.postgresql.org/) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 国产数据库支持
|
|
||||||
|
|
||||||
序号| 数据库 | 支持 | 下载
|
|
||||||
-------- |---------------------------------------------------| ----- | ----
|
|
||||||
1| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
2| [电科(人大)金仓KingBaseES](https://www.kingbase.com.cn) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 国产数据库支持
|
|
||||||
|
|
||||||
序号| 数据库 | 支持 | 下载
|
|
||||||
-------- |---------------------------------------------------| ----- | ----
|
|
||||||
1| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
2| [电科(人大)金仓KingBaseES](https://www.kingbase.com.cn) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 国产数据库支持
|
|
||||||
|
|
||||||
序号| 数据库 | 支持 | 下载
|
|
||||||
-------- |---------------------------------------------------| ----- | ----
|
|
||||||
1| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
2| [电科(人大)金仓KingBaseES](https://www.kingbase.com.cn) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 国产数据库支持
|
|
||||||
|
|
||||||
序号| 数据库 | 支持 | 下载
|
|
||||||
-------- |---------------------------------------------------| ----- | ----
|
|
||||||
1| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
2| [电科(人大)金仓KingBaseES](https://www.kingbase.com.cn) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 国产数据库支持
|
|
||||||
|
|
||||||
序号| 数据库 | 支持 | 下载
|
|
||||||
-------- |---------------------------------------------------| ----- | ----
|
|
||||||
1| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
2| [电科(人大)金仓KingBaseES](https://www.kingbase.com.cn) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 国产数据库支持
|
|
||||||
|
|
||||||
序号| 数据库 | 支持 | 下载
|
|
||||||
-------- |---------------------------------------------------| ----- | ----
|
|
||||||
1| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
2| [电科(人大)金仓KingBaseES](https://www.kingbase.com.cn) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
## 国产数据库支持
|
|
||||||
|
|
||||||
序号| 数据库 | 支持 | 下载
|
|
||||||
-------- |---------------------------------------------------| ----- | ----
|
|
||||||
1| [达梦数据库 DM8](https://www.dameng.com/DM8.html) | Java8+Java17 都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
2| [电科(人大)金仓KingBaseES](https://www.kingbase.com.cn) | Java8+Java17都支持 ✔️ | [下载代码和SQL](https://smartadmin.vip/views/other/china-db/)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user