From d6c70f139a27474684c8900d237f7da0d3bcf19b Mon Sep 17 00:00:00 2001 From: xiaohuang <1559741705@qq.com> Date: Sun, 24 Mar 2024 09:28:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=B0=E8=80=81=E5=B8=88?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/tool/gen.js | 12 +- src/views/product/attribute/index.vue | 73 +-- src/views/product/attributeGroup/index.vue | 104 ++-- src/views/product/brand/index.vue | 91 ++-- src/views/product/category/index.vue | 151 +++--- src/views/product/comment/index.vue | 47 +- src/views/product/info/index.vue | 535 ++++++++++++++++++--- src/views/product/rule/index.vue | 157 ++++-- src/views/system/config/index.vue | 2 +- src/views/system/dict/data.vue | 2 +- src/views/system/dict/index.vue | 2 +- src/views/system/post/index.vue | 2 +- src/views/system/role/index.vue | 4 +- src/views/tool/build/CodeTypeDialog.vue | 2 +- src/views/tool/gen/importTable.vue | 25 +- src/views/tool/gen/index.vue | 24 +- 16 files changed, 795 insertions(+), 438 deletions(-) diff --git a/src/api/tool/gen.js b/src/api/tool/gen.js index 2577499..3a412ac 100644 --- a/src/api/tool/gen.js +++ b/src/api/tool/gen.js @@ -69,17 +69,9 @@ export function genCode(tableName) { } // 同步数据库 -export function synchDb(tableName,databaseName) { +export function synchDb(tableName) { return request({ - url: '/code/gen/synchDb/' + tableName + '/' + databaseName, - method: 'get' - }) -} - -// 查询db数据库 -export function getDataBaseList() { - return request({ - url: '/code/gen/db/getDataBaseList', + url: '/code/gen/synchDb/' + tableName, method: 'get' }) } diff --git a/src/views/product/attribute/index.vue b/src/views/product/attribute/index.vue index 79623c4..d1b259f 100644 --- a/src/views/product/attribute/index.vue +++ b/src/views/product/attribute/index.vue @@ -9,23 +9,6 @@ @keyup.enter.native="handleQuery" /> - - - - - - - - 搜索 重置 @@ -80,15 +63,9 @@ - + - - - -