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 10c98f57
authored
Jun 01, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'sass+v4.22.0' into 'master'
合并Sass+v4.22.0 See merge request
!108
2 parents
0de20b28
b20e4f02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
149 additions
and
118 deletions
src/views/bankCardWithdrawal/bankCardList/cpns/BankCardDialog.vue
src/views/task/addTask/index.vue
src/views/task/taskList/index.vue
src/views/bankCardWithdrawal/bankCardList/cpns/BankCardDialog.vue
View file @
10c98f5
...
...
@@ -235,7 +235,8 @@ export default {
}
bankCardApi
.
exportBankWithdrawal
({
...
params
,
...
pageConfig
}).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
this
.
$Utils
.
exportFn
(
res
.
data
)
this
.
$Utils
.
exportFn
(
res
.
data
.
fullFileUrl
)
this
.
$Utils
.
exportFn
(
res
.
data
.
fileUrl
)
}
else
{
this
.
$message
({
type
:
'error'
,
...
...
src/views/task/addTask/index.vue
View file @
10c98f5
...
...
@@ -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
>
src/views/task/taskList/index.vue
View file @
10c98f5
<
template
>
<div
class=
"task-contentbox"
>
<div
class=
'task-contentbox'
>
<div>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form-item
label=
"业务场景:"
>
<el-select
v-model=
"searchForm.businessScene"
size=
"small"
>
<el-form
:inline=
'true'
:model=
'searchForm'
>
<el-form-item
label=
'业务场景:'
>
<el-select
v-model=
'searchForm.businessScene'
size=
'small'
>
<el-option
v-for=
"(item, index) in sceneOption"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
v-for=
'(item, index) in sceneOption'
:key=
'index'
:label=
'item.label'
:value=
'item.value'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商户:"
>
<el-form-item
label=
'商户:'
>
<el-input
v-model=
"searchForm.merchantName"
size=
"small"
placeholder=
"请输入商户名称"
v-model=
'searchForm.merchantName'
size=
'small'
placeholder=
'请输入商户名称'
></el-input>
</el-form-item>
<el-form-item
label=
"活动/产品:"
>
<el-form-item
label=
'活动/产品:'
>
<el-input
v-model=
"searchForm.activityName"
size=
"small"
placeholder=
"请输入活动/产品名称"
v-model=
'searchForm.activityName'
size=
'small'
placeholder=
'请输入活动/产品名称'
></el-input>
</el-form-item>
<el-form-item
label=
"状态:"
>
<el-select
v-model=
"searchForm.activityStatus"
size=
"small"
>
<el-form-item
label=
'状态:'
>
<el-select
v-model=
'searchForm.activityStatus'
size=
'small'
>
<el-option
v-for=
"(item, index) in taskStatus"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
v-for=
'(item, index) in taskStatus'
:key=
'index'
:label=
'item.label'
:value=
'item.value'
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleSearch"
>
查询
<el-button
type=
'primary'
size=
'small'
@
click=
'handleSearch'
>
查询
</el-button>
<el-button
plain
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
plain
size=
'small'
@
click=
'handleReset'
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
<div
class=
"table-top"
>
<div
class=
"table-title"
>
订单列表
</div>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleEdit()"
>
添加任务
</el-button
<div
class=
'table-top'
>
<div
class=
'table-title'
>
订单列表
</div>
<el-button
type=
'primary'
size=
'small'
@
click=
'handleEdit()'
>
添加任务
</el-button
>
</div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleTabClick"
>
<el-tabs
v-model=
'activeName'
@
tab-click=
'handleTabClick'
>
<el-tab-pane
:label=
"'全部' + '(' + listCount.totalCount + ')'"
name=
"first"
name=
'first'
></el-tab-pane>
<el-tab-pane
:label=
"'未发布' + '(' + listCount.draftCount + ')'"
:name=
"statusNum.UNPUBLISH"
:name=
'statusNum.UNPUBLISH'
></el-tab-pane>
<el-tab-pane
:label=
"'已发布' + '(' + listCount.upCount + ')'"
:name=
"statusNum.PUBLISHED"
:name=
'statusNum.PUBLISHED'
></el-tab-pane>
<el-tab-pane
:label=
"'已结束' + '(' + listCount.downCount + ')'"
:name=
"statusNum.FINISHIED"
:name=
'statusNum.FINISHIED'
></el-tab-pane>
</el-tabs>
<div>
<d2-table
ref=
"taskTable"
:searchForm=
"searchForm"
:getListApi=
"getListApi"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
v-loading=
'loading'
ref=
'taskTable'
:searchForm=
'searchForm'
:getListApi=
'getListApi'
:tableParams=
'tableParams'
:pageConf=
'pageConf'
>
<div
slot=
"businessScene"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.businessScene == 0"
>
1.0车损升级
</span>
<span
v-if=
"scope.scope.businessScene == 1"
>
1.1精品升级
</span>
<span
v-if=
"scope.scope.businessScene == 2"
>
1.2膨胀金活动
</span>
<span
v-if=
"scope.scope.businessScene == 3"
>
1.3众筹活动
</span>
<span
v-if=
"scope.scope.businessScene == 4"
>
5.2私域用户代运营
</span>
<div
slot=
'businessScene'
slot-scope=
'scope'
>
<span
v-if=
'scope.scope.businessScene == 0'
>
1.0车损升级
</span>
<span
v-if=
'scope.scope.businessScene == 1'
>
1.1精品升级
</span>
<span
v-if=
'scope.scope.businessScene == 2'
>
1.2膨胀金活动
</span>
<span
v-if=
'scope.scope.businessScene == 3'
>
1.3众筹活动
</span>
<span
v-if=
'scope.scope.businessScene == 4'
>
5.2私域用户代运营
</span>
</div>
<div
slot=
"activityStatus"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.activityStatus == statusNum.UNPUBLISH"
>
未发布
</span
<div
slot=
'activityStatus'
slot-scope=
'scope'
>
<span
v-if=
'scope.scope.activityStatus == statusNum.UNPUBLISH'
>
未发布
</span
>
<span
v-if=
"scope.scope.activityStatus == statusNum.PUBLISHED"
>
已发布
</span
<span
v-if=
'scope.scope.activityStatus == statusNum.PUBLISHED'
>
已发布
</span
>
<span
v-if=
"scope.scope.activityStatus == statusNum.FINISHIED"
>
已结束
</span
<span
v-if=
'scope.scope.activityStatus == statusNum.FINISHIED'
>
已结束
</span
>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<template
slot=
'auth-button'
slot-scope=
'scope'
>
<el-button
type=
"text"
v-if=
"scope.scope.activityStatus != statusNum.FINISHIED"
@
click=
"handleEdit(scope.scope, 1)"
>
编辑
</el-button
type=
'text'
v-if=
'scope.scope.activityStatus != statusNum.FINISHIED'
@
click=
'handleEdit(scope.scope, 1)'
>
编辑
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.activityStatus != statusNum.UNPUBLISH"
@
click=
"handleAnalyze(scope.scope)"
>
任务分析
</el-button
type=
'text'
v-if=
'scope.scope.activityStatus != statusNum.UNPUBLISH'
@
click=
'handleAnalyze(scope.scope)'
>
任务分析
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.activityStatus == statusNum.UNPUBLISH"
@
click=
"handleDelete(scope.scope)"
style=
"color: red"
>
删除
</el-button
type=
'text'
v-if=
'scope.scope.activityStatus == statusNum.UNPUBLISH'
@
click=
'handleDelete(scope.scope)'
style=
'color: red'
>
删除
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.activityStatus == statusNum.UNPUBLISH"
@
click=
"handleActive(scope.scope)"
>
发布
</el-button
type=
'text'
v-if=
'scope.scope.activityStatus == statusNum.UNPUBLISH'
@
click=
'handleActive(scope.scope)'
>
发布
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.activityStatus == statusNum.PUBLISHED"
@
click=
"handleInactive(scope.scope)"
>
结束
</el-button
type=
'text'
v-if=
'scope.scope.activityStatus == statusNum.PUBLISHED'
@
click=
'handleInactive(scope.scope)'
>
结束
</el-button
>
<el-button
type=
"text"
@
click=
"handleClone(scope.scope)"
v-if=
"scope.scope.businessScene != 4"
>
复制
</el-button
type=
'text'
@
click=
'handleClone(scope.scope)'
v-if=
'scope.scope.businessScene != 4'
>
复制
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.activityStatus != statusNum.UNPUBLISH"
@
click=
"handleViewDetail(scope.scope)"
>
查看
</el-button
type=
'text'
v-if=
'scope.scope.activityStatus != statusNum.UNPUBLISH'
@
click=
'handleViewDetail(scope.scope)'
>
查看
</el-button
>
</
template
>
</d2-table>
...
...
@@ -147,52 +156,52 @@
const
sceneOption
=
[
{
label
:
'全部'
,
value
:
''
,
value
:
''
},
{
label
:
'1.0车损升级'
,
value
:
'0'
,
value
:
'0'
},
{
label
:
'1.1精品升级'
,
value
:
'1'
,
value
:
'1'
},
{
label
:
'1.2膨胀金活动'
,
value
:
'2'
,
value
:
'2'
},
{
label
:
'1.3众筹活动'
,
value
:
'3'
,
value
:
'3'
},
{
label
:
'5.2私域用户代运营'
,
value
:
'4'
,
}
,
value
:
'4'
}
]
const
statusNum
=
{
ALL
:
''
,
UNPUBLISH
:
'1'
,
PUBLISHED
:
'2'
,
FINISHIED
:
'3'
,
FINISHIED
:
'3'
}
const
taskStatus
=
[
{
label
:
'全部'
,
value
:
''
,
value
:
''
},
{
label
:
'未发布'
,
value
:
statusNum
.
UNPUBLISH
,
value
:
statusNum
.
UNPUBLISH
},
{
label
:
'已发布'
,
value
:
statusNum
.
PUBLISHED
,
value
:
statusNum
.
PUBLISHED
},
{
label
:
'已结束'
,
value
:
statusNum
.
FINISHIED
,
}
,
value
:
statusNum
.
FINISHIED
}
]
import
{
taskApi
}
from
'../../../api/task'
...
...
@@ -208,7 +217,7 @@ export default {
businessScene
:
''
,
merchantName
:
''
,
activityName
:
''
,
activityStatus
:
''
,
activityStatus
:
''
},
listCount
:
{},
// 表格参数
...
...
@@ -221,42 +230,42 @@ export default {
label
:
'业务场景'
,
prop
:
'businessScene'
,
addHtml
:
'businessScene'
,
width
:
150
,
width
:
150
},
{
label
:
'商户'
,
prop
:
'merchantName'
,
width
:
150
,
width
:
150
},
{
label
:
'活动/产品'
,
prop
:
'activityName'
,
width
:
200
,
width
:
200
},
{
label
:
'任务数'
,
prop
:
'missionCount'
,
prop
:
'missionCount'
},
{
label
:
'创建人'
,
prop
:
'createdBy'
,
prop
:
'createdBy'
},
{
label
:
'创建时间'
,
prop
:
'createdTime'
,
width
:
150
,
width
:
150
},
{
label
:
'状态'
,
prop
:
'activityStatus'
,
addHtml
:
'activityStatus'
,
}
,
]
,
addHtml
:
'activityStatus'
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.count'
,
totalCount
:
'data.count'
},
// 活动开始/结束时间
startTime
:
''
,
...
...
@@ -265,6 +274,7 @@ export default {
getListApi
:
taskApi
.
findMissionList
,
status
:
false
,
activeName
:
'first'
,
loading
:
false
}
},
mounted
()
{
...
...
@@ -289,7 +299,7 @@ export default {
businessScene
:
''
,
merchantName
:
''
,
activityName
:
''
,
activityStatus
:
''
,
activityStatus
:
''
}
this
.
$nextTick
(()
=>
{
this
.
$refs
.
taskTable
.
refreshTable
()
...
...
@@ -308,7 +318,7 @@ export default {
this
.
status
=
true
const
para
=
{
task
:
item
,
type
,
type
}
this
.
$root
.
to
(
[
'任务中心'
,
'任务平台'
,
'任务管理'
,
'任务模板管理'
,
'*添加任务模板'
],
...
...
@@ -367,6 +377,7 @@ export default {
},
// 二次确认
secondConfirm
(
title
,
txt
,
apiParams
,
apiId
,
fn
)
{
var
params
=
{
id
:
apiId
,
activityStatus
:
apiParams
}
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -374,11 +385,12 @@ export default {
type
:
'warning'
,
callback
:
(
action
)
=>
{
if
(
action
==
'confirm'
)
{
this
.
loading
=
true
taskApi
.
updateStatusMission
(
params
).
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
loading
=
false
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
this
.
$nextTick
(()
=>
{
...
...
@@ -387,28 +399,31 @@ export default {
}
})
}
}
,
}
})
}
,
}
,
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
'scss'
scoped
>
.task-contentbox
{
padding
:
20px
;
}
.table-top
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
margin-bottom
:
10px
;
}
.table-title
{
font-size
:
16px
;
font-weight
:
600
;
color
:
rgb
(
51
,
51
,
51
);
line-height
:
16px
;
}
/
deep
/
.el-table
.cell
{
line-height
:
20px
;
}
...
...
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