style:高拍仪
Showing
3 changed files
with
25 additions
and
3 deletions
| 1 | /* | 1 | /* | 
| 2 | * @Description: 企业银行接口 | 2 | * @Description: 企业银行接口 | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-09-20 14:49:22 | 4 | * @LastEditTime: 2023-10-31 10:45:35 | 
| 5 | */ | 5 | */ | 
| 6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' | 
| 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 
| ... | @@ -64,6 +64,22 @@ export function uploadBatch (data) { | ... | @@ -64,6 +64,22 @@ export function uploadBatch (data) { | 
| 64 | }) | 64 | }) | 
| 65 | } | 65 | } | 
| 66 | 66 | ||
| 67 | /** | ||
| 68 | * @description: 上传单个文件 | ||
| 69 | * @param {*} data | ||
| 70 | * @author: renchao | ||
| 71 | */ | ||
| 72 | export function uploadSjClmx (data) { | ||
| 73 | return request({ | ||
| 74 | url: SERVER.SERVERAPI + '/rest/sys/company/uploadSjClmx', | ||
| 75 | method: 'post', | ||
| 76 | headers: { | ||
| 77 | 'Content-Type': 'multipart/form-data' | ||
| 78 | }, | ||
| 79 | data | ||
| 80 | }) | ||
| 81 | } | ||
| 82 | |||
| 67 | 83 | ||
| 68 | 84 | ||
| 69 | /** | 85 | /** | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-10-31 09:54:53 | 4 | * @LastEditTime: 2023-10-31 10:48:04 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="rlPopup"> | 7 | <div class="rlPopup"> | 
| ... | @@ -194,6 +194,9 @@ | ... | @@ -194,6 +194,9 @@ | 
| 194 | formData.append('file', file) | 194 | formData.append('file', file) | 
| 195 | formData.append("bsmSj", this.previewImg.bsmSj); | 195 | formData.append("bsmSj", this.previewImg.bsmSj); | 
| 196 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); | 196 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); | 
| 197 | if (this.previewImg.imgList.length > 0) { | ||
| 198 | formData.append("ssBsmClmx", this.previewImg.imgList[this.previewImg.index].bsmClmx); | ||
| 199 | } | ||
| 197 | uploadSjClmx(formData).then((res) => { | 200 | uploadSjClmx(formData).then((res) => { | 
| 198 | if (res.code == 200) { | 201 | if (res.code == 200) { | 
| 199 | this.$emit('updateList', res.result) | 202 | this.$emit('updateList', res.result) | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: | 2 | * @Description: | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2023-10-31 09:55:03 | 4 | * @LastEditTime: 2023-10-31 10:46:54 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class="rlPopup"> | 7 | <div class="rlPopup"> | 
| ... | @@ -198,6 +198,9 @@ | ... | @@ -198,6 +198,9 @@ | 
| 198 | formData.append('file', file) | 198 | formData.append('file', file) | 
| 199 | formData.append("bsmMaterial ", this.previewImg.bsmMaterial); | 199 | formData.append("bsmMaterial ", this.previewImg.bsmMaterial); | 
| 200 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); | 200 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); | 
| 201 | if (this.previewImg.imgList.length > 0) { | ||
| 202 | formData.append("ssbsmMaterial", this.previewImg.imgList[this.previewImg.index].bsmMaterial); | ||
| 203 | } | ||
| 201 | uploadSjClmx(formData).then((res) => { | 204 | uploadSjClmx(formData).then((res) => { | 
| 202 | if (res.code == 200) { | 205 | if (res.code == 200) { | 
| 203 | this.$emit('updateList', res.result) | 206 | this.$emit('updateList', res.result) | ... | ... | 
- 
Please register or sign in to post a comment