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
41e1b0f3
Commit
41e1b0f3
authored
Sep 01, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
d7179cb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
21 deletions
+14
-21
materialMan.vue
src/components/CommodityMan/materialMan.vue
+12
-21
index.js
src/plug/index.js
+2
-0
No files found.
src/components/CommodityMan/materialMan.vue
View file @
41e1b0f3
...
...
@@ -118,8 +118,7 @@
<div
@
click=
"PageSelect(item,index)"
:class=
"item.Selected ? 'selected' :''"
class=
"el-tooltip item material-item "
>
<img
:src=
"getIconLink(item.Image)"
class=
"material-img"
style=
"width: 140px; height: 140px;"
>
<img
:src=
"getIconLink(item.Image)"
class=
"material-img"
style=
"width: 140px; height: 140px;"
>
<div
class=
"material-video-info"
><i
class=
"el-icon-video-play"
></i>
<span>
{{
Time
(
item
.
VideoTime
)
}}
</span></div>
...
...
@@ -180,7 +179,7 @@
<el-button
size=
"small"
type=
"primary"
@
click=
"pagesubmitForm('addpageMsg')"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
...
...
@@ -254,10 +253,10 @@
this
.
GetPageList
();
},
mounted
()
{
},
methods
:
{
Time
(
value
)
{
var
theTime
=
parseInt
(
value
);
// 秒
var
middle
=
0
;
// 分
...
...
@@ -432,7 +431,6 @@
this
.
GetPageList
();
this
.
Success
(
res
.
data
.
message
)
this
.
pageMsgDig
=
false
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
...
...
@@ -477,7 +475,9 @@
that
.
addpageMsg
.
Image
=
res
.
VideoCoverImg
;
that
.
addpageMsg
.
Path
=
res
.
FileUrl
;
that
.
addpageMsg
.
Name
=
res
.
FileName
;
that
.
addPageList
();
that
.
$forceUpdate
();
}
})
},
...
...
@@ -486,6 +486,7 @@
this
.
apipost
(
"/api/product/SetMaterialInfo"
,
this
.
addpageMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
GetPageList
();
this
.
$forceUpdate
();
}
})
},
...
...
@@ -518,16 +519,13 @@
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
GetMemberGradeList
();
this
.
Success
(
res
.
data
.
message
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
}).
catch
(()
=>
{
});
}).
catch
(()
=>
{});
},
HsGroup
(
item
)
{
let
that
=
this
;
...
...
@@ -550,9 +548,7 @@
},
null
);
}).
catch
(()
=>
{
});
}).
catch
(()
=>
{});
},
DeleteGroup
(
item
)
{
let
that
=
this
;
...
...
@@ -575,9 +571,7 @@
},
null
);
}).
catch
(()
=>
{
});
}).
catch
(()
=>
{});
},
addGroup
()
{
this
.
addGroupMsgDig
=
true
;
...
...
@@ -587,7 +581,6 @@
Type
:
this
.
commonType
,
Sort
:
''
,
}
},
GroupsubmitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
...
...
@@ -619,6 +612,7 @@
},
GetPageList
()
{
this
.
loading
=
true
;
this
.
PageList
=
[];
this
.
apipost
(
"/api/product/GetMaterialInfoPageList"
,
this
.
PageMsg
,
res
=>
{
this
.
loading
=
false
;
this
.
total
=
res
.
data
.
data
.
count
;
...
...
@@ -629,8 +623,7 @@
item
.
Selected
=
false
;
})
this
.
PageList
=
data
;
this
.
$forceUpdate
();
})
},
handleClick
(
val
)
{
...
...
@@ -640,13 +633,11 @@
this
.
addpageMsg
.
Type
=
val
;
this
.
GetMemberGradeList
();
this
.
GetPageList
();
},
handleCurrentChange
(
val
)
{
this
.
PageMsg
.
pageIndex
=
val
;
this
.
GetPageList
();
},
},
}
...
...
src/plug/index.js
View file @
41e1b0f3
...
...
@@ -148,6 +148,8 @@ export default {
//上传文件到本地服务器
Vue
.
prototype
.
UploadSelfFile
=
function
(
path
,
file
,
callback
)
{
var
that
=
this
;
that
.
Info
(
'上传中...'
)
var
newPath
=
'/Upload/'
+
path
+
"/"
;
var
formData
=
new
FormData
();
var
uploadUrl
=
that
.
domainManager
().
VTUploadUrl
+
"/Upload?filePath="
+
newPath
+
"&isCreateCover=1"
;
...
...
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