diff --git a/src/api/project/monthJD.js b/src/api/project/monthJD.js new file mode 100644 index 0000000..3311bf5 --- /dev/null +++ b/src/api/project/monthJD.js @@ -0,0 +1,28 @@ +import request from '@/utils/request'; + +// 项目进度上报导入 +export function MonthReportImport(data) { + return request({ + url: `/business/projectMonthReport/import`, + method: 'post', + data, + }); +} + +// 项目进度上报 搜索 +export const MonthReportPage = params => { + return request({ + url: `/business/projectMonthReport/page`, + method: 'get', + params, + }); +}; + +// 项目进度上报 修改 +export const MonthReportEdit = data => { + return request({ + url: `/business/projectMonthReport/edit`, + method: 'put', + data, + }); +}; diff --git a/src/api/project/monthJD.js b/src/api/project/monthJD.js new file mode 100644 index 0000000..3311bf5 --- /dev/null +++ b/src/api/project/monthJD.js @@ -0,0 +1,28 @@ +import request from '@/utils/request'; + +// 项目进度上报导入 +export function MonthReportImport(data) { + return request({ + url: `/business/projectMonthReport/import`, + method: 'post', + data, + }); +} + +// 项目进度上报 搜索 +export const MonthReportPage = params => { + return request({ + url: `/business/projectMonthReport/page`, + method: 'get', + params, + }); +}; + +// 项目进度上报 修改 +export const MonthReportEdit = data => { + return request({ + url: `/business/projectMonthReport/edit`, + method: 'put', + data, + }); +}; diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 477237b..befedb4 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -153,7 +153,6 @@ menuList.value = menuList.value.filter(item => item.name != 'SponeScreen'); //不显示一张图 menuList1.value = menuList.value; activeIndex.value = localStorage.getItem('routerPartXG'); //默认选中 - console.log(activeIndex.value, 'activeIndex.value'); bus.on('closeUserCenter', e => { dialogShow.value = false; }); diff --git a/src/api/project/monthJD.js b/src/api/project/monthJD.js new file mode 100644 index 0000000..3311bf5 --- /dev/null +++ b/src/api/project/monthJD.js @@ -0,0 +1,28 @@ +import request from '@/utils/request'; + +// 项目进度上报导入 +export function MonthReportImport(data) { + return request({ + url: `/business/projectMonthReport/import`, + method: 'post', + data, + }); +} + +// 项目进度上报 搜索 +export const MonthReportPage = params => { + return request({ + url: `/business/projectMonthReport/page`, + method: 'get', + params, + }); +}; + +// 项目进度上报 修改 +export const MonthReportEdit = data => { + return request({ + url: `/business/projectMonthReport/edit`, + method: 'put', + data, + }); +}; diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 477237b..befedb4 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -153,7 +153,6 @@ menuList.value = menuList.value.filter(item => item.name != 'SponeScreen'); //不显示一张图 menuList1.value = menuList.value; activeIndex.value = localStorage.getItem('routerPartXG'); //默认选中 - console.log(activeIndex.value, 'activeIndex.value'); bus.on('closeUserCenter', e => { dialogShow.value = false; }); diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 7751c3e..f63caad 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -95,8 +95,7 @@ } else { paths = route.path; //当前的路由 } - console.log(localStorage.getItem('fromDoorXG'), paths, newArr, '2222'); - console.log('路由跳转位置--', paths); + // console.log('路由跳转位置--', paths); router.push(paths); //重定向打开路由 sidebarRouters.value = newArr; //添加子菜单 // 海绵综合一张图,不显示左侧菜单列表 diff --git a/src/api/project/monthJD.js b/src/api/project/monthJD.js new file mode 100644 index 0000000..3311bf5 --- /dev/null +++ b/src/api/project/monthJD.js @@ -0,0 +1,28 @@ +import request from '@/utils/request'; + +// 项目进度上报导入 +export function MonthReportImport(data) { + return request({ + url: `/business/projectMonthReport/import`, + method: 'post', + data, + }); +} + +// 项目进度上报 搜索 +export const MonthReportPage = params => { + return request({ + url: `/business/projectMonthReport/page`, + method: 'get', + params, + }); +}; + +// 项目进度上报 修改 +export const MonthReportEdit = data => { + return request({ + url: `/business/projectMonthReport/edit`, + method: 'put', + data, + }); +}; diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 477237b..befedb4 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -153,7 +153,6 @@ menuList.value = menuList.value.filter(item => item.name != 'SponeScreen'); //不显示一张图 menuList1.value = menuList.value; activeIndex.value = localStorage.getItem('routerPartXG'); //默认选中 - console.log(activeIndex.value, 'activeIndex.value'); bus.on('closeUserCenter', e => { dialogShow.value = false; }); diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 7751c3e..f63caad 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -95,8 +95,7 @@ } else { paths = route.path; //当前的路由 } - console.log(localStorage.getItem('fromDoorXG'), paths, newArr, '2222'); - console.log('路由跳转位置--', paths); + // console.log('路由跳转位置--', paths); router.push(paths); //重定向打开路由 sidebarRouters.value = newArr; //添加子菜单 // 海绵综合一张图,不显示左侧菜单列表 diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index a74a0c4..1fb07a6 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -31,7 +31,6 @@ const rewriteRoutes = filterAsyncRouter(rdata, false, true); this.setSidebarRouters(constantRoutes.concat(sidebarRoutes)); resolve(rewriteRoutes); - console.log('2222222222222', rewriteRoutes); // 登录成功之后才默认加载菜单设置 if (localStorage.getItem('fromDoorXG') == 'chengguanweiScreen') { localStorage.setItem('routerPartXG', rewriteRoutes[1].name); //默认加载第一个菜单 diff --git a/src/api/project/monthJD.js b/src/api/project/monthJD.js new file mode 100644 index 0000000..3311bf5 --- /dev/null +++ b/src/api/project/monthJD.js @@ -0,0 +1,28 @@ +import request from '@/utils/request'; + +// 项目进度上报导入 +export function MonthReportImport(data) { + return request({ + url: `/business/projectMonthReport/import`, + method: 'post', + data, + }); +} + +// 项目进度上报 搜索 +export const MonthReportPage = params => { + return request({ + url: `/business/projectMonthReport/page`, + method: 'get', + params, + }); +}; + +// 项目进度上报 修改 +export const MonthReportEdit = data => { + return request({ + url: `/business/projectMonthReport/edit`, + method: 'put', + data, + }); +}; diff --git a/src/layout/components/HeaderSys/index.vue b/src/layout/components/HeaderSys/index.vue index 477237b..befedb4 100644 --- a/src/layout/components/HeaderSys/index.vue +++ b/src/layout/components/HeaderSys/index.vue @@ -153,7 +153,6 @@ menuList.value = menuList.value.filter(item => item.name != 'SponeScreen'); //不显示一张图 menuList1.value = menuList.value; activeIndex.value = localStorage.getItem('routerPartXG'); //默认选中 - console.log(activeIndex.value, 'activeIndex.value'); bus.on('closeUserCenter', e => { dialogShow.value = false; }); diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 7751c3e..f63caad 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -95,8 +95,7 @@ } else { paths = route.path; //当前的路由 } - console.log(localStorage.getItem('fromDoorXG'), paths, newArr, '2222'); - console.log('路由跳转位置--', paths); + // console.log('路由跳转位置--', paths); router.push(paths); //重定向打开路由 sidebarRouters.value = newArr; //添加子菜单 // 海绵综合一张图,不显示左侧菜单列表 diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index a74a0c4..1fb07a6 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -31,7 +31,6 @@ const rewriteRoutes = filterAsyncRouter(rdata, false, true); this.setSidebarRouters(constantRoutes.concat(sidebarRoutes)); resolve(rewriteRoutes); - console.log('2222222222222', rewriteRoutes); // 登录成功之后才默认加载菜单设置 if (localStorage.getItem('fromDoorXG') == 'chengguanweiScreen') { localStorage.setItem('routerPartXG', rewriteRoutes[1].name); //默认加载第一个菜单 diff --git a/src/views/project/projectJinDu/monthReport.vue b/src/views/project/projectJinDu/monthReport.vue index 77c1e1d..b798c1b 100644 --- a/src/views/project/projectJinDu/monthReport.vue +++ b/src/views/project/projectJinDu/monthReport.vue @@ -3,16 +3,16 @@
- - + + - - - + + + - - + + @@ -25,18 +25,35 @@ - + - - - - - - - - - - + + + + + + + + + + + + + +