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 5a9afdaa
authored
Oct 18, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
分享上传
1 parent
18eef479
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
180 additions
and
221 deletions
package.json
src/api/commonApi.js
src/api/request.js
src/api/sign.js
src/api/task.js
src/components/GLEditor/Emotion.vue
src/components/GLEditor/index.vue
src/views/task/addTask/app.js
src/views/task/addTask/components/activityDia.vue
src/views/task/addTask/index.vue
src/views/task/taskList/index.vue
package.json
View file @
5a9afda
...
...
@@ -19,6 +19,7 @@
"node-sass"
:
"4.14.1"
,
"sass-loader"
:
"7.3.1"
,
"sha1"
:
"^1.1.1"
,
"md5"
:
"^2.3.0"
,
"vue"
:
"^2.6.11"
},
"devDependencies"
:
{
...
...
src/api/commonApi.js
View file @
5a9afda
import
request
from
'./request'
import
Vue
from
'vue'
const
commonApi
=
{
uploadImgApi
(
data
=
{}
)
{
uploadImgApi
(
data
)
{
data
.
method
=
'glsx.accounts.biz.common.pictureUpload'
return
request
(
data
,
'glsx.accounts.biz.common.pictureUpload'
,
[],
Vue
.
prototype
.
fileUploadURL
[
'file'
],
Vue
.
prototype
.
fileUploadURL
,
true
)
},
}
...
...
src/api/request.js
View file @
5a9afda
...
...
@@ -3,22 +3,35 @@ import axios from 'axios'
import
qs
from
'qs'
// import GlsxVueCommon from 'glsx-vue-common'
import
sign
from
'./sign'
import
{
GlAxios
}
from
'glsx-vue-common'
const
request
=
(
params
=
{},
method
=
RequestMethods
.
GET
,
noSignAttr
=
[],
url
=
''
)
=>
{
import
{
GlAxios
}
from
'glsx-vue-common'
const
request
=
(
params
=
{},
method
=
RequestMethods
.
GET
,
noSignAttr
=
[],
url
=
''
,
isMd5
=
false
)
=>
{
params
.
source
=
'glsx-oss-withdrawal-data'
params
.
appKey
=
'48e5e13229b82c1b4e6e8c96151f0637'
params
.
timestamp
=
new
Date
().
getTime
()
params
.
v
=
'1.0.0'
params
.
format
=
'json'
// params.createBy = this.$get_session_config().user.id
var
data
=
sign
(
params
,
noSignAttr
)
if
(
isMd5
)
{
params
.
app_key
=
params
.
appKey
delete
params
.
appKey
// return axios.post(`${url}/router?method=${method}`, qs.stringify(data))
}
var
data
=
isMd5
?
sign
(
params
,
noSignAttr
,
true
)
:
sign
(
params
,
noSignAttr
)
if
(
url
)
{
console
.
log
(
232323
)
console
.
log
(
data
,
'params'
)
return
axios
.
post
(
`
${
url
}
/router?method=
${
method
}
`
,
qs
.
stringify
(
data
))
}
return
method
===
RequestMethods
.
GET
?
GlAxios
.
get
(
'router'
,
{
params
:
sign
(
params
,
noSignAttr
)
})
:
GlAxios
.
post
(
'router'
,
data
)
return
method
===
RequestMethods
.
GET
?
GlAxios
.
get
(
'router'
,
{
params
:
sign
(
params
,
noSignAttr
),
})
:
GlAxios
.
post
(
'router'
,
data
)
}
export
default
request
src/api/sign.js
View file @
5a9afda
import
sha1
from
'sha1'
import
md5
from
'md5'
import
qs
from
'qs'
import
_
from
'lodash'
const
secret
=
window
.
location
.
href
.
includes
(
'dj.glsx.com.cn'
)
?
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const
sign
=
(
params
,
noSignAttr
=
[])
=>
{
const
secret
=
window
.
location
.
href
.
includes
(
'dj.glsx.com.cn'
)
?
'4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
:
'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const
sign
=
(
params
,
noSignAttr
=
[],
isMd5
)
=>
{
console
.
log
(
isMd5
,
'isMd5'
)
delete
params
.
sign
var
objStr
=
qs
.
stringify
(
_
.
cloneDeep
(
params
),
{
arrayFormat
:
'indices'
,
allowDots
:
true
,
encodeValuesOnly
:
true
encodeValuesOnly
:
true
,
})
var
objVal
=
objStr
.
split
(
'&'
)
var
realObj
=
{}
objVal
.
forEach
(
item
=>
{
objVal
.
forEach
(
(
item
)
=>
{
const
idx
=
item
.
indexOf
(
'='
)
realObj
[
item
.
split
(
'='
)[
0
]]
=
decodeURIComponent
(
item
.
slice
(
idx
+
1
))
})
...
...
@@ -27,10 +31,14 @@ const sign = (params, noSignAttr = []) => {
}
realObj
[
key
]
=
obj
}
keys
.
forEach
(
e
=>
{
keys
.
forEach
(
(
e
)
=>
{
!
noSignAttr
.
includes
(
e
)
&&
str
.
push
(
e
+
realObj
[
e
])
})
realObj
.
sign
=
sha1
(
secret
+
str
.
join
(
''
)
+
secret
).
toUpperCase
()
console
.
log
(
str
)
realObj
.
sign
=
isMd5
?
md5
(
secret
+
str
.
join
(
''
)
+
secret
).
toUpperCase
()
:
sha1
(
secret
+
str
.
join
(
''
)
+
secret
).
toUpperCase
()
console
.
log
(
realObj
)
return
realObj
}
export
default
sign
src/api/task.js
View file @
5a9afda
...
...
@@ -2,15 +2,51 @@ import request from './request'
import
Vue
from
'vue'
// const path = 'scrm.api.renewal.insurance.customer.name.list.'
// const defaultPath = 'scrm.api.renewal.order.'
// 获取任务列表详情
const
taskApi
=
{
getMerchantsList
(
data
=
{})
{
data
.
method
=
'merchants.api.open.findMerchantList'
// 获取活动列表
findMissionList
(
data
)
{
data
.
method
=
'merchants.api.mission.findMissionList'
return
request
(
data
)
},
// 任务状态更新
updateStatusMission
(
data
)
{
data
.
method
=
'merchants.api.mission.updateStatusMission'
return
request
(
data
)
},
// 通过业务场景获取商户
findMerchantByScene
(
data
)
{
data
.
method
=
'scrm.api.busassistant.merchant.byscene'
return
request
(
data
,
'scrm.api.busassistant.merchant.byscene'
,
[],
Vue
.
prototype
.
businessURL
)
},
// 获取所有未结束活动
getActivityBypage
(
data
)
{
data
.
method
=
'scrm.api.shopmall.crowd.activity.page'
return
request
(
data
,
'
merchants.api.open.findMerchantList
'
,
'
scrm.api.shopmall.crowd.activity.page
'
,
[],
Vue
.
prototype
.
otherUrl
)
},
// 新建任务
creatMission
(
data
)
{
data
.
method
=
'merchants.api.mission.createMission'
return
request
(
data
,
'post'
)
},
// getMerchantsList(data = {}) {
// data.method = 'merchants.api.open.findMerchantList'
// return request(
// data,
// 'merchants.api.open.findMerchantList',
// [],
// Vue.prototype.otherUrl
// )
// },
}
export
{
taskApi
}
src/components/GLEditor/Emotion.vue
View file @
5a9afda
<
template
>
<div
class=
"ly-emotion"
>
<slot></slot>
</div>
</
template
>
<
script
>
<div
class=
"ly-emotion"
>
<slot></slot>
</div>
</
template
>
<
script
>
import
emoji
from
'../../utils/emo'
export
default
{
name
:
'ly-emotion'
,
mounted
()
{
console
.
log
(
123123
)
const
name
=
this
.
$el
.
innerHTML
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
name
))
+
1
...
...
@@ -20,10 +21,10 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$el
.
innerHTML
=
imgHTML
})
}
}
,
}
</
script
>
<
style
scoped
>
<
style
scoped
>
.ly-emotion
{
display
:
inline-block
;
}
...
...
src/components/GLEditor/index.vue
View file @
5a9afda
This diff is collapsed.
Click to expand it.
src/views/task/addTask/app.js
View file @
5a9afda
...
...
@@ -6,6 +6,7 @@ base.getConfig().then((data) => {
const
{
vue
,
config
}
=
data
Vue
.
prototype
.
otherUrl
=
config
.
axios
.
otherURL
Vue
.
prototype
.
fileUploadURL
=
config
.
axios
.
fileUploadURL
Vue
.
prototype
.
businessURL
=
config
.
axios
.
businessURL
vue
.
use
(
GlsxVueCommon
,
config
)
base
.
render
(
App
)
})
src/views/task/addTask/components/activityDia.vue
View file @
5a9afda
...
...
@@ -7,34 +7,34 @@
:before-close=
"handleClose"
>
<div
class=
"activity-box"
>
<div
class=
"model-item-panel"
v-if=
"
data.list
.length"
>
<div
class=
"model-item-panel"
v-if=
"
activityData
.length"
>
<div
class=
"model-item"
:class=
"
{ checked: selectItem == item }"
v-for="(item, index) in
data.list
"
v-for="(item, index) in
activityData
"
:key="index"
@click="handleSelectItem(item)"
>
<div
class=
"model-item-title"
:title=
"item.name"
>
{{
item
.
name
}}
<img
class=
"model-item-img"
:src=
"item.activityImg"
alt=
""
/>
<div
class=
"model-item-title"
:title=
"item.activityName"
>
{{
item
.
activityName
}}
</div>
<div
class=
"model-item-content"
></div>
<div
class=
"model-item-content"
>
开始时间:
{{
item
.
createdDat
e
}}
{{
item
.
startTim
e
}}
</div>
<div
class=
"model-item-content"
>
结束时间:
{{
item
.
end
Dat
e
}}
{{
item
.
end
Tim
e
}}
</div>
</div>
<el-pagination
background
layout=
"sizes, total, prev, pager, next, jumper"
:page-sizes=
"[12, 24, 48]"
:page-size=
"
data
.pageSize"
:total=
"
data
.total"
:current-page=
"
data.pageNum
"
:page-size=
"
pageParam
.pageSize"
:total=
"
pageParam
.total"
:current-page=
"
pageParam.currentPage
"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
>
...
...
@@ -53,73 +53,45 @@
</
template
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
{
taskApi
}
from
'../../../../api/task'
export
default
{
name
:
'activityDia'
,
data
()
{
return
{
activityDiaVisible
:
false
,
loading
:
false
,
data
:
{
pageNum
:
1
,
activityData
:
[],
selectItem
:
{},
pageParam
:
{
currentPage
:
1
,
pageSize
:
12
,
total
:
31
,
list
:
[
{
id
:
1100
,
name
:
'4天'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-23'
,
},
{
id
:
112
,
name
:
'优惠券0826'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-26'
,
},
{
id
:
113
,
name
:
'优惠券0826'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-26'
,
},
{
id
:
114
,
name
:
'优惠ff券0826'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-26'
,
},
{
id
:
115
,
name
:
'优惠f券0826'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-26'
,
},
{
id
:
116
,
name
:
'优惠s券0826'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-26'
,
},
{
id
:
117
,
name
:
'优惠f券0826'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-26'
,
},
{
id
:
118
,
name
:
'优s惠券0826'
,
createdDate
:
'2022-08-20 17:56:05'
,
endDate
:
'2022-08-26'
,
},
],
total
:
0
,
},
selectItem
:
{},
}
},
methods
:
{
init
()
{
init
(
merchantId
)
{
this
.
activityDiaVisible
=
true
this
.
getActivityData
(
merchantId
)
},
getActivityData
(
merchantId
)
{
let
params
=
{
currentPage
:
1
,
pageSize
:
12
,
merchantId
:
merchantId
,
activityStatuList
:
[
1
,
2
],
}
taskApi
.
getActivityBypage
(
params
).
then
((
res
)
=>
{
this
.
activityData
=
res
.
data
.
data
.
list
this
.
pageParam
.
total
=
res
.
data
.
data
.
total
// 活动时间戳转化
this
.
activityData
.
map
((
item
)
=>
{
item
.
startTime
=
dayjs
(
item
.
startTime
).
format
(
'YYYY-MM-DD'
)
item
.
endTime
=
dayjs
(
item
.
endTime
).
format
(
'YYYY-MM-DD'
)
})
console
.
log
(
this
.
activityData
,
'this.activityData'
)
})
},
handleSelectItem
(
item
)
{
console
.
log
(
item
)
...
...
@@ -144,10 +116,12 @@ export default {
this
.
activityDiaVisible
=
false
},
handleSizeChange
(
val
)
{
console
.
log
(
`每页
${
val
}
条`
)
this
.
pageParam
.
pageSize
=
val
this
.
getActivityData
()
},
handleCurrentChange
(
val
)
{
console
.
log
(
`当前页:
${
val
}
`
)
this
.
pageParam
.
currentPage
=
val
this
.
getActivityData
()
},
},
}
...
...
@@ -172,7 +146,7 @@ export default {
margin-right
:
16px
;
margin-bottom
:
16px
;
position
:
relative
;
height
:
1
28
px
;
height
:
1
90
px
;
background
:
#f9f9f9
;
border-radius
:
4px
;
padding
:
14px
16px
;
...
...
@@ -184,22 +158,24 @@ export default {
margin-right
:
0px
;
}
&
-title
{
font-size
:
1
6
px
;
font-weight
:
6
00
;
font-size
:
1
2
px
;
font-weight
:
4
00
;
color
:
#333333
;
line-height
:
25px
;
margin-bottom
:
5px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
}
&
-img
{
width
:
100%
;
height
:
100px
;
}
&
-content
{
font-size
:
12px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
16px
;
height
:
16px
;
margin-top
:
6px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
...
...
src/views/task/addTask/index.vue
View file @
5a9afda
This diff is collapsed.
Click to expand it.
src/views/task/taskList/index.vue
View file @
5a9afda
...
...
@@ -3,7 +3,7 @@
<div>
<el-form
:inline=
"true"
:model=
"searchForm"
>
<el-form-item
label=
"业务场景:"
>
<el-select
v-model=
"searchForm.
s
cene"
size=
"small"
>
<el-select
v-model=
"searchForm.
businessS
cene"
size=
"small"
>
<el-option
v-for=
"(item, index) in sceneOption"
:key=
"index"
...
...
@@ -14,20 +14,20 @@
</el-form-item>
<el-form-item
label=
"商户:"
>
<el-input
v-model=
"searchForm.
n
ame"
v-model=
"searchForm.
merchantN
ame"
size=
"small"
placeholder=
"请输入商户名称"
></el-input>
</el-form-item>
<el-form-item
label=
"活动/产品:"
>
<el-input
v-model=
"searchForm.
cod
e"
v-model=
"searchForm.
activityNam
e"
size=
"small"
placeholder=
"请输入活动/产品名称"
></el-input>
</el-form-item>
<el-form-item
label=
"状态:"
>
<el-select
v-model=
"searchForm.
s
tatus"
size=
"small"
>
<el-select
v-model=
"searchForm.
activityS
tatus"
size=
"small"
>
<el-option
v-for=
"(item, index) in taskStatus"
:key=
"index"
...
...
@@ -59,40 +59,46 @@
:pageConf=
"pageConf"
:tableData=
"tableData"
>
<div
slot=
"status"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.status == statusNum.UNPUBLISH"
>
未发布
</span>
<span
v-if=
"scope.scope.status == statusNum.PUBLISHED"
>
已发布
</span>
<span
v-if=
"scope.scope.status == statusNum.FINISHIED"
>
已结束
</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.FINISHIED"
>
已结束
</span
>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.
s
tatus == statusNum.UNPUBLISH"
v-if=
"scope.scope.
activityS
tatus == statusNum.UNPUBLISH"
@
click=
"handleEdit(scope.scope, 1)"
>
编辑
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.
s
tatus != statusNum.UNPUBLISH"
v-if=
"scope.scope.
activityS
tatus != statusNum.UNPUBLISH"
@
click=
"handleAnalyze(scope.scope)"
>
任务分析
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.
s
tatus == statusNum.UNPUBLISH"
v-if=
"scope.scope.
activityS
tatus == statusNum.UNPUBLISH"
@
click=
"handleDelete(scope.scope)"
style=
"color: red"
>
删除
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.
s
tatus == statusNum.UNPUBLISH"
v-if=
"scope.scope.
activityS
tatus == statusNum.UNPUBLISH"
@
click=
"handleActive(scope.scope)"
>
发布
</el-button
>
<el-button
type=
"text"
v-if=
"scope.scope.
s
tatus == statusNum.PUBLISHED"
v-if=
"scope.scope.
activityS
tatus == statusNum.PUBLISHED"
@
click=
"handleInactive(scope.scope)"
>
结束
</el-button
>
...
...
@@ -101,7 +107,7 @@
>
<el-button
type=
"text"
v-if=
"scope.scope.
s
tatus != statusNum.UNPUBLISH"
v-if=
"scope.scope.
activityS
tatus != statusNum.UNPUBLISH"
@
click=
"handleViewDetail(scope.scope)"
>
查看
</el-button
>
...
...
@@ -166,49 +172,49 @@ export default {
taskStatus
,
statusNum
,
searchForm
:
{
s
cene
:
''
,
n
ame
:
''
,
cod
e
:
''
,
s
tatus
:
''
,
businessS
cene
:
''
,
merchantN
ame
:
''
,
activityNam
e
:
''
,
activityS
tatus
:
''
,
},
// 表格参数
tableParams
:
{
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data.
list
'
,
listName
:
'data.
data
'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'业务场景'
,
prop
:
'
scen
e'
,
prop
:
'
businessSceneNam
e'
,
width
:
150
,
},
{
label
:
'商户'
,
prop
:
'merchant'
,
prop
:
'merchant
Name
'
,
width
:
150
,
},
{
label
:
'活动/产品'
,
prop
:
'activity'
,
prop
:
'activity
Name
'
,
width
:
200
,
},
{
label
:
'任务数'
,
prop
:
'
taskNum
'
,
prop
:
'
missionCount
'
,
},
{
label
:
'创建人'
,
prop
:
'creat
Person
'
,
prop
:
'creat
edBy
'
,
},
{
label
:
'创建时间'
,
prop
:
'creatTime'
,
prop
:
'creat
ed
Time'
,
width
:
150
,
},
{
label
:
'状态'
,
prop
:
'
s
tatus'
,
addHtml
:
'
s
tatus'
,
prop
:
'
activityS
tatus'
,
addHtml
:
'
activityS
tatus'
,
},
],
},
...
...
@@ -217,94 +223,8 @@ export default {
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
,
},
tableData
:
[
{
id
:
11
,
scene
:
'1.3业务场景'
,
merchant
:
'我是商户名称'
,
activity
:
'氛围灯众筹活动'
,
taskNum
:
'10'
,
creatPerson
:
'用户名'
,
creatTime
:
'2021-10-11 16:00:00'
,
taskList
:
[
{
date
:
'2022-10-12'
,
taskData
:
[
{
taskType
:
'1'
,
taskName
:
'fff'
,
taskDetail
:
'fff'
,
awardIntegral
:
33
,
},
],
},
{
date
:
'2022-10-13'
,
taskData
:
[
{
taskType
:
'1'
,
taskName
:
'fff'
,
taskDetail
:
'fff'
,
awardIntegral
:
33
,
},
],
},
{
date
:
'2022-10-14'
,
taskData
:
[
{
taskType
:
'1'
,
taskName
:
'fff'
,
taskDetail
:
'fff'
,
awardIntegral
:
33
,
},
],
},
{
date
:
'2022-10-15'
,
taskData
:
[
{
taskType
:
'1'
,
taskName
:
'fff'
,
taskDetail
:
'fff'
,
awardIntegral
:
33
,
},
],
},
{
date
:
'完整周期'
,
taskData
:
[],
},
],
status
:
'1'
,
},
{
id
:
22
,
scene
:
'1.3业务场景'
,
merchant
:
'我是商户名称'
,
activity
:
'360众筹活动'
,
taskNum
:
'10'
,
creatPerson
:
'用户名'
,
creatTime
:
'2021-10-27 16:00:00'
,
startTime
:
'2022-10-01 16:00:00'
,
endTime
:
'2022-10-05 16:00:00'
,
status
:
'2'
,
},
{
id
:
33
,
scene
:
'1.1业务场景'
,
merchant
:
'我是商户名称'
,
activity
:
'AR导航'
,
taskNum
:
'10'
,
creatPerson
:
'用户名'
,
creatTime
:
'2021-10-27 16:00:00'
,
startTime
:
'2022-10-15 16:00:00'
,
endTime
:
'2022-10-20 16:00:00'
,
status
:
'3'
,
},
],
// 获取订单列表
// getListApi: customerApi.getOrderList
getListApi
:
taskApi
.
findMissionList
,
}
},
methods
:
{
...
...
@@ -316,9 +236,10 @@ export default {
// 重置搜索框搜索
handleReset
()
{
this
.
searchForm
=
{
name
:
''
,
code
:
''
,
status
:
''
,
businessScene
:
''
,
merchantName
:
''
,
activityName
:
''
,
activityStatus
:
''
,
}
this
.
$nextTick
(()
=>
{
this
.
$refs
.
taskTable
.
refreshTable
()
...
...
@@ -361,7 +282,7 @@ export default {
this
.
secondConfirm
(
'提示'
,
'任务计划删除后,无法恢复。是否确定删除?'
,
''
,
3
,
scope
.
id
)
},
...
...
@@ -370,7 +291,7 @@ export default {
this
.
secondConfirm
(
'提示'
,
'任务计划发布后,任务会自动下发给对应的员工。是否确定发布?'
,
''
,
1
,
scope
.
id
)
},
...
...
@@ -379,7 +300,7 @@ export default {
this
.
secondConfirm
(
'提示'
,
'任务计划结束后,整个任务计划将无法再使用。是否确定结束?'
,
''
,
2
,
scope
.
id
)
},
...
...
@@ -413,14 +334,15 @@ export default {
])
},
// 二次确认
secondConfirm
(
title
,
txt
,
apiName
,
apiParams
,
fn
)
{
secondConfirm
(
title
,
txt
,
apiParams
,
fn
)
{
var
params
=
{
activityStatus
:
apiParams
}
this
.
$confirm
(
txt
,
title
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
callback
:
(
action
)
=>
{
if
(
action
==
'confirm'
)
{
taskApi
[
apiName
](
apiP
arams
).
then
((
res
)
=>
{
taskApi
.
updateStatusMission
(
p
arams
).
then
((
res
)
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
,
...
...
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