修改测试问题

This commit is contained in:
fks-xuxinyue
2024-08-08 15:13:32 +08:00
parent 7758049b28
commit 4395408f68
9 changed files with 570 additions and 237 deletions

View File

@@ -290,7 +290,7 @@
getDictList();
visible.value = true;
formState.value.id = record.id;
fetch(uploadPic.select, { bizId: record.id, bizTpye: 1 }).then((res) => {
fetch(uploadPic.select, { bizId: record.id, bizType: 1 }).then((res) => {
fileList.value = res.data.map((item) => ({
uid: item.id.toString(), // 使用文件的id作为唯一标识
name: item.fileName, // 文件名
@@ -424,9 +424,6 @@
});
fileList.value = newFileList;
};
const uploadQuery = ref({
bizTpye: 1,
});
const onSubmit = () => {
formRef.value
.validate()
@@ -445,7 +442,7 @@
fileList.value.forEach((file) => {
formData.value.append('files', file.originFileObj);
});
formData.value.append('bizTpye', 1);
formData.value.append('bizType', 1);
formData.value.append('bizId', res.data.id);
fetch(uploadPic.uploadfiles, formData.value)
.then((res) => {