From beb07edc73120a0cca8f8772502adbb414a0f625 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Tue, 28 May 2024 16:39:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E4=B8=93?= =?UTF-8?q?=E9=A1=B9=E8=B5=84=E9=87=91=E9=A1=B5=E9=9D=A2=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/special-fund/index.vue | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) 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 } }) } From dd406e4ba63c80bb4f6e0e39e85bb3d5d29fd239 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Tue, 28 May 2024 16:42:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E4=B8=93?= =?UTF-8?q?=E9=A1=B9=E8=B5=84=E9=87=91=E9=A1=B5=E9=9D=A2=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/special-fund/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/special-fund/index.vue b/src/views/special-fund/index.vue index 477614f..523aeab 100644 --- a/src/views/special-fund/index.vue +++ b/src/views/special-fund/index.vue @@ -15,7 +15,7 @@ const router = useRouter() const searchConfig = reactive([ { label: '专项资金名称', - prop: 'requirementName', + prop: 'name', component: 'el-input', props: { placeholder: '请输入名称查询'