增加预警管理导入

This commit is contained in:
龙运模
2025-06-14 17:28:54 +08:00
parent e83d210e0f
commit b8a75caec3
3 changed files with 105 additions and 6 deletions
+15 -1
View File
@@ -51,7 +51,21 @@ export default {
post: async function (params) {
return await http.post(this.url, params);
},
}
},
template:{
url: `${config.API_URL}/warning.management.import.template`,
name: "预计六个月用量导入模版",
post: async function (params) {
return await http.get(this.url,params,{responseType: 'arraybuffer'});
}
},
import:{
url: `${config.API_URL}/spare.parts.water.level.warning.batch.import`,
name: "预计六个月用量导入",
post: async function (params) {
return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'});
}
},
}