Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
c2bcafdc
Commit
c2bcafdc
authored
Aug 23, 2023
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传文件路径fix
parent
5f7df710
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
index.vue
src/views/ecw/banner/index.vue
+2
-2
index.vue
src/views/ecw/product/index.vue
+1
-1
index.vue
src/views/ecw/warehouse/index.vue
+1
-1
index.vue
src/views/system/version/index.vue
+2
-2
No files found.
src/views/ecw/banner/index.vue
View file @
c2bcafdc
...
@@ -326,7 +326,7 @@ export default {
...
@@ -326,7 +326,7 @@ export default {
//上传
//上传
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
path
"
,
this
.
uuid
());
//
formData.append("path", this.uuid());
uploadFile
(
formData
).
then
(
response
=>
{
uploadFile
(
formData
).
then
(
response
=>
{
this
.
$set
(
this
.
form
,
'
bannerUrlWeb
'
,
response
.
data
);
this
.
$set
(
this
.
form
,
'
bannerUrlWeb
'
,
response
.
data
);
// this.form.img = response.data;
// this.form.img = response.data;
...
@@ -342,7 +342,7 @@ export default {
...
@@ -342,7 +342,7 @@ export default {
//上传
//上传
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
path
"
,
this
.
uuid
());
//
formData.append("path", this.uuid());
uploadFile
(
formData
).
then
(
response
=>
{
uploadFile
(
formData
).
then
(
response
=>
{
this
.
$set
(
this
.
form
,
'
bannerUrlApp
'
,
response
.
data
);
this
.
$set
(
this
.
form
,
'
bannerUrlApp
'
,
response
.
data
);
// this.form.img = response.data;
// this.form.img = response.data;
...
...
src/views/ecw/product/index.vue
View file @
c2bcafdc
...
@@ -601,7 +601,7 @@ export default {
...
@@ -601,7 +601,7 @@ export default {
//上传
//上传
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
path
"
,
this
.
uuid
());
//
formData.append("path", this.uuid());
uploadFile
(
formData
).
then
(
response
=>
{
uploadFile
(
formData
).
then
(
response
=>
{
this
.
$set
(
this
.
form
,
'
imgs
'
,
response
.
data
);
this
.
$set
(
this
.
form
,
'
imgs
'
,
response
.
data
);
// this.form.img = response.data;
// this.form.img = response.data;
...
...
src/views/ecw/warehouse/index.vue
View file @
c2bcafdc
...
@@ -811,7 +811,7 @@ export default {
...
@@ -811,7 +811,7 @@ export default {
//上传
//上传
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
path
"
,
this
.
uuid
());
//
formData.append("path", this.uuid());
uploadFile
(
formData
).
then
(
response
=>
{
uploadFile
(
formData
).
then
(
response
=>
{
this
.
$set
(
this
.
form
,
'
img
'
,
response
.
data
);
this
.
$set
(
this
.
form
,
'
img
'
,
response
.
data
);
// this.form.img = response.data;
// this.form.img = response.data;
...
...
src/views/system/version/index.vue
View file @
c2bcafdc
...
@@ -324,7 +324,7 @@ export default {
...
@@ -324,7 +324,7 @@ export default {
/** 处理上传的文件发生变化 */
/** 处理上传的文件发生变化 */
handleFileChange
(
file
,
fileList
)
{
handleFileChange
(
file
,
fileList
)
{
this
.
upload
.
data
.
path
=
this
.
uuid
()
+
"
/
"
+
file
.
name
;
//
this.upload.data.path = this.uuid() + "/" + file.name;
},
},
/** 文件上传成功处理 */
/** 文件上传成功处理 */
...
@@ -355,7 +355,7 @@ export default {
...
@@ -355,7 +355,7 @@ export default {
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
// console.log(file);
// console.log(file);
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
file
"
,
file
);
formData
.
append
(
"
path
"
,
this
.
uuid
()
+
"
/
"
+
file
.
name
);
//
formData.append("path", this.uuid() + "/" + file.name);
uploadFile
(
formData
).
then
(
response
=>
{
uploadFile
(
formData
).
then
(
response
=>
{
this
.
$set
(
this
.
form
,
'
appUrl
'
,
response
.
data
);
this
.
$set
(
this
.
form
,
'
appUrl
'
,
response
.
data
);
// this.form.img = response.data;
// this.form.img = response.data;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment