Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
1bbd4789
Commit
1bbd4789
authored
May 18, 2021
by
gongguan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了任务配置默认会保留上一次的bug
parent
26b47e3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
add.js
client/pages/activity/add/add.js
+15
-10
No files found.
client/pages/activity/add/add.js
View file @
1bbd4789
...
...
@@ -18,6 +18,17 @@ const THANKS_TYPE = 5
var
validator
=
new
schema
(
descriptor
)
const
tasks
=
{
<%
for
(
var
i
=
0
;
i
<
configList
.
length
;
++
i
)
{
%>
<%-
taskKeys
.
includes
(
configList
[
i
].
key
)
&&
configList
[
i
].
key
!==
'label'
?
`
${
configList
[
i
].
key
}
:{
value:"",
taskRateType:"",
times:"",
title:"",
link:""
},`
:
''
%><%
}
%>
}
Component
({
mixins
:
[
methods
],
data
:
{
...
...
@@ -27,16 +38,7 @@ Component({
endTime
:
''
,
<%
for
(
var
i
=
0
;
i
<
configList
.
length
;
++
i
)
{
%>
<%-
!
taskKeys
.
includes
(
configList
[
i
].
key
)
&&
configList
[
i
].
key
!==
'label'
?
`
${
configList
[
i
].
key
}
:
${
configList
[
i
].
defaultValue
||
"''"
}
,`
:
''
%><%
}
%>
tasks
:
{
<%
for
(
var
i
=
0
;
i
<
configList
.
length
;
++
i
)
{
%>
<%-
taskKeys
.
includes
(
configList
[
i
].
key
)
&&
configList
[
i
].
key
!==
'label'
?
`
${
configList
[
i
].
key
}
:{
value:"",
taskRateType:"",
times:"",
title:"",
link:""
},`
:
''
%><%
}
%>
},
tasks
:
JSON
.
parse
(
JSON
.
stringify
(
tasks
)),
<%
for
(
var
i
=
0
;
i
<
boxDatas
.
length
;
++
i
)
{
%>
<%-
`
${
boxkeyDatas
[
i
].
name
}
:{
${
boxkeyDatas
[
i
].
value
}
...
...
@@ -49,6 +51,9 @@ Component({
isPostParams
:
true
},
didMount
()
{
this
.
setData
({
tasks
:
JSON
.
parse
(
JSON
.
stringify
(
tasks
))
})
const
{
id
}
=
this
.
$page
.
$router
.
params
id
&&
this
.
getActivityInfo
(
id
)
},
...
...
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