Commit a1ad4e54 by 前端

Merge branch 'v2.12.0' of http://192.168.3.233:8090/glsx-web/glsx-oss-task into kyq_dev

2 parents e6d3e25d f657aa7b
...@@ -86,7 +86,10 @@ export default { ...@@ -86,7 +86,10 @@ export default {
mixins:[nearlyAMonth], mixins:[nearlyAMonth],
data() { data() {
return { return {
profitSearchForm: {}, profitSearchForm: {
businessScene:'',
channel:''
},
} }
}, },
methods: { methods: {
......
...@@ -822,7 +822,6 @@ export default { ...@@ -822,7 +822,6 @@ export default {
'任务模板管理', '任务模板管理',
'任务管理列表', '任务管理列表',
]) ])
// this.$root.close('*添加任务模板')
} }
}) })
return return
......
...@@ -5,21 +5,21 @@ ...@@ -5,21 +5,21 @@
<p>{{ item.missonTypeName }}</p> <p>{{ item.missonTypeName }}</p>
<p>{{ item.missionName }}</p> <p>{{ item.missionName }}</p>
<p>{{ item.missonDesc }}</p> <p>{{ item.missonDesc }}</p>
<template <template v-if='item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList.length'>
v-if=" item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList[0].materialType == '1'"> <div v-for='(sub,idx,) in item.platformMerchantMissionMaterialResponseList' :key='idx'>
<p>{{ item.platformMerchantMissionMaterialResponseList[0].materialContent }}</p> <template v-if="sub.materialType == '1'">
<p>{{sub.materialContent}}</p>
</template> </template>
<template <template v-if="sub.materialType == '2'">
v-if="item.platformMerchantMissionMaterialResponseList &&item.platformMerchantMissionMaterialResponseList[0].materialType == '2'"> <img class='displayImg' :src='sub.materialContent'>
<img :src='item.platformMerchantMissionMaterialResponseList[0].materialContent'>
</template> </template>
<template <template v-if="sub.materialType == '3'">
v-if="item.platformMerchantMissionMaterialResponseList &&item.platformMerchantMissionMaterialResponseList[0].materialType == '3'"> <video class='displayImg' :src='sub.materialContent' />-->
<video :src='item.platformMerchantMissionMaterialResponseList[0].materialContent' />
</template> </template>
<template <template v-if="sub.materialType == '4'">
v-if="item.platformMerchantMissionMaterialResponseList && item.platformMerchantMissionMaterialResponseList[0].materialType == '4'"> <p>{{sub.materialContent}}</p>
<p>{{ item.platformMerchantMissionMaterialResponseList[0].materialContent }}</p> </template>
</div>
</template> </template>
<div class='taskAward'> <div class='taskAward'>
<div class='awardMode'> <div class='awardMode'>
...@@ -96,4 +96,8 @@ export default { ...@@ -96,4 +96,8 @@ export default {
color: #409EFF; color: #409EFF;
cursor: pointer; cursor: pointer;
} }
.displayImg{
width: 500px;
height: 300px;
}
</style> </style>
...@@ -65,6 +65,11 @@ export default { ...@@ -65,6 +65,11 @@ export default {
this.taskInfo = { businessSceneName, merchantName, activityName, crowdName, channelName } this.taskInfo = { businessSceneName, merchantName, activityName, crowdName, channelName }
this.hastaskInfo = Object.values(this.taskInfo).length > 0 ? 'true' : 'false' this.hastaskInfo = Object.values(this.taskInfo).length > 0 ? 'true' : 'false'
this.taskSelect = copeWithRes this.taskSelect = copeWithRes
this.taskSelect.forEach(item => {
if (item.activityTime == '-1'){
item.activityTime = '完整周期'
}
})
this.taskSelectMap = JSON.parse(JSON.stringify(copeWithRes)) this.taskSelectMap = JSON.parse(JSON.stringify(copeWithRes))
this.taskTime.activityTime = copeWithRes[0].activityTime this.taskTime.activityTime = copeWithRes[0].activityTime
this.taskTime.missonTypeName = copeWithRes[0].platformMerchantMissionResponseList[0].missonTypeName this.taskTime.missonTypeName = copeWithRes[0].platformMerchantMissionResponseList[0].missonTypeName
......
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
data(){ data(){
return{ return{
basicInfoList:[ basicInfoList:[
{infoName:'业务场景:',infoVal:'businessScene'}, {infoName:'业务场景:',infoVal:'businessSceneName'},
{infoName:'商户:',infoVal:'merchantName'}, {infoName:'商户:',infoVal:'merchantName'},
{infoName:'活动/产品:',infoVal:'activityName'}, {infoName:'活动/产品:',infoVal:'activityName'},
{infoName:'任务指定人群:',infoVal:'crowdName'}, {infoName:'任务指定人群:',infoVal:'crowdName'},
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
<div class='taskPlan'> <div class='taskPlan'>
<div class='headline'>任务计划</div> <div class='headline'>任务计划</div>
<el-tabs v-model='activeName' type='card'> <el-tabs v-model='activeName' type='card'>
<el-tab-pane v-for='(item,index) in taskPlanList' :key='index' :label='item.activityTime' :name='item.activityTime'> <el-tab-pane v-for='(item,index) in taskPlanList' :key='index'
:label="item.activityTime =='-1'?'完整周期' : item.activityTime" :name='item.activityTime'>
<div class='taskInfo' v-for='(displayList,idx) in item.platformMerchantMissionResponseList' :key='idx'> <div class='taskInfo' v-for='(displayList,idx) in item.platformMerchantMissionResponseList' :key='idx'>
<p class='taskType'>{{ displayList.missonTypeName }}</p> <p class='taskType'>{{ displayList.missonTypeName }}</p>
<p>{{ displayList.missionName }}</p> <p>{{ displayList.missionName }}</p>
...@@ -39,15 +40,18 @@ export default { ...@@ -39,15 +40,18 @@ export default {
font-weight: 600; font-weight: 600;
padding-bottom: 20px; padding-bottom: 20px;
} }
.taskInfo{
.taskInfo {
border: 1px solid #E4E7ED; border: 1px solid #E4E7ED;
padding-left: 20px; padding-left: 20px;
margin-bottom: 16px; margin-bottom: 16px;
} }
.taskType{
.taskType {
font-weight: 600; font-weight: 600;
} }
.taskScore{
.taskScore {
margin-top: 30px; margin-top: 30px;
} }
</style> </style>
...@@ -38,8 +38,8 @@ export default { ...@@ -38,8 +38,8 @@ export default {
}, },
primaryInfo(id) { primaryInfo(id) {
taskManagementApi.findMissionDeail({ id }).then(res => { taskManagementApi.findMissionDeail({ id }).then(res => {
let { businessScene, merchantName, activityName, crowdName, channelName, remark } = res.data let { businessSceneName, merchantName, activityName, crowdName, channelName, remark } = res.data
this.basicInfo = { businessScene, merchantName, activityName, crowdName, channelName, remark } this.basicInfo = { businessSceneName, merchantName, activityName, crowdName, channelName, remark }
this.hasbasicInfo = Object.values(this.basicInfo).length > 0 ? 'true' : 'false' this.hasbasicInfo = Object.values(this.basicInfo).length > 0 ? 'true' : 'false'
this.taskPlanList = res.data.platformMerchantMissionDateResponseList this.taskPlanList = res.data.platformMerchantMissionDateResponseList
......
...@@ -71,7 +71,9 @@ export default { ...@@ -71,7 +71,9 @@ export default {
mixins: [nearlyAMonth], mixins: [nearlyAMonth],
data() { data() {
return { return {
withdrawalSearchForm: {} withdrawalSearchForm: {
status:''
}
} }
}, },
created() { created() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!