From 4bee8bf9e4c782cb8ec7af05bd20a04bacf4b006 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Fri, 21 Jun 2024 17:15:01 +0800
Subject: [PATCH 1/3] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E5=AE=9E=E6=96=BD/=E5=BD=92=E6=A1=A3=E4=B8=8A?=
=?UTF-8?q?=E4=BC=A0=E9=99=84=E4=BB=B6=E6=98=BE=E7=A4=BA,?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/project-manage/attachment.js | 14 ++
src/components/SearchFilesByTag.vue | 2 +-
src/layout/navbar/index.vue | 14 +-
.../project-management/filing/attachment.vue | 2 +-
src/views/project-management/filing/index.vue | 27 +++
.../implementation/attachment.vue | 9 +-
.../workflow/process/DefaultNodeProps.js | 183 +++++++++---------
src/views/workflow/process/ProcessEdit.vue | 11 --
.../process/config/ApprovalNodeConfig.vue | 1 -
9 files changed, 151 insertions(+), 112 deletions(-)
diff --git a/src/api/project-manage/attachment.js b/src/api/project-manage/attachment.js
index 6a53b27..cbe1916 100644
--- a/src/api/project-manage/attachment.js
+++ b/src/api/project-manage/attachment.js
@@ -15,3 +15,17 @@ export const uploadFileList = (data) => {
data: data
});
};
+export const searchImplementationFileList = (params) => {
+ return request({
+ url: '/workflow/mosr/attachment/implementation/list',
+ method: "get",
+ params: params
+ });
+};
+export const switchAttachmentState = (data) => {
+ return request({
+ url: '/workflow/mosr/project/filing/attachment/switch',
+ method: "post",
+ data
+ });
+};
diff --git a/src/components/SearchFilesByTag.vue b/src/components/SearchFilesByTag.vue
index 729c0b9..f605219 100644
--- a/src/components/SearchFilesByTag.vue
+++ b/src/components/SearchFilesByTag.vue
@@ -52,7 +52,7 @@ const props = defineProps({
},
uploadState: {
type: Boolean,
- default: true
+ default: false
},
loading: {
type: Boolean,
diff --git a/src/layout/navbar/index.vue b/src/layout/navbar/index.vue
index ecd4904..cbb1621 100644
--- a/src/layout/navbar/index.vue
+++ b/src/layout/navbar/index.vue
@@ -17,7 +17,9 @@
- 主次账号切换
-
- {{ item.nickName }}
+
+ {{ item.nickName }}
+
主
@@ -129,12 +131,20 @@ const handleLogout = () => {
:deep(.el-avatar--circle) {
display: inline-block;
line-height: 40px;
- margin-right: 10px;
+ margin-right: 14px;
background-color: #8a7243;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
+:deep(.el-badge){
+ padding: 0 2px;
+}
+:deep(.el-badge__content.is-fixed) {
+ position: absolute;
+ right: 26px;
+ top: 2px;
+}
.navbar {
height: 65px;
diff --git a/src/views/project-management/filing/attachment.vue b/src/views/project-management/filing/attachment.vue
index 78526c2..20dde41 100644
--- a/src/views/project-management/filing/attachment.vue
+++ b/src/views/project-management/filing/attachment.vue
@@ -20,7 +20,7 @@ const router = useRouter()
const activeName = ref('50')
const attachment = ref({})
const loading = ref(false)
-const uploadState = ref(true)
+const uploadState = ref(false)
const fileList = ref([])
const projectId = ref(route.query.id)
const requirementId = ref(route.query.requirementId)
diff --git a/src/views/project-management/filing/index.vue b/src/views/project-management/filing/index.vue
index 4dc848a..4eb054d 100644
--- a/src/views/project-management/filing/index.vue
+++ b/src/views/project-management/filing/index.vue
@@ -10,6 +10,7 @@
diff --git a/src/views/project-management/implementation/attachment.vue b/src/views/project-management/implementation/attachment.vue
index c18d945..2c35432 100644
--- a/src/views/project-management/implementation/attachment.vue
+++ b/src/views/project-management/implementation/attachment.vue
@@ -29,15 +29,14 @@
From 1cdd2cb02b18fc9d980607820fb6f68db70426c5 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Fri, 21 Jun 2024 18:35:30 +0800
Subject: [PATCH 3/3] =?UTF-8?q?fix=20:=20=E4=B8=BB=E6=AC=A1=E8=B4=A6?=
=?UTF-8?q?=E5=8F=B7=E6=B6=88=E6=81=AF=E6=A1=86=E5=B1=95=E7=A4=BA=E3=80=81?=
=?UTF-8?q?=E5=AE=A1=E6=89=B9=E8=AE=B0=E5=BD=95=E4=BC=98=E5=8C=96=E3=80=81?=
=?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=A1=86=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/NameCircle.vue | 2 +-
src/components/Tooltip.vue | 11 +++--
src/layout/navbar/index.vue | 16 +++++--
.../implementation/phaseDetail.vue | 2 +-
src/views/workflow/common/OperationRender.vue | 45 ++++++++++---------
.../process/common/AvatarEllipsis.vue | 2 +-
6 files changed, 48 insertions(+), 30 deletions(-)
diff --git a/src/components/NameCircle.vue b/src/components/NameCircle.vue
index 75a1481..4e016aa 100644
--- a/src/components/NameCircle.vue
+++ b/src/components/NameCircle.vue
@@ -3,7 +3,7 @@
-
+
-
+
{{ props.content }}
@@ -17,10 +17,12 @@ const props = defineProps({
content: {
type: String,
default: ''
- }, width: {
+ },
+ width: {
type: String,
- default: ''
- }, lines: {
+ default: '100%'
+ },
+ lines: {
type: Boolean,
default: false
}
@@ -40,6 +42,7 @@ const isShowTooltip = () => {
overflow: hidden;
}
.content-lines{
+ word-break:break-all;
overflow:hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
diff --git a/src/layout/navbar/index.vue b/src/layout/navbar/index.vue
index cbb1621..7803cc6 100644
--- a/src/layout/navbar/index.vue
+++ b/src/layout/navbar/index.vue
@@ -17,9 +17,10 @@
- 主次账号切换
-
-
+
{{ item.nickName }}
+ {{ item.nickName }}
主
@@ -68,6 +69,7 @@ import {useTagsView} from '@/stores/tagsview';
import {getUserAccount} from "@/api/user/user";
import {switchAccount} from "@/api/login";
import {setToken} from "../../utils/auth";
+import {ElNotification} from "element-plus";
const authStore = useAuthStore()
const permisstionStore = usePermisstionStroe()
@@ -91,7 +93,13 @@ const nullBlockClick = () => {
}
const handleVisitedP = () => {
getUserAccount().then(res => {
- console.log(res)
+ if (res.code !== 1000) {
+ ElNotification({
+ title: '提示',
+ message: res.msg,
+ type: res.code === 1000 ? 'success' : 'error'
+ })
+ }
accountList.value = res.data
nextTick(() => {
visitedP.value = !visitedP.value
@@ -137,9 +145,11 @@ const handleLogout = () => {
overflow: hidden;
text-overflow: ellipsis;
}
-:deep(.el-badge){
+
+:deep(.el-badge) {
padding: 0 2px;
}
+
:deep(.el-badge__content.is-fixed) {
position: absolute;
right: 26px;
diff --git a/src/views/project-management/implementation/phaseDetail.vue b/src/views/project-management/implementation/phaseDetail.vue
index 7a0e078..dd1b291 100644
--- a/src/views/project-management/implementation/phaseDetail.vue
+++ b/src/views/project-management/implementation/phaseDetail.vue
@@ -59,7 +59,7 @@ const getInfo = async () => {
const {code, data, msg} = await getPhaseDetail(projectId)
if (code === 1000) {
summaryData.value = data;
- copyName.value= data.formData.userInfoList.map(item=>item.name).join(',')
+ copyName.value= data.formData.userInfoList?.map(item=>item.name).join(',')
loading.value = false
processStore.setDesign(data)
processStore.runningList.value = data.runningList;
diff --git a/src/views/workflow/common/OperationRender.vue b/src/views/workflow/common/OperationRender.vue
index 782c57b..8ae4331 100644
--- a/src/views/workflow/common/OperationRender.vue
+++ b/src/views/workflow/common/OperationRender.vue
@@ -8,6 +8,9 @@
size="large"
placement="top">
+
+ 当前节点: {{ operation.operationName }}
+
@@ -17,15 +20,15 @@
-
{{ operation.operationName }}:
+
审批人:
{{ user.name }}
{{ user.operationTime }}
-
+
+
-
@@ -270,9 +273,10 @@ init()
> div:first-child {
display: flex;
- width: 200px;
+
> span {
+ width: 100px;
color: #2a99ff;
margin-left: 10px;
margin-right: 20px;
@@ -307,20 +311,21 @@ init()
right: 1px;
}
-//.username {
-// //width: 90px;
-// margin-top: 10px;
-// background: #f5f5f5;
-// padding: 5px;
-//
-// .el-tooltip__trigger {
-// width: 90px;
-// text-align: center;
-// //padding-top: 2px;
-// //text-align: center;
-// text-overflow: ellipsis;
-// white-space: nowrap;
-// overflow: hidden
-// }
-//}
+.username {
+ //width: 90px;
+ margin-top: 10px;
+ background: #f5f5f5;
+ padding: 12px;
+ overflow: hidden;
+
+ //.el-tooltip__trigger {
+ // width: 90px;
+ // text-align: center;
+ // //padding-top: 2px;
+ // //text-align: center;
+ // text-overflow: ellipsis;
+ // white-space: nowrap;
+ // overflow: hidden
+ //}
+}
diff --git a/src/views/workflow/process/common/AvatarEllipsis.vue b/src/views/workflow/process/common/AvatarEllipsis.vue
index 925023e..142549d 100644
--- a/src/views/workflow/process/common/AvatarEllipsis.vue
+++ b/src/views/workflow/process/common/AvatarEllipsis.vue
@@ -7,7 +7,7 @@