From 53fa8a059c64fc64d70b1dc4f850ab1b93f1296d Mon Sep 17 00:00:00 2001 From: ZhiJian <18625010203@163.com> Date: Sat, 16 Nov 2024 11:05:55 +0800 Subject: [PATCH] =?UTF-8?q?1,=E6=B7=BB=E5=8A=A0=E5=88=97=E8=A1=A8=E9=A1=B9?= =?UTF-8?q?=E6=98=BE=E9=9A=90=E5=8A=9F=E8=83=BD=EF=BC=9B2=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AF=BC=E5=87=BA=E5=85=A8=E9=83=A8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=9B3=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E6=BB=9A=E5=8A=A8=E6=9D=A1=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=EF=BC=9B4=EF=BC=8C=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E8=87=AA=E9=80=82=E5=BA=94=EF=BC=9B5?= =?UTF-8?q?=EF=BC=8C=E6=8C=81=E7=BB=AD=E7=9B=91=E7=AE=A1=E4=B8=8E=E8=87=AA?= =?UTF-8?q?=E6=8F=90=E5=9B=BE=E6=96=91=E6=8C=89=E9=A1=B9=E7=9B=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=88=92=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/web/ZftkTaskController.java | 13 ++ .../cxxm/controller/web/ZtTaskController.java | 12 ++ .../controller/web/ZttbTaskController.java | 13 ++ .../cxxm/domain/entity/zt/ZtTaskExport.java | 9 +- .../domain/entity/zttb/ZttbTaskExport.java | 7 +- .../src/layout/components/TagsView/index.vue | 30 +++- .../src/views/cxxm/zftkTask/assign/index.vue | 165 ++++++++++++----- .../src/views/cxxm/zftkTask/check/index.vue | 119 ++++++++++--- .../views/cxxm/zftkTask/distribute/index.vue | 119 ++++++++++--- .../src/views/cxxm/zftkTask/import/index.vue | 103 +++++++++-- .../src/views/cxxm/zftkTask/project/index.vue | 107 +++++++++-- .../src/views/cxxm/ztTask/assign/index.vue | 167 +++++++++++++----- .../src/views/cxxm/ztTask/check/index.vue | 132 +++++++++++--- .../src/views/cxxm/ztTask/detail/index.vue | 5 +- .../views/cxxm/ztTask/distribute/index.vue | 135 +++++++++++--- .../src/views/cxxm/ztTask/import/index.vue | 118 +++++++++++-- .../src/views/cxxm/ztTask/project/index.vue | 140 ++++++++++++--- .../src/views/cxxm/zttbTask/assign/index.vue | 148 ++++++++++++---- .../src/views/cxxm/zttbTask/check/index.vue | 116 +++++++++--- .../src/views/cxxm/zttbTask/detail/index.vue | 3 +- .../views/cxxm/zttbTask/distribute/index.vue | 124 ++++++++++--- .../src/views/cxxm/zttbTask/import/index.vue | 116 ++++++++++-- .../src/views/cxxm/zttbTask/project/index.vue | 130 +++++++++++--- 23 files changed, 1652 insertions(+), 379 deletions(-) diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZftkTaskController.java b/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZftkTaskController.java index 0afa4c29..e8895704 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZftkTaskController.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZftkTaskController.java @@ -17,9 +17,11 @@ import com.ruoyi.cxxm.domain.entity.zftk.*; import com.ruoyi.cxxm.domain.entity.zt.ZtTask; import com.ruoyi.cxxm.domain.entity.zt.ZtTaskQuery; import com.ruoyi.cxxm.domain.entity.zttb.ZttbTask; +import com.ruoyi.cxxm.mapper.DeptMapper; import com.ruoyi.cxxm.service.IZftkCheckAuditService; import com.ruoyi.cxxm.service.IZftkCheckService; import com.ruoyi.cxxm.service.IZftkCheckVerifyService; +import com.ruoyi.system.mapper.SysDeptMapper; import com.ruoyi.system.service.ISysUserService; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; @@ -56,6 +58,8 @@ public class ZftkTaskController extends BaseController { private IZftkCheckAuditService checkAuditService; @Autowired private IZftkCheckVerifyService checkVerifyService; + @Autowired + private DeptMapper deptMapper; /** * 查询任务列表 @@ -114,6 +118,15 @@ public class ZftkTaskController extends BaseController { } + @ApiOperation("导出全部任务列表") + @Log(title = "导出全部任务", businessType = BusinessType.EXPORT) + @PostMapping("/exportAll") + public void exportAll(HttpServletResponse response) { + Long deptId = this.getLoginUser().getDeptId(); + List list = taskService.lambdaQuery().in(ZftkTask::getDeptId, deptMapper.getAllAncestorsByDeptId(deptId)).list(); + this.handleExport(list, response); + } + private void handleExport(List list,HttpServletResponse response){ ArrayList zftkTaskExports = new ArrayList<>(); diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZtTaskController.java b/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZtTaskController.java index 38e4bb28..8ff54c11 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZtTaskController.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZtTaskController.java @@ -16,6 +16,7 @@ import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.cxxm.domain.entity.zftk.ZftkTask; import com.ruoyi.cxxm.domain.entity.zt.*; import com.ruoyi.cxxm.domain.entity.zttb.ZttbTask; +import com.ruoyi.cxxm.mapper.DeptMapper; import com.ruoyi.cxxm.service.*; import com.ruoyi.system.service.ISysUserService; import io.swagger.annotations.Api; @@ -49,6 +50,8 @@ public class ZtTaskController extends BaseController { private IZtCheckService checkService; @Autowired private IZtCheckAuditService checkAuditService; + @Autowired + private DeptMapper deptMapper; /** * 查询任务列表 @@ -96,6 +99,15 @@ public class ZtTaskController extends BaseController { } + @ApiOperation("导出全部任务列表") + @Log(title = "导出全部任务", businessType = BusinessType.EXPORT) + @PostMapping("/exportAll") + public void exportAll(HttpServletResponse response) { + Long deptId = this.getLoginUser().getDeptId(); + List list = taskService.lambdaQuery().in(ZtTask::getDeptId, deptMapper.getAllAncestorsByDeptId(deptId)).list(); + this.handleExport(list, response); + } + /** * 导出任务列表 */ diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZttbTaskController.java b/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZttbTaskController.java index 27f63925..f4368587 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZttbTaskController.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/controller/web/ZttbTaskController.java @@ -16,7 +16,9 @@ import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.bean.BeanUtils; import com.ruoyi.cxxm.domain.entity.zftk.*; +import com.ruoyi.cxxm.domain.entity.zt.ZtTask; import com.ruoyi.cxxm.domain.entity.zttb.*; +import com.ruoyi.cxxm.mapper.DeptMapper; import com.ruoyi.cxxm.service.IZttbCheckAuditService; import com.ruoyi.cxxm.service.IZttbCheckService; import com.ruoyi.system.service.ISysUserService; @@ -53,6 +55,8 @@ public class ZttbTaskController extends BaseController { private IZttbCheckService checkService; @Autowired private IZttbCheckAuditService checkAuditService; + @Autowired + private DeptMapper deptMapper; /** * 查询任务列表 @@ -110,6 +114,15 @@ public class ZttbTaskController extends BaseController { this.handleExport(list, response); } + @ApiOperation("导出全部任务列表") + @Log(title = "导出全部任务", businessType = BusinessType.EXPORT) + @PostMapping("/exportAll") + public void exportAll(HttpServletResponse response) { + Long deptId = this.getLoginUser().getDeptId(); + List list = taskService.lambdaQuery().in(ZttbTask::getDeptId, deptMapper.getAllAncestorsByDeptId(deptId)).list(); + this.handleExport(list, response); + } + private void handleExport(List list, HttpServletResponse response) { ArrayList zttbTaskExports = new ArrayList<>(); for (ZttbTask task : list) { diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zt/ZtTaskExport.java b/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zt/ZtTaskExport.java index 4b76391a..820f94a9 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zt/ZtTaskExport.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zt/ZtTaskExport.java @@ -118,12 +118,19 @@ public class ZtTaskExport extends BaseEntity { private String jbntmj; + /** + * 项目名称 + */ + @Excel(name = "项目类型",needMerge = true) + @ApiModelProperty(value = "项目类型") + private String xmmc; + /** * 项目名称 */ @Excel(name = "项目名称",needMerge = true) @ApiModelProperty(value = "项目名称") - private String xmmc; + private String mc; /** diff --git a/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zttb/ZttbTaskExport.java b/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zttb/ZttbTaskExport.java index 0acfc41a..f7e47b44 100644 --- a/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zttb/ZttbTaskExport.java +++ b/cxxm/src/main/java/com/ruoyi/cxxm/domain/entity/zttb/ZttbTaskExport.java @@ -121,9 +121,14 @@ public class ZttbTaskExport extends BaseEntity { /** * 项目名称 */ + @Excel(name = "项目类型",needMerge = true) + @ApiModelProperty(value = "项目类型") + private String xmmc; + + @Excel(name = "项目名称",needMerge = true) @ApiModelProperty(value = "项目名称") - private String xmmc; + private String mc; /** diff --git a/ruoyi-ui/src/layout/components/TagsView/index.vue b/ruoyi-ui/src/layout/components/TagsView/index.vue index 1fc23235..e3fee97b 100644 --- a/ruoyi-ui/src/layout/components/TagsView/index.vue +++ b/ruoyi-ui/src/layout/components/TagsView/index.vue @@ -14,12 +14,13 @@ @contextmenu.prevent.native="openMenu(tag,$event)" > {{ tag.title }} - +
  • 刷新页面
  • -
  • 关闭当前
  • +
  • 关闭当前 +
  • 关闭其他
  • 关闭左侧
  • 关闭右侧
  • @@ -33,7 +34,7 @@ import ScrollPane from './ScrollPane' import path from 'path' export default { - components: { ScrollPane }, + components: {ScrollPane}, data() { return { visible: false, @@ -108,7 +109,7 @@ export default { fullPath: tagPath, path: tagPath, name: route.name, - meta: { ...route.meta } + meta: {...route.meta} }) } if (route.children) { @@ -130,7 +131,7 @@ export default { } }, addTags() { - const { name } = this.$route + const {name} = this.$route if (name) { this.$store.dispatch('tagsView/addView', this.$route) if (this.$route.meta.link) { @@ -161,7 +162,7 @@ export default { } }, closeSelectedTag(view) { - this.$tab.closePage(view).then(({ visitedViews }) => { + this.$tab.closePage(view).then(({visitedViews}) => { if (this.isActive(view)) { this.toLastView(visitedViews, view) } @@ -182,13 +183,14 @@ export default { }) }, closeOthersTags() { - this.$router.push(this.selectedTag.fullPath).catch(()=>{}); + this.$router.push(this.selectedTag.fullPath).catch(() => { + }); this.$tab.closeOtherPage(this.selectedTag).then(() => { this.moveToCurrentTag() }) }, closeAllTags(view) { - this.$tab.closeAllPage().then(({ visitedViews }) => { + this.$tab.closeAllPage().then(({visitedViews}) => { if (this.affixTags.some(tag => tag.path === this.$route.path)) { return } @@ -204,7 +206,7 @@ export default { // you can adjust it according to your needs. if (view.name === 'Dashboard') { // to reload home page - this.$router.replace({ path: '/redirect' + view.fullPath }) + this.$router.replace({path: '/redirect' + view.fullPath}) } else { this.$router.push('/') } @@ -244,6 +246,7 @@ export default { background: #fff; border-bottom: 1px solid #d8dce5; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04); + .tags-view-wrapper { .tags-view-item { display: inline-block; @@ -258,16 +261,20 @@ export default { font-size: 12px; margin-left: 5px; margin-top: 4px; + &:first-of-type { margin-left: 15px; } + &:last-of-type { margin-right: 15px; } + &.active { background-color: #42b983; color: #fff; border-color: #42b983; + &::before { content: ''; background: #fff; @@ -281,6 +288,7 @@ export default { } } } + .contextmenu { margin: 0; background: #fff; @@ -293,10 +301,12 @@ export default { font-weight: 400; color: #333; box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, .3); + li { margin: 0; padding: 7px 16px; cursor: pointer; + &:hover { background: #eee; } @@ -317,11 +327,13 @@ export default { text-align: center; transition: all .3s cubic-bezier(.645, .045, .355, 1); transform-origin: 100% 50%; + &:before { transform: scale(.6); display: inline-block; vertical-align: -3px; } + &:hover { background-color: #b4bccc; color: #fff; diff --git a/ruoyi-ui/src/views/cxxm/zftkTask/assign/index.vue b/ruoyi-ui/src/views/cxxm/zftkTask/assign/index.vue index 8ad5dcfe..c1da91cc 100644 --- a/ruoyi-ui/src/views/cxxm/zftkTask/assign/index.vue +++ b/ruoyi-ui/src/views/cxxm/zftkTask/assign/index.vue @@ -33,7 +33,7 @@ v-model="queryParams.dkh" placeholder="请输入搜索内容" clearable - @keyup.enter.native="handleQuery" + @change="handleQuery" /> @@ -91,31 +91,31 @@ - + - + - - - - - - - - - - - - - + + + + - + + + + + - + + + + + + + + + + + + + + @@ -141,20 +156,7 @@ - - - - - - - +