fix : 修复新增征集/需求上报时缓存和注释log

This commit is contained in:
2024-10-27 18:08:16 +08:00
parent 604a0fedb8
commit 53b581e71c
8 changed files with 42 additions and 44 deletions

View File

@@ -437,7 +437,7 @@ const compositeParam = (item) => {
}
}
const getAttachment = (val) => {
console.log('上传文件getAttachment', val)
// console.log('上传文件getAttachment', val)
showSingleTable.value = false
localFormData.value.singleFile = compositeParam(val)
singleList.value.push(compositeParam(val))
@@ -616,7 +616,7 @@ const init = async () => {
}
watchEffect(() => {
console.info("🚀 ~method:;props.formData.projectChargePerson -----", props.formData.projectChargePerson)
// console.info("🚀 ~method:;props.formData.projectChargePerson -----", props.formData.projectChargePerson)
if (props.formData.projectChargePerson == null) {
projectChargePersonUserList.value = []
} else {

View File

@@ -154,7 +154,7 @@ const getTagsOption = () => {
})
}
const handleSearch = () => {
console.info("🚀 ~method:'attachment' -----", attachment)
// console.info("🚀 ~method:'attachment' -----", attachment)
emit('search', attachment)
}
const handleReset=()=>{

View File

@@ -38,12 +38,12 @@ const props = defineProps({
}
})
const showPreview = ref(true)
console.info("🚀 ~method:fileType -----", props.fileType)
// console.info("🚀 ~method:fileType -----", props.fileType)
const checkImgType=(fileType)=>{
return fileType == 'png' || fileType == 'jpg' || fileType == 'jpeg' || fileType == 'ico' || fileType == 'PNG' || fileType == 'JPG';
}
console.info("🚀 ~method:checkImgType(props.fileType) -----", checkImgType(props.fileType))
// console.info("🚀 ~method:checkImgType(props.fileType) -----", checkImgType(props.fileType))
if(props.fileType!=='pdf'&&props.fileType!=='docx'&&!checkImgType(props.fileType)){
showPreview.value=false
ElNotification({