fix : 修改细节
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user