From 0e43c6b9c512c9f11aa2904d66d9a7873bb9fa32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Wed, 7 May 2025 17:03:08 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E5=AD=97=E5=85=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wwwroot/rezero/default_ui/filed_map.html | 319 ++++++++++++++++++ .../wwwroot/rezero/default_ui/sys_dict.html | 313 +++++++++++++++++ 2 files changed, 632 insertions(+) create mode 100644 SuperAPI/wwwroot/rezero/default_ui/filed_map.html create mode 100644 SuperAPI/wwwroot/rezero/default_ui/sys_dict.html diff --git a/SuperAPI/wwwroot/rezero/default_ui/filed_map.html b/SuperAPI/wwwroot/rezero/default_ui/filed_map.html new file mode 100644 index 0000000..af52268 --- /dev/null +++ b/SuperAPI/wwwroot/rezero/default_ui/filed_map.html @@ -0,0 +1,319 @@ +@@master_page.html + +
+ +
+
+
+ + + + + + + + + + + + + + +
+ {{column.ColumnDescription}} + 操作
+ {{ item[column.PropertyName] }} + + + +
+
+
+ @@page_control.html + +
+ diff --git a/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html b/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html new file mode 100644 index 0000000..5d4baa9 --- /dev/null +++ b/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html @@ -0,0 +1,313 @@ +@@master_page.html + +
+ +
+
+
+ + + + + + + + + + + + + + +
+ {{column.ColumnDescription}} + 操作
+ {{ item[column.PropertyName] }} + + + +
+
+
+ @@page_control.html + +
+ From 0eb69a9735c3ca9a01dd2c8e2dc6c35cf8a37b72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Thu, 8 May 2025 10:40:25 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E4=B8=8E=E6=98=A0=E5=B0=84=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rezero/default_ui/css/page_table_list.css | 7 +- .../rezero/default_ui/std_entity_config.html | 392 +++++++++++++++++ .../{filed_map.html => std_filed_map.html} | 0 .../rezero/default_ui/std_method_config.html | 397 ++++++++++++++++++ .../wwwroot/rezero/default_ui/sys_dict.html | 42 +- .../rezero/default_ui/sys_dict_data.html | 341 +++++++++++++++ 6 files changed, 1165 insertions(+), 14 deletions(-) create mode 100644 SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html rename SuperAPI/wwwroot/rezero/default_ui/{filed_map.html => std_filed_map.html} (100%) create mode 100644 SuperAPI/wwwroot/rezero/default_ui/std_method_config.html create mode 100644 SuperAPI/wwwroot/rezero/default_ui/sys_dict_data.html diff --git a/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css b/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css index dd8d8d8..a462648 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css +++ b/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css @@ -3,13 +3,14 @@ } .table_opt { - text-align: center; - width: 250px; + display: flex; + flex-flow: row nowrap; + justify-content: center; + align-items: center; } .table_opt button { max-width: 80px; - margin: 0 10px; } .table_opt2 { diff --git a/SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html b/SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html new file mode 100644 index 0000000..8a2cb97 --- /dev/null +++ b/SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html @@ -0,0 +1,392 @@ +@@master_page.html + +
+ +
+
+
+ + + + + + + + + + + + + + +
+ {{column.ColumnDescription}} + 操作
+ {{ item[column.PropertyName] }} + + + +
+
+
+ @@page_control.html + +
+ diff --git a/SuperAPI/wwwroot/rezero/default_ui/filed_map.html b/SuperAPI/wwwroot/rezero/default_ui/std_filed_map.html similarity index 100% rename from SuperAPI/wwwroot/rezero/default_ui/filed_map.html rename to SuperAPI/wwwroot/rezero/default_ui/std_filed_map.html diff --git a/SuperAPI/wwwroot/rezero/default_ui/std_method_config.html b/SuperAPI/wwwroot/rezero/default_ui/std_method_config.html new file mode 100644 index 0000000..22f47a7 --- /dev/null +++ b/SuperAPI/wwwroot/rezero/default_ui/std_method_config.html @@ -0,0 +1,397 @@ +@@master_page.html + +
+ +
+
+
+ + + + + + + + + + + + + + +
+ {{column.ColumnDescription}} + 操作
+ + {{formatter(item[column.PropertyName])}} + + {{ item[column.PropertyName] }} + + + + +
+
+
+ @@page_control.html + +
+ diff --git a/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html b/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html index 5d4baa9..32ca39d 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html +++ b/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html @@ -84,6 +84,13 @@ + + + +
+ + + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + +
+ {{column.ColumnDescription}} + 操作
+ {{ item[column.PropertyName] }} + + + +
+
+
+ @@page_control.html + + + From 1113d7bb2e95d2ad4066961c6aa4c3b53a328477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Fri, 9 May 2025 14:04:12 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rezero/default_ui/css/page_table_list.css | 2 +- .../rezero/default_ui/std_entity_config.html | 180 ++++++- .../rezero/default_ui/std_filed_map.html | 208 ++++++-- .../rezero/default_ui/std_filed_map_old.html | 243 +++++++++ .../rezero/default_ui/std_method_config.html | 10 + .../wwwroot/rezero/default_ui/sys_dict.html | 2 +- .../rezero/default_ui/sys_dict_data.html | 2 +- .../default_ui/template/master_page.html | 477 ++++++++++++------ 8 files changed, 904 insertions(+), 220 deletions(-) create mode 100644 SuperAPI/wwwroot/rezero/default_ui/std_filed_map_old.html diff --git a/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css b/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css index a462648..8f53c5a 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css +++ b/SuperAPI/wwwroot/rezero/default_ui/css/page_table_list.css @@ -10,7 +10,7 @@ } .table_opt button { - max-width: 80px; + flex: 1; } .table_opt2 { diff --git a/SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html b/SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html index 8a2cb97..28c583e 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html +++ b/SuperAPI/wwwroot/rezero/default_ui/std_entity_config.html @@ -160,15 +160,25 @@ - + >实体表名: + +
+ + + + +
+ diff --git a/SuperAPI/wwwroot/rezero/default_ui/std_filed_map.html b/SuperAPI/wwwroot/rezero/default_ui/std_filed_map.html index af52268..55a86ed 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/std_filed_map.html +++ b/SuperAPI/wwwroot/rezero/default_ui/std_filed_map.html @@ -16,20 +16,13 @@ >
-
- -
-
+
@@ -146,35 +139,133 @@
-
+
+ 本地 + + + + +
-
+
- + /> + + + + +
@@ -208,16 +299,42 @@ addTitle: '添加动态接口分类', editTitle: '修改态接口分类', title: '', - formData: {}, + formData: { + ID: '', + SYSTEM_NAME: '', + SYSTEM_FIELD: '', + INTERFACE_NAME: '', + INTERFACE_FIELD: '', + OBJECT_TABLE_NAME: '', + OBJECT_TABLE_CNNAME: '', + SYSTEM_TABLE_CNNAME: '', + SYSTEM_TABLE_NAME: '', + SYSTEM_FIELD_TYPE: 'value', + SYSTEM_DICT_NAME: '', + OBJECT_FIELD_TYPE: 'value', + OBJECT_DICT_NAME: '', + }, + methodId: '', + databaseId: 1, + database: [], + tables: [], + isSelectTable: {}, + dict: { + filedType: [], + }, + }, + created() { + this.getDictOption() }, mounted() { + var url = window.location.href + var methodId = url.substring(url.lastIndexOf('?') + 1) + this.methodId = methodId this.fetchData('') }, methods: { fetchData(append) { - var url = - '/PrivateReZeroRoute/100003/GetDynamicInterfaceCategoryPageList?ParentId=200' + - append + var url = `/std_filed/list` + append axios .get(url, jwHeader) .then(response => { @@ -229,11 +346,18 @@ this.data = null }) }, + getDictOption() { + axios + .get('/dict_data/simpleList?type=std_filed_type', jwHeader) + .then(res => { + this.dict.filedType = res.data + }) + }, onSearch: function (page) { var urlParameters = '&' + tools.objectToQueryString({ - Name: txtSearch.value, + systemTable: systemTable.value, __pageNumber: page, __pageSize: tools.getValue('selPageSize'), }) @@ -266,10 +390,8 @@ } }, openEditDiv: function (item) { - var urlById = - '/PrivateReZeroRoute/100003/GetDynamicInterfaceCategoryById?id=' + - item.Id - if (item.Id) { + var urlById = '/std_filed/get?id=' + item.ID + if (item.ID) { this.title = this.editTitle axios .get(urlById, jwHeader) @@ -284,15 +406,19 @@ }, openAddDiv: function (item) { this.title = this.addTitle - this.formData = {} + this.formData = { + OBJECT_TYPE: 0, + PARAMETR_TYPE: 0, + ASSEMBLY_TYPE: 0, + METHOD_REF: this.methodId, + MAPPING_TABLE: '', + } }, addOrUpdate: function () { var th = this var frmId = 'frmEdit' var json = this.formData - var url = json.Id - ? '/PrivateReZeroRoute/100003/UpdateDynamicInterfaceCategory' - : '/PrivateReZeroRoute/100003/AddDynamicInterfaceCategory' + var url = json.ID ? '/std_filed/update' : '/std_filed/create' this.addOrUpdateSubmit(url, json) }, addOrUpdateSubmit: function (url, json) { diff --git a/SuperAPI/wwwroot/rezero/default_ui/std_filed_map_old.html b/SuperAPI/wwwroot/rezero/default_ui/std_filed_map_old.html new file mode 100644 index 0000000..0b63baf --- /dev/null +++ b/SuperAPI/wwwroot/rezero/default_ui/std_filed_map_old.html @@ -0,0 +1,243 @@ +@@master_page.html +
+
+
+
+ + + + + + + +
+
+ + + + + + + +
+
+ + +
+
+ +
+
+ {{item.ID}} +
+
+ + @@page_control.html +
+
+ + + + diff --git a/SuperAPI/wwwroot/rezero/default_ui/std_method_config.html b/SuperAPI/wwwroot/rezero/default_ui/std_method_config.html index 22f47a7..39218e3 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/std_method_config.html +++ b/SuperAPI/wwwroot/rezero/default_ui/std_method_config.html @@ -114,6 +114,13 @@ > 配置对象 + @@ -392,6 +399,9 @@ append(item) { window.location.href = `./std_entity_config.html?${item.METHOD_ID}` }, + appendFiled(item) { + window.location.href = `./std_filed_map.html?type=${item.PARAMETR_TYPE}&table=${item.MAPPING_TABLE}` + }, }, }) diff --git a/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html b/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html index 32ca39d..77da866 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html +++ b/SuperAPI/wwwroot/rezero/default_ui/sys_dict.html @@ -312,7 +312,7 @@ .then(response => { this.error = null this.onSearch() - if (response.data == true) { + if (response.data) { frmEdit.reset() btnCloseEdit.click() } else { diff --git a/SuperAPI/wwwroot/rezero/default_ui/sys_dict_data.html b/SuperAPI/wwwroot/rezero/default_ui/sys_dict_data.html index 3953bc3..75107c5 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/sys_dict_data.html +++ b/SuperAPI/wwwroot/rezero/default_ui/sys_dict_data.html @@ -324,7 +324,7 @@ .then(response => { this.error = null this.onSearch() - if (response.data == true) { + if (response.data) { frmEdit.reset() btnCloseEdit.click() } else { diff --git a/SuperAPI/wwwroot/rezero/default_ui/template/master_page.html b/SuperAPI/wwwroot/rezero/default_ui/template/master_page.html index 1b38dbc..955f304 100644 --- a/SuperAPI/wwwroot/rezero/default_ui/template/master_page.html +++ b/SuperAPI/wwwroot/rezero/default_ui/template/master_page.html @@ -1,167 +1,330 @@ - - - - 从零开始后台管理系统 @@version - - - - - - - - - - - - - - - -
-
- - - - -
- - - -
- - -
-
+ + + + +
+ + + + +
+
@@lyear-layout-content
+
+ +
+
- @@lyear-layout-content + + + + -
- - -
-
+ + - - - - - - - - - - -
-
- - - -
-
- - + + +
+
+ + + +
+
+ + -