diff --git a/.env.development b/.env.development index 8f15e40..f00293a 100644 --- a/.env.development +++ b/.env.development @@ -2,4 +2,4 @@ ENV = 'development' # base api -VUE_APP_BASE_API = 'http://gin.vueadmin.net/api' +VUE_APP_BASE_API = 'http://vue.user.net/api' diff --git a/src/api/dutys.js b/src/api/dutys.js index 479f647..d993c50 100644 --- a/src/api/dutys.js +++ b/src/api/dutys.js @@ -206,4 +206,28 @@ export const stafflist = (data) => { data: data }) } +//新定性考核列表 +export const newqualitative = (data) => { + return request({ + url: '/eval/newqualitative', + method: 'post', + data: data + }) +} +//获取新定性考核详细指标 +export const newgetqualdetailedtarget = (data) => { + return request({ + url: '/eval/newgetqualdetailedtarget', + method: 'post', + data: data + }) +} +//加减分NEW +export const plusorminuspoints = (data) => { + return request({ + url: '/eval/plusorminuspoints', + method: 'post', + data: data + }) +} diff --git a/src/router/index copy.js b/src/router/index copy.js new file mode 100644 index 0000000..f908d62 --- /dev/null +++ b/src/router/index copy.js @@ -0,0 +1,334 @@ +import Vue from 'vue' +import Router from 'vue-router' + +Vue.use(Router) + +/* Layout */ +import Layout from '@/layout' + +/** + * Note: sub-menu only appear when route children.length >= 1 + * Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html + * + * hidden: true if set true, item will not show in the sidebar(default is false) + * alwaysShow: true if set true, will always show the root menu + * if not set alwaysShow, when item has more than one children route, + * it will becomes nested mode, otherwise not show the root menu + * redirect: noRedirect if set noRedirect will no redirect in the breadcrumb + * name:'router-name' the name is used by (must set!!!) + * meta : { + roles: ['admin','editor'] control the page roles (you can set multiple roles) + title: 'title' the name show in sidebar and breadcrumb (recommend set) + icon: 'svg-name'/'el-icon-x' the icon show in the sidebar + breadcrumb: false if set false, the item will hidden in breadcrumb(default is true) + activeMenu: '/example/list' if set path, the sidebar will highlight the path you set + } + */ + +/** + * constantRoutes + * a base page that does not have permission requirements + * all roles can be accessed + */ +export const constantRoutes = [ + { + path: '/login', + component: () => import('@/views/login/index'), + hidden: true + }, + { + path: '/ceshi', + component: () => import('@/views/ceshi/index'), + hidden: true + }, + { + path: '/zerenLogin', + component: () => import('@/views/login/zerenLogin'), + hidden: true + }, + { + path: '/zhenggaiLogin', + component: () => import('@/views/login/zhenggaiLogin'), + hidden: true + }, + { + path: '/quantitativeListLogin', + component: () => import('@/views/login/quantitativeListLogin'), + hidden: true + }, + { + path: '/dingxingLogin', + component: () => import('@/views/login/dingxingLogin'), + hidden: true + }, + { + path: '/responsible', + component: () => import('@/views/responsible/index'), + hidden: true + }, + { + path: '/quantitativeList', + component: () => import('@/views/quantitativeList/index'), + hidden: true + }, + { + path: '/approvalList', + component: () => import('@/views/approvalList/index'), + hidden: true + }, + { + path: '/rectification', + component: () => import('@/views/rectification/index'), + hidden: true + }, + { + path: '/approval', + component: () => import('@/views/approval/index'), + hidden: true + }, + // { + // path: '/details', + // component: () => import('@/views/record/details'), + // hidden: true + // }, + { + path: '/index', + component: () => import('@/views/index'), + hidden: true + }, + { + path: '/404', + component: () => import('@/views/404'), + hidden: true + }, + + { + path: '/', + component: Layout, + redirect: '/qualitative', + name: 'qualitative', + meta: { title: '数据提报'}, + children: [ + { + path: 'qualitative', + name: 'qualitative', + component: () => import('@/views/qualitative/index'), + meta: { title: '定性考核'} + }, + { + path: 'mete', + name: 'mete', + component: () => import('@/views/mete/index'), + meta: { title: '定量考核'} + } + ] + }, + // { + // path: '/', + // component: Layout, + // redirect: '/qualitative', + + // children: [{ + // path: 'qualitative', + // name: 'Qualitative', + // component: () => import('@/views/qualitative/index'), + // meta: { title: '定性考核'} + // }] + // }, + // { + // path: '/mete', + // component: Layout, + // redirect: '/mete', + // children: [{ + // path: 'mete', + // name: 'Mete', + // component: () => import('@/views/mete/index'), + // meta: { title: '定量考核'} + // }] + // }, + // { + // path: '/dashboard', + // component: () => import('@/views/dashboard/index'), + // hidden: true + // }, + // { + // path: '/dashboard', + // component: Layout, + // redirect: '/dashboard', + // children: [{ + // path: 'dashboard', + // name: 'dashboard', + // component: () => import('@/views/dashboard/index'), + // meta: { title: '企业微信'} + // }] + // }, + { + path: '/approvalData', + component: Layout, + redirect: '/approvalData', + children: [{ + path: 'approvalData', + name: 'approvalData', + component: () => import('@/views/approvalData/index'), + meta: { title: '审批记录'} + }] + }, + // { + // path: '/', + // component: Layout, + // redirect: '/dashboard', + // children: [{ + // path: 'dashboard', + // name: 'Dashboard', + // component: () => import('@/views/dashboard/index'), + // meta: { title: '考核项目'} + // }] + // }, + // { + // path: '/record', + // component: Layout, + // redirect: '/record', + // children: [{ + // path: 'record', + // name: 'Record', + // component: () => import('@/views/record/index'), + // meta: { title: '考核记录'} + // }] + // }, + { + path: '/details', + component: Layout, + redirect: '/details', + children: [{ + path: 'details', + name: 'Details', + component: () => import('@/views/record/details'), + // meta: { title: '考核记录详情'} + }] + }, + + + // { + // path: '/example', + // component: Layout, + // redirect: '/example/table', + // name: 'Example', + // meta: { title: '表格', icon: 'el-icon-s-help' }, + // children: [ + // { + // path: 'table', + // name: 'Table', + // component: () => import('@/views/table/index'), + // meta: { title: 'Table', icon: 'table' } + // }, + // { + // path: 'tree', + // name: 'Tree', + // component: () => import('@/views/tree/index'), + // meta: { title: 'Tree', icon: 'tree' } + // } + // ] + // }, + + // { + // path: '/form', + // component: Layout, + // children: [ + // { + // path: 'index', + // name: 'Form', + // component: () => import('@/views/form/index'), + // meta: { title: 'Form', icon: 'form' } + // } + // ] + // }, + + // { + // path: '/nested', + // component: Layout, + // redirect: '/nested/menu1', + // name: 'Nested', + // meta: { + // title: 'Nested', + // icon: 'nested' + // }, + // children: [ + // { + // path: 'menu1', + // component: () => import('@/views/nested/menu1/index'), // Parent router-view + // name: 'Menu1', + // meta: { title: 'Menu1' }, + // children: [ + // { + // path: 'menu1-1', + // component: () => import('@/views/nested/menu1/menu1-1'), + // name: 'Menu1-1', + // meta: { title: 'Menu1-1' } + // }, + // { + // path: 'menu1-2', + // component: () => import('@/views/nested/menu1/menu1-2'), + // name: 'Menu1-2', + // meta: { title: 'Menu1-2' }, + // children: [ + // { + // path: 'menu1-2-1', + // component: () => import('@/views/nested/menu1/menu1-2/menu1-2-1'), + // name: 'Menu1-2-1', + // meta: { title: 'Menu1-2-1' } + // }, + // { + // path: 'menu1-2-2', + // component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'), + // name: 'Menu1-2-2', + // meta: { title: 'Menu1-2-2' } + // } + // ] + // }, + // { + // path: 'menu1-3', + // component: () => import('@/views/nested/menu1/menu1-3'), + // name: 'Menu1-3', + // meta: { title: 'Menu1-3' } + // } + // ] + // }, + // { + // path: 'menu2', + // component: () => import('@/views/nested/menu2/index'), + // name: 'Menu2', + // meta: { title: 'menu2' } + // } + // ] + // }, + + // { + // path: 'external-link', + // component: Layout, + // children: [ + // { + // path: 'https://panjiachen.github.io/vue-element-admin-site/#/', + // meta: { title: 'External Link', icon: 'link' } + // } + // ] + // }, + + // 404 page must be placed at the end !!! + { path: '*', redirect: '/404', hidden: true } +] + +const createRouter = () => new Router({ + // mode: 'history', // require service support + scrollBehavior: () => ({ y: 0 }), + routes: constantRoutes +}) + +const router = createRouter() + +// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465 +export function resetRouter() { + const newRouter = createRouter() + router.matcher = newRouter.matcher // reset router +} + +export default router diff --git a/src/router/index.js b/src/router/index.js index 036c065..2f9dd06 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -86,11 +86,11 @@ export const constantRoutes = [ component: () => import('@/views/approval/index'), hidden: true }, - // { - // path: '/details', - // component: () => import('@/views/record/details'), - // hidden: true - // }, + { + path: '/details', + component: () => import('@/views/record/details'), + hidden: true + }, { path: '/index', component: () => import('@/views/index'), @@ -101,28 +101,67 @@ export const constantRoutes = [ component: () => import('@/views/404'), hidden: true }, - { + + { path: '/', component: Layout, redirect: '/qualitative', - children: [{ - path: 'qualitative', - name: 'Qualitative', - component: () => import('@/views/qualitative/index'), - meta: { title: '定性考核'} - }] - }, - { - path: '/mete', - component: Layout, - redirect: '/mete', - children: [{ - path: 'mete', - name: 'Mete', - component: () => import('@/views/mete/index'), - meta: { title: '定量考核'} - }] + name: 'qualitative', + meta: { title: '数据提报'}, + children: [ + { + path: 'qualitative', + name: 'qualitative', + component: () => import('@/views/qualitative/index'), + meta: { title: '定性考核'} + }, + { + path: 'mete', + name: 'mete', + component: () => import('@/views/mete/index'), + meta: { title: '定量考核'} + } + ] }, + // { + // path: '/', + // component: Layout, + // redirect: '/qualitative', + + // children: [{ + // path: 'qualitative', + // name: 'Qualitative', + // component: () => import('@/views/qualitative/index'), + // meta: { title: '定性考核'} + // }] + // }, + // { + // path: '/mete', + // component: Layout, + // redirect: '/mete', + // children: [{ + // path: 'mete', + // name: 'Mete', + // component: () => import('@/views/mete/index'), + // meta: { title: '定量考核'} + // }] + // }, + // { + // path: '/dashboard', + // component: () => import('@/views/dashboard/index'), + // hidden: true + // }, + // { + // path: '/dashboard', + // component: Layout, + // redirect: '/dashboard', + // children: [{ + // path: 'dashboard', + // name: 'dashboard', + // component: () => import('@/views/dashboard/index'), + // meta: { title: '企业微信'} + // }] + // }, { path: '/approvalData', component: Layout, diff --git a/src/views/approvalData/index.vue b/src/views/approvalData/index.vue index ecadd4f..d12c847 100644 --- a/src/views/approvalData/index.vue +++ b/src/views/approvalData/index.vue @@ -107,7 +107,7 @@ -