diff --git a/src/views/special-fund/index.vue b/src/views/special-fund/index.vue index f0892ce..477614f 100644 --- a/src/views/special-fund/index.vue +++ b/src/views/special-fund/index.vue @@ -1,6 +1,10 @@ @@ -67,10 +71,10 @@ const tableConfig = reactive({ let btn = [] // let buttons = new Set(Array.from(row.buttons)) // if (buttons.has("details")) { - btn.push({label: '详情', prem: ['mosr:collect:info'], func: () => handleDetail(row), type: 'primary'}) + btn.push({label: '详情', prem: ['mosr:collect:info'], func: () => handleDetail(row), type: 'primary'}) // } // if (buttons.has("edit")) { - btn.push({label: '编辑',prem: ['mosr:collect:resubmit'], func: () => handleEdit(row), type: 'primary'}) + 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'}) @@ -101,25 +105,30 @@ const tableConfig = reactive({ {name: '导出', key: '_export', color: '#DED0B2', auth: ''}, ] }) +const tableIns = ref() +const search = (val) => { + tableConfig.params = {...val} + tableIns.value.refresh() +} const handleDetail = (row) => { router.push({ - name:'Fund/detail', + name: 'Fund/detail', query: { - id:row.id + id: row.id } }) } const handleAdd = () => { router.push({ - name:'Fund/add', + name: 'Fund/add', query: {} }) } const handleEdit = (row) => { router.push({ - name:'Fund/edit', + name: 'Fund/edit', query: { - id:row.id + id: row.id } }) }