diff --git a/src/views/components/uploadFile.vue b/src/views/components/uploadFile.vue index 615f959..583be95 100644 --- a/src/views/components/uploadFile.vue +++ b/src/views/components/uploadFile.vue @@ -11,6 +11,7 @@ @oversize="onOversize" :accept="acceptFormat" :disabled="isDisabled" + multiple >
@@ -75,7 +76,7 @@ } // 开始上传图片 const beforeRead = async (file) => { - // console.log(file, '原本上传的文件--'); + console.log(file, '原本上传的文件--'); // 压缩图片,大于500kb就压缩 let imgFile = null; if (file.size / 1024 > 500 && file.type.includes('image')) { @@ -94,7 +95,6 @@ if (res && res.code == 200) { uploadList.value.push(res.data); console.log(uploadList.value, ' uploadList.value'); - emit('update:saveFileArr', uploadList.value); //绑定的传值赋值 proxy.showSuccessToast('上传成功'); } else { diff --git a/src/views/components/uploadFile.vue b/src/views/components/uploadFile.vue index 615f959..583be95 100644 --- a/src/views/components/uploadFile.vue +++ b/src/views/components/uploadFile.vue @@ -11,6 +11,7 @@ @oversize="onOversize" :accept="acceptFormat" :disabled="isDisabled" + multiple >
@@ -75,7 +76,7 @@ } // 开始上传图片 const beforeRead = async (file) => { - // console.log(file, '原本上传的文件--'); + console.log(file, '原本上传的文件--'); // 压缩图片,大于500kb就压缩 let imgFile = null; if (file.size / 1024 > 500 && file.type.includes('image')) { @@ -94,7 +95,6 @@ if (res && res.code == 200) { uploadList.value.push(res.data); console.log(uploadList.value, ' uploadList.value'); - emit('update:saveFileArr', uploadList.value); //绑定的传值赋值 proxy.showSuccessToast('上传成功'); } else { diff --git a/src/views/home/home_demo.vue b/src/views/home/home_demo.vue deleted file mode 100644 index 6087216..0000000 --- a/src/views/home/home_demo.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/src/views/components/uploadFile.vue b/src/views/components/uploadFile.vue index 615f959..583be95 100644 --- a/src/views/components/uploadFile.vue +++ b/src/views/components/uploadFile.vue @@ -11,6 +11,7 @@ @oversize="onOversize" :accept="acceptFormat" :disabled="isDisabled" + multiple >
@@ -75,7 +76,7 @@ } // 开始上传图片 const beforeRead = async (file) => { - // console.log(file, '原本上传的文件--'); + console.log(file, '原本上传的文件--'); // 压缩图片,大于500kb就压缩 let imgFile = null; if (file.size / 1024 > 500 && file.type.includes('image')) { @@ -94,7 +95,6 @@ if (res && res.code == 200) { uploadList.value.push(res.data); console.log(uploadList.value, ' uploadList.value'); - emit('update:saveFileArr', uploadList.value); //绑定的传值赋值 proxy.showSuccessToast('上传成功'); } else { diff --git a/src/views/home/home_demo.vue b/src/views/home/home_demo.vue deleted file mode 100644 index 6087216..0000000 --- a/src/views/home/home_demo.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/src/views/home/home_homePage.vue b/src/views/home/home_homePage.vue index 50e41ae..3f06c2d 100644 --- a/src/views/home/home_homePage.vue +++ b/src/views/home/home_homePage.vue @@ -291,7 +291,7 @@ text-align: center; margin: 20px 0px; .typeImg { - width: 85px; + width: 80px; height: 80px; } .typeFont { diff --git a/src/views/components/uploadFile.vue b/src/views/components/uploadFile.vue index 615f959..583be95 100644 --- a/src/views/components/uploadFile.vue +++ b/src/views/components/uploadFile.vue @@ -11,6 +11,7 @@ @oversize="onOversize" :accept="acceptFormat" :disabled="isDisabled" + multiple >
@@ -75,7 +76,7 @@ } // 开始上传图片 const beforeRead = async (file) => { - // console.log(file, '原本上传的文件--'); + console.log(file, '原本上传的文件--'); // 压缩图片,大于500kb就压缩 let imgFile = null; if (file.size / 1024 > 500 && file.type.includes('image')) { @@ -94,7 +95,6 @@ if (res && res.code == 200) { uploadList.value.push(res.data); console.log(uploadList.value, ' uploadList.value'); - emit('update:saveFileArr', uploadList.value); //绑定的传值赋值 proxy.showSuccessToast('上传成功'); } else { diff --git a/src/views/home/home_demo.vue b/src/views/home/home_demo.vue deleted file mode 100644 index 6087216..0000000 --- a/src/views/home/home_demo.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - diff --git a/src/views/home/home_homePage.vue b/src/views/home/home_homePage.vue index 50e41ae..3f06c2d 100644 --- a/src/views/home/home_homePage.vue +++ b/src/views/home/home_homePage.vue @@ -291,7 +291,7 @@ text-align: center; margin: 20px 0px; .typeImg { - width: 85px; + width: 80px; height: 80px; } .typeFont { diff --git a/src/views/xuncha/components/TaskForm.vue b/src/views/xuncha/components/TaskForm.vue deleted file mode 100644 index cb3e0f5..0000000 --- a/src/views/xuncha/components/TaskForm.vue +++ /dev/null @@ -1,242 +0,0 @@ - - -