fix : 修复细节
This commit is contained in:
@@ -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%'}}>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user