Merge pull request 'master' (#965) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/965
This commit is contained in:
2025-04-02 16:11:32 +00:00
2 changed files with 11 additions and 3 deletions

View File

@@ -261,7 +261,7 @@ const compositeParam = (item) => {
fileType: item.fileType, fileType: item.fileType,
url: item.url, url: item.url,
newFile: true, newFile: true,
tag: getTagName(activeName.value), tag: getTagName(activeName.value) || '项目实施',
} }
} }
const getFile = (val) => { const getFile = (val) => {

View File

@@ -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'
})
}
}) })
}) })
} }