From 4a6eeb0c0fa2859c7afcabb83d3a0f291bbbaad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BF=9E=E5=AE=9D=E5=B1=B1?= <1253070437@qq.com> Date: Thu, 8 Aug 2024 23:29:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=87=E7=BA=A7=E3=80=91v3.2?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 + snowy-admin-web/.env.development | 9 +- snowy-admin-web/.env.production | 6 - snowy-admin-web/index.html | 10 +- .../HomeCard/BizMiniMessageCard/index.vue | 7 +- .../HomeCard/BizNoticeCard/detail.vue | 8 +- .../HomeCard/BizNoticeCard/index.vue | 16 +- .../HomeCard/BizScheduleCard/index.vue | 17 +- .../HomeCard/BizShortcutCard/index.vue | 20 +- .../HomeCard/BizSlideshowCard/index.vue | 29 +- .../HomeCard/SysBizDataCard/index.vue | 16 +- .../HomeCard/SysOpDataCard/index.vue | 16 +- .../HomeCard/SysOpLogCard/index.vue | 17 +- .../HomeCard/SysToolDataCard/index.vue | 16 +- .../HomeCard/SysVisChartDataCard/index.vue | 28 +- .../HomeCard/SysVisLogCard/index.vue | 19 +- .../src/components/Table/index.vue | 111 ++-- .../src/components/XnBatchButton/index.vue | 6 +- .../src/components/XnFilePreview/index.vue | 96 ++-- .../src/components/XnFormContainer/index.vue | 8 +- .../src/components/XnHighlightjs/index.vue | 7 +- .../src/components/XnPageSelect/index.vue | 16 +- snowy-admin-web/src/components/global.less | 503 ------------------ snowy-admin-web/src/components/index.less | 6 - snowy-admin-web/src/config/index.js | 3 + snowy-admin-web/src/layout/index.vue | 72 ++- snowy-admin-web/src/router/index.js | 3 +- snowy-admin-web/src/store/menu.js | 22 +- snowy-admin-web/src/style/index.less | 1 + snowy-admin-web/src/utils/formRules.js | 14 +- snowy-admin-web/src/utils/loading.js | 13 +- snowy-admin-web/src/utils/request.js | 4 +- snowy-admin-web/src/utils/treeHandler.js | 14 + snowy-admin-web/src/utils/version.js | 35 ++ .../src/views/auth/findPwd/index.vue | 12 +- .../src/views/auth/login/login.less | 212 ++++---- .../src/views/auth/login/login.vue | 27 +- .../src/views/biz/notice/detail.vue | 8 +- snowy-admin-web/src/views/biz/user/form.vue | 28 +- .../src/views/dev/dict/category/frmIndex.vue | 184 ------- .../dict/category/{bizIndex.vue => index.vue} | 53 +- snowy-admin-web/src/views/dev/dict/index.vue | 39 +- .../src/views/dev/log/oplog/detail.vue | 8 +- .../src/views/dev/log/vislog/detail.vue | 8 +- .../src/views/sys/resource/menu/form.vue | 10 +- .../sys/role/grantMobileResourceForm.vue | 26 +- .../views/sys/role/grantPermissionForm.vue | 155 +++++- .../src/views/sys/role/grantResourceForm.vue | 27 +- .../src/views/sys/role/scopeDefineOrg.vue | 6 +- snowy-admin-web/src/views/sys/user/form.vue | 22 +- .../views/sys/user/grantPermissionForm.vue | 156 +++++- .../src/views/sys/user/grantResourceForm.vue | 26 +- .../src/views/sys/user/scopeDefineOrg.vue | 6 +- .../user/service/impl/BizUserServiceImpl.java | 4 +- .../user/service/impl/SysUserServiceImpl.java | 6 +- .../xiaonuo/core/config/GlobalConfigure.java | 132 ++--- 56 files changed, 1041 insertions(+), 1284 deletions(-) delete mode 100644 snowy-admin-web/src/components/global.less delete mode 100644 snowy-admin-web/src/components/index.less create mode 100644 snowy-admin-web/src/utils/treeHandler.js create mode 100644 snowy-admin-web/src/utils/version.js delete mode 100644 snowy-admin-web/src/views/dev/dict/category/frmIndex.vue rename snowy-admin-web/src/views/dev/dict/category/{bizIndex.vue => index.vue} (83%) diff --git a/README.md b/README.md index 84c99b92..d836b91f 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,8 @@ gitee下载地址:[https://gitee.com/xiaonuobase/snowy](https://gitee.com/xiao github下载地址(镜像):[https://github.com/xiaonuobase/Snowy](https://github.com/xiaonuobase/Snowy) +gitcode下载地址:[https://gitcode.com/xiaonuobase/Snowy](https://gitcode.com/xiaonuobase/Snowy) + 演示地址:[https://snowy.xiaonuo.vip](https://snowy.xiaonuo.vip) 文档地址:[https://xiaonuo.vip/doc](https://xiaonuo.vip/doc) diff --git a/snowy-admin-web/.env.development b/snowy-admin-web/.env.development index 4f5f665a..f7b453fd 100644 --- a/snowy-admin-web/.env.development +++ b/snowy-admin-web/.env.development @@ -1,9 +1,3 @@ -# 本地环境 -NODE_ENV = development - -# 标题 -VITE_TITLE = Snowy - # 接口地址 VITE_API_BASEURL = http://127.0.0.1:82 @@ -12,3 +6,6 @@ VITE_PORT = 81 # 开启设置抽屉 VITE_SET_DRAWER = true + +# 本地环境 +NODE_ENV = development diff --git a/snowy-admin-web/.env.production b/snowy-admin-web/.env.production index cc8d8d42..26326300 100644 --- a/snowy-admin-web/.env.production +++ b/snowy-admin-web/.env.production @@ -1,9 +1,3 @@ -# 生产环境 -NODE_ENV = production - -# 标题 -VITE_TITLE = Snowy - # 接口地址 VITE_API_BASEURL = http://127.0.0.1:82 diff --git a/snowy-admin-web/index.html b/snowy-admin-web/index.html index 55d2e348..babf82cc 100644 --- a/snowy-admin-web/index.html +++ b/snowy-admin-web/index.html @@ -8,10 +8,10 @@ Snowy diff --git a/snowy-admin-web/src/components/XnBatchButton/index.vue b/snowy-admin-web/src/components/XnBatchButton/index.vue index 1fa17b89..a1591ecf 100644 --- a/snowy-admin-web/src/components/XnBatchButton/index.vue +++ b/snowy-admin-web/src/components/XnBatchButton/index.vue @@ -15,6 +15,10 @@ const emit = defineEmits({ batchCallBack: null }) const buttonLoading = ref(false) const props = defineProps({ + idKey: { + type: String, + default: () => 'id' + }, buttonName: { type: String, default: () => '批量操作' @@ -62,7 +66,7 @@ const deleteBatch = () => { const params = props.selectedRowKeys.map((m) => { return { - id: m + [props.idKey]: m } }) // 发起方法调用,谁的谁来实现 diff --git a/snowy-admin-web/src/components/XnFilePreview/index.vue b/snowy-admin-web/src/components/XnFilePreview/index.vue index f8af5d48..d9631ea8 100644 --- a/snowy-admin-web/src/components/XnFilePreview/index.vue +++ b/snowy-admin-web/src/components/XnFilePreview/index.vue @@ -1,50 +1,52 @@ diff --git a/snowy-admin-web/src/views/dev/dict/category/frmIndex.vue b/snowy-admin-web/src/views/dev/dict/category/frmIndex.vue deleted file mode 100644 index cbfa999b..00000000 --- a/snowy-admin-web/src/views/dev/dict/category/frmIndex.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - - - diff --git a/snowy-admin-web/src/views/dev/dict/category/bizIndex.vue b/snowy-admin-web/src/views/dev/dict/category/index.vue similarity index 83% rename from snowy-admin-web/src/views/dev/dict/category/bizIndex.vue rename to snowy-admin-web/src/views/dev/dict/category/index.vue index 43eaaef1..b7196bea 100644 --- a/snowy-admin-web/src/views/dev/dict/category/bizIndex.vue +++ b/snowy-admin-web/src/views/dev/dict/category/index.vue @@ -1,15 +1,17 @@