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 8b35e25f
authored
Dec 09, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复
1 parent
7f7718c9
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 @
8b35e25
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
class=
"el-icon-video-play"
class=
"el-icon-video-play"
@
click=
"handleEnlarge(itm.materialContent, 'video')"
@
click=
"handleEnlarge(itm.materialContent, 'video')"
></i>
></i>
<div
class=
"video-pane-close"
@
click=
"close(index)"
>
<div
class=
"video-pane-close"
@
click=
"close(index
, 1
)"
>
<img
<img
src=
"../../assets/welcomeWord/close-video.png"
src=
"../../assets/welcomeWord/close-video.png"
alt=
""
alt=
""
...
@@ -623,7 +623,6 @@ export default {
...
@@ -623,7 +623,6 @@ export default {
video
.
clientWidth
*
multiple
,
video
.
clientWidth
*
multiple
,
video
.
clientHeight
*
multiple
video
.
clientHeight
*
multiple
)
)
console
.
log
(
canvas
,
'canvas'
)
// 转换成base64形式
// 转换成base64形式
var
oGrayImg
=
canvas
.
toDataURL
(
'image/png'
)
// 截取后的视频封面
var
oGrayImg
=
canvas
.
toDataURL
(
'image/png'
)
// 截取后的视频封面
const
file
=
this
.
dataURLtoFile
(
oGrayImg
)
const
file
=
this
.
dataURLtoFile
(
oGrayImg
)
...
@@ -691,7 +690,6 @@ export default {
...
@@ -691,7 +690,6 @@ export default {
that
.
$nextTick
(()
=>
{
that
.
$nextTick
(()
=>
{
const
videoUrl
=
res
const
videoUrl
=
res
that
.
getImgUrl
(
videoUrl
).
then
((
res
)
=>
{
that
.
getImgUrl
(
videoUrl
).
then
((
res
)
=>
{
console
.
log
(
res
,
'videoimg'
)
that
.
$emit
(
'getVideoImg'
,
res
.
data
.
data
)
that
.
$emit
(
'getVideoImg'
,
res
.
data
.
data
)
that
.
$emit
(
'getEditor'
)
that
.
$emit
(
'getEditor'
)
})
})
...
@@ -826,7 +824,8 @@ export default {
...
@@ -826,7 +824,8 @@ export default {
})
})
}
}
},
},
close
(
index
)
{
close
(
index
,
type
)
{
if
(
type
)
this
.
$emit
(
'setVideoImg'
)
this
.
previewList
.
splice
(
index
,
1
)
this
.
previewList
.
splice
(
index
,
1
)
},
},
textInput
(
val
)
{
textInput
(
val
)
{
...
...
src/views/task/addTask/index.vue
View file @
8b35e25
...
@@ -218,6 +218,7 @@
...
@@ -218,6 +218,7 @@
@
getEditor=
"getEditor(item, index, itm, index1)"
@
getEditor=
"getEditor(item, index, itm, index1)"
@
shareMatrial=
"shareMatrial"
@
shareMatrial=
"shareMatrial"
@
getVideoImg=
"getVideoImg"
@
getVideoImg=
"getVideoImg"
@
setVideoImg=
"setVideoImg"
></GLEditor>
></GLEditor>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -1254,6 +1255,9 @@ export default {
...
@@ -1254,6 +1255,9 @@ export default {
getVideoImg
(
val
)
{
getVideoImg
(
val
)
{
this
.
videoImg
=
val
this
.
videoImg
=
val
},
},
setVideoImg
()
{
this
.
videoImg
=
''
},
// 删除任务
// 删除任务
delTask
(
dateTask
,
dateTaskIndex
,
task
,
taskIndex
)
{
delTask
(
dateTask
,
dateTaskIndex
,
task
,
taskIndex
)
{
// dateTask -- 具体哪一天的任务对象
// dateTask -- 具体哪一天的任务对象
...
@@ -1318,8 +1322,6 @@ export default {
...
@@ -1318,8 +1322,6 @@ export default {
},
},
// 页面风格切换
// 页面风格切换
textTypeChange
(
item
,
index
,
itm
,
index1
)
{
textTypeChange
(
item
,
index
,
itm
,
index1
)
{
console
.
log
(
itm
)
console
.
log
(
this
.
textIds
)
if
(
itm
.
textType
==
1
)
{
if
(
itm
.
textType
==
1
)
{
let
textId
=
itm
.
taskid
||
itm
.
id
let
textId
=
itm
.
taskid
||
itm
.
id
this
.
getTextBox
(
textId
,
index
,
index1
)
this
.
getTextBox
(
textId
,
index
,
index1
)
...
@@ -1392,7 +1394,6 @@ export default {
...
@@ -1392,7 +1394,6 @@ export default {
let
hasLink
=
itm
.
missionMaterialList
.
findIndex
(
let
hasLink
=
itm
.
missionMaterialList
.
findIndex
(
(
list
)
=>
list
.
materialType
==
4
(
list
)
=>
list
.
materialType
==
4
)
)
console
.
log
(
hasLink
,
'---'
)
if
(
hasLink
==
-
1
)
{
if
(
hasLink
==
-
1
)
{
itm
.
showArticle
=
true
itm
.
showArticle
=
true
}
else
{
}
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