e4a75463 by renchao@pashanhoo.com

style:高拍仪

1 parent 25ce6cdf
/*
* @Description: 企业银行接口
* @Autor: renchao
* @LastEditTime: 2023-09-20 14:49:22
* @LastEditTime: 2023-10-31 10:45:35
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
......@@ -64,6 +64,22 @@ export function uploadBatch (data) {
})
}
/**
* @description: 上传单个文件
* @param {*} data
* @author: renchao
*/
export function uploadSjClmx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sys/company/uploadSjClmx',
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
},
data
})
}
/**
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-31 09:54:53
* @LastEditTime: 2023-10-31 10:48:04
-->
<template>
<div class="rlPopup">
......@@ -194,6 +194,9 @@
formData.append('file', file)
formData.append("bsmSj", this.previewImg.bsmSj);
formData.append("bsmSlsq", this.previewImg.bsmSlsq);
if (this.previewImg.imgList.length > 0) {
formData.append("ssBsmClmx", this.previewImg.imgList[this.previewImg.index].bsmClmx);
}
uploadSjClmx(formData).then((res) => {
if (res.code == 200) {
this.$emit('updateList', res.result)
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-31 09:55:03
* @LastEditTime: 2023-10-31 10:46:54
-->
<template>
<div class="rlPopup">
......@@ -198,6 +198,9 @@
formData.append('file', file)
formData.append("bsmMaterial ", this.previewImg.bsmMaterial);
formData.append("bsmSlsq", this.previewImg.bsmSlsq);
if (this.previewImg.imgList.length > 0) {
formData.append("ssbsmMaterial", this.previewImg.imgList[this.previewImg.index].bsmMaterial);
}
uploadSjClmx(formData).then((res) => {
if (res.code == 200) {
this.$emit('updateList', res.result)
......