From 3a4f9927c9dc0469fa1658eb6c7d7d9a7114774c Mon Sep 17 00:00:00 2001
From: wenhua <1084668738@qq.com>
Date: Sun, 19 May 2024 23:07:32 +0800
Subject: [PATCH] feat: up detail
---
.../DetailComponent/ApprovalDetail.vue | 81 +++++++++++++++++++
src/components/DetailComponent/Opinion.vue | 80 ++++++++++++++++++
src/components/steps/index.vue | 31 ++++---
.../project-management/initiation/detail.vue | 68 +++++++++++++++-
.../project-management/initiation/index.vue | 3 +-
5 files changed, 246 insertions(+), 17 deletions(-)
create mode 100644 src/components/DetailComponent/ApprovalDetail.vue
create mode 100644 src/components/DetailComponent/Opinion.vue
diff --git a/src/components/DetailComponent/ApprovalDetail.vue b/src/components/DetailComponent/ApprovalDetail.vue
new file mode 100644
index 0000000..4748b36
--- /dev/null
+++ b/src/components/DetailComponent/ApprovalDetail.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/DetailComponent/Opinion.vue b/src/components/DetailComponent/Opinion.vue
new file mode 100644
index 0000000..9f6a03e
--- /dev/null
+++ b/src/components/DetailComponent/Opinion.vue
@@ -0,0 +1,80 @@
+
+ form = e">
+
+ 驳回
+ 同意
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/steps/index.vue b/src/components/steps/index.vue
index 246a254..d9018a9 100644
--- a/src/components/steps/index.vue
+++ b/src/components/steps/index.vue
@@ -39,7 +39,7 @@ const props = defineProps({
// 当前显示步骤
active: {
type: Number,
- default: 0
+ default: '0'
},
// 已完成的工作流步骤
stepSuccess: {
@@ -168,18 +168,23 @@ const formatReProcedure = (data) => {
const formatActive = (val) => {
console.log(val, 'val');
let active = ''
- switch(val) {
- case '0' || 0 : active = '00'
- break
- case '1' || 1 : active = '10'
- break
- case '2' || 2 : active = '20'
- break
- case '3' || 3 : active = '30'
- break
- case '4' || 4 : active = '40'
- break
- }
+ // switch(val) {
+ // case '0' : active = '00'
+ // break
+ // case '1' : active = '10'
+ // break
+ // case '2' : active = '20'
+ // break
+ // case '3' : active = '30'
+ // break
+ // case '4' : active = '40'
+ // break
+ // }
+ val == 0 && (active = '00')
+ val == 1 && (active = '10')
+ val == 2 && (active = '20')
+ val == 3 && (active = '30')
+ val == 4 && (active = '40')
console.log(active, 'active--');
return active
}
diff --git a/src/views/project-management/initiation/detail.vue b/src/views/project-management/initiation/detail.vue
index 20174a7..19bc487 100644
--- a/src/views/project-management/initiation/detail.vue
+++ b/src/views/project-management/initiation/detail.vue
@@ -1,5 +1,5 @@
-