diff --git a/.env.development b/.env.development index be9282e..74cfb21 100644 --- a/.env.development +++ b/.env.development @@ -9,3 +9,6 @@ VUE_APP_BASE_API = '/dev-api' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true + +# 登录账密凭据加密 +VUE_APP_ENABLE_SECRET=true diff --git a/src/api/login.js b/src/api/login.js index 649f59c..ee6e005 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -1,4 +1,5 @@ import request from '@/utils/request' +import { encrypt } from '@/utils/jsencrypt' // 公钥,私钥都声明在里面 // 登录方法 export function login(username, password, code, uuid) { @@ -8,6 +9,11 @@ export function login(username, password, code, uuid) { code, uuid } + if(process.env.VUE_APP_ENABLE_SECRET) + { + data.username = encrypt(username); + data.password = encrypt(password); + } return request({ url: '/login', headers: { @@ -49,11 +55,11 @@ export function logout() { // 获取验证码 export function getCodeImg() { return request({ - url: '/captchaImage', + url: '/gkyzm', headers: { isToken: false }, method: 'get', timeout: 20000 }) -} \ No newline at end of file +} diff --git a/src/assets/images/audit_icon_none.png b/src/assets/images/audit_icon_none.png new file mode 100644 index 0000000..63e6def Binary files /dev/null and b/src/assets/images/audit_icon_none.png differ diff --git a/src/assets/images/login_bg.jpg b/src/assets/images/login_bg.jpg new file mode 100644 index 0000000..10ce5c8 Binary files /dev/null and b/src/assets/images/login_bg.jpg differ diff --git a/src/assets/images/managerAbnormal_icon_none.png b/src/assets/images/managerAbnormal_icon_none.png new file mode 100644 index 0000000..a33e37c Binary files /dev/null and b/src/assets/images/managerAbnormal_icon_none.png differ diff --git a/src/assets/images/toBeAllocated_icon_delete.png b/src/assets/images/toBeAllocated_icon_delete.png new file mode 100644 index 0000000..4dc4a0b Binary files /dev/null and b/src/assets/images/toBeAllocated_icon_delete.png differ diff --git a/src/assets/images/toBeAllocated_icon_none.png b/src/assets/images/toBeAllocated_icon_none.png new file mode 100644 index 0000000..7d0ff0c Binary files /dev/null and b/src/assets/images/toBeAllocated_icon_none.png differ diff --git a/src/permission.js b/src/permission.js index 609d215..056b005 100644 --- a/src/permission.js +++ b/src/permission.js @@ -8,7 +8,7 @@ import { isRelogin } from '@/utils/request' NProgress.configure({ showSpinner: false }) -const whiteList = ['/login', '/register'] +const whiteList = ['/login', '/login_new', '/register'] router.beforeEach((to, from, next) => { NProgress.start() diff --git a/src/router/index.js b/src/router/index.js index b370bdd..ad6d52c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -46,6 +46,11 @@ export const constantRoutes = [ component: () => import('@/views/login'), hidden: true }, + { + path: '/login_new', + component: () => import('@/views/login_new'), + hidden: true + }, { path: '/register', component: () => import('@/views/register'), @@ -87,7 +92,55 @@ export const constantRoutes = [ meta: { title: '个人中心', icon: 'user' } } ] - } + }, + //待处理 + { + path: '/todo', + component: () => import('@/views/taskAllocation/todo'), + hidden: true + }, + //已处理 + { + path: '/processed', + component: () => import('@/views/processed/processed'), + hidden: true + }, + //异常任务 + { + path: '/abnormal', + component: () => import('@/views/abnormal/abnormal'), + hidden: true + }, + //处理中 + { + path: '/processing', + component: () => import('@/views/processing/processing'), + hidden: true + }, + //待分配 + { + path: '/toBeAllocated', + component: () => import('@/views/toBeAllocated/toBeAllocated'), + hidden: true + }, + //待分配 + { + path: '/audit', + component: () => import('@/views/audit/audit'), + hidden: true + }, + //主管异常任务 + { + path: '/managerAbnormal', + component: () => import('@/views/managerAbnormal/managerAbnormal'), + hidden: true + }, + //全部任务 + { + path: '/allTasks', + component: () => import('@/views/allTasks/allTasks'), + hidden: true + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/abnormal/abnormal.vue b/src/views/abnormal/abnormal.vue new file mode 100644 index 0000000..f6e82b7 --- /dev/null +++ b/src/views/abnormal/abnormal.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/src/views/allTasks/allTasks.vue b/src/views/allTasks/allTasks.vue new file mode 100644 index 0000000..44d7640 --- /dev/null +++ b/src/views/allTasks/allTasks.vue @@ -0,0 +1,484 @@ + + + + + diff --git a/src/views/audit/audit.vue b/src/views/audit/audit.vue new file mode 100644 index 0000000..7dee2b0 --- /dev/null +++ b/src/views/audit/audit.vue @@ -0,0 +1,452 @@ + + + + + diff --git a/src/views/login_new.vue b/src/views/login_new.vue new file mode 100644 index 0000000..9384cf7 --- /dev/null +++ b/src/views/login_new.vue @@ -0,0 +1,266 @@ + + + + + diff --git a/src/views/managerAbnormal/managerAbnormal.vue b/src/views/managerAbnormal/managerAbnormal.vue new file mode 100644 index 0000000..b438703 --- /dev/null +++ b/src/views/managerAbnormal/managerAbnormal.vue @@ -0,0 +1,328 @@ + + + + + diff --git a/src/views/processed/processed.vue b/src/views/processed/processed.vue new file mode 100644 index 0000000..a375bd3 --- /dev/null +++ b/src/views/processed/processed.vue @@ -0,0 +1,385 @@ + + + + + diff --git a/src/views/processing/processing.vue b/src/views/processing/processing.vue new file mode 100644 index 0000000..2509868 --- /dev/null +++ b/src/views/processing/processing.vue @@ -0,0 +1,445 @@ + + + + + diff --git a/src/views/taskAllocation/todo.vue b/src/views/taskAllocation/todo.vue new file mode 100644 index 0000000..fc7753c --- /dev/null +++ b/src/views/taskAllocation/todo.vue @@ -0,0 +1,353 @@ + + + + + diff --git a/src/views/toBeAllocated/toBeAllocated.vue b/src/views/toBeAllocated/toBeAllocated.vue new file mode 100644 index 0000000..f516039 --- /dev/null +++ b/src/views/toBeAllocated/toBeAllocated.vue @@ -0,0 +1,522 @@ + + + + +