From 0f058a5fb58d325fc18b284d619ec1a45c2bf908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 12 Jul 2021 02:37:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=86=E6=9E=B6=E5=8D=87=E7=BA=A7=EF=BC=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 5 +- src/components/Breadcrumb/index.vue | 542 +------ src/components/TopModules/all_modules.js | 388 +++++ src/components/TopModules/index.vue | 220 +++ src/components/TopModules/top_modules_oa.js | 85 + src/views/layout/components/Navbar.vue | 27 +- src/views/layout/components/Sidebar/Logo.vue | 1 - src/views/layout/components/Sidebar/index.vue | 8 +- src/views/layout/components/TagsView.vue | 18 +- .../archiveAttachment/AttachmentUpload.vue | 93 +- src/views/mdp/arc/tag/TagMng.vue | 1390 +++++++++-------- src/views/mdp/form/formData/FormDataMng.vue | 2 +- .../mdp/form/formData/FormDataMngForFlow.vue | 2 +- .../form/formData/FormDataMngForFlowTable.vue | 2 +- src/views/mdp/form/formDef/FormDefAdd.vue | 3 +- .../mdp/form/formDef/FormDefForFlowNode.vue | 3 +- src/views/mdp/form/formDef/FormDefList.vue | 2 +- src/views/mdp/form/formDef/FormDefMng.vue | 2 +- src/views/mdp/form/formField/FormField.vue | 2 +- src/views/mdp/form/formQx/FormQxSet.vue | 3 +- src/views/mdp/meta/category/CategoryAdd.vue | 3 +- src/views/mdp/meta/category/CategoryMng.vue | 2 +- src/views/mdp/meta/item/ItemAdd.vue | 3 +- src/views/mdp/meta/item/ItemEdit.vue | 3 +- src/views/mdp/meta/item/ItemMng.vue | 2 +- .../mdp/meta/itemOption/ItemOptionAdd.vue | 3 +- .../mdp/meta/itemOption/ItemOptionMng.vue | 2 +- src/views/mdp/meta/sysParam/ItemOptionAdd.vue | 3 +- .../mdp/meta/sysParam/ItemOptionEdit.vue | 3 +- src/views/mdp/meta/sysParam/SysParamMng.vue | 2 +- src/views/mdp/sys/branch/BranchSelect.vue | 2 +- src/views/mdp/sys/dept/DeptTree.vue | 2 +- src/views/mdp/sys/post/PostSelectCommon.vue | 4 +- src/views/mdp/sys/user/UsersSelect.vue | 124 +- src/views/mdp/sys/userDept/UserDeptEdit.vue | 510 +++--- .../mdp/workflow/biz/bizModel/BizModelAdd.vue | 3 +- .../workflow/biz/bizModel/BizModelEdit.vue | 3 +- .../mdp/workflow/biz/bizModel/BizModelMng.vue | 8 +- src/views/mdp/workflow/de/model/ModelMng.vue | 8 +- .../mdp/workflow/hi/comment/commentStep.vue | 4 +- .../mdp/workflow/hi/procinst/ProcinstMng.vue | 131 +- .../workflow/re/deployment/DeploymentMng.vue | 8 +- .../re/procdef/ProcdefListForParames.vue | 18 +- .../re/procdef/ProcdefListForSimpleStart.vue | 16 +- .../re/procdef/ProcdefListForStart.vue | 48 +- .../mdp/workflow/re/procdef/ProcdefMng.vue | 8 +- .../workflow/re/procdef/ProcdefSuspend.vue | 12 +- .../re/procdefParames/ActQxCodeSet.vue | 3 +- .../re/procdefParames/ProcdefParamesSet.vue | 3 +- .../ProcdefParamesTemplateMng.vue | 6 +- .../workflow/ru/execution/ExecutionMng.vue | 222 +-- .../ru/execution/ExecutionMngForFormData.vue | 4 +- .../ProcinstParamesExecutionSet.vue | 493 +++--- .../ProcinstParamesStartSet.vue | 2 +- src/views/mdp/workflow/ru/task/TaskMng.vue | 236 +-- 55 files changed, 2278 insertions(+), 2424 deletions(-) create mode 100644 src/components/TopModules/all_modules.js create mode 100644 src/components/TopModules/index.vue create mode 100644 src/components/TopModules/top_modules_oa.js diff --git a/src/api/login.js b/src/api/login.js index 94519cc9..695083cc 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -7,14 +7,13 @@ import config from '@/common/config' let base=config.getOauth2LoginBasePath(); //let base=''; -export function doLoginByUserloginid(userloginid, password,grantType,authType,branchId,deptid) { +export function doLoginByUserloginid(userloginid, password,grantType,authType,deptid) { removeToken(); const data = { userloginid: userloginid, password: password, authType:authType, - deptid:deptid, - branchId:branchId, + deptid:deptid } return axios({ url: base+'/login/token?grantType='+grantType, diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index b5d0a689..aafc2ade 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -5,39 +5,7 @@ {{generateTitle(item.meta.title)}} {{generateTitle(item.meta.title)}} - - 全部应用 -
- -
-
-
- - -
- -
-
-
-
- + @@ -53,404 +21,13 @@ export default { levelList: null, drawer: false, direction: 'ttb', - key:"", - //模块分类 - categorys:[ - { - title:"日常应用", - childrens:[ - { - moduleName:"任务中心", - topModuleId:'oa', - link:"/mdp/workflow/ru/task/TaskListAssigneeToMe", - icon: require("../../assets/image/platform/module-task.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"流程中心", - topModuleId:'oa', - link:"/mdp/workflow/ru/execution/ExecutionListMyMonitors", - icon: require("../../assets/image/platform/module-flow.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"历史流程", - topModuleId:'oa', - link:"/mdp/workflow/hi/procinst/ProcinstListMyStart", - icon: require("../../assets/image/platform/module-historical.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"模型中心", - topModuleId:'oa', - link:"/mdp/workflow/de/ModelMng", - icon: require("../../assets/image/platform/module-odelCenter.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"智能表单", - topModuleId:'oa', - link:"/mdp/form/formDef/FormDefAdd", - icon: require("../../assets/image/platform/module-intelligentForms.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"新闻管理", - topModuleId:'arc', - link:"/mdp/arc/news/newsMng", - icon: require("../../assets/image/platform/module-news.png"), - isHighlight:false, - moduleType : '3', // 模块类型,1-系统类模块 2-系统外模块 3-系统外模块的模块 - }, - { - moduleName:"公告管理", - topModuleId:'arc', - link:"/mdp/arc/notice/noticeMng", - icon: require("../../assets/image/platform/module-notice.png"), - isHighlight:false, - moduleType : '3' // 模块类型,1-系统类模块 2-系统外模块 3-系统外模块的模块 - }, - ] - }, - { - title:"通讯沟通", - childrens:[ - { - moduleName:"通讯录", - topModuleId:'sys', - link:"/mdp/sys/user/deptUserMng", - icon: require("../../assets/image/platform/module-addressBook.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"内部邮件", - topModuleId:'oa', - link:"/oa/mail/mailEmail/MailEmailInbox", - icon: require("../../assets/image/platform/module-email1.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"外部邮件", - topModuleId:'oa', - link:"/oa/mail/mailAccount/MailAccountMng", - icon: require("../../assets/image/platform/module-email2.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"短信", - topModuleId:'sms', - link:"", - icon: require("../../assets/image/platform/module-note.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"聊天", - topModuleId:'im', - link:"", - icon: require("../../assets/image/platform/module-project.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - ] - }, - { - title:"工作执行", - childrens:[ - { - moduleName:"日程管理", - topModuleId:'oa', - link:"/oa/rc/rcScheduleMy/RcScheduleMyMng", - icon: require("../../assets/image/platform/module-schedule.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"督办管理", - topModuleId:'oa', - link:"/oa/duban/dubanItem/DubanItem", - icon: require("../../assets/image/platform/module-supervise.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"督办任务", - topModuleId:'oa', - link:"/oa/duban/dubanItemTask/HostDubanItemTask", - icon: require("../../assets/image/platform/module-supervisoryTask.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - ] - }, - { - title:"行政管理", - childrens:[ - { - moduleName:"组织", - topModuleId:'sys', - link:"/mdp/sys/dept/DeptMng", - icon: require("../../assets/image/platform/module-organization.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"资产管理", - topModuleId:'oa', - link:"/oa/erp/pur/require/RequireMng", - icon: require("../../assets/image/platform/module-property.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"会议管理", - topModuleId:'oa', - link:"/oa/meet/meetMeeting/MeetMeetingRequire", - icon: require("../../assets/image/platform/module-meeting.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"印章中心", - topModuleId:'oa', - link:"/oa/sig/sigSignet/SigSignetMng", - icon: require("../../assets/image/platform/module-sealCenter.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"车辆中心", - topModuleId:'oa', - link:"/oa/car/carOfficeCar/CarOfficeCarMng", - icon: require("../../assets/image/platform/module-car.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"办公用品", - topModuleId:'oa', - link:"/oa/om/omCategory/OmCategoryMng", - icon: require("../../assets/image/platform/module-office.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - - ] - }, - { - title:"人事管理", - childrens:[ - { - moduleName:"考勤管理", - topModuleId:'oa', - link:"/oa/kq/attendance/AttendanceMonth", - icon: require("../../assets/image/platform/module-attendance.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"绩效考核", - topModuleId:'oa', - link:"/oa/jx/MyAssessment", - icon: require("../../assets/image/platform/module-performance.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"档案信息", - topModuleId:'oa', - link:"/oa/hr/user/employeeInfo", - icon: require("../../assets/image/platform/module-record.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - ] - }, - { - title:"仓储管理", - childrens:[ - { - moduleName:"合同管理", - topModuleId:'oa', - link:"/oa/ht/contractCard/ContractCardMng", - icon: require("../../assets/image/platform/module-contract.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - } - ] - }, - { - title:"业务管控", - childrens:[ - { - moduleName:"业务中心", - topModuleId:'oa', - link:"/mdp/workflow/re/procdef/ProcdefListForParames", - icon: require("../../assets/image/platform/module-business.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"客户管理", - topModuleId:'oa', - link:"/oa/crm/customer/CustomerIndex", - icon: require("../../assets/image/platform/module-customerCenter.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"项目管理", - topModuleId:'xm', - link:"/xm/core/xmProject/XmProjectMng", - icon: require("../../assets/image/platform/module-project.png"), - isHighlight:false, - moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"费用管理", - topModuleId:'ac', - link:"", - icon: require("../../assets/image/platform/module-cost.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"防伪", - topModuleId:'audit', - link:"/audit/base/productLifeCycle/productLifeCycleDetail/Safeguard", - icon: require("../../assets/image/platform/anti-fake.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - },{ - moduleName:"溯源", - topModuleId:'audit', - link:"/audit/base/productLifeCycle/productLifeCycleDetail/ProductLifeCycleDetailMng", - icon: require("../../assets/image/platform/traceSource.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - },{ - moduleName:"审计", - topModuleId:'audit', - link:"/audit/base/oper/operLog/OperLogMng", - icon: require("../../assets/image/platform/audit.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - - ] - }, - { - title:"系统模块", - childrens:[ - { - moduleName:"组织", - topModuleId:'sys', - link:"", - icon: require("../../assets/image/platform/module-organization.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"内容", - topModuleId:'arc', - link:"", - icon: require("../../assets/image/platform/module-content.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"流程", - topModuleId:'oa', - link:"", - icon: require("../../assets/image/platform/module-oa.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"商城", - topModuleId:'mallm', - link:"", - icon: require("../../assets/image/platform/module-store.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - } , - { - moduleName:"营销", - topModuleId:'mk', - link:"", - icon: require("../../assets/image/platform/module-marketing.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"财务", - topModuleId:'ac', - link:"", - icon: require("../../assets/image/platform/module-finance.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"短信", - topModuleId:'', - link:"sms", - icon: require("../../assets/image/platform/module-note.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"聊天", - topModuleId:'im', - link:"", - icon: require("../../assets/image/platform/module-project.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - { - moduleName:"防伪", - topModuleId:'audit', - link:"/audit/base/productLifeCycle/productLifeCycleDetail/Safeguard", - icon: require("../../assets/image/platform/anti-fake.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - },{ - moduleName:"溯源", - topModuleId:'audit', - link:"/audit/base/productLifeCycle/productLifeCycleDetail/ProductLifeCycleDetailMng", - icon: require("../../assets/image/platform/traceSource.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - },{ - moduleName:"审计", - topModuleId:'audit', - link:"/audit/base/oper/operLog/OperLogMng", - icon: require("../../assets/image/platform/audit.png"), - isHighlight:false, - moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 - }, - - ] - }, - - ], + key:"", } }, watch: { $route() { this.getBreadcrumb() - }, - key(val){ - console.log(this.key); - this.searchModule(); - } + }, }, methods: { generateTitle, @@ -461,43 +38,7 @@ export default { matched = [{ path: '/dashboard', meta: { title: 'dashboard' }}].concat(matched) } this.levelList = matched - }, - //路由跳转 - gotolink(module) { - if(module.topModuleId==process.env.CONTEXT){ - this.drawer = false - this.$router.replace(module.link); - } else{ - this.jumpToOtherSystem(module); - } - }, - //系统跳转 - jumpToOtherSystem(module) { - let href = window.location.protocol + "//" + window.location.host + "/" + module.topModuleId + "/"+ process.env.VERSION +"/#" + module.link; - window.open(href, module.moduleName,null,true); - NProgress.done() // if current page is login will not trigger afterEach hook, so manually handle it - - }, - //搜索 - searchModule(){ - for(let i =0 ; i -1){ - this.categorys[i].childrens[j].isHighlight = true; - } - } - } - } - } + }, } } @@ -512,76 +53,5 @@ export default { color: #97a8be; cursor: text; } - } - .drawer-box{ - .drawer{ - display: flex; - justify-content: center; - align-items: center; - .drawer-content{ - width: 900px; - height: 100%; - .drawer-content-input{ - display: flex; - justify-content: center; - } - .drawer-content-category{ - .category-name{ - color: #333333; - font-size: 16px; - } - .category-list{ - display: flex; - justify-content: flex-start; - flex-wrap: wrap; - .category-item{ - height: 70px; - width: 70px; - margin-right: 20px; - transition: all 0.3s; - .module-icon{ - width: 70px; - height: 38px; - text-align: center; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - img{ - width: 20px; - } - } - .module-name{ - height: 32px; - line-height: 32px; - color:#666666; - font-size: 12px; - text-align: center; - } - } - .category-item:hover{ - background: rgb(240, 241, 245); - } - } - } - } - } - .highlight{ - transform: scale(1.05); - -webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.1); - border-radius: 50%; - box-shadow: 0 0 30px rgba(0, 0, 0, 0.15); - } - - } - - - + } + diff --git a/src/components/TopModules/all_modules.js b/src/components/TopModules/all_modules.js new file mode 100644 index 00000000..fd26092b --- /dev/null +++ b/src/components/TopModules/all_modules.js @@ -0,0 +1,388 @@ +var categorys= +[ + { + title:"日常应用", + childrens:[ + { + moduleName:"任务中心", + topModuleId:'oa', + link:"/mdp/workflow/ru/task/TaskListAssigneeToMe", + icon: require("../../assets/image/platform/module-task.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"流程中心", + topModuleId:'oa', + link:"/mdp/workflow/ru/execution/ExecutionListMyMonitors", + icon: require("../../assets/image/platform/module-flow.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"历史流程", + topModuleId:'oa', + link:"/mdp/workflow/hi/procinst/ProcinstListMyStart", + icon: require("../../assets/image/platform/module-historical.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"模型中心", + topModuleId:'oa', + link:"/mdp/workflow/de/ModelMng", + icon: require("../../assets/image/platform/module-odelCenter.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"智能表单", + topModuleId:'oa', + link:"/mdp/form/formDef/FormDefAdd", + icon: require("../../assets/image/platform/module-intelligentForms.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"新闻管理", + topModuleId:'arc', + link:"/mdp/arc/news/newsMng", + icon: require("../../assets/image/platform/module-news.png"), + isHighlight:false, + moduleType : '3', // 模块类型,1-系统类模块 2-系统外模块 3-系统外模块的模块 + }, + { + moduleName:"公告管理", + topModuleId:'arc', + link:"/mdp/arc/notice/noticeMng", + icon: require("../../assets/image/platform/module-notice.png"), + isHighlight:false, + moduleType : '3' // 模块类型,1-系统类模块 2-系统外模块 3-系统外模块的模块 + }, + ] + }, + { + title:"通讯沟通", + childrens:[ + { + moduleName:"通讯录", + topModuleId:'sys', + link:"/mdp/sys/user/deptUserMng", + icon: require("../../assets/image/platform/module-addressBook.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"内部邮件", + topModuleId:'oa', + link:"/oa/mail/mailEmail/MailEmailInbox", + icon: require("../../assets/image/platform/module-email1.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"外部邮件", + topModuleId:'oa', + link:"/oa/mail/mailAccount/MailAccountMng", + icon: require("../../assets/image/platform/module-email2.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"短信", + topModuleId:'sms', + link:"", + icon: require("../../assets/image/platform/module-note.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"聊天", + topModuleId:'im', + link:"", + icon: require("../../assets/image/platform/module-project.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + ] + }, + { + title:"工作执行", + childrens:[ + { + moduleName:"日程管理", + topModuleId:'oa', + link:"/oa/rc/rcScheduleMy/RcScheduleMyMng", + icon: require("../../assets/image/platform/module-schedule.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"督办管理", + topModuleId:'oa', + link:"/oa/duban/dubanItem/DubanItem", + icon: require("../../assets/image/platform/module-supervise.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"督办任务", + topModuleId:'oa', + link:"/oa/duban/dubanItemTask/HostDubanItemTask", + icon: require("../../assets/image/platform/module-supervisoryTask.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + ] + }, + { + title:"行政管理", + childrens:[ + { + moduleName:"组织", + topModuleId:'sys', + link:"/mdp/sys/dept/DeptMng", + icon: require("../../assets/image/platform/module-organization.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"资产管理", + topModuleId:'oa', + link:"/oa/erp/pur/require/RequireMng", + icon: require("../../assets/image/platform/module-property.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"会议管理", + topModuleId:'oa', + link:"/oa/meet/meetMeeting/MeetMeetingRequire", + icon: require("../../assets/image/platform/module-meeting.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"印章中心", + topModuleId:'oa', + link:"/oa/sig/sigSignet/SigSignetMng", + icon: require("../../assets/image/platform/module-sealCenter.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"车辆中心", + topModuleId:'oa', + link:"/oa/car/carOfficeCar/CarOfficeCarMng", + icon: require("../../assets/image/platform/module-car.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"办公用品", + topModuleId:'oa', + link:"/oa/om/omCategory/OmCategoryMng", + icon: require("../../assets/image/platform/module-office.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + + ] + }, + { + title:"人事管理", + childrens:[ + { + moduleName:"考勤管理", + topModuleId:'oa', + link:"/oa/kq/attendance/AttendanceMonth", + icon: require("../../assets/image/platform/module-attendance.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"绩效考核", + topModuleId:'oa', + link:"/oa/jx/MyAssessment", + icon: require("../../assets/image/platform/module-performance.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"档案信息", + topModuleId:'oa', + link:"/oa/hr/user/employeeInfo", + icon: require("../../assets/image/platform/module-record.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + ] + }, + { + title:"仓储管理", + childrens:[ + { + moduleName:"合同管理", + topModuleId:'oa', + link:"/oa/ht/contractCard/ContractCardMng", + icon: require("../../assets/image/platform/module-contract.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + } + ] + }, + { + title:"业务管控", + childrens:[ + { + moduleName:"业务中心", + topModuleId:'oa', + link:"/mdp/workflow/re/procdef/ProcdefListForParames", + icon: require("../../assets/image/platform/module-business.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"客户管理", + topModuleId:'oa', + link:"/oa/crm/customer/CustomerIndex", + icon: require("../../assets/image/platform/module-customerCenter.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"项目管理", + topModuleId:'xm', + link:"/xm/core/xmProject/XmProjectMng", + icon: require("../../assets/image/platform/module-project.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"费用管理", + topModuleId:'ac', + link:"", + icon: require("../../assets/image/platform/module-cost.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"防伪", + topModuleId:'audit', + link:"/audit/base/productLifeCycle/productLifeCycleDetail/Safeguard", + icon: require("../../assets/image/platform/anti-fake.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + },{ + moduleName:"溯源", + topModuleId:'audit', + link:"/audit/base/productLifeCycle/productLifeCycleDetail/ProductLifeCycleDetailMng", + icon: require("../../assets/image/platform/traceSource.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + },{ + moduleName:"审计", + topModuleId:'audit', + link:"/audit/base/oper/operLog/OperLogMng", + icon: require("../../assets/image/platform/audit.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + + ] + }, + { + title:"系统模块", + childrens:[ + { + moduleName:"组织", + topModuleId:'sys', + link:"", + icon: require("../../assets/image/platform/module-organization.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"内容", + topModuleId:'arc', + link:"", + icon: require("../../assets/image/platform/module-content.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"流程", + topModuleId:'oa', + link:"", + icon: require("../../assets/image/platform/module-oa.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"商城", + topModuleId:'mallm', + link:"", + icon: require("../../assets/image/platform/module-store.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + } , + { + moduleName:"营销", + topModuleId:'mk', + link:"", + icon: require("../../assets/image/platform/module-marketing.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"财务", + topModuleId:'ac', + link:"", + icon: require("../../assets/image/platform/module-finance.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"短信", + topModuleId:'', + link:"sms", + icon: require("../../assets/image/platform/module-note.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"聊天", + topModuleId:'im', + link:"", + icon: require("../../assets/image/platform/module-project.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"防伪", + topModuleId:'audit', + link:"/audit/base/productLifeCycle/productLifeCycleDetail/Safeguard", + icon: require("../../assets/image/platform/anti-fake.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + },{ + moduleName:"溯源", + topModuleId:'audit', + link:"/audit/base/productLifeCycle/productLifeCycleDetail/ProductLifeCycleDetailMng", + icon: require("../../assets/image/platform/traceSource.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + },{ + moduleName:"审计", + topModuleId:'audit', + link:"/audit/base/oper/operLog/OperLogMng", + icon: require("../../assets/image/platform/audit.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + + ] + }, + +] +export default categorys; \ No newline at end of file diff --git a/src/components/TopModules/index.vue b/src/components/TopModules/index.vue new file mode 100644 index 00000000..f64c73a8 --- /dev/null +++ b/src/components/TopModules/index.vue @@ -0,0 +1,220 @@ + + + + + + diff --git a/src/components/TopModules/top_modules_oa.js b/src/components/TopModules/top_modules_oa.js new file mode 100644 index 00000000..1b60c726 --- /dev/null +++ b/src/components/TopModules/top_modules_oa.js @@ -0,0 +1,85 @@ +var topModules= +[ + { + moduleName:"待审批", + topModuleId:'oa', + link:"/mdp/workflow/ru/task/TaskListAssigneeToMe", + icon: require("../../assets/image/platform/module-task.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"日程", + topModuleId:'oa', + link:"/oa/rc/rcScheduleMy/RcScheduleMyMng", + icon: require("../../assets/image/platform/module-schedule.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"会议", + topModuleId:'oa', + link:"/oa/meet/meetMeeting/MeetMeetingRequire", + icon: require("../../assets/image/platform/module-meeting.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"办公用品", + topModuleId:'oa', + link:"/oa/om/omCategory/OmCategoryMng", + icon: require("../../assets/image/platform/module-office.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"档案", + topModuleId:'oa', + link:"/oa/hr/user/employeeInfo", + icon: require("../../assets/image/platform/module-record.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"通讯录", + topModuleId:'sys', + link:"/mdp/sys/user/deptUserMng", + icon: require("../../assets/image/platform/module-addressBook.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"合同", + topModuleId:'oa', + link:"/oa/ht/contractCard/ContractCardMng", + icon: require("../../assets/image/platform/module-contract.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"财务", + topModuleId:'ac', + link:"", + icon: require("../../assets/image/platform/module-finance.png"), + isHighlight:false, + moduleType : '2' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"项目", + topModuleId:'xm', + link:"/xm/core/xmProject/XmProjectMng", + icon: require("../../assets/image/platform/module-project.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, + { + moduleName:"资产", + topModuleId:'oa', + link:"/oa/erp/pur/require/RequireMng", + icon: require("../../assets/image/platform/module-property.png"), + isHighlight:false, + moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 + }, +] + +export default topModules \ No newline at end of file diff --git a/src/views/layout/components/Navbar.vue b/src/views/layout/components/Navbar.vue index cf8e2dcd..8abd4aad 100644 --- a/src/views/layout/components/Navbar.vue +++ b/src/views/layout/components/Navbar.vue @@ -1,10 +1,12 @@