From a95521f6af7d439c607a000c46d7b9a1aee757b9 Mon Sep 17 00:00:00 2001 From: wangchen147 <30853657+wangchen147@users.noreply.github.com> Date: Thu, 30 Nov 2023 15:31:08 +0800 Subject: [PATCH] 0.0.4 --- admin/src/app/views/home/edit_personal.vue | 102 +++++++++++++ admin/src/app/views/home/index.vue | 6 +- admin/src/app/views/home/personal.vue | 96 ++++++++++++ admin/src/app/views/index/index.vue | 15 +- admin/src/app/views/index/store.vue | 11 +- admin/src/app/views/site/edit_personal.vue | 101 +++++++++++++ admin/src/app/views/site/personal.vue | 93 ++++++++++++ admin/src/app/views/site/user_info.vue | 2 +- admin/src/app/views/tools/addon/edit.vue | 4 +- admin/src/app/views/tools/addon/index.vue | 4 +- .../layout/admin/components/header/index.vue | 28 +--- .../admin/components/header/user-info.vue | 40 ++++- .../default/components/header/index.vue | 56 +------ .../default/components/header/user-info.vue | 141 ++++++++++++++---- admin/src/router/routers.ts | 16 +- .../app/adminapi/controller/sys/Config.php | 12 ++ niucloud/app/adminapi/route/sys.php | 3 + niucloud/app/dict/menu/site.php | 2 +- niucloud/app/model/site/Site.php | 2 +- .../service/admin/home/AuthSiteService.php | 2 +- .../app/service/admin/site/SiteService.php | 12 +- .../service/admin/site/SiteUserService.php | 4 +- .../app/service/admin/sys/ConfigService.php | 12 +- .../app/service/core/site/CoreSiteService.php | 18 ++- .../service/core/sys/CoreSysConfigService.php | 26 +++- niucloud/config/version.php | 4 +- .../core/util/niucloud/http/AccessToken.php | 1 + .../admin/assets/default_headimg-1e927329.png | Bin 4313 -> 0 bytes .../admin/assets/default_headimg-9976c9c6.js | 1 - .../admin/assets/edit-text-7fdc44bc.css | 1 - .../admin/assets/member_head-9976c9c6.js | 1 - niucloud/public/admin/index.html | 8 +- 32 files changed, 668 insertions(+), 156 deletions(-) create mode 100644 admin/src/app/views/home/edit_personal.vue create mode 100644 admin/src/app/views/home/personal.vue create mode 100644 admin/src/app/views/site/edit_personal.vue create mode 100644 admin/src/app/views/site/personal.vue delete mode 100644 niucloud/public/admin/assets/default_headimg-1e927329.png delete mode 100644 niucloud/public/admin/assets/default_headimg-9976c9c6.js delete mode 100644 niucloud/public/admin/assets/edit-text-7fdc44bc.css delete mode 100644 niucloud/public/admin/assets/member_head-9976c9c6.js diff --git a/admin/src/app/views/home/edit_personal.vue b/admin/src/app/views/home/edit_personal.vue new file mode 100644 index 000000000..7cd99fdd3 --- /dev/null +++ b/admin/src/app/views/home/edit_personal.vue @@ -0,0 +1,102 @@ + + + + + diff --git a/admin/src/app/views/home/index.vue b/admin/src/app/views/home/index.vue index d57bddbfe..61a8edd88 100644 --- a/admin/src/app/views/home/index.vue +++ b/admin/src/app/views/home/index.vue @@ -15,7 +15,7 @@
站点列表 - 创建站点 + 创建站点
@@ -142,6 +142,10 @@ const addonList = ref([]) getInstalledAddonList().then(({ data }) => { addonList.value = data }).catch() + +const handleChick = () => { + ElMessage('加班加点研发中...') +} diff --git a/admin/src/app/views/index/index.vue b/admin/src/app/views/index/index.vue index 1926deab2..ef7e7d654 100644 --- a/admin/src/app/views/index/index.vue +++ b/admin/src/app/views/index/index.vue @@ -81,29 +81,29 @@
-
{{ t("siteList") }}
-
{{ t("sitePackage") }}
-
{{ t("newSite") }}
-
{{ t("administrator") }}
-
{{ @@ -187,7 +187,7 @@ let statInfo = ref({ about: [], site_stat: {}, site_group_stat: {}, - app: {}, + app: {} }); const getStatInfoFn = async (id: number = 0) => { statInfo.value = await (await getStatInfo()).data; @@ -304,8 +304,7 @@ nowTime() diff --git a/admin/src/app/views/site/personal.vue b/admin/src/app/views/site/personal.vue new file mode 100644 index 000000000..7faa9b44f --- /dev/null +++ b/admin/src/app/views/site/personal.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/admin/src/app/views/site/user_info.vue b/admin/src/app/views/site/user_info.vue index b4687a591..caf409c88 100644 --- a/admin/src/app/views/site/user_info.vue +++ b/admin/src/app/views/site/user_info.vue @@ -59,7 +59,7 @@ - + diff --git a/admin/src/app/views/tools/addon/edit.vue b/admin/src/app/views/tools/addon/edit.vue index 76596255a..97cb3244e 100644 --- a/admin/src/app/views/tools/addon/edit.vue +++ b/admin/src/app/views/tools/addon/edit.vue @@ -1,7 +1,7 @@ - - -
-
-
- {{ items.name }} -
-
-
-
- {{ itemTo.name }} -
-
-
- -
@@ -93,7 +69,6 @@ import useAppStore from '@/stores/modules/app' import { useRoute, useRouter } from 'vue-router' import { t } from '@/lang' import storage from '@/utils/storage' -import { getIndexList, setIndexList } from '@/app/api/sys' const router = useRouter() const appType = storage.get('app_type') @@ -179,29 +154,6 @@ const backFn = () => { router.go(-1) } -const indexList = ref(); -const showDialog = ref(false) -const checkIndexList = () => { - getIndexList().then(res => { - showDialog.value = true - indexList.value = res.data - for(let i = 0 ; i < indexList.value.length; i ++){ - if(indexList.value[i].is_use == 1){ - index_path.value = indexList.value[i].view_path - } - } - }) -} - -const index_path = ref(''); -const submitIndex = () => { - setIndexList({ - view_path: index_path.value - }).then(() => { - showDialog.value = false - router.go(0) - }) -}