From 9d6032b26c9aba1b875d9237b3251d6dd9013ee1 Mon Sep 17 00:00:00 2001 From: xia <1928964683@qq.com> Date: Sat, 15 Jul 2023 15:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E9=83=A8=E4=BB=BB=E5=8A=A1=EF=BC=88?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=EF=BC=89-=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/config/router.config.js | 136 ++--- .../newLayout/module/Demo4NewLayoutList.vue | 54 +- .../views/newLayout/task_admin/TaskAdmin.vue | 38 ++ .../task_admin/task_content/TaskContent.vue | 228 ++++++++ .../task_content/content_card/ContentCard.vue | 501 ++++++++++++++++++ .../task_content/content_card/HeaderCard.vue | 71 +++ 6 files changed, 940 insertions(+), 88 deletions(-) create mode 100644 ant-design-vue-jeecg/src/views/newLayout/task_admin/TaskAdmin.vue create mode 100644 ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/TaskContent.vue create mode 100644 ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/ContentCard.vue create mode 100644 ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/HeaderCard.vue diff --git a/ant-design-vue-jeecg/src/config/router.config.js b/ant-design-vue-jeecg/src/config/router.config.js index f6b1172..0cd7df3 100644 --- a/ant-design-vue-jeecg/src/config/router.config.js +++ b/ant-design-vue-jeecg/src/config/router.config.js @@ -16,7 +16,7 @@ import { UserLayoutSimulation, UserLayoutSchedule, UserLayoutEquip, - PageView, + PageView } from '@/components/layouts' /** @@ -31,7 +31,7 @@ export const asyncRouterMap = [ meta: { title: '首页' }, redirect: '/dashboard/analysis', children: [ - //#region + // #region // // dashboard // { // path: '/dashboard', @@ -300,21 +300,21 @@ export const asyncRouterMap = [ // }, // ] // } - //#endregion - ], + // #endregion + ] }, { path: '*', redirect: '/404', - hidden: true, //没有匹配到 就会显示404 + hidden: true // 没有匹配到 就会显示404 }, { path: '/page1', name: 'page1', component: TabLayout, meta: { title: '首页' }, - redirect: '/dashboard/analysis', - }, + redirect: '/dashboard/analysis' + } ] /** @@ -331,9 +331,9 @@ export const constantRouterMap = [ { path: 'loginmall', name: 'loginmall', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userbigdata', @@ -344,9 +344,9 @@ export const constantRouterMap = [ { path: 'loginbigdata', name: 'loginbigdata', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/loginbx', @@ -357,9 +357,9 @@ export const constantRouterMap = [ { path: 'loginbx', name: 'loginbx', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userdata', @@ -370,9 +370,9 @@ export const constantRouterMap = [ { path: 'logindata', name: 'logindata', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userdroduction', @@ -383,9 +383,9 @@ export const constantRouterMap = [ { path: 'logindroduction', name: 'logindroduction', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userfitting', @@ -396,9 +396,9 @@ export const constantRouterMap = [ { path: 'loginfitting', name: 'loginfitting', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userglobal', @@ -409,9 +409,9 @@ export const constantRouterMap = [ { path: 'loginglobal', name: 'loginglobal', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userworkmanship', @@ -422,9 +422,9 @@ export const constantRouterMap = [ { path: 'loginworkmanship', name: 'loginworkmanship', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userworkorder', @@ -435,9 +435,9 @@ export const constantRouterMap = [ { path: 'loginworkorder', name: 'loginworkorder', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userequip', @@ -448,9 +448,9 @@ export const constantRouterMap = [ { path: 'loginequip', name: 'loginequip', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/userschedule', @@ -461,9 +461,9 @@ export const constantRouterMap = [ { path: 'loginschedule', name: 'loginschedule', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/usersimulation', @@ -474,9 +474,9 @@ export const constantRouterMap = [ { path: 'loginsimulation', name: 'loginsimulation', - component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login'), - }, - ], + component: () => import(/* webpackChu nkName: "user" */ '@/views/user/Login') + } + ] }, { path: '/user', @@ -487,24 +487,24 @@ export const constantRouterMap = [ { path: 'login', name: 'login', - component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login'), + component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login') }, { path: 'register', name: 'register', - component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/Register'), + component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/Register') }, { path: 'register-result', name: 'registerResult', - component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/RegisterResult'), + component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/RegisterResult') }, { path: 'alteration', name: 'alteration', - component: () => import(/* webpackChunkName: "user" */ '@/views/user/alteration/Alteration'), - }, - ], + component: () => import(/* webpackChunkName: "user" */ '@/views/user/alteration/Alteration') + } + ] }, // { @@ -539,37 +539,37 @@ export const constantRouterMap = [ { path: 'home', name: 'TestHome', - component: () => import('@/views/Home'), - }, - ], + component: () => import('@/views/Home') + } + ] }, { path: '/404', - component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404'), + component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404') }, { path: '/atlas', - component: () => import(/* webpackChunkName: "fail" */ '@/views/xmtp/SeKnowAtlasList'), + component: () => import(/* webpackChunkName: "fail" */ '@/views/xmtp/SeKnowAtlasList') }, - //cms首页,免登录,单独访问页面 + // cms首页,免登录,单独访问页面 // #/protal/home - //需要在新窗口打开的页面路径 + // 需要在新窗口打开的页面路径 { - path: '/cms/home',//这里是你需要设置新窗口打开的页面的路径 - component: () => import('@/views/cms/home'), + path: '/cms/home', // 这里是你需要设置新窗口打开的页面的路径 + component: () => import('@/views/cms/home') }, { - path: '/cms/major',//这里是你需要设置新窗口打开的页面的路径 - component: () => import('@/views/cms/pages/Major/MajorView'), + path: '/cms/major', // 这里是你需要设置新窗口打开的页面的路径 + component: () => import('@/views/cms/pages/Major/MajorView') }, { - path: '/cms/detail',//这里是你需要设置新窗口打开的页面的路径 - component: () => import('@/views/cms/pages/Detail/DetailView'), + path: '/cms/detail', // 这里是你需要设置新窗口打开的页面的路径 + component: () => import('@/views/cms/pages/Detail/DetailView') }, { - path: '/newLayout/dayu',//这里是你需要设置新窗口打开的页面的路径 + path: '/newLayout/dayu', // 这里是你需要设置新窗口打开的页面的路径 redirect: '/home/lnfo', component: () => import(/* webpackChunkName: "fail" */ '@/views/newLayout/module/Demo4NewLayoutList'), children: [ @@ -586,10 +586,16 @@ export const constantRouterMap = [ // iconChildClass: 'el-icon-watermelon', component: () => import('@/views/newLayout/module/Msg') + }, + { + path: '/home/taskadmin', + // name: '列表', + // iconChildClass: 'el-icon-watermelon', + component: () => import('@/views/newLayout/task_admin/TaskAdmin') + } ] - }, + } ] - diff --git a/ant-design-vue-jeecg/src/views/newLayout/module/Demo4NewLayoutList.vue b/ant-design-vue-jeecg/src/views/newLayout/module/Demo4NewLayoutList.vue index 09e1ebf..5f683f5 100644 --- a/ant-design-vue-jeecg/src/views/newLayout/module/Demo4NewLayoutList.vue +++ b/ant-design-vue-jeecg/src/views/newLayout/module/Demo4NewLayoutList.vue @@ -3,7 +3,10 @@ - +
大禹项目管理系统
- + {{ item.label }} @@ -60,29 +67,34 @@ // import Main from '../../newLayout/module/Main.vue' // import Menu from './Msg' export default { - name: "Demo4NewLayoutList", - data () { + name: 'Demo4NewLayoutList', + data() { return { - show2: true,//图标文字的显示状态 + show2: true, // 图标文字的显示状态 menus: [], - isCollapse: true, //保持折叠状态 - show: false,//保持文字的隐藏状态 + isCollapse: true, // 保持折叠状态 + show: false, // 保持文字的隐藏状态 asideMenu: [ { - path: '/home/lnfo', //地址 + path: '/home/lnfo', // 地址 label: '首页', // 菜单标识 - icon: 'menu', //图标选取的是element图表,然后拼接到上面 + icon: 'menu' // 图标选取的是element图表,然后拼接到上面 }, { - path: "/home/lnfos", + path: '/home/lnfos', label: '视频管理', icon: 'menu' }, { - path: "/user", - label: '用户管理', + path: '/home/taskadmin', + label: '全部任务', icon: 'menu' }, + { + path: '/user', + label: '用户管理', + icon: 'menu' + } ] } }, @@ -91,35 +103,32 @@ export default { // // 改变show的值true/false // this.lesteps = !this.lesteps // }, - handleOpen (key, keyPath) { + handleOpen(key, keyPath) { console.log(key, keyPath) }, - handleClose (key, keyPath) { + handleClose(key, keyPath) { console.log(key, keyPath) }, - toggleCollapse () { + toggleCollapse() { this.isCollapse = !this.isCollapse // 改变show的值true/false this.show = !this.show // 改变show2的值true/false this.show2 = !this.show2 - }, // 退出功能 - logout () { + logout() { console.log('退出') // 清空token // window.sessionStorage.clear() // this.$router.push('/login') - }, - - + } }, components: { // Main, // Menu - }, -}; + } +} - diff --git a/ant-design-vue-jeecg/src/views/newLayout/task_admin/TaskAdmin.vue b/ant-design-vue-jeecg/src/views/newLayout/task_admin/TaskAdmin.vue new file mode 100644 index 0000000..473d2d0 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/newLayout/task_admin/TaskAdmin.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/TaskContent.vue b/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/TaskContent.vue new file mode 100644 index 0000000..0f3d7d1 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/TaskContent.vue @@ -0,0 +1,228 @@ + + + + + diff --git a/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/ContentCard.vue b/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/ContentCard.vue new file mode 100644 index 0000000..a14de8c --- /dev/null +++ b/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/ContentCard.vue @@ -0,0 +1,501 @@ + + + + + diff --git a/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/HeaderCard.vue b/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/HeaderCard.vue new file mode 100644 index 0000000..ec72c50 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/newLayout/task_admin/task_content/content_card/HeaderCard.vue @@ -0,0 +1,71 @@ + + + + +