Merge pull request 'fix : 修复细节' (#219) from dj into master

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/219
This commit is contained in:
2024-05-20 16:22:29 +00:00
2 changed files with 8 additions and 7 deletions

View File

@@ -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 (
<div style={{width: '100%'}}>
{

View File

@@ -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 (
<div style={{width: '100%'}}>
{
@@ -185,7 +185,8 @@ const handleDetail = (row) => {
name:'Initiation/detail',
query: {
id: row.requirementId,
projectId: row.projectId
projectId: row.projectId,
state: 2
}
})
}