Commit 018dd975 by 前端

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

2 parents 83a330a3 7210f8e1
......@@ -121,7 +121,7 @@ export default {
if(params.rewardTime && params.rewardTime.length) delete params.rewardTime
this.profitSearchForm = params
setTimeout(() =>{
this.$refs.profitTable.refreshTable()
this.$refs.profitTable.refreshTable(false,true)
},500)
},
getTotalScore(val){
......
<template>
<div>
<div class='taskDetails' v-for='(item,index) in taskDetails' :key='index'>
<div>
<div class='leftContent'>
<p>{{ item.missonTypeName }}</p>
<p>{{ item.missionName }}</p>
<p>{{ item.missonDesc }}</p>
......@@ -14,25 +14,26 @@
<img class='displayImg' :src='sub.materialContent'>
</template>
<template v-if="sub.materialType == '3'">
<video class='displayImg' :src='sub.materialContent' />-->
<video class='displayImg' :src='sub.materialContent' />
</template>
<template v-if="sub.materialType == '4'">
<p>{{sub.materialContent}}</p>
<p class='content'>{{sub.materialContent}}</p>
</template>
</div>
</template>
<div class='taskAward'>
<div class='awardMode'>
<p>奖励模式:{{ item.rewardTypeName }}</p>
<p>触发值:{{ item.triggerValue }}</p>
</div>
<div>
<p>奖励次数:{{ item.rewardCount == 1 ? '单次' : '重复累计' }}</p>
<p>奖励积分值:{{ item.rewardScore }}</p>
<div class='showInfoForm'>
<span v-if='item.rewardTypeName'>奖励模式:{{ item.rewardTypeName }}</span>
<span v-if='item.rewardCountName'>奖励次数:{{ item.rewardCountName }}</span>
<span v-if="item.rewardCountName == '重复累计'">
重复次数:{{ item.repeatCount == '-1' ? '无限制' : item.repeatCount }}
</span>
<span v-if='item.triggerValue'>触发值:{{ item.triggerValue }}</span>
<span v-if='item.rewardScore'>奖励积分值:{{ item.rewardScore }}</span>
</div>
</div>
</div>
<div class='copyLine' id='copy' v-on:click='copy(item.id)'>
<div v-if="item.missonType != '1'" class='copyLine' id='copy' v-on:click='copy(item.id)'>
复制任务提醒链接
</div>
</div>
......@@ -82,16 +83,30 @@ export default {
padding: 20px;
margin-bottom: 20px;
}
.leftContent{
width: 70%;
}
.content{
height: auto;
word-wrap: break-word;
word-break: break-all;
}
.taskAward {
display: flex;
justify-content: space-between;
}
.awardMode {
padding-right: 20px;
.showInfoForm {
margin-top: 10px;
width: 700px;
}
.showInfoForm > span {
display: inline-block;
padding-bottom: 8px;
width: 50%;
}
.copyLine {
color: #409EFF;
cursor: pointer;
......@@ -100,4 +115,8 @@ export default {
width: 500px;
height: 300px;
}
.displayContent{
display: inline-block;
width: 800px;
}
</style>
......@@ -21,36 +21,49 @@ export default {
taskInfoList: [
{
name: '业务场景:',
value: 'businessSceneName'
value: 'businessSceneName',
id:'businessSceneName'
},
{
name: '商户:',
value: 'merchantName'
value: 'merchantName',
id:'merchantName'
},
{
name: '活动/产品:',
value: 'activityName'
value: 'activityName',
id:'activityName'
},
{
name: '任务指定人群:',
value: 'crowdName'
value: 'crowdName',
id:'crowdName'
},
{
name: '发放渠道:',
value: 'channelName'
value: 'channelName',
id:'channelName'
}
]
}
},
created() {
this.taskInfoList.map(item => {
Object.keys(this.taskInfo).forEach(key => {
if (item.value == key) {
item.value = this.taskInfo[key]
}
})
})
},
watch: {
taskInfo:{
handler(newVal,oldVal){
if (!oldVal || newVal !== oldVal) {
this.taskInfoList.map(item => {
Object.keys(newVal).forEach(key => {
if (item.id == key) {
item.value = newVal[key]
}
})
})
}
},
immediate: true,
deep: true
},
}
}
</script>
......
......@@ -16,7 +16,7 @@
</el-form-item>
</el-form>
<TaskDetails v-if='hasTaskDetails' :taskDetails='taskDetails'></TaskDetails>
<TaskTable ref='taskTable' :taskTableSearchForm='searchForm'></TaskTable>
<TaskTable class='taskTable' ref='taskTable' :taskTableSearchForm='searchForm'></TaskTable>
<div class='footer'>
<el-button @click='backUp'>返回</el-button>
</div>
......@@ -129,4 +129,7 @@ export default {
text-align: center;
background-color: #fff;
}
.taskTable{
margin-bottom: 50px;
}
</style>
......@@ -7,8 +7,34 @@
<div class='taskInfo' v-for='(displayList,idx) in item.platformMerchantMissionResponseList' :key='idx'>
<p class='taskType'>{{ displayList.missonTypeName }}</p>
<p>{{ displayList.missionName }}</p>
<p>{{ displayList.missionDesc }}</p>
<p class='taskScore'>奖励积分值:{{ displayList.rewardScore }}</p>
<p>{{ displayList.missonDesc }}</p>
<template
v-if='displayList.platformMerchantMissionMaterialResponseList && displayList.platformMerchantMissionMaterialResponseList.length'>
<div v-for='(sub,idx,) in displayList.platformMerchantMissionMaterialResponseList' :key='idx'>
<template v-if="sub.materialType == '1'">
<p>{{ sub.materialContent }}</p>
</template>
<template v-if="sub.materialType == '2'">
<img class='displayImg' :src='sub.materialContent'>
</template>
<template v-if="sub.materialType == '3'">
<video class='displayImg' :src='sub.materialContent' />
</template>
<template v-if="sub.materialType == '4'">
<p>{{ sub.materialContent }}</p>
</template>
</div>
</template>
<div class='showInfoForm'>
<span v-if='displayList.rewardTypeName'>奖励模式:{{ displayList.rewardTypeName }}</span>
<span v-if='displayList.rewardCountName'>奖励次数:{{ displayList.rewardCountName }}</span>
<span v-if="displayList.rewardCountName == '重复累计'">
重复次数:{{ displayList.repeatCount == '-1' ? '无限制' : displayList.repeatCount }}
</span>
<span v-if='displayList.triggerValue'>触发值:{{ displayList.triggerValue }}</span>
<span v-if='displayList.rewardScore'>奖励积分值:{{ displayList.rewardScore }}</span>
</div>
</div>
</el-tab-pane>
</el-tabs>
......@@ -36,6 +62,9 @@ export default {
</script>
<style scoped>
.taskPlan{
margin-top: 20px;
}
.headline {
font-weight: 600;
padding-bottom: 20px;
......@@ -44,6 +73,7 @@ export default {
.taskInfo {
border: 1px solid #E4E7ED;
padding-left: 20px;
padding-right: 20px;
margin-bottom: 16px;
}
......@@ -51,7 +81,19 @@ export default {
font-weight: 600;
}
.taskScore {
margin-top: 30px;
.displayImg {
width: 500px;
height: 300px
}
.showInfoForm {
margin-top: 10px;
width: 700px;
}
.showInfoForm > span {
display: inline-block;
padding-bottom: 8px;
width: 50%;
}
</style>
<template>
<div class='observeTask'>
<BasicInfo v-if='hasbasicInfo' :basicInfo='basicInfo'></BasicInfo>
<taskPlan v-if='hastaskPlanList' :taskPlanList='taskPlanList'/>
<taskPlan class='taskPlan' v-if='hastaskPlanList' :taskPlanList='taskPlanList'/>
<div class='footer'>
<el-button @click='backUp'>返回</el-button>
</div>
......@@ -68,4 +68,7 @@ export default {
text-align: center;
background-color: #fff;
}
.taskPlan{
margin-bottom: 50px;
}
</style>
......@@ -29,7 +29,8 @@
<p>累计提现金额:{{ collectionCash.totalAmount }};</p>
<p>待审核:{{ collectionCash.reviewingAmount }};</p>
<p>到账中:{{ collectionCash.receivingAmount }};</p>
<p>已到账:{{ collectionCash.receivedAmount }}</p>
<p>已到账:{{ collectionCash.receivedAmount }};</p>
<p>到账失败:{{ collectionCash.failureAmount }}</p>
</div>
<WithdrawalTable ref='table' :searchForm='searchForm' @sendCollection='getCollection' />
<WithdrawalDialog :textTooltip='textTooltip' :auditId='auditId' ref='dialogRef' />
......@@ -76,7 +77,7 @@ export default {
if (params.reviewTime && params.reviewTime.length) delete params.reviewTime
this.searchForm = params
setTimeout(() => {
this.$refs.table.$refs.withdrawalTable.refreshTable()
this.$refs.table.$refs.withdrawalTable.refreshTable(true,true)
}, 500)
},
getSeletedData() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!