From bc4d6e14ca419b83883434e64b9abebd2eb43f46 Mon Sep 17 00:00:00 2001 From: haha Date: Fri, 28 Feb 2025 00:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=9A=90=E6=82=A3=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/SmzSspProblemmodifyMapper.java | 1 + .../impl/SmzSspProblemmodifyServiceImpl.java | 7 +- .../src/api/trouble/problemmodify.js | 46 ++-- .../src/api/trouble/problemmodifyDraft.js | 38 +-- .../views/flowable/task/todo/detail/index.vue | 132 ++++----- .../src/views/manage/costOutput/costMonth.vue | 51 ++-- .../src/views/manage/costOutput/costYear.vue | 33 +-- .../src/views/trouble/problemmodify/index.vue | 249 ++++------------- .../trouble/problemmodifyDraft/index.vue | 250 +++++++++++------- 9 files changed, 362 insertions(+), 445 deletions(-) diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/mapper/SmzSspProblemmodifyMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/mapper/SmzSspProblemmodifyMapper.java index 6bb43f27..27ec9472 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/mapper/SmzSspProblemmodifyMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/manage/mapper/SmzSspProblemmodifyMapper.java @@ -58,4 +58,5 @@ public interface SmzSspProblemmodifyMapper * @return 结果 */ public int deleteSmzSspProblemmodifyByIds(Long[] ids); + } diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/service/impl/SmzSspProblemmodifyServiceImpl.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/service/impl/SmzSspProblemmodifyServiceImpl.java index bbfa3a6f..7be5a1ec 100644 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/service/impl/SmzSspProblemmodifyServiceImpl.java +++ b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/service/impl/SmzSspProblemmodifyServiceImpl.java @@ -1,6 +1,7 @@ package com.yanzhu.manage.service.impl; import java.util.List; +import java.util.concurrent.atomic.AtomicInteger; import com.yanzhu.common.core.context.SecurityContextHolder; import com.yanzhu.common.core.utils.DateUtils; @@ -100,10 +101,14 @@ public class SmzSspProblemmodifyServiceImpl implements ISmzSspProblemmodifyServi @Override public int insertSmzSspProblemmodifies(List list) { + AtomicInteger count = new AtomicInteger(); list.stream().forEach(it->{ + it.setCheckState(0L); + it.setIsDel(0L); it.setCreateTime(DateUtils.getNowDate()); it.setCreateBy(SecurityContextHolder.getUserName()); + count.addAndGet(smzSspProblemmodifyMapper.insertSmzSspProblemmodify(it)); }); - return 0; + return count.get(); } } diff --git a/yanzhu-ui-vue3/src/api/trouble/problemmodify.js b/yanzhu-ui-vue3/src/api/trouble/problemmodify.js index 6a984613..f352f7ee 100644 --- a/yanzhu-ui-vue3/src/api/trouble/problemmodify.js +++ b/yanzhu-ui-vue3/src/api/trouble/problemmodify.js @@ -1,44 +1,52 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // 查询安全隐患整改列表 export function listProblemmodify(query) { return request({ - url: '/trouble/problemmodify/list', - method: 'get', - params: query - }) + url: "/manage/problemmodify/list", + method: "get", + params: query, + }); } // 查询安全隐患整改详细 export function getProblemmodify(id) { return request({ - url: '/trouble/problemmodify/' + id, - method: 'get' - }) + url: "/manage/problemmodify/" + id, + method: "get", + }); } // 新增安全隐患整改 export function addProblemmodify(data) { return request({ - url: '/trouble/problemmodify', - method: 'post', - data: data - }) + url: "/manage/problemmodify", + method: "post", + data: data, + }); } // 修改安全隐患整改 export function updateProblemmodify(data) { return request({ - url: '/trouble/problemmodify', - method: 'put', - data: data - }) + url: "/manage/problemmodify", + method: "put", + data: data, + }); } // 删除安全隐患整改 export function delProblemmodify(id) { return request({ - url: '/trouble/problemmodify/' + id, - method: 'delete' - }) + url: "/manage/problemmodify/" + id, + method: "delete", + }); +} + +export function batchAddProblemmodify(datas) { + return request({ + url: "/manage/problemmodify/batchAdd", + method: "post", + data: datas, + }); } diff --git a/yanzhu-ui-vue3/src/api/trouble/problemmodifyDraft.js b/yanzhu-ui-vue3/src/api/trouble/problemmodifyDraft.js index c6a30fa8..684e8838 100644 --- a/yanzhu-ui-vue3/src/api/trouble/problemmodifyDraft.js +++ b/yanzhu-ui-vue3/src/api/trouble/problemmodifyDraft.js @@ -1,44 +1,44 @@ -import request from '@/utils/request' +import request from "@/utils/request"; // 查询安全问题草稿列表 export function listProblemmodifyDraft(query) { return request({ - url: '/trouble/problemmodifyDraft/list', - method: 'get', - params: query - }) + url: "/manage/problemmodifyDraft/list", + method: "get", + params: query, + }); } // 查询安全问题草稿详细 export function getProblemmodifyDraft(id) { return request({ - url: '/trouble/problemmodifyDraft/' + id, - method: 'get' - }) + url: "/manage/problemmodifyDraft/" + id, + method: "get", + }); } // 新增安全问题草稿 export function addProblemmodifyDraft(data) { return request({ - url: '/trouble/problemmodifyDraft', - method: 'post', - data: data - }) + url: "/manage/problemmodifyDraft", + method: "post", + data: data, + }); } // 修改安全问题草稿 export function updateProblemmodifyDraft(data) { return request({ - url: '/trouble/problemmodifyDraft', - method: 'put', - data: data - }) + url: "/manage/problemmodifyDraft", + method: "put", + data: data, + }); } // 删除安全问题草稿 export function delProblemmodifyDraft(id) { return request({ - url: '/trouble/problemmodifyDraft/' + id, - method: 'delete' - }) + url: "/manage/problemmodifyDraft/" + id, + method: "delete", + }); } diff --git a/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue b/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue index d02213de..89b7940f 100644 --- a/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue +++ b/yanzhu-ui-vue3/src/views/flowable/task/todo/detail/index.vue @@ -13,14 +13,14 @@ - +
审 批 - - - + + + - +
@@ -31,69 +31,77 @@
- +

{{ item.taskName }}

- + - {{item.assigneeName}} - {{item.deptName}} + {{ item.assigneeName }} + {{ item.deptName }} - + - {{item.candidate}} + {{ item.candidate }} - + - {{item.createTime}} + {{ item.createTime }} - + - {{item.finishTime}} + {{ item.finishTime }} - + - {{item.duration}} + {{ item.duration }} - + - {{item.comment.comment}} + {{ item.comment.comment }} @@ -105,7 +113,7 @@ - + @@ -117,15 +125,15 @@ - + :rules="[{ required: true, message: '请输入处理意见', trigger: 'blur' }]"> + @@ -134,23 +142,18 @@ - {{ item.name }} + {{ item.name }} - - + + @@ -158,9 +161,8 @@ - - + + \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/views/manage/costOutput/costYear.vue b/yanzhu-ui-vue3/src/views/manage/costOutput/costYear.vue index 25322ca5..643f21a0 100644 --- a/yanzhu-ui-vue3/src/views/manage/costOutput/costYear.vue +++ b/yanzhu-ui-vue3/src/views/manage/costOutput/costYear.vue @@ -9,11 +9,12 @@
- 取消 - 确定 + 取消 + 确定
@@ -32,9 +33,9 @@ \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/views/trouble/problemmodify/index.vue b/yanzhu-ui-vue3/src/views/trouble/problemmodify/index.vue index d29360e4..a6255f5c 100644 --- a/yanzhu-ui-vue3/src/views/trouble/problemmodify/index.vue +++ b/yanzhu-ui-vue3/src/views/trouble/problemmodify/index.vue @@ -2,220 +2,91 @@
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - - + - - + - + 搜索 @@ -225,42 +96,20 @@ - 新增 + 新增 - 修改 + 修改 - 删除 + 删除 - 导出 + 导出 @@ -315,19 +164,16 @@ - - + + @@ -375,10 +221,7 @@ - @@ -427,7 +270,7 @@