fix : 修复页面细节

This commit is contained in:
2024-05-31 20:56:58 +08:00
parent 5a1e1848cb
commit 5ae8e4be78
32 changed files with 550 additions and 167 deletions

View File

@@ -33,7 +33,7 @@ const searchConfig = reactive([
}
},
{
label: '资金金额',
label: '资金金额(万元)',
prop: 'fundAmount',
component: 'el-input',
props: {
@@ -41,7 +41,7 @@ const searchConfig = reactive([
placeholder: '请输入资金金额查询'
}
}, {
label: '剩余金额',
label: '剩余金额(万元)',
prop: 'residualAmount',
component: 'el-input',
props: {
@@ -65,14 +65,19 @@ const tableConfig = reactive({
label: '专项资金名称',
align: 'center'
},
{
prop: 'approveName',
label: '审批人',
align: 'center'
},
{
prop: 'fundAmount',
label: '资金金额',
label: '资金金额(万元)',
align: 'center'
},
{
prop: 'residualAmount',
label: '剩余金额',
label: '剩余金额(万元)',
align: 'center'
},
{
@@ -80,13 +85,18 @@ const tableConfig = reactive({
label: '项目数量',
align: 'center'
},
{
prop: 'taskNode',
label: '当前节点',
align: 'center'
},
{
prop: 'state',
label: '状态',
align: 'center',
showOverflowTooltip: false,
currentRender: ({row, index}) => {
if (row.state == undefined) {
if (row.state == undefined||row.state == 0) {
return '--'
} else {
return (<Tag dictType={'special_fund'} value={row.state}/>)
@@ -100,13 +110,13 @@ const tableConfig = reactive({
showOverflowTooltip: false,
currentRender: ({row, index}) => {
let btn = []
// let buttons = new Set(Array.from(row.buttons))
// if (buttons.has("details")) {
let buttons = new Set(Array.from(row.buttons))
if (buttons.has("details")) {
btn.push({label: '详情', prem: ['mosr:collect:info'], func: () => handleDetail(row), type: 'primary'})
// }
// if (buttons.has("edit")) {
}
if (buttons.has("edit")) {
btn.push({label: '编辑', prem: ['mosr:collect:resubmit'], func: () => handleEdit(row), type: 'primary'})
// }
}
// if (buttons.has("delete")) {
// btn.push({label: '删除',prem: ['mosr:requirement:del'], func: () => handleDelete(row), type: 'primary'})
// }
@@ -124,6 +134,13 @@ const tableConfig = reactive({
</el-button>
))
}
{
buttons.has("delete") ?
<popover-delete name={row.name} type={'专项资金'} btnType={'danger'}
perm={['mosr:requirement:del']}
onDelete={() => handleDelete(row)}/>
: ''
}
</div>
)
}