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 ffa7db2b
authored
Oct 28, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'kyq_dev' into 'v2.12.0'
需求变更调整 See merge request
!42
2 parents
d13bd42a
9826f337
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
16 deletions
src/views/task/addTask/index.vue
src/views/task/addTask/index.vue
View file @
ffa7db2
...
@@ -132,7 +132,11 @@
...
@@ -132,7 +132,11 @@
<el-option
label=
"分享指标"
:value=
"2"
></el-option>
<el-option
label=
"分享指标"
:value=
"2"
></el-option>
<el-option
label=
"浏览指标"
:value=
"3"
></el-option>
<el-option
label=
"浏览指标"
:value=
"3"
></el-option>
<el-option
label=
"访客指标"
:value=
"4"
></el-option>
<el-option
label=
"访客指标"
:value=
"4"
></el-option>
<el-option
label=
"成单指标"
:value=
"5"
></el-option>
<el-option
v-if=
"item.activityTime == -1"
label=
"成单指标"
:value=
"5"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
@@ -350,6 +354,7 @@ export default {
...
@@ -350,6 +354,7 @@ export default {
// 活动日期天数
// 活动日期天数
taskDateNum
:
0
,
taskDateNum
:
0
,
merchantLoading
:
false
,
merchantLoading
:
false
,
dayIndex
:
0
,
btnList
:
[
btnList
:
[
{
{
name
:
'表情'
,
name
:
'表情'
,
...
@@ -863,19 +868,24 @@ export default {
...
@@ -863,19 +868,24 @@ export default {
},
},
// 任务计划表单验证
// 任务计划表单验证
taskFormValidate
()
{
taskFormValidate
()
{
var
validFlag
=
0
//
var validFlag = 0
var
dayIndex
=
0
//
var dayIndex = 0
this
.
taskList
.
every
((
item
,
index
)
=>
{
this
.
taskList
.
map
((
item
,
index
)
=>
{
this
.
$refs
[
'taskForm'
][
index
].
validate
((
valid
)
=>
{
this
.
$refs
[
'taskForm'
][
index
].
validate
((
valid
)
=>
{
if
(
!
valid
)
validFlag
=
validFlag
+
1
console
.
log
(
valid
)
// if (!valid) validFlag = validFlag + 1
if
(
!
valid
)
{
this
.
validFlag
=
false
this
.
dayIndex
=
index
return
}
})
})
dayIndex
=
index
// 检测到未填写跳转到未填写页面
// 检测到未填写跳转到未填写页面
if
(
validFlag
>
0
)
{
return
false
}
})
})
return
[
validFlag
,
dayIndex
]
// if (validFlag > 0) {
// return [validFlag, dayIndex]
// }
},
},
// 任务计划是否为空验证
// 任务计划是否为空验证
taskFormEmptyValidate
()
{
taskFormEmptyValidate
()
{
...
@@ -898,18 +908,18 @@ export default {
...
@@ -898,18 +908,18 @@ export default {
}
catch
(
err
)
{
}
catch
(
err
)
{
if
(
err
)
return
if
(
err
)
return
}
}
this
.
taskFormValidate
()
let
validFlag
=
this
.
taskFormValidate
()
if
(
!
this
.
validFlag
)
{
if
(
validFlag
[
0
]
>
0
)
{
this
.
$alert
(
'第'
+
(
this
.
dayIndex
+
1
)
+
'天填写未完成'
,
'警告'
,
{
this
.
$alert
(
'第'
+
(
validFlag
[
1
]
+
1
)
+
'天填写未完成'
,
'警告'
,
{
confirmButtonText
:
'知道了'
,
confirmButtonText
:
'知道了'
,
callback
:
(
action
)
=>
{
callback
:
(
action
)
=>
{
this
.
activeName
=
validFlag
[
1
]
+
''
this
.
validFlag
=
true
this
.
activeName
=
this
.
dayIndex
+
''
},
},
})
})
return
return
}
}
//
this.taskFormEmptyValidate()
this
.
taskFormEmptyValidate
()
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
basicForm
))
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
basicForm
))
params
.
startTime
=
this
.
startTime
params
.
startTime
=
this
.
startTime
params
.
endTime
=
this
.
endTime
params
.
endTime
=
this
.
endTime
...
...
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