From de2f566bd05a2a2552ff46bf6fe8d3c4305e757d Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Tue, 14 May 2024 20:55:49 +0800
Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E8=B7=AF=E7=94=B1?=
=?UTF-8?q?=E8=A7=84=E8=8C=83=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../project-management/initiation/apply.vue | 9 ++++----
.../project-management/initiation/detail.vue | 5 +----
.../project-management/initiation/edit.vue | 12 +++++++++++
.../project-management/initiation/index.vue | 21 +++++++++++++++++--
4 files changed, 36 insertions(+), 11 deletions(-)
create mode 100644 src/views/project-management/initiation/edit.vue
diff --git a/src/views/project-management/initiation/apply.vue b/src/views/project-management/initiation/apply.vue
index 2bb2ba8..25f0fd7 100644
--- a/src/views/project-management/initiation/apply.vue
+++ b/src/views/project-management/initiation/apply.vue
@@ -1,11 +1,10 @@
-
+
+ 项目立项申请
+
-
diff --git a/src/views/project-management/initiation/index.vue b/src/views/project-management/initiation/index.vue
index 66835f7..c7c865f 100644
--- a/src/views/project-management/initiation/index.vue
+++ b/src/views/project-management/initiation/index.vue
@@ -141,7 +141,7 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
- if (row.state === '3' || row.state === '2') {
+ if (row.state === '3') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
} else if (row.state === '4') {
btn.push({label: '申请', func: () => handleApply(row), type: 'primary'})
@@ -176,10 +176,27 @@ const search = (val) => {
const handleDetail = (row) => {
router.push({
- name:'Detail',
+ name:'Initiation/detail',
query: {
id: row.requirementId
}
})
}
+const handleEdit = (row) => {
+ router.push({
+ name:'Initiation/edit',
+ query: {
+ id: row.requirementId
+ }
+ })
+}
+const handleApply = (row) => {
+ router.push({
+ name:'Initiation/apply',
+ query: {
+ id: row.requirementId
+ }
+ })
+}
+