-
这里展示月份日历和每日人员排班(待与后端字段对接后完善)
+
+
+
+
+
+
+
{{ day.label }}
+
+
+
+
+
+
+ {{ person.name }}
+
+
+ +{{ day.managers.length - maxShowInCell }}
+
+
+
+
+
+ {{ person.name }}
+
+
+
+
+
+
+ {{ person.name }}
+
+
+
+
+
+ {{ day.isInRange ? '未安排人员' : '不可排班' }}
+
+
+
+
+ 安排人员
+
+
+ 清除
+
+
+
+
-
diff --git a/src/views/planMange/monthlyPlan/index.vue b/src/views/planMange/monthlyPlan/index.vue
index d29216a..cf4c83c 100644
--- a/src/views/planMange/monthlyPlan/index.vue
+++ b/src/views/planMange/monthlyPlan/index.vue
@@ -10,8 +10,32 @@
:show-action="true"
:action-columns="actionColumns"
>
-
+
新增月计划
+
+ 导出人员安排表
+
+
+ 导出整体汇总表
+
+
+ 导出工作量汇总表
+
@@ -68,7 +92,7 @@ const actionColumns = [
handler: (row) => {
router.push({
path: '/plan/monthlyPlanEdit/index',
- query: { id: row.planId, mode: 'detail' },
+ query: { id: row.planId, mode: 'edit' },
})
},
},
@@ -107,6 +131,28 @@ const onHandleSave = () => {
const onCloseDialogOuter = (visible) => {
dialogConfig.outerVisible = visible
}
+
+// 导出人员安排表
+const onExportPersonArrange = (queryParams) => {
+ console.log('queryParams', queryParams)
+ // proxy.download(
+ // 'xxx/xxx',
+ // {
+ // ...queryParams.value,
+ // },
+ // `job_${new Date().getTime()}.xlsx`,
+ // )
+}
+
+// 导出整体汇总表
+const onExportOverallSummary = (queryParams) => {
+ console.log('queryParams', queryParams)
+}
+
+// 导出工作量汇总表
+const onExportWorkloadSummary = (queryParams) => {
+ console.log('queryParams', queryParams)
+}
diff --git a/vite.config.js b/vite.config.js
index 51678f0..c59667e 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,7 +2,8 @@ import { defineConfig, loadEnv } from 'vite'
import path from 'path'
import createVitePlugins from './vite/plugins'
-const baseUrl = 'http://192.168.0.133:58080' // 后端接口地址 超子
+// const baseUrl = 'http://192.168.0.133:58080' // 后端接口地址 超子
+const baseUrl = 'http://localhost:58080' // 后端接口地址 超子
// https://vitejs.dev/config/
export default defineConfig(({ mode, command }) => {