diff --git a/public/favicon.ico-1 b/public/favicon.ico-1 deleted file mode 100644 index e263760..0000000 Binary files a/public/favicon.ico-1 and /dev/null differ diff --git a/src/api/planMange/dailyPlan.js b/src/api/planMange/dailyPlan.js index 21802cb..da00969 100644 --- a/src/api/planMange/dailyPlan.js +++ b/src/api/planMange/dailyPlan.js @@ -1,36 +1,45 @@ import request from '@/utils/request' -// 计划管理- 查询列表 -export function listPlanAPI(query) { +// 日计划管理- 查询列表 +export function listDailyPlanAPI(query) { return request({ - url: '/personnel/getPersonnelList', + url: '/dayPlan/getDayPlanList', method: 'GET', params: query, }) } -// 计划管理- 新增 -export function addPlanAPI(data) { +// 日计划管理- 新增 +export function addDailyPlanAPI(data) { return request({ - url: '/personnel/addPersonnel', + url: '/dayPlan/addDayPlan', method: 'POST', data, }) } -// 计划管理- 修改 -export function updatePlanAPI(data) { +// 日计划管理- 新增弹框内获取的计划列表 +export function listDailyPlanPopupAPI(query) { return request({ - url: '/personnel/updatePersonnel', + url: '/monthlyPlan/getMonthlyPlanLists', + method: 'GET', + params: query, + }) +} + +// 日计划管理- 修改 +export function updateDailyPlanAPI(data) { + return request({ + url: '/dayPlan/updateDayPlan', method: 'POST', data, }) } -// 计划管理- 删除 -export function delPlanAPI(data) { +// 日计划管理- 删除 +export function delDailyPlanAPI(data) { return request({ - url: `/personnel/delPersonnel`, + url: `/dayPlan/delDayPlan`, method: 'POST', data, }) diff --git a/src/components/ComTable/index.vue b/src/components/ComTable/index.vue index a79fca2..00d9798 100644 --- a/src/components/ComTable/index.vue +++ b/src/components/ComTable/index.vue @@ -36,7 +36,7 @@ :formData=" Object.assign({}, searchFormRef?.getFormData() || {}, { pageNum: pagination.page, - pageSize: pagination.pageSize, + pageSize: pagination.limit, }) || {} " /> @@ -133,7 +133,7 @@ const loading = ref(false) const tableData = ref([]) const pagination = reactive({ page: 1, - pageSize: 10, + limit: 10, total: 0, }) @@ -187,7 +187,7 @@ const fetchData = async (formData = {}) => { ...formData, ...props.defaultQueryParams, pageNum: pagination.page, // 后端可能需要pageNum - pageSize: pagination.pageSize, // 后端可能需要pageSize + pageSize: pagination.limit, // 后端可能需要pageSize } const response = await props.loadData(params) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 249cb27..ecbe5a9 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -112,7 +112,8 @@ function logout() { }) .then(() => { userStore.logOut().then(() => { - location.href = '/index' + // location.href = '/index' + location.href = import.meta.env.VITE_APP_PUBLIC_PATH + '/index' }) }) .catch(() => {}) @@ -130,136 +131,137 @@ function toggleTheme() { diff --git a/src/utils/request.js b/src/utils/request.js index 4858891..8304385 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -104,7 +104,8 @@ service.interceptors.response.use( useUserStore() .logOut() .then(() => { - location.href = '/index' + // location.href = '/index' + location.href = import.meta.env.VITE_APP_PUBLIC_PATH + '/index' }) }) .catch(() => { diff --git a/src/views/personManage/Person/index.vue b/src/views/personManage/Person/index.vue index 1d083e1..0ad94d8 100644 --- a/src/views/personManage/Person/index.vue +++ b/src/views/personManage/Person/index.vue @@ -75,7 +75,7 @@ const editId = ref(null) const { options: inspectionStationOptions } = useOptions( 'inspectionStationOptions', getInspectionStationSelectAPI, - { category: 0 }, + {}, ) const { options: positionOptions } = useOptions( 'positionOptions', diff --git a/src/views/planMange/dailyPlan/addForm.vue b/src/views/planMange/dailyPlan/addForm.vue index 549b94a..6c7d62d 100644 --- a/src/views/planMange/dailyPlan/addForm.vue +++ b/src/views/planMange/dailyPlan/addForm.vue @@ -1,102 +1,111 @@ diff --git a/src/views/planMange/dailyPlan/config.js b/src/views/planMange/dailyPlan/config.js index 5ac74a0..84fca36 100644 --- a/src/views/planMange/dailyPlan/config.js +++ b/src/views/planMange/dailyPlan/config.js @@ -55,11 +55,11 @@ export const buildFormColumns = () => [ // 月计划列表表格列 export const tableColumns = [ - { prop: 'stationName', label: '日期', fixed: true }, - { prop: 'majorName', label: '运检站', fixed: true }, - { prop: 'businessTypeName', label: '专业', fixed: true }, + { prop: 'dayPlan', label: '日期', fixed: true, width: '140' }, + { prop: 'inspectionStationName', label: '运检站', fixed: true }, + { prop: 'planMajorName', label: '专业', fixed: true }, { prop: 'projectName', label: '项目名称', fixed: true }, - { prop: 'workTask', label: '工作任务' }, + { prop: 'workContent', label: '工作任务' }, { prop: 'riskLevelName', label: '风险等级' }, { prop: 'categoryName', label: '计划工作量(基)' }, ] @@ -107,7 +107,7 @@ export const tableColumns_2 = [ export const dialogConfig = reactive({ outerVisible: false, - outerTitle: '新增计划', + outerTitle: '添加计划任务', outerWidth: '70%', // 根据图片缩小宽度更美观 minHeight: '70vh', maxHeight: '90vh', diff --git a/src/views/planMange/dailyPlan/edit.vue b/src/views/planMange/dailyPlan/edit.vue index b0384d6..c19a164 100644 --- a/src/views/planMange/dailyPlan/edit.vue +++ b/src/views/planMange/dailyPlan/edit.vue @@ -1,301 +1,671 @@ - diff --git a/src/views/planMange/dailyPlan/forms/projectForm.vue b/src/views/planMange/dailyPlan/forms/projectForm.vue new file mode 100644 index 0000000..882ca73 --- /dev/null +++ b/src/views/planMange/dailyPlan/forms/projectForm.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/forms/repairForm.vue b/src/views/planMange/dailyPlan/forms/repairForm.vue new file mode 100644 index 0000000..b018d7b --- /dev/null +++ b/src/views/planMange/dailyPlan/forms/repairForm.vue @@ -0,0 +1,1034 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/forms/runForm.vue b/src/views/planMange/dailyPlan/forms/runForm.vue new file mode 100644 index 0000000..b54f11f --- /dev/null +++ b/src/views/planMange/dailyPlan/forms/runForm.vue @@ -0,0 +1,591 @@ + + + + + diff --git a/src/views/planMange/dailyPlan/index.vue b/src/views/planMange/dailyPlan/index.vue index f9304c3..09fc001 100644 --- a/src/views/planMange/dailyPlan/index.vue +++ b/src/views/planMange/dailyPlan/index.vue @@ -2,9 +2,9 @@
- - - + + + 下载统计表 @@ -15,13 +15,15 @@ :key="tableType" :show-toolbar="true" :show-action="true" - :load-data="listPlanAPI" :form-columns="formColumns" + :load-data="listDailyPlanAPI" :table-columns="initTableColumns" :action-columns="actionColumns" + :defaultQueryParams="{ dayPlanType: tableType }" >