ed6968e0 by renchao@pashanhoo.com

style:信息备案

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