|
|
@@ -882,7 +882,7 @@ export default {
|
|
|
orgId: this.$route.params.id,
|
|
|
id: this.extendId,
|
|
|
};
|
|
|
- console.log(dat);
|
|
|
+ // console.log(dat);
|
|
|
if (this.extendId) {
|
|
|
updateExtend(dat).then((res) => {
|
|
|
this.$modal.msgSuccess("保存成功");
|
|
|
@@ -905,13 +905,13 @@ export default {
|
|
|
const file = event.target.files[0];
|
|
|
if (!file) return;
|
|
|
|
|
|
- // 创建 FormData 对象并添加文件
|
|
|
- const formData = new FormData();
|
|
|
- formData.append("file", file);
|
|
|
+ // // 创建 FormData 对象并添加文件
|
|
|
+ // const formData = new FormData();
|
|
|
+ // formData.append("file", file);
|
|
|
|
|
|
// // 发送文件到您的文件上传 API
|
|
|
try {
|
|
|
- uploadFile(formData).then((res) => {
|
|
|
+ uploadFile(file,"org").then((res) => {
|
|
|
console.log(res);
|
|
|
// this.orgform.certificateEvidence = res.data;
|
|
|
});
|