fix : 修改细节

This commit is contained in:
2024-05-19 16:19:53 +08:00
parent 3bd6df74cc
commit 5421145583
7 changed files with 33 additions and 15 deletions

View File

@@ -114,7 +114,13 @@ const tableConfig = reactive({
label: '状态',
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => (<Tag dictType={'demand_collection'} value={row.state}/>)
currentRender: ({row, index}) => {
if(row.state!==null){
return (<Tag dictType={'demand_collection'} value={row.state}/>)
}else {
return '--'
}
}
},
{
prop: 'oper',
@@ -124,8 +130,8 @@ const tableConfig = reactive({
currentRender: ({row, index}) => {
return (
<div>
<el-button type={'primary'} link onClick={()=>handleDetail()} >详情</el-button>
<el-button type={'primary'} link onClick={()=>handleAdd()} >上报</el-button>
<el-button type={'primary'} link onClick={()=>handleDetail(row)} >详情</el-button>
<el-button type={'primary'} link onClick={()=>handleAdd(row)} >上报</el-button>
</div>
)
}
@@ -164,10 +170,12 @@ const handleAdd = () => {
query: {}
})
}
const handleDetail = () => {
const handleDetail = (row) => {
router.push({
name: 'Summary/detail',
query: {}
query: {
id:row.requirementId
}
})
}
</script>