From a084e1d9796329fa74bc3cb5f0d84ff3a2c1c77f Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Sun, 13 Aug 2023 21:23:11 +0800 Subject: [PATCH 01/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/menu/modules/setting.ts | 2 +- src/menu/modules/tool.ts | 2 +- src/menu/modules/workplace.ts | 43 +++++ src/pages/workplace/configuration.vue | 17 ++ .../workplace/manage/components/Apply.vue | 130 +++++++++++++++ src/pages/workplace/manage/index.vue | 149 ++++++++++++++++++ 6 files changed, 341 insertions(+), 2 deletions(-) create mode 100644 src/menu/modules/workplace.ts create mode 100644 src/pages/workplace/configuration.vue create mode 100644 src/pages/workplace/manage/components/Apply.vue create mode 100644 src/pages/workplace/manage/index.vue diff --git a/src/menu/modules/setting.ts b/src/menu/modules/setting.ts index 2dfb78a..9faa330 100644 --- a/src/menu/modules/setting.ts +++ b/src/menu/modules/setting.ts @@ -9,7 +9,7 @@ const home: Menu.MenuOptions = { isHide: false, isKeepAlive: true, isLink: '', - index: 8, + index: 9, title: '设置' }, children: [ diff --git a/src/menu/modules/tool.ts b/src/menu/modules/tool.ts index 45c6385..807678c 100644 --- a/src/menu/modules/tool.ts +++ b/src/menu/modules/tool.ts @@ -9,7 +9,7 @@ const home: Menu.MenuOptions = { isHide: false, isKeepAlive: true, isLink: '', - index: 7, + index: 8, title: '工具' }, children: [ diff --git a/src/menu/modules/workplace.ts b/src/menu/modules/workplace.ts new file mode 100644 index 0000000..4e73eca --- /dev/null +++ b/src/menu/modules/workplace.ts @@ -0,0 +1,43 @@ +const home: Menu.MenuOptions = { + name: 'tool', + path: '/workplace', + meta: { + icon: 'i-bd-all-application', + isAffix: false, + isFull: false, + isHide: false, + isKeepAlive: true, + isLink: '', + index: 7, + title: '工作台' + }, + children: [ + { + name: 'workplaceManage', + path: '/workplace/manage', + meta: { + icon: 'i-bd-application', + isAffix: false, + isFull: false, + isHide: false, + isKeepAlive: true, + isLink: '', + title: '应用管理' + } + }, + { + name: 'workplaceConfiguration', + path: '/workplace/configuration', + meta: { + icon: 'i-bd-setting-config', + isAffix: false, + isFull: false, + isHide: false, + isKeepAlive: true, + isLink: '', + title: '工作台设置' + } + } + ] +}; +export default home; diff --git a/src/pages/workplace/configuration.vue b/src/pages/workplace/configuration.vue new file mode 100644 index 0000000..cddf4b3 --- /dev/null +++ b/src/pages/workplace/configuration.vue @@ -0,0 +1,17 @@ + + + +meta: + title: 工作台设置 + isAffix: false + + + diff --git a/src/pages/workplace/manage/components/Apply.vue b/src/pages/workplace/manage/components/Apply.vue new file mode 100644 index 0000000..b536061 --- /dev/null +++ b/src/pages/workplace/manage/components/Apply.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/pages/workplace/manage/index.vue b/src/pages/workplace/manage/index.vue new file mode 100644 index 0000000..35897cc --- /dev/null +++ b/src/pages/workplace/manage/index.vue @@ -0,0 +1,149 @@ + + + +meta: + title: 应用管理 + isAffix: false + + + + + From 26cc7b3a37904120a972d9956b11eeaa97d5ec5d Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Sun, 13 Aug 2023 23:49:05 +0800 Subject: [PATCH 02/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workplace/configuration.vue | 17 -- .../configuration/components/Banner.vue | 130 +++++++++++ .../configuration/components/CustomGroup.vue | 201 ++++++++++++++++++ .../configuration/components/Recommend.vue | 130 +++++++++++ src/pages/workplace/configuration/index.vue | 54 +++++ src/styles/element.scss | 62 +++++- 6 files changed, 575 insertions(+), 19 deletions(-) delete mode 100644 src/pages/workplace/configuration.vue create mode 100644 src/pages/workplace/configuration/components/Banner.vue create mode 100644 src/pages/workplace/configuration/components/CustomGroup.vue create mode 100644 src/pages/workplace/configuration/components/Recommend.vue create mode 100644 src/pages/workplace/configuration/index.vue diff --git a/src/pages/workplace/configuration.vue b/src/pages/workplace/configuration.vue deleted file mode 100644 index cddf4b3..0000000 --- a/src/pages/workplace/configuration.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - -meta: - title: 工作台设置 - isAffix: false - - - diff --git a/src/pages/workplace/configuration/components/Banner.vue b/src/pages/workplace/configuration/components/Banner.vue new file mode 100644 index 0000000..640a2d5 --- /dev/null +++ b/src/pages/workplace/configuration/components/Banner.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/pages/workplace/configuration/components/CustomGroup.vue b/src/pages/workplace/configuration/components/CustomGroup.vue new file mode 100644 index 0000000..c903d84 --- /dev/null +++ b/src/pages/workplace/configuration/components/CustomGroup.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/src/pages/workplace/configuration/components/Recommend.vue b/src/pages/workplace/configuration/components/Recommend.vue new file mode 100644 index 0000000..1d28bd7 --- /dev/null +++ b/src/pages/workplace/configuration/components/Recommend.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/pages/workplace/configuration/index.vue b/src/pages/workplace/configuration/index.vue new file mode 100644 index 0000000..4966209 --- /dev/null +++ b/src/pages/workplace/configuration/index.vue @@ -0,0 +1,54 @@ + + + +meta: + title: 工作台设置 + isAffix: false + + + diff --git a/src/styles/element.scss b/src/styles/element.scss index f9173e0..ced6fdb 100755 --- a/src/styles/element.scss +++ b/src/styles/element.scss @@ -11,6 +11,7 @@ /* 当前页面最大化 css */ .main-maximize { + .aside-split, .el-aside, .el-header, @@ -40,6 +41,7 @@ border-radius: 0; box-shadow: none; } + .table-search { padding: 18px 0 0 !important; margin-bottom: 0 !important; @@ -52,18 +54,22 @@ flex-direction: column; align-items: center; height: 100%; + .text { margin: 20px 0 30px; font-size: 23px; font-weight: bold; color: var(--el-text-color-regular); } + .el-descriptions { width: 100%; padding: 40px 0 0; + .el-descriptions__title { font-size: 18px; } + .el-descriptions__label { width: 200px; } @@ -75,6 +81,7 @@ display: flex; width: 100%; height: 100%; + .table-box { // 这里减去的是 treeFilter 组件宽度 width: calc(100% - 230px); @@ -94,8 +101,9 @@ .table-search { padding: 18px 18px 0; margin-bottom: 10px; + .el-form { - .el-form-item__content > * { + .el-form-item__content>* { width: 100%; } @@ -104,6 +112,7 @@ padding: 0 10px; } } + .operation { display: flex; align-items: center; @@ -117,9 +126,11 @@ .header-button-lf { float: left; } + .header-button-ri { float: right; } + .el-button { margin-bottom: 15px; } @@ -133,6 +144,7 @@ table { width: 100%; } + .el-table__header th { height: 45px; font-size: 15px; @@ -140,16 +152,18 @@ color: var(--el-text-color-primary); background: var(--el-fill-color-light); } + .el-table__row { height: 45px; font-size: 14px; + .el-table__placeholder { display: inline; } } // 设置 el-table 中 header 文字不换行,并省略 - .el-table__header .el-table__cell > .cell { + .el-table__header .el-table__cell>.cell { white-space: nowrap; } @@ -159,6 +173,7 @@ top: 50%; left: 50%; transform: translate(-50%, -50%); + .table-empty { line-height: 30px; } @@ -186,16 +201,19 @@ height: 40px !important; font-size: 14px !important; } + .el-table__row { height: 40px !important; font-size: 13px !important; } } + .el-table--large { .el-table__header th { height: 50px !important; font-size: 16px !important; } + .el-table__row { height: 50px !important; font-size: 15px !important; @@ -208,12 +226,14 @@ padding: 16px 20px; margin-bottom: 0; border-bottom: 1px solid var(--el-border-color-lighter); + span { font-size: 17px; line-height: 17px; color: var(--el-text-color-primary) !important; } } + .el-drawer__footer { border-top: 1px solid var(--el-border-color-lighter); } @@ -227,8 +247,10 @@ .drawer-multiColumn-form { display: flex; flex-wrap: wrap; + .el-form-item { width: 47%; + &:nth-child(2n-1) { margin-right: 5%; } @@ -242,6 +264,7 @@ padding: 15px 20px; margin: 0; border-bottom: 1px solid var(--el-border-color-lighter); + .el-dialog__title { font-size: 17px; } @@ -258,12 +281,47 @@ background: var(--el-fill-color-light); } } + /* el-menu-item */ .el-menu-item { height: 48px !important; line-height: 48px !important; } + /* bu-button*/ .bu-button:focus-visible { outline: 0; } + +/* bd-tabs */ +.bd-tabs { + display: flex; + flex-direction: column; + height: 100%; + + .el-tabs__header { + margin: 0; + } + + .el-tabs__nav-wrap { + padding: 0 24px; + + &::after { + height: 1px; + } + } + + .el-tabs__item { + padding: 0 12px; + } + + .el-tabs__content { + flex: 1; + height: 100% !important; + } + + .el-tab-pane { + flex: 1; + height: 100% !important; + } +} From 845436e54d3208e3288f7977e2053bc03d24d859 Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Wed, 6 Sep 2023 00:14:23 +0800 Subject: [PATCH 03/24] =?UTF-8?q?feat:=20=E2=9C=A8=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/file.ts | 10 ++ src/api/workplace/banner.ts | 19 +++ .../configuration/components/Banner.vue | 39 +++-- .../configuration/components/BannerDialog.vue | 160 ++++++++++++++++++ src/pages/workplace/configuration/index.vue | 9 +- src/pages/workplace/manage/index.vue | 4 +- 6 files changed, 222 insertions(+), 19 deletions(-) create mode 100644 src/api/file.ts create mode 100644 src/api/workplace/banner.ts create mode 100644 src/pages/workplace/configuration/components/BannerDialog.vue diff --git a/src/api/file.ts b/src/api/file.ts new file mode 100644 index 0000000..eb98769 --- /dev/null +++ b/src/api/file.ts @@ -0,0 +1,10 @@ +import request from '@/utils/axios'; + +// 获取文件路径 +export function feileGet(params?: any) { + return request({ + url: '/file/upload', + method: 'get', + params + }); +} diff --git a/src/api/workplace/banner.ts b/src/api/workplace/banner.ts new file mode 100644 index 0000000..544b2c0 --- /dev/null +++ b/src/api/workplace/banner.ts @@ -0,0 +1,19 @@ +import request from '@/utils/axios'; + +// 获取轮播 +export function bannerGet(params?: any) { + return request({ + url: '/workplace/banner', + method: 'get', + params + }); +} + +// 新增轮播 +export function bannerPost(data: any) { + return request({ + url: '/manager/workplace/banner', + method: 'post', + data + }); +} diff --git a/src/pages/workplace/configuration/components/Banner.vue b/src/pages/workplace/configuration/components/Banner.vue index 640a2d5..84fbeac 100644 --- a/src/pages/workplace/configuration/components/Banner.vue +++ b/src/pages/workplace/configuration/components/Banner.vue @@ -9,7 +9,7 @@ - 新增轮播 + 新增轮播 @@ -51,32 +51,38 @@ /> + + diff --git a/src/pages/workplace/configuration/index.vue b/src/pages/workplace/configuration/index.vue index 4966209..55890f0 100644 --- a/src/pages/workplace/configuration/index.vue +++ b/src/pages/workplace/configuration/index.vue @@ -1,9 +1,9 @@ From 2930beb2650053fe361098120fc8fc8037f3a33c Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Fri, 8 Sep 2023 21:16:05 +0800 Subject: [PATCH 04/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9EAPP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workplace/app.ts | 19 ++++ src/api/workplace/banner.ts | 20 +++- .../configuration/components/Banner.vue | 59 +++++++++- .../configuration/components/BannerDialog.vue | 2 +- .../workplace/manage/components/Apply.vue | 102 +++++++++++++----- src/pages/workplace/manage/index.vue | 42 ++++++-- 6 files changed, 202 insertions(+), 42 deletions(-) create mode 100644 src/api/workplace/app.ts diff --git a/src/api/workplace/app.ts b/src/api/workplace/app.ts new file mode 100644 index 0000000..43cb7c0 --- /dev/null +++ b/src/api/workplace/app.ts @@ -0,0 +1,19 @@ +import request from '@/utils/axios'; + +// 获取应用 +export function appGet(params?: any) { + return request({ + url: '/manager/workplace/app', + method: 'get', + params + }); +} + +// 新增应用 +export function appPost(data: any) { + return request({ + url: '/manager/workplace/app', + method: 'post', + data + }); +} diff --git a/src/api/workplace/banner.ts b/src/api/workplace/banner.ts index 544b2c0..9846b68 100644 --- a/src/api/workplace/banner.ts +++ b/src/api/workplace/banner.ts @@ -3,7 +3,7 @@ import request from '@/utils/axios'; // 获取轮播 export function bannerGet(params?: any) { return request({ - url: '/workplace/banner', + url: '/manager/workplace/banner', method: 'get', params }); @@ -17,3 +17,21 @@ export function bannerPost(data: any) { data }); } + +// 编辑轮播 +export function bannerPut(data: any) { + return request({ + url: '/manager/workplace/banner', + method: 'post', + data + }); +} + +// 删除轮播 +export function bannerDelete(params: any) { + return request({ + url: '/manager/workplace/banner', + method: 'delete', + params + }); +} diff --git a/src/pages/workplace/configuration/components/Banner.vue b/src/pages/workplace/configuration/components/Banner.vue index 84fbeac..753def6 100644 --- a/src/pages/workplace/configuration/components/Banner.vue +++ b/src/pages/workplace/configuration/components/Banner.vue @@ -57,11 +57,12 @@ From 503240e5dc8d7eb11ff2ad9b6e4ec26241ca7ec3 Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Mon, 11 Sep 2023 23:07:58 +0800 Subject: [PATCH 12/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=A7=86=E9=A2=91=EF=BC=8C=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BdMsg/index.vue | 58 ++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/src/components/BdMsg/index.vue b/src/components/BdMsg/index.vue index 462cdfa..87b8e87 100644 --- a/src/components/BdMsg/index.vue +++ b/src/components/BdMsg/index.vue @@ -5,13 +5,31 @@ {{ msg['content'] }} - + - + - +
位置标题:{{ msg['title'] }}
@@ -73,6 +91,7 @@ + + From 3ab9cfc6b80f4dde647b6b0e442d66ae61a234b0 Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Sun, 17 Sep 2023 18:58:57 +0800 Subject: [PATCH 13/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=8F=A3=E4=BB=A4=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/command.ts | 36 +++++ .../tool/command/components/CommandDialog.vue | 146 ++++++++++++++++++ .../tool/{command.vue => command/index.vue} | 122 +++++++++++---- .../configuration/components/Banner.vue | 7 +- 4 files changed, 282 insertions(+), 29 deletions(-) create mode 100644 src/api/command.ts create mode 100644 src/pages/tool/command/components/CommandDialog.vue rename src/pages/tool/{command.vue => command/index.vue} (55%) diff --git a/src/api/command.ts b/src/api/command.ts new file mode 100644 index 0000000..c5c340f --- /dev/null +++ b/src/api/command.ts @@ -0,0 +1,36 @@ +import request from '@/utils/axios'; + +// 获取口令列表 +export function commandGet(params?: any) { + return request({ + url: '/manager/web3/laboratory', + method: 'get', + params + }); +} + +// 新增口令 +export function commandPost(data: any) { + return request({ + url: '/manager/web3/laboratory', + method: 'post', + data + }); +} + +// 编辑口令 +export function commandPut(data: any, id: string) { + return request({ + url: `/manager/web3/laboratory/${id}`, + method: 'put', + data + }); +} + +// 删除口令 +export function commandDelete(id: string) { + return request({ + url: `/manager/web3/laboratory/${id}`, + method: 'delete' + }); +} diff --git a/src/pages/tool/command/components/CommandDialog.vue b/src/pages/tool/command/components/CommandDialog.vue new file mode 100644 index 0000000..c544171 --- /dev/null +++ b/src/pages/tool/command/components/CommandDialog.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/pages/tool/command.vue b/src/pages/tool/command/index.vue similarity index 55% rename from src/pages/tool/command.vue rename to src/pages/tool/command/index.vue index 861f2bf..7726f8e 100644 --- a/src/pages/tool/command.vue +++ b/src/pages/tool/command/index.vue @@ -10,8 +10,11 @@ + + 查询 + - 新增口令 + 新增口令
@@ -23,9 +26,6 @@ - @@ -66,33 +74,41 @@ meta:
diff --git a/src/pages/workplace/configuration/components/Banner.vue b/src/pages/workplace/configuration/components/Banner.vue index f3d7638..579192d 100644 --- a/src/pages/workplace/configuration/components/Banner.vue +++ b/src/pages/workplace/configuration/components/Banner.vue @@ -44,6 +44,7 @@ :title="bannerDialogTitle" :type="bannerDialogType" :data="bannerDialogData" + @ok="onBannerOk" /> @@ -165,7 +166,6 @@ const onBannerDialogValue = () => { }; // 编辑轮播 - const bannerDialogData = ref({}); const onBannerEidt = (item: any) => { bannerDialogTitle.value = `编辑${item.title}`; @@ -174,6 +174,11 @@ const onBannerEidt = (item: any) => { bannerDialogValue.value = true; }; +// 保存轮播 +const onBannerOk = () => { + getTableList(); +}; + // 删除轮播 const onDelBanner = (item: any) => { ElMessageBox.confirm(`确定要对该轮播吗?`, `操作提示`, { From 57a7bd1399c173810c5318e77a79058a831962b2 Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Wed, 20 Sep 2023 23:08:26 +0800 Subject: [PATCH 14/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/userlist.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pages/user/userlist.vue b/src/pages/user/userlist.vue index 6bcda1f..41e27bf 100644 --- a/src/pages/user/userlist.vue +++ b/src/pages/user/userlist.vue @@ -81,7 +81,7 @@ const userStore = useUserStore(); const column = reactive([ { prop: 'name', - label: '用户名', + label: '昵称', fixed: 'left', width: 140 }, @@ -91,6 +91,11 @@ const column = reactive([ fixed: 'left', width: 120 }, + { + prop: 'username', + label: '用户', + width: 120 + }, { prop: 'avatar', label: '头像', From 6b229eed6d1d28dee72010242d1bec20435ae6aa Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Wed, 20 Sep 2023 23:13:58 +0800 Subject: [PATCH 15/24] =?UTF-8?q?feat:=20=E2=9C=A8=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workplace/configuration/components/BannerDialog.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/workplace/configuration/components/BannerDialog.vue b/src/pages/workplace/configuration/components/BannerDialog.vue index 7c85a9e..5dd2d0d 100644 --- a/src/pages/workplace/configuration/components/BannerDialog.vue +++ b/src/pages/workplace/configuration/components/BannerDialog.vue @@ -118,6 +118,7 @@ const headers = { token: userStore.token }; const actionURL = ref(''); +// 图片上传前获取上传地址 const beforeAvatarUpload = async (rawFile: any) => { const fileData = { path: `/${rawFile.uid}/${rawFile.name}`, @@ -131,6 +132,7 @@ const beforeAvatarUpload = async (rawFile: any) => { return false; } }; +// 图片上传成功获取地址 const handleAvatarSuccess = (response: any, _uploadFile: any) => { formData.value.cover = response.path; }; From d17c1fba40dd0a17be36c8872ca2f8d455607749 Mon Sep 17 00:00:00 2001 From: wanglihui <1769794040@qq.com> Date: Wed, 20 Sep 2023 23:17:44 +0800 Subject: [PATCH 16/24] =?UTF-8?q?fix:=20=F0=9F=90=9B=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workplace/configuration/components/BannerDialog.vue | 4 ++-- src/pages/workplace/manage/components/Apply.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/workplace/configuration/components/BannerDialog.vue b/src/pages/workplace/configuration/components/BannerDialog.vue index 5dd2d0d..a8c10f2 100644 --- a/src/pages/workplace/configuration/components/BannerDialog.vue +++ b/src/pages/workplace/configuration/components/BannerDialog.vue @@ -17,7 +17,7 @@ {