|
@@ -9,7 +9,7 @@
|
|
|
<div class="upload-container">
|
|
|
<div class="group-select">
|
|
|
<span class="required">*</span>分组
|
|
|
- <el-select v-model="selectedGroup" placeholder="请选择">
|
|
|
+ <el-select v-model="selectedGroup" @change="changeGroup" placeholder="请选择">
|
|
|
<el-option
|
|
|
v-for="group in groupList"
|
|
|
:key="group.id"
|
|
@@ -123,7 +123,9 @@ const dialogVisible = computed({
|
|
|
|
|
|
const selectedGroup = ref('');
|
|
|
const fileList = ref([]);
|
|
|
-
|
|
|
+const changeGroup = (value) => {
|
|
|
+ fileList.value = [];
|
|
|
+};
|
|
|
// 处理文件变化
|
|
|
const handleFileChange = (file, files) => {
|
|
|
// 检查文件类型和大小
|
|
@@ -137,7 +139,7 @@ const handleFileChange = (file, files) => {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- fileList.value = files;
|
|
|
+ fileList.value = [file];
|
|
|
};
|
|
|
|
|
|
// 验证文件类型和大小
|