Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
黄媛媛
ElectricitySheep
Commits
41394071
Commit
41394071
authored
Oct 22, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
bc1538b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
choiceGood.vue
src/components/common/choiceGood.vue
+1
-1
index.js
src/plug/index.js
+10
-6
No files found.
src/components/common/choiceGood.vue
View file @
41394071
...
...
@@ -67,7 +67,7 @@
methods
:
{
//获取所有菜单
getList
()
{
this
.
apipost
(
"/api/product/GetProductGoodsDialogList"
,
this
.
msg
,
res
=>
{
this
.
apipost
(
"/api/product/GetProductGoodsDialogList
_V2
"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
total
=
res
.
data
.
data
.
count
;
var
tempArray
=
res
.
data
.
data
.
pageData
;
...
...
src/plug/index.js
View file @
41394071
...
...
@@ -202,17 +202,22 @@ export default {
type
:
mime
});
if
(
upInfo
.
IsDefault
==
1
){
that
.
uploadStart
(
path
,
newFile
,
callback
)
if
(
upInfo
.
StoreType
==
1
){
that
.
uploadStart
(
path
,
newFile
,
callback
)
}
if
(
upInfo
.
StoreType
==
2
){
that
.
uploadToAli
(
path
,
newFile
,
callback
)
}
}
else
{
this
.
Error
(
'请先配置上传'
);
}
}).
catch
(
function
(
error
)
{
if
(
upInfo
.
IsDefault
==
1
){
if
(
upInfo
.
StoreType
==
1
){
that
.
uploadStart
(
path
,
newFile
,
callback
)
that
.
uploadStart
(
path
,
fileObj
,
callback
)
}
if
(
upInfo
.
StoreType
==
3
){
that
.
uploadToAli
(
path
,
newFile
,
callback
)
if
(
upInfo
.
StoreType
==
2
){
that
.
uploadToAli
(
path
,
fileObj
,
callback
)
}
}
else
{
this
.
Error
(
'请先配置上传'
);
...
...
@@ -225,7 +230,7 @@ export default {
if
(
upInfo
.
StoreType
==
1
){
this
.
uploadStart
(
path
,
fileObj
,
callback
)
}
if
(
upInfo
.
StoreType
==
3
){
if
(
upInfo
.
StoreType
==
2
){
this
.
uploadToAli
(
path
,
fileObj
,
callback
)
}
}
else
{
...
...
@@ -279,7 +284,6 @@ export default {
FileUrl
:
"http://"
+
data
.
Location
}
if
(
callback
)
{
console
.
log
(
uploadResult
,
'uploadResult'
);
callback
(
uploadResult
);
}
}
else
{
...
...
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