diff --git a/src/api/stand.js b/src/api/stand.js index 9deb18d..dc1c9f2 100644 --- a/src/api/stand.js +++ b/src/api/stand.js @@ -16,7 +16,25 @@ const updateStandInfo = (params) => { }) } +const switchToCreate = (params) => { + return request({ + url: '/stand/switchToCreate', + method: 'post', + data: params + }) +} + +const switchToDistribute = (params) => { + return request({ + url: '/stand/switchToDistribute', + method: 'post', + data: params + }) +} + export { getStandsByPage, - updateStandInfo + updateStandInfo, + switchToCreate, + switchToDistribute } \ No newline at end of file diff --git a/src/layout/standSettings.vue b/src/layout/standSettings.vue index 2dffe82..969b91b 100644 --- a/src/layout/standSettings.vue +++ b/src/layout/standSettings.vue @@ -13,6 +13,8 @@ placeholder="是否允许平地机" :options="yesOrNoOptions" @change="search()"> 搜索 重置 + 一键切换创建工作 + 一键切换分配工作
@@ -156,6 +158,10 @@ import {Search} from '@element-plus/icons-vue' import zhCn from 'element-plus/dist/locale/zh-cn.mjs' + + + \ No newline at end of file diff --git a/src/layout/workSummary.vue b/src/layout/workSummary.vue index 73cb86e..f3d611c 100644 --- a/src/layout/workSummary.vue +++ b/src/layout/workSummary.vue @@ -1,306 +1,309 @@ \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index ac7696b..eb92efa 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -44,7 +44,7 @@ const routes = [ { path: '/stockUpdateRecord', component: () => import('@/layout/stockUpdateRecord.vue') },// 库存更新记录 { path: '/roleUser', component: () => import('@/layout/role_user.vue') },// 角色——用户列表 { path: '/rolePermission', component: () => import('@/layout/role_permission.vue') },// 角色——权限列表 - + { path: '/workDateTable', component: () => import('@/layout/workDateTable.vue') },// 工作日历 ] }, {