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 484f1145
authored
Nov 08, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'kuangyq_dev_v3.0.0' into 'v3.0.0'
Kuangyq dev v3.0.0 See merge request
!49
2 parents
370396ed
74a5ec5f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
83 additions
and
77 deletions
src/components/GLEditor/index.vue
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
src/views/profitManagement/profitList/index.vue
src/views/task/addTask/index.vue
src/views/task/analyseTask/cpns/TaskDetails.vue
src/views/task/observeTask/cpns/taskPlan.vue
src/views/task/taskList/index.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
src/components/GLEditor/index.vue
View file @
484f114
...
...
@@ -277,8 +277,8 @@
type=
"file"
style=
"opacity: 0"
:id=
"item.type + 'file'"
ref=
"file"
class=
"welcome-input"
ref=
"file
Video
"
class=
"welcome-input
upload-video
"
:accept=
"item.accept || 'video/*'"
@
change=
"(e) => handleVideoChange(e)"
/>
...
...
@@ -646,6 +646,7 @@ export default {
ATT_TYPE
.
VEDIO
)
}
document
.
querySelector
(
'.upload-video'
).
value
=
''
var
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
file
)
reader
.
onload
=
(
e
)
=>
{
...
...
@@ -655,7 +656,6 @@ export default {
const
fileUrl
=
splitStr
[
splitStr
.
length
-
1
]
+
'@'
+
arrBase64
[
1
]
// const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this
.
videoList
.
uploadApi
({
file
:
fileUrl
}).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
)
{
this
.
$notify
({
title
:
'提示'
,
...
...
@@ -707,7 +707,7 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
let
file
=
e
.
srcElement
.
files
[
0
]
// 默认10MB
const
limitSize
=
this
.
videoList
.
limitSize
||
1
0
const
limitSize
=
this
.
videoList
.
limitSize
||
5
0
const
isLt
=
file
.
size
/
1024
/
1024
<
limitSize
if
(
!
isLt
)
{
_this
.
$message
.
error
(
'上传视频大小不能超过'
+
limitSize
+
'MB!'
)
...
...
src/views/profitManagement/profitList/cpns/ProfitSearch.vue
View file @
484f114
...
...
@@ -24,10 +24,10 @@
<el-form-item
label=
'所属业务场景'
>
<el-select
v-model=
'profitSearchForm.businessScene'
placeholder=
'所属业务场景'
>
<el-option
label=
'全部'
value=
''
></el-option>
<el-option
label=
'1.0 新车权益
升级
'
value=
'0'
></el-option>
<el-option
label=
'1.1 新车精品升级'
value=
'1'
></el-option>
<el-option
label=
'1.2
新车膨胀金活动
'
value=
'2'
></el-option>
<el-option
label=
'1.3
售后直播众筹活动
'
value=
'3'
></el-option>
<el-option
label=
'1.0 新车权益
销售
'
value=
'0'
></el-option>
<el-option
label=
'1.1
次
新车精品升级'
value=
'1'
></el-option>
<el-option
label=
'1.2
次新车线上转化
'
value=
'2'
></el-option>
<el-option
label=
'1.3
存量用户众筹
'
value=
'3'
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
'所属商户:'
>
...
...
src/views/profitManagement/profitList/index.vue
View file @
484f114
...
...
@@ -14,10 +14,10 @@
: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 == '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>
</div>
<div
slot=
"channel"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.channel == '1'"
>
广联
</span>
...
...
src/views/task/addTask/index.vue
View file @
484f114
...
...
@@ -16,7 +16,7 @@
size=
"small"
:disabled=
"isEditor"
>
<el-option
label=
"1.3
存量用户众筹
"
:value=
"3"
></el-option>
<el-option
label=
"1.3
售后直播众筹活动
"
:value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商户:"
prop=
"merchantId"
>
...
...
@@ -58,10 +58,10 @@
placeholder=
"请选择任务指定人群"
size=
"small"
>
<el-option
label=
"1.0
新车权益销售
"
value=
"0"
></el-option>
<el-option
label=
"1.1
次
新车精品升级"
value=
"1"
></el-option>
<el-option
label=
"1.2
次新车线上转化
"
value=
"2"
></el-option>
<el-option
label=
"1.3
存量用户众筹
"
value=
"3"
></el-option>
<el-option
label=
"1.0
新车权益升级
"
value=
"0"
></el-option>
<el-option
label=
"1.1
新车精品升级"
value=
"1"
></el-option>
<el-option
label=
"1.2
次新车膨胀金活动
"
value=
"2"
></el-option>
<el-option
label=
"1.3
售后直播众筹活动
"
value=
"3"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"发放渠道:"
prop=
"channel"
>
...
...
@@ -124,7 +124,7 @@
>
<el-select
v-model=
"itm.missonType"
placeholder=
"请选择任务类型
:
"
placeholder=
"请选择任务类型"
@
change=
"selectTaskType(item, index, itm, index1)"
size=
"small"
:disabled=
"isEditor && activityStatus == 2"
...
...
@@ -168,13 +168,19 @@
<el-form-item
:prop=
"'missionList.' + index1 + '.missionMaterialList'"
:rules=
"taskFormRules.attachmentList"
v-if=
"itm.missonType && itm.missonType
!= 1
"
v-if=
"itm.missonType && itm.missonType
== 2
"
>
<label
slot=
"label"
class=
"required"
>
分享素材:
</label>
<GLEditor
:id=
"'missionList' + itm.id + 'welcome'"
:key=
"'missionList' + itm.id + 'welcome'"
:ref=
"'missionList' + itm.id + 'welcome'"
:id=
"
'missionList' + (itm.taskid || itm.id) + 'welcome'
"
:key=
"
'missionList' + (itm.taskid || itm.id) + 'welcome'
"
:ref=
"
'missionList' + (itm.taskid || itm.id) + 'welcome'
"
:form=
"'customer'"
style=
"line-height: 12px"
:btnList=
"btnList"
...
...
@@ -238,7 +244,8 @@
<el-input
v-model=
"itm.minTriggerValue"
type=
"number"
oninput=
"value=value.replace(/^0[0-9]|[^0-9]/g, '')"
:min=
"1"
oninput=
"value=value.replace(/^0|[^0-9]/g, '')"
size=
"small"
:disabled=
"isEditor && activityStatus == 2"
></el-input>
...
...
@@ -275,6 +282,20 @@
</el-form-item>
<el-form-item
v-if=
"itm.rewardType == 1"
label=
"最低指标:"
>
<el-input
v-model=
"itm.minTriggerValue"
type=
"number"
:min=
"1"
oninput=
"value=value.replace(/^0|[^0-9]/g, '')"
size=
"small"
:disabled=
"isEditor && activityStatus == 2"
placeholder=
"默认为从1开始判断循环奖励"
></el-input>
</el-form-item>
<el-form-item
v-if=
"itm.rewardType == 1"
label=
"触发值:"
:prop=
"'missionList.' + index1 + '.triggerValue'"
:rules=
"taskFormRules.triggerValue"
...
...
@@ -409,7 +430,7 @@ export default {
name
:
'视频'
,
funcName
:
''
,
type
:
'video'
,
limitSize
:
10
,
// 限制视频大小
//
limitSize: 10, // 限制视频大小
limitNum
:
1
,
// 限制视频数量
uploadApi
:
commonApi
.
uploadImgApi
,
},
...
...
@@ -431,7 +452,7 @@ export default {
activityImage
:
''
,
// 公共任务类型
basicObj
:
{
id
:
''
,
task
id
:
''
,
missonType
:
''
,
missionName
:
''
,
missonDesc
:
''
,
...
...
@@ -447,7 +468,7 @@ export default {
},
// 浏览指标任务类型
browseObj
:
{
missionMaterialList
:
[],
//
missionMaterialList: [],
rewardType
:
''
,
rewardCount
:
''
,
repeatCount
:
''
,
...
...
@@ -456,14 +477,14 @@ export default {
},
// 访客指标任务类型
visitorObj
:
{
missionMaterialList
:
[],
//
missionMaterialList: [],
rewardType
:
''
,
triggerValue
:
''
,
minTriggerValue
:
''
,
},
// 成单指标任务类型
orderObj
:
{
missionMaterialList
:
[],
//
missionMaterialList: [],
rewardType
:
''
,
triggerValue
:
''
,
minTriggerValue
:
''
,
...
...
@@ -706,7 +727,7 @@ export default {
this
.
taskList
[
index
].
missionList
.
unshift
({
...
this
.
basicObj
,
})
this
.
taskList
[
index
].
missionList
[
0
].
id
=
this
.
getUuid
()
this
.
taskList
[
index
].
missionList
[
0
].
task
id
=
this
.
getUuid
()
console
.
log
(
this
.
taskList
[
index
].
missionList
[
0
])
},
// 任务选择类型切换
...
...
@@ -763,25 +784,20 @@ export default {
}
// 沿用任务名称以及id
taskItem
.
missonType
=
task
.
missonType
taskItem
.
id
=
task
.
id
taskItem
.
taskid
=
task
.
task
id
// 任务类型=浏览、访客、成单时,默认添加活动专属链接
if
(
taskItem
.
missonType
!=
1
&&
taskItem
.
missonType
!=
2
)
{
taskItem
.
linkStatus
=
true
// this.$set(taskItem, 'missionMaterialList', [
// {
// materialType: 4,
// materialContent: '#活动专属链接#',
// },
// ])
}
else
{
taskItem
.
linkStatus
=
false
}
this
.
$nextTick
(()
=>
{
this
.
$set
(
this
.
taskList
[
dateTaskIndex
].
missionList
,
taskIndex
,
taskItem
)
var
box
=
document
.
getElementById
(
'missionList'
+
task
.
id
+
'welcome'
)
var
box
=
document
.
getElementById
(
'missionList'
+
task
.
taskid
+
'welcome'
)
if
(
box
)
{
var
editName
=
'missionList'
+
task
.
id
+
'welcome'
console
.
log
(
this
.
$refs
[
editName
])
var
editName
=
'missionList'
+
task
.
taskid
+
'welcome'
this
.
$refs
[
editName
][
0
].
resetItem
()
}
})
...
...
@@ -801,7 +817,6 @@ export default {
},
shareMatrial
(
val
)
{
this
.
shareEditor
=
val
// this.getEditor()
},
// 删除任务
delTask
(
dateTask
,
dateTaskIndex
,
task
,
taskIndex
)
{
...
...
@@ -906,11 +921,12 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$set
(
itm
,
'triggerValue'
,
''
)
this
.
$set
(
itm
,
'rewardCount'
,
''
)
this
.
$set
(
itm
,
'minTriggerValue'
,
''
)
})
}
else
{
this
.
$nextTick
(()
=>
{
this
.
$set
(
itm
,
'rewardCount'
,
''
)
this
.
$set
(
itm
,
'minTriggerValue'
,
''
)
this
.
$set
(
itm
,
'minTriggerValue'
,
'
1
'
)
})
}
},
...
...
@@ -965,12 +981,18 @@ export default {
},
// 提交任务
submitTask
()
{
// 遍历
重复次数
// 遍历
this
.
taskList
.
map
((
item
)
=>
{
item
.
missionList
.
map
((
itm
)
=>
{
// 重复次数处理
if
(
itm
.
repeatCount
||
itm
.
repeatFlag
)
{
itm
.
repeatCount
=
itm
.
repeatCount
?
itm
.
repeatCount
:
-
1
}
// 最低指标处理
if
(
itm
.
rewardType
==
1
&&
!
itm
.
minTriggerValue
)
{
itm
.
minTriggerValue
=
1
}
// 自定义uuid删除
delete
itm
.
id
})
})
...
...
@@ -1053,7 +1075,7 @@ export default {
}
)
},
// 取消
s
// 取消
cancelSubmit
()
{
this
.
$root
.
to
([
'任务中心'
,
...
...
src/views/task/analyseTask/cpns/TaskDetails.vue
View file @
484f114
...
...
@@ -5,8 +5,7 @@
<p>
{{
item
.
missonTypeName
}}
</p>
<p>
{{
item
.
missionName
}}
</p>
<p>
{{
item
.
missonDesc
}}
</p>
<template
v-if=
'item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList.length'
>
<template
v-if=
'item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList.length'
>
<div
v-for=
'(sub,idx,) in item.platformMerchantMissionMaterialResponseList'
:key=
'idx'
>
<template
v-if=
"sub.materialType == '1'"
>
<p
v-html=
'tramWord(sub.materialContent)'
></p>
...
...
@@ -18,7 +17,7 @@
<video
class=
'displayImg'
:src=
'sub.materialContent'
/>
</
template
>
<
template
v-if=
"sub.materialType == '4'"
>
<p
class=
'content'
>
{{
sub
.
materialContent
}}
</p>
<p
class=
'content'
>
{{
sub
.
materialContent
}}
</p>
</
template
>
</div>
</template>
...
...
@@ -31,7 +30,6 @@
</span>
<span
v-if=
'item.triggerValue'
>
触发值:{{ item.triggerValue }}
</span>
<span
v-if=
'item.rewardScore'
>
奖励积分值:{{ item.rewardScore }}
</span>
<span
v-if=
'item.minTriggerValue'
>
最低指标:{{ item.minTriggerValue }}
</span>
</div>
</div>
</div>
...
...
@@ -45,7 +43,6 @@
<
script
>
import
{
taskManagementApi
}
from
'@/api/taskManagement'
import
emoji
from
'@/utils/emo'
export
default
{
name
:
'TaskDetails'
,
props
:
{
...
...
@@ -68,7 +65,7 @@ export default {
}
else
if
(
index
>=
10
&&
index
<
100
)
{
index
=
'0'
+
index
}
return
`<img style='width:25px;height:25px' src=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png'
>`
return
`<img style='width:25px;height:25px' src=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png"
>`
})
return
htm
},
...
...
@@ -100,17 +97,14 @@ export default {
padding
:
20px
;
margin-bottom
:
20px
;
}
.leftContent
{
.leftContent
{
width
:
70%
;
}
.content
{
.content
{
height
:
auto
;
word-wrap
:
break-word
;
word-break
:
break-all
;
}
.taskAward
{
display
:
flex
;
justify-content
:
space-between
;
...
...
@@ -127,13 +121,11 @@ export default {
padding-bottom
:
8px
;
width
:
50%
;
}
.copyLine
{
color
:
#409EFF
;
cursor
:
pointer
;
}
.displayImg
{
.displayImg
{
width
:
500px
;
height
:
300px
;
}
...
...
src/views/task/observeTask/cpns/taskPlan.vue
View file @
484f114
...
...
@@ -34,7 +34,6 @@
</span>
<span
v-if=
'displayList.triggerValue'
>
触发值:{{ displayList.triggerValue }}
</span>
<span
v-if=
'displayList.rewardScore'
>
奖励积分值:{{ displayList.rewardScore }}
</span>
<span
v-if=
'displayList.minTriggerValue'
>
最低指标:{{ displayList.minTriggerValue }}
</span>
</div>
</div>
</el-tab-pane>
...
...
src/views/task/taskList/index.vue
View file @
484f114
...
...
@@ -59,10 +59,14 @@
: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 == 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
>
</div>
<div
slot=
"activityStatus"
slot-scope=
"scope"
>
<span
v-if=
"scope.scope.activityStatus == statusNum.UNPUBLISH"
...
...
@@ -128,19 +132,19 @@ const sceneOption = [
value
:
''
,
},
{
label
:
'1.0
新车权益销售
'
,
label
:
'1.0
新车权益升级
'
,
value
:
'0'
,
},
{
label
:
'1.1
次
新车精品升级'
,
label
:
'1.1
新车精品升级'
,
value
:
'1'
,
},
{
label
:
'1.2
次新车线上转化
'
,
label
:
'1.2
次新车膨胀金活动
'
,
value
:
'2'
,
},
{
label
:
'1.3
存量用户众筹
'
,
label
:
'1.3
售后直播众筹活动
'
,
value
:
'3'
,
},
]
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalSearch.vue
View file @
484f114
...
...
@@ -22,13 +22,6 @@
placeholder=
'请输入员工手机号'
></el-input>
</el-form-item>
<el-form-item
label=
'门店名称'
>
<el-input
clearable
v-model=
'withdrawalSearchForm.merchantName'
placeholder=
'请输入门店名称'
></el-input>
</el-form-item>
<el-form-item
label=
'状态'
>
<el-select
v-model=
'withdrawalSearchForm.status'
placeholder=
'请选择状态'
>
<el-option
label=
'全部'
value=
''
></el-option>
...
...
src/views/withdrawalManagement/withdrawalList/components/WithdrawalTable.vue
View file @
484f114
...
...
@@ -49,10 +49,6 @@ export default {
prop
:
'staffPhone'
},
{
label
:
'门店名称'
,
prop
:
'merchantName'
},
{
label
:
'积分值'
,
prop
:
'withdrawalScore'
},
...
...
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