fix(project-management): 优化附件启用禁用操作反馈
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||||
import {toThousands} from '@/utils/changePrice.js'
|
import {toThousands} from '@/utils/changePrice.js'
|
||||||
import {switchAttachmentState} from "@/api/project-manage/attachment";
|
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 { getSubCompOpt } from '@/api/user/user.js';
|
||||||
import {filterProjectName} from "@/api/project-manage";
|
import {filterProjectName} from "@/api/project-manage";
|
||||||
import {filterRequirementName} from "@/api/project-demand";
|
import {filterRequirementName} from "@/api/project-demand";
|
||||||
@@ -436,7 +436,15 @@ const handleOpenUpload=(row,flag)=>{
|
|||||||
projectId: row.projectId
|
projectId: row.projectId
|
||||||
}
|
}
|
||||||
switchAttachmentState(params).then(res=>{
|
switchAttachmentState(params).then(res=>{
|
||||||
tableIns.value.refresh()
|
if(res.code==1000){
|
||||||
|
tableIns.value.refresh()
|
||||||
|
}else{
|
||||||
|
ElNotification({
|
||||||
|
title: '提示',
|
||||||
|
message: res.msg,
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user