fix : 修复细节

This commit is contained in:
2024-05-21 00:21:24 +08:00
parent 9f4fe95e4d
commit a4255c3157
2 changed files with 8 additions and 7 deletions

View File

@@ -122,11 +122,11 @@ const tableConfig = reactive({
showOverflowTooltip: false, showOverflowTooltip: false,
currentRender: ({row, index}) => { currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}] let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
// if (row.state === '3') { if (row.state === '3') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'}) 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'}) btn.push({label: '上报', func: () => handleAdd(row), type: 'primary'})
// } }
return ( return (
<div style={{width: '100%'}}> <div style={{width: '100%'}}>
{ {

View File

@@ -147,11 +147,11 @@ const tableConfig = reactive({
showOverflowTooltip: false, showOverflowTooltip: false,
currentRender: ({row, index}) => { currentRender: ({row, index}) => {
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}] let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
// if (row.state === '3') { if (row.state === '3') {
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'}) 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'}) btn.push({label: '申请', func: () => handleApply(row), type: 'primary'})
// } }
return ( return (
<div style={{width: '100%'}}> <div style={{width: '100%'}}>
{ {
@@ -185,7 +185,8 @@ const handleDetail = (row) => {
name:'Initiation/detail', name:'Initiation/detail',
query: { query: {
id: row.requirementId, id: row.requirementId,
projectId: row.projectId projectId: row.projectId,
state: 2
} }
}) })
} }