fix : 修复文件下载、专项资金新增、删除功能、流程新增细节优化

This commit is contained in:
2024-06-02 16:12:40 +08:00
parent e9592920e7
commit c416424253
12 changed files with 94 additions and 52 deletions

View File

@@ -10,6 +10,8 @@
<script setup lang="jsx">
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import { ElNotification} from "element-plus";
import {deleteFund} from "@/api/special-fund";
const router = useRouter()
const searchConfig = reactive([
@@ -117,9 +119,6 @@ const tableConfig = reactive({
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'})
// }
return (
<div style={{width: '100%'}}>
{
@@ -162,7 +161,7 @@ const handleDetail = (row) => {
router.push({
name: 'Fund/detail',
query: {
id: row.id
id: row.specialFundId
}
})
}
@@ -176,7 +175,19 @@ const handleEdit = (row) => {
router.push({
name: 'Fund/edit',
query: {
id: row.id
id: row.specialFundId
}
})
}
const handleDelete = async (row) => {
deleteFund(row.specialFundId).then(res => {
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
tableIns.value.refresh()
}
})
}