diff --git a/src/views/project-demand/summary/index.vue b/src/views/project-demand/summary/index.vue
index 5fe891b..5a82315 100644
--- a/src/views/project-demand/summary/index.vue
+++ b/src/views/project-demand/summary/index.vue
@@ -122,11 +122,11 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
- // if (row.state === '3') {
+ if (row.state === '3') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
- // } else if (row.state === '0') {
+ } else if (row.state === '0') {
btn.push({label: '上报', func: () => handleAdd(row), type: 'primary'})
- // }
+ }
return (
{
diff --git a/src/views/project-management/initiation/index.vue b/src/views/project-management/initiation/index.vue
index cb1a719..30993ed 100644
--- a/src/views/project-management/initiation/index.vue
+++ b/src/views/project-management/initiation/index.vue
@@ -147,11 +147,11 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
- // if (row.state === '3') {
+ if (row.state === '3') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
- // } else if (row.state === '0') {
+ } else if (row.state === '0') {
btn.push({label: '申请', func: () => handleApply(row), type: 'primary'})
- // }
+ }
return (
{
@@ -185,7 +185,8 @@ const handleDetail = (row) => {
name:'Initiation/detail',
query: {
id: row.requirementId,
- projectId: row.projectId
+ projectId: row.projectId,
+ state: 2
}
})
}