Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2ec0c208
authored
Dec 09, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'kuangyq_dev_v3.2.0' into 'v3.2.0'
修复 See merge request
!82
2 parents
745b8482
8b35e25f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
src/components/GLEditor/index.vue
src/views/task/addTask/index.vue
src/components/GLEditor/index.vue
View file @
2ec0c20
...
...
@@ -76,7 +76,7 @@
class=
"el-icon-video-play"
@
click=
"handleEnlarge(itm.materialContent, 'video')"
></i>
<div
class=
"video-pane-close"
@
click=
"close(index)"
>
<div
class=
"video-pane-close"
@
click=
"close(index
, 1
)"
>
<img
src=
"../../assets/welcomeWord/close-video.png"
alt=
""
...
...
@@ -623,7 +623,6 @@ export default {
video
.
clientWidth
*
multiple
,
video
.
clientHeight
*
multiple
)
console
.
log
(
canvas
,
'canvas'
)
// 转换成base64形式
var
oGrayImg
=
canvas
.
toDataURL
(
'image/png'
)
// 截取后的视频封面
const
file
=
this
.
dataURLtoFile
(
oGrayImg
)
...
...
@@ -691,7 +690,6 @@ export default {
that
.
$nextTick
(()
=>
{
const
videoUrl
=
res
that
.
getImgUrl
(
videoUrl
).
then
((
res
)
=>
{
console
.
log
(
res
,
'videoimg'
)
that
.
$emit
(
'getVideoImg'
,
res
.
data
.
data
)
that
.
$emit
(
'getEditor'
)
})
...
...
@@ -826,7 +824,8 @@ export default {
})
}
},
close
(
index
)
{
close
(
index
,
type
)
{
if
(
type
)
this
.
$emit
(
'setVideoImg'
)
this
.
previewList
.
splice
(
index
,
1
)
},
textInput
(
val
)
{
...
...
src/views/task/addTask/index.vue
View file @
2ec0c20
...
...
@@ -218,6 +218,7 @@
@
getEditor=
"getEditor(item, index, itm, index1)"
@
shareMatrial=
"shareMatrial"
@
getVideoImg=
"getVideoImg"
@
setVideoImg=
"setVideoImg"
></GLEditor>
</el-form-item>
<el-form-item
...
...
@@ -1254,6 +1255,9 @@ export default {
getVideoImg
(
val
)
{
this
.
videoImg
=
val
},
setVideoImg
()
{
this
.
videoImg
=
''
},
// 删除任务
delTask
(
dateTask
,
dateTaskIndex
,
task
,
taskIndex
)
{
// dateTask -- 具体哪一天的任务对象
...
...
@@ -1318,8 +1322,6 @@ export default {
},
// 页面风格切换
textTypeChange
(
item
,
index
,
itm
,
index1
)
{
console
.
log
(
itm
)
console
.
log
(
this
.
textIds
)
if
(
itm
.
textType
==
1
)
{
let
textId
=
itm
.
taskid
||
itm
.
id
this
.
getTextBox
(
textId
,
index
,
index1
)
...
...
@@ -1392,7 +1394,6 @@ export default {
let
hasLink
=
itm
.
missionMaterialList
.
findIndex
(
(
list
)
=>
list
.
materialType
==
4
)
console
.
log
(
hasLink
,
'---'
)
if
(
hasLink
==
-
1
)
{
itm
.
showArticle
=
true
}
else
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment