From be9e392ec72a6ca4c58d2ecd05e7b4e8b2929d95 Mon Sep 17 00:00:00 2001 From: haha Date: Tue, 4 Mar 2025 00:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=9A=90=E6=82=A3=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trouble/SmzSspProblemmodifyMapper.xml | 2 +- .../impl/SmzSspProblemmodifyServiceImpl.java | 9 +- yanzhu-ui-vue3/src/assets/icons/svg/twrap.svg | 1 + .../src/views/system/user/index.vue | 7 +- .../trouble/problemmodify/detailDrawer.vue | 214 +++++++++++++++++- 5 files changed, 217 insertions(+), 16 deletions(-) create mode 100644 yanzhu-ui-vue3/src/assets/icons/svg/twrap.svg diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml index 3eea4c3b..cabbe36b 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/trouble/SmzSspProblemmodifyMapper.xml @@ -272,7 +272,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" a.checkUserPhone, a.smark_url, a.isDel, - c.nick_name as createUser, + CONCAT(c.nick_name,'【',c.phonenumber,'】') as createUser, a.createTime, a.updateUser, a.updateTime, 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 fa9f988a..7c2984da 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 @@ -7,6 +7,8 @@ import java.util.concurrent.atomic.AtomicInteger; import com.yanzhu.common.core.context.SecurityContextHolder; import com.yanzhu.common.core.utils.DateUtils; import com.yanzhu.common.security.utils.SecurityUtils; +import com.yanzhu.system.api.domain.SysUser; +import com.yanzhu.system.api.model.LoginUser; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.yanzhu.manage.mapper.SmzSspProblemmodifyMapper; @@ -104,12 +106,15 @@ public class SmzSspProblemmodifyServiceImpl implements ISmzSspProblemmodifyServi @Override public int insertSmzSspProblemmodifies(List list) { AtomicInteger count = new AtomicInteger(); + LoginUser loginUser=SecurityUtils.getLoginUser(); + SysUser sysUser=loginUser.getSysUser(); list.stream().forEach(it->{ it.setCheckState(0L); it.setIsDel(0L); it.setCreateTime(DateUtils.getNowDate()); - it.setCreateBy(""+SecurityUtils.getLoginUser().getSysUser().getUserId()); - it.setCreateUser(""+SecurityUtils.getLoginUser().getSysUser().getUserId()); + it.setProjectName(sysUser.getActiveProjectName()); + it.setCreateBy(""+sysUser.getUserId()); + it.setCreateUser(""+sysUser.getUserId()); count.addAndGet(smzSspProblemmodifyMapper.insertSmzSspProblemmodify(it)); }); return count.get(); diff --git a/yanzhu-ui-vue3/src/assets/icons/svg/twrap.svg b/yanzhu-ui-vue3/src/assets/icons/svg/twrap.svg new file mode 100644 index 00000000..def17d23 --- /dev/null +++ b/yanzhu-ui-vue3/src/assets/icons/svg/twrap.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/yanzhu-ui-vue3/src/views/system/user/index.vue b/yanzhu-ui-vue3/src/views/system/user/index.vue index 9fdcd139..ae18a076 100644 --- a/yanzhu-ui-vue3/src/views/system/user/index.vue +++ b/yanzhu-ui-vue3/src/views/system/user/index.vue @@ -150,8 +150,8 @@ - + @@ -184,7 +184,7 @@ {{ dict.label - }} + }} @@ -797,7 +797,6 @@ function submitForm() { data.loading = true; proxy.$refs["userRef"].validate(valid => { if (valid) { - debugger let obj = form.value.userInfos || {}; obj.cardImgPos = form.value.cardImgPos; obj.cardImgInv = form.value.cardImgInv; diff --git a/yanzhu-ui-vue3/src/views/trouble/problemmodify/detailDrawer.vue b/yanzhu-ui-vue3/src/views/trouble/problemmodify/detailDrawer.vue index 73400bed..334e7b77 100644 --- a/yanzhu-ui-vue3/src/views/trouble/problemmodify/detailDrawer.vue +++ b/yanzhu-ui-vue3/src/views/trouble/problemmodify/detailDrawer.vue @@ -1,34 +1,178 @@