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
7f37715e
Commit
7f37715e
authored
Oct 23, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
fc217f74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
materialMan.vue
src/components/CommodityMan/materialMan.vue
+8
-6
ChooseFile.vue
src/components/global/ChooseFile.vue
+5
-0
No files found.
src/components/CommodityMan/materialMan.vue
View file @
7f37715e
...
...
@@ -147,13 +147,13 @@
:content=
"item.Name"
placement=
"top-start"
>
<div
@
click=
"PageSelect(item,index)"
:class=
"item.Selected ? 'selected' :''"
class=
"el-tooltip item material-item "
>
<div
class=
"mater_FileType"
v-if=
"getFileType(item.Name)==1"
>
<div
class=
"mater_
My
FileType"
v-if=
"getFileType(item.Name)==1"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/WORD.png"
alt=
""
>
</div>
<div
class=
"mater_FileType"
v-if=
"getFileType(item.Name)==2"
>
<div
class=
"mater_
My
FileType"
v-if=
"getFileType(item.Name)==2"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/PPT.png"
alt=
""
>
</div>
<div
class=
"mater_FileType"
v-if=
"getFileType(item.Name)==3"
>
<div
class=
"mater_
My
FileType"
v-if=
"getFileType(item.Name)==3"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pdf.png"
alt=
""
>
</div>
<div
flex=
"dir:left"
style=
"margin-top: 5px;"
>
...
...
@@ -548,7 +548,9 @@
// 新增素材信息
addPageList
()
{
var
upInfo
=
JSON
.
parse
(
localStorage
.
uploadInfo
);
this
.
addpageMsg
.
PathType
=
upInfo
.
StoreType
;
if
(
upInfo
){
this
.
addpageMsg
.
PathType
=
upInfo
.
StoreType
;
}
this
.
apipost
(
"/api/product/SetMaterialInfo"
,
this
.
addpageMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetPageList
();
...
...
@@ -831,7 +833,7 @@
padding
:
0
15px
;
}
.mater_FileType
{
.mater_
My
FileType
{
width
:
140px
;
height
:
140px
;
display
:
flex
;
...
...
@@ -839,7 +841,7 @@
justify-content
:
center
;
}
.mater_FileType
img
{
.mater_
My
FileType
img
{
width
:
80%
;
height
:
80%
;
}
...
...
src/components/global/ChooseFile.vue
View file @
7f37715e
...
...
@@ -160,6 +160,7 @@
Image
:
''
,
VideoTime
:
0
,
WithHeight
:
0
,
PathType
:
0
},
selectId
:
-
1
,
emitmsg
:
[],
...
...
@@ -239,6 +240,10 @@
// 新增素材信息
addPageList
()
{
var
upInfo
=
JSON
.
parse
(
localStorage
.
uploadInfo
);
if
(
upInfo
){
this
.
addpageMsg
.
PathType
=
upInfo
.
StoreType
;
}
this
.
apipost
(
"/api/product/SetMaterialInfo"
,
this
.
addpageMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetPageList
();
...
...
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