Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e4a75463
authored
2023-10-31 10:49:07 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:高拍仪
1 parent
25ce6cdf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
3 deletions
src/api/company.js
src/views/djbworkflow/components/clxx/dialog/imagePreview.vue
src/views/xxba/components/clxx/dialog/imagePreview.vue
src/api/company.js
View file @
e4a7546
/*
* @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
})
}
/**
...
...
src/views/djbworkflow/components/clxx/dialog/imagePreview.vue
View file @
e4a7546
<!--
* @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
)
...
...
src/views/xxba/components/clxx/dialog/imagePreview.vue
View file @
e4a7546
<!--
* @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
)
...
...
Please
register
or
sign in
to post a comment