fix(project-management): 优化附件启用禁用操作反馈

This commit is contained in:
dj
2025-04-03 00:11:21 +08:00
parent 119e3d8333
commit ed22942ab2

View File

@@ -11,7 +11,7 @@
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {toThousands} from '@/utils/changePrice.js'
import {switchAttachmentState} from "@/api/project-manage/attachment";
import {ElMessageBox} from "element-plus";
import {ElMessageBox, ElNotification} from "element-plus";
import { getSubCompOpt } from '@/api/user/user.js';
import {filterProjectName} from "@/api/project-manage";
import {filterRequirementName} from "@/api/project-demand";
@@ -436,7 +436,15 @@ const handleOpenUpload=(row,flag)=>{
projectId: row.projectId
}
switchAttachmentState(params).then(res=>{
tableIns.value.refresh()
if(res.code==1000){
tableIns.value.refresh()
}else{
ElNotification({
title: '提示',
message: res.msg,
type: 'error'
})
}
})
})
}