From 654d6bf00151b9a025b765284141617f40c2372e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Tue, 7 Jan 2025 00:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/manage/ProProjectInfoMapper.xml | 4 ++++ .../yanzhu/manage/controller/ProProjectInfoController.java | 7 +++++++ yanzhu-ui-vue3/src/views/manage/busExamInfo/index.vue | 6 +++++- .../src/views/manage/proProjectInfoSubdeptsGroup/index.vue | 6 +++--- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoMapper.xml index f764e718..0ad3a2dc 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/manage/ProProjectInfoMapper.xml @@ -108,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and pi.project_person_phone = #{projectPersonPhone} and pi.project_status = #{projectStatus} and pi.is_del = #{isDel} + and pi.is_del !=2 order by pi.project_sort, pi.id desc order by pu.sort_by, pi.id desc @@ -344,6 +345,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where dept_id = #{deptId} + + \ No newline at end of file diff --git a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java index 54533d96..24143ae1 100644 --- a/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java +++ b/yanzhu-modules/yanzhu-manage/src/main/java/com/yanzhu/manage/controller/ProProjectInfoController.java @@ -149,6 +149,13 @@ public class ProProjectInfoController extends BaseController if(StringUtils.isNotEmpty(list)){ return getDataTable(list); } + if(!SecurityUtils.isAdmin(SecurityUtils.getUserId())){ + if(SecurityUtils.isGSAdmin()){ + proProjectInfo.setActiveComId(SecurityUtils.getLoginUser().getProjectDeptId()); + }else{ + proProjectInfo.setCurrentUserId(SecurityUtils.getUserId()); + } + } list = proProjectInfoService.selectMyProjectList(proProjectInfo); redisService.setCacheObject(key, list, Constants.CAPTCHA_EXPIRATION, TimeUnit.MINUTES); return getDataTable(list); diff --git a/yanzhu-ui-vue3/src/views/manage/busExamInfo/index.vue b/yanzhu-ui-vue3/src/views/manage/busExamInfo/index.vue index 5106a9b3..b279d293 100644 --- a/yanzhu-ui-vue3/src/views/manage/busExamInfo/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/busExamInfo/index.vue @@ -162,7 +162,7 @@ - + { + if(response.data.craftPost){ + response.data.craftPost = response.data.craftPost.split(','); + } form.value = response.data; busExamInfoQuesList.value = response.data.busExamInfoQuesList; open.value = true; @@ -386,6 +389,7 @@ function handleUpdate(row) { function submitForm() { proxy.$refs["busExamInfoRef"].validate(valid => { if (valid) { + form.value.craftPost = form.value.craftPost.toString() form.value.busExamInfoQuesList = busExamInfoQuesList.value; if (form.value.id != null) { updateBusExamInfo(form.value).then(response => { diff --git a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsGroup/index.vue b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsGroup/index.vue index a9618164..f13fc12e 100644 --- a/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsGroup/index.vue +++ b/yanzhu-ui-vue3/src/views/manage/proProjectInfoSubdeptsGroup/index.vue @@ -129,13 +129,13 @@ - - + -