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 b20e4f02
authored
May 29, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复弹框bug以及提交任务失败页面风格切换报错问题
1 parent
3926e46a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
src/views/task/addTask/index.vue
src/views/task/addTask/index.vue
View file @
b20e4f0
...
...
@@ -441,6 +441,7 @@
ref=
"textBox"
></textBox>
-->
<div
class=
'gl-edit-form'
:ref=
'itm.taskid || itm.id'
:key=
'itm.taskid || itm.id'
/>
...
...
@@ -1092,7 +1093,6 @@ export default {
getTextBox
(
id
,
dateTaskIndex
,
taskIndex
,
textContent
)
{
// 如果找到了相同的id则直接返回
let
textId
=
this
.
textIds
.
findIndex
((
item
)
=>
item
==
id
)
if
(
textId
!=
-
1
)
return
this
.
textIds
.
push
(
id
)
let
editor
=
new
E
(
this
.
$refs
[
id
])
...
...
@@ -2038,7 +2038,7 @@ export default {
itm
.
textContent
=
''
}
// 自定义uuid删除
delete
itm
.
taskid
// delete itm.taskid //此处删除uuid导致提交任务失败切换页面风格会报错
})
})
try
{
...
...
@@ -2053,6 +2053,7 @@ export default {
return
}
}
this
.
taskFormValidate
()
if
(
!
this
.
validFlag
)
{
let
message
...
...
@@ -2061,7 +2062,6 @@ export default {
}
else
{
message
=
'第'
+
(
this
.
dayIndex
+
1
)
+
'天填写未完成'
}
// this.taskList = JSON.parse(JSON.stringify(this.cloneList))
this
.
$alert
(
message
,
'警告'
,
{
confirmButtonText
:
'知道了'
,
...
...
@@ -2072,9 +2072,13 @@ export default {
})
return
}
this
.
taskFormEmptyValidate
()
this
.
taskList
.
map
((
item
)
=>
{
item
.
missionList
.
map
((
itm
)
=>
{
// 自定义uuid删除
itm
.
taskid
?
delete
itm
.
taskid
:
''
// 处理奖励积分
if
(
this
.
basicForm
.
businessScene
==
1
)
{
if
(
itm
.
rewardScoreType
==
1
)
{
...
...
@@ -2124,6 +2128,7 @@ export default {
}
})
})
console
.
log
(
this
.
taskList
)
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
basicForm
))
params
.
startTime
=
this
.
dateStartTime
params
.
endTime
=
this
.
endTime
...
...
@@ -2241,6 +2246,7 @@ export default {
</
script
>
<
style
lang=
'scss'
scoped
>
.task-box
{
padding
:
0
20px
20px
0
;
...
...
@@ -2363,4 +2369,13 @@ export default {
margin-left
:
8px
;
color
:
#333
;
}
.gl-edit-form
{
z-index
:
1
;
position
:
relative
;
}
//
.el-message-box
{
//
z-index
:
2018
;
//
}
</
style
>
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