From 39b92124af2cfbae09bef2a991d9ac282077a99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Tue, 27 Aug 2024 19:53:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B5=84=E4=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=98=B5=E5=9C=B0=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components.d.ts | 2 + src/layouts/components/AmsPosition.vue | 59 ++++++++++++++++++++++++++ src/layouts/home.vue | 6 ++- src/services/index.js | 7 +++ 4 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 src/layouts/components/AmsPosition.vue diff --git a/src/components.d.ts b/src/components.d.ts index 282705f..2452ee7 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -29,6 +29,8 @@ declare module '@vue/runtime-core' { ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElOption: typeof import('element-plus/es')['ElOption'] + ElRadio: typeof import('element-plus/es')['ElRadio'] + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRow: typeof import('element-plus/es')['ElRow'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElSelect: typeof import('element-plus/es')['ElSelect'] diff --git a/src/layouts/components/AmsPosition.vue b/src/layouts/components/AmsPosition.vue new file mode 100644 index 0000000..80eaa1c --- /dev/null +++ b/src/layouts/components/AmsPosition.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/layouts/home.vue b/src/layouts/home.vue index 7dbbd79..1172357 100644 --- a/src/layouts/home.vue +++ b/src/layouts/home.vue @@ -7,6 +7,7 @@ + @@ -29,6 +30,7 @@ import Sidebar from './components/sidebar/Sidebar.vue' import ThirdMenu from './components/ThirdMenu.vue' import CommonHeader from './components/Header.vue' import SystemTip from './components/SystemTip.vue' +import AmsPosition from './components/AmsPosition.vue' import useRouteItem from '@/hooks/useRouteItem' // import startApp from '@/core/register' @@ -37,7 +39,8 @@ export default { CommonHeader, SystemTip, Sidebar, - ThirdMenu + ThirdMenu, + AmsPosition }, data() { return { @@ -136,7 +139,6 @@ export default { basePath: computed(() => store.state.app.basePath), expire: computed(() => store.state.app.expire), isFontBig: computed(() => store.state.app.pageConfig.contentFontSize === 'big'), - positionList: computed(() => store.state.position.positionList), addRoutes, menuData, showSidebar, diff --git a/src/services/index.js b/src/services/index.js index 336f75e..92147c4 100644 --- a/src/services/index.js +++ b/src/services/index.js @@ -29,12 +29,19 @@ export function getDict(data) { params: wrapperParams(data) }) } +export function getDictChildren(params) { + return request.get('/sms/v1/dictionaries/children', { params }) +} + export function getSysconf() { return request.get('/sms/v1/configs') } export function getSysconfCode(params) { return request.get('/sms/v1/configs', { params }) } +export function getSysconfQueryByCode(params) { + return request.get('/sms/v1/configs/queryByCode', { params }) +} export function modifySysconf(data) { return request.put('/sms/v1/configs', wrapperParams(data)) }