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 0bcb1295
authored
Dec 06, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'kuangyq_dev_v3.2.0' into 'v3.2.0'
Kuangyq dev v3.2.0 See merge request
!72
2 parents
d4a200fe
da26c837
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
13 deletions
src/views/task/addTask/index.vue
src/views/task/taskList/index.vue
src/views/task/addTask/index.vue
View file @
0bcb129
...
...
@@ -74,7 +74,10 @@
</el-radio-group>
</el-form-item>
<el-form-item
label=
"积分提现:"
prop=
"withdrawalFlag"
>
<el-radio-group
v-model=
"basicForm.withdrawalFlag"
>
<el-radio-group
v-model=
"basicForm.withdrawalFlag"
:disabled=
"isEditor && activityStatus == 2"
>
<el-radio
:label=
"1"
>
是(员工发起提现)
</el-radio>
<el-radio
:label=
"2"
>
否(运营从后台核销)
</el-radio>
</el-radio-group>
...
...
@@ -749,7 +752,7 @@ export default {
// 清空活动
this
.
basicForm
.
activityId
=
''
this
.
basicForm
.
activityName
=
''
this
.
taskList
=
[]
//
this.taskList = []
},
// 根据商户名搜索商户
filterMethod
:
utils
.
debounce
(
function
(
val
)
{
...
...
@@ -1272,8 +1275,8 @@ export default {
// 提交任务
submitTask
()
{
// 遍历
let
submitList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
taskList
))
submit
List
.
map
((
item
)
=>
{
//
let submitList = JSON.parse(JSON.stringify(this.taskList))
this
.
task
List
.
map
((
item
)
=>
{
item
.
missionList
.
map
((
itm
)
=>
{
// 重复次数处理
if
(
itm
.
repeatCount
||
itm
.
repeatFlag
)
{
...
...
@@ -1287,10 +1290,6 @@ export default {
)
{
itm
.
minTriggerValue
=
1
}
// 分享模式处理
if
(
itm
.
sharingMethod
)
{
itm
.
sharingMethod
=
itm
.
sharingMethod
.
toString
()
}
// 自定义uuid删除
delete
itm
.
taskid
})
...
...
@@ -1312,6 +1311,14 @@ export default {
return
}
this
.
taskFormEmptyValidate
()
this
.
taskList
.
map
((
item
)
=>
{
item
.
missionList
.
map
((
itm
)
=>
{
// 分享模式处理
if
(
itm
.
sharingMethod
)
{
itm
.
sharingMethod
=
itm
.
sharingMethod
.
toString
()
}
})
})
let
params
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
basicForm
))
params
.
startTime
=
this
.
dateStartTime
params
.
endTime
=
this
.
endTime
...
...
@@ -1319,11 +1326,11 @@ export default {
params
.
crowd
=
params
.
crowd
.
join
(
','
)
// 删除判断是否可编辑的日期标识
if
(
this
.
isEditor
)
{
submit
List
.
map
((
item
)
=>
{
this
.
task
List
.
map
((
item
)
=>
{
delete
item
.
timeFlag
})
}
params
.
missionDateList
=
submit
List
params
.
missionDateList
=
this
.
task
List
params
.
id
=
this
.
taskId
// 创建
if
(
!
this
.
isEditor
)
{
...
...
src/views/task/taskList/index.vue
View file @
0bcb129
...
...
@@ -53,7 +53,7 @@
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tab-pane
:label=
"'全部' + '(' + listCount.totalCount + ')'"
name=
""
name=
"
first
"
></el-tab-pane>
<el-tab-pane
:label=
"'未发布' + '(' + listCount.draftCount + ')'"
...
...
@@ -167,6 +167,7 @@ const sceneOption = [
},
]
const
statusNum
=
{
ALL
:
''
,
UNPUBLISH
:
'1'
,
PUBLISHED
:
'2'
,
FINISHIED
:
'3'
,
...
...
@@ -259,7 +260,7 @@ export default {
// 获取订单列表
getListApi
:
taskApi
.
findMissionList
,
status
:
false
,
activeName
:
''
,
activeName
:
'
first
'
,
}
},
mounted
()
{
...
...
@@ -288,11 +289,12 @@ export default {
}
this
.
$nextTick
(()
=>
{
this
.
$refs
.
taskTable
.
refreshTable
()
this
.
activeName
=
'first'
})
},
// tab切换
handleTabClick
(
tab
,
event
)
{
this
.
searchForm
.
activityStatus
=
tab
.
name
this
.
searchForm
.
activityStatus
=
tab
.
name
==
'first'
?
''
:
tab
.
name
this
.
$nextTick
(()
=>
{
this
.
$refs
.
taskTable
.
refreshTable
()
})
...
...
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