ed6968e0 by renchao@pashanhoo.com

style:信息备案

1 parent 3c4f29b2
......@@ -69,9 +69,9 @@ export function uploadBatch (data) {
* @param {*} data
* @author: renchao
*/
export function uploadSjClmx (data) {
export function uploadSjClmx (data, bsmMaterial) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/company/uploadSjClmx',
url: SERVER.SERVERAPI + '/rest/sys/company/uploadSjClmx/' + bsmMaterial,
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-31 14:40:31
* @LastEditTime: 2023-10-31 15:27:41
-->
<template>
<div class="rlPopup">
......@@ -196,13 +196,12 @@
let file = blobToFile(blob);
var formData = new FormData();
formData.append('file', file)
formData.append("bsmMaterial ", this.previewImg.bsmMaterial);
if (this.previewImg.imgList.length > 0) {
formData.append("index", this.previewImg.imgList[this.previewImg.index].sxh);
}
uploadSjClmx(formData).then((res) => {
uploadSjClmx(formData, this.previewImg.bsmMaterial).then((res) => {
if (res.code == 200) {
this.$emit('updateList', res.result)
this.$emit('updateList', { children: res.result, bsmMaterial: this.previewImg.bsmMaterial })
this.$message({
message: '上传成功!',
type: 'success'
......