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
ed6968e0
authored
2023-11-01 08:41:01 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:信息备案
1 parent
3c4f29b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
src/api/company.js
src/views/xxba/components/clxx/dialog/imagePreview.vue
src/api/company.js
View file @
ed6968e
...
...
@@ -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'
...
...
src/views/xxba/components/clxx/dialog/imagePreview.vue
View file @
ed6968e
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-31 1
4:40:3
1
* @LastEditTime: 2023-10-31 1
5:27:4
1
-->
<
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'
...
...
Please
register
or
sign in
to post a comment