fix : 修复新增征集/需求上报时缓存和注释log
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -154,7 +154,7 @@ const getTagsOption = () => {
|
||||
})
|
||||
}
|
||||
const handleSearch = () => {
|
||||
console.info("🚀 ~method:'attachment' -----", attachment)
|
||||
// console.info("🚀 ~method:'attachment' -----", attachment)
|
||||
emit('search', attachment)
|
||||
}
|
||||
const handleReset=()=>{
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user