From c8bad88c91a4a70fcbc53256d5a43d2f4bb83e55 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 5 Jul 2024 14:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E5=9B=BE=E6=A0=87=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 7 + src/layouts/header/index.vue | 2 +- src/layouts/navbar/index.vue | 4 + src/pages/column/list/index.vue | 4 - src/pages/nav/index.vue | 412 ++++++++++++++++++++++++++++++++ src/router/modules/nav.js | 16 ++ src/setting.js | 2 +- 7 files changed, 441 insertions(+), 6 deletions(-) create mode 100644 src/pages/nav/index.vue create mode 100644 src/router/modules/nav.js diff --git a/src/api/index.js b/src/api/index.js index be43a6b..2176924 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -120,4 +120,11 @@ export default { productDetailsEnable: `/iasf/productDetails/articleEnableOrDisable`, productDetailsTop: `/iasf/productDetails/courseProductTopOperation`, productDetailsCheck: `/iasf/productDetails/checkIfTheTitleIsRepeat`, + + navList: `/iasf/SysNavigationIconService/SysNavigationIcon/list`, + navDel: `/iasf/SysNavigationIconService/SysNavigationIcon/batchDeletion`, + navFind: `/iasf/SysNavigationIconService/SysNavigationIcon/findById`, + navSave: `/iasf/SysNavigationIconService/SysNavigationIcon/saveOrUpdate`, + navSort: `/iasf/SysNavigationIconService/SysNavigationIcon/updateSortOrder`, + navEnable: `/iasf/SysNavigationIconService/SysNavigationIcon/enableDisable`, } \ No newline at end of file diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 78942ec..2be04c1 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -44,7 +44,7 @@ export default { sites: [], crumbRefresh: true, inContent: false, // 是否显示站点切换 - sitePath: ['/page', '/column', '/article', '/seo', '/floatingFrame', '/footer', '/logo'] + sitePath: ['/page', '/column', '/article', '/seo', '/floatingFrame', '/footer', '/logo', '/nav'] }; }, components: { diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index d5fdcbc..9d35794 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -163,6 +163,10 @@ export default { { index: '/logo', title: '网站logo设置' + }, + { + index: '/nav', + title: '导航图标设置' } ] } diff --git a/src/pages/column/list/index.vue b/src/pages/column/list/index.vue index 8c42599..8190d27 100644 --- a/src/pages/column/list/index.vue +++ b/src/pages/column/list/index.vue @@ -448,10 +448,6 @@ export default { height: auto; border-bottom: 1px solid #ebedf0; } - - // .el-tree-node__expand-icon { - // display: none; - // } } .sort-line { diff --git a/src/pages/nav/index.vue b/src/pages/nav/index.vue new file mode 100644 index 0000000..1334c7d --- /dev/null +++ b/src/pages/nav/index.vue @@ -0,0 +1,412 @@ + + + + + + + + 新增 + 删除 + 更改排序 + + + + + + + + + + + + + + + + + {{ scope.row.isDisable ? '禁用' : '启用' }} + + + + 编辑 + 删除 + + + + + + + + + + + + + + + 按钮文字和图标至少填写一个 + + + + + + 上传图标 + {{ form.icon }} + + + + + + + 只能上传jpg/png/svg文件,请上传25*25以内的图标 + + + + + + 链接 + 图片 + + + + + + + + + + + + + + + + + 上传图片 + + + + + + + 只能上传jpg/png/svg文件,请上传1920px以内的图片 + + + + + + 取消 + 确定 + + + + + + + 标题 + 图标 + 按钮文字 + + + + {{ data.title }} + + {{ data.buttonText }} + + + + + 取 消 + 确 定 + + + + + + + + \ No newline at end of file diff --git a/src/router/modules/nav.js b/src/router/modules/nav.js new file mode 100644 index 0000000..54d36ee --- /dev/null +++ b/src/router/modules/nav.js @@ -0,0 +1,16 @@ +import BasicLayout from '@/layouts/home' + +const meta = {} + +export default { + path: '/nav', + meta, + component: BasicLayout, + children: [ + { + path: `/nav`, + component: () => import('@/pages/nav'), + meta: { title: '导航图标设置' } + }, + ] +} diff --git a/src/setting.js b/src/setting.js index 18002e7..8cd23f3 100644 --- a/src/setting.js +++ b/src/setting.js @@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境 let host = location.origin if (isDev) { host = 'https://huorantech.com' - // host = 'http://192.168.31.217:10000' + host = 'http://192.168.31.217:10000' } const Setting = {
按钮文字和图标至少填写一个
只能上传jpg/png/svg文件,请上传25*25以内的图标
只能上传jpg/png/svg文件,请上传1920px以内的图片