Commit e0c4a7ee by 徐忆琳

Merge branch 'xuyl_v3.13_0' into 'scrmv3.13.0'

解决watch报错问题,数字展示优化

See merge request !16
2 parents ca39f5c6 94156456
......@@ -23,12 +23,13 @@
<template slot='shareName' slot-scope='scope'>
<div class='wechatWrap'>
<img v-if="scope.scope.shareimg !== 'null' && scope.scope.shareimg" class='wechatimg' :src='scope.scope.shareimg'>
{{ scope.scope.shareName == 'null'|| !scope.scope.shareName? '-' : scope.scope.shareName }}
<img v-if="scope.scope.shareimg !== 'null' && scope.scope.shareimg" class='wechatimg'
:src='scope.scope.shareimg'>
{{ scope.scope.shareName == 'null' || !scope.scope.shareName ? '-' : scope.scope.shareName }}
</div>
</template>
<!-- 转发明细员工-->
<!-- 转发明细员工-->
<template slot='staff' slot-scope='scope'>
<div class='wechatWrap'>
<img v-if='scope.scope.wechatimg' class='wechatimg' :src='scope.scope.wechatimg'>
......@@ -36,12 +37,12 @@
</div>
</template>
<!-- 转发明细核销激励-->
<!-- 转发明细核销激励-->
<template slot='writeoffIncentive' slot-scope='scope'>
{{ scope.scope.writeoffIncentive == 'null' ? '-' : scope.scope.writeoffIncentive }}
</template>
<!-- 转化率-->
<!-- 转化率-->
<template slot='conversionRate' slot-scope='scope'>
{{ scope.scope.writeoffIncentive == 'null' ? '-' : scope.scope.writeoffIncentive }}
</template>
......@@ -65,15 +66,17 @@
<template slot='reference' slot-scope='scope'>
{{ scope.scope.reference == 'null' || !scope.scope.reference ? '-' : scope.scope.reference }}
<span v-if='scope.scope.referencetype && scope.scope.reference' class='referencetype'>@{{ !scope.scope.referencetype || scope.scope.referencetype =='null' ? '-' : scope.scope.referencetype }}</span>
<span v-if='scope.scope.referencetype && scope.scope.reference'
class='referencetype'>@{{ !scope.scope.referencetype || scope.scope.referencetype == 'null' ? '-' : scope.scope.referencetype
}}</span>
</template>
<template slot='lastFollowup' slot-scope='scope'>
<el-switch
v-model="scope.scope.lastFollowup == '是'"
active-color="#EB6001"
inactive-color="#E8E8EA">
active-color='#EB6001'
inactive-color='#E8E8EA'>
</el-switch>
</template>
......@@ -100,7 +103,7 @@ export default {
},
data() {
return {
showFuncIntro:false,
showFuncIntro: false,
getListApi: this.api.renewal.getDetail,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'totalNum' },
tableParams: null,
......@@ -138,7 +141,7 @@ export default {
watch: {
selectedData: {
handler(newValue, oldValue) {
this.detailTitle = this.switchSelectedType(newValue.type)
this.detailTitle = newValue && this.switchSelectedType(newValue.type)
this.renewalSearchForm.activityName = newValue.activityName
// '活动1'
this.renewalSearchForm.merchantId = newValue.merchantId
......@@ -150,7 +153,7 @@ export default {
}, 500)
},
deep: true,
immediate: true
immediate: false
}
}
}
......@@ -167,10 +170,12 @@ export default {
margin-right: 5px;
}
}
.referencetype{
color:rgb(235, 96, 1);
.referencetype {
color: rgb(235, 96, 1);
}
/deep/.el-table{
/deep/ .el-table {
background-color: rgba(38, 38, 38, 0.75);
}
......
......@@ -5,8 +5,8 @@
<div :class="{ 'tab-total-box': true }">
<div class='total-title-box flex'>
<div class='title inline total'>已开通门店
<!-- <transition-number :num='dataOverView.openedStores' class='number-total' />-->
<div class='number-total'>{{ dataOverView.openedStores}}</div>
<!-- <transition-number :num='dataOverView.openedStores' class='number-total' />-->
<div class='number-total' v-if='dataOverView'>{{ toThousands(dataOverView.openedStores) }}</div>
</div>
<div
:class="{'title':true,'inline':true, 'active': tabIndex == index}"
......@@ -14,7 +14,7 @@
@click='clickItemTab(index,item)'
:key='index'>{{ item.title }}
<div class='flex' v-if='dataOverView'>
<div class='transition-number'>{{ toThousands(dataOverView[item.type])}}</div>
<div class='transition-number'>{{ toThousands(dataOverView[item.type]) }}</div>
</div>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!