Commit d3cfbacb by liuchenxi

Merge branch 'feature/12月迭代' into dev

parents 7a4626ea 323fc53d
......@@ -134,7 +134,7 @@
</el-table-column>
<el-table-column label="操作" align="left" width="220px" fixed="right">
<template slot-scope="scope">
<el-button type="text" @click="$router.push('/recharge/consume/' + scope.row.type)">详情</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingCounsumeDetail)" :limit-code="$buttonCode.marketingCounsumeDetail" @click="$router.push('/recharge/consume/' + scope.row.type)">详情</el-button>
</template>
</el-table-column>
</el-table>
......
......@@ -19,7 +19,7 @@
<select-depart v-if="isMoreAccount && config.showAllDepartment" :data="deparment" @load="load" @getDepartId="getDepartId" @remote-search="remoteSearch" :loading="deparment.loading" />
<span class="fz12 gray">* 此处仅支持筛选近半年的统计数据</span>
</div>
<el-button v-if="getCodeAuth" :limit-code="getCode($route.params.type)" type="primary" class="btn h32" @click="exportDialog.dialogVisible = true"><i class="iconfont icon-xiazai" style="marginRight:6px;fontSize:14px" />导出</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingCounsumeExport)" :limit-code="$buttonCode.marketingCounsumeExport" type="primary" class="btn h32" @click="exportDialog.dialogVisible = true"><i class="iconfont icon-xiazai" style="marginRight:6px;fontSize:14px" />导出</el-button>
</div>
<p class="tips" v-if="$route.params.type === 'video'">共消耗流量{{ sumCount }}MB 累计支出{{ sumFee }}</p>
<p class="tips" v-if="['record', 'call'].includes($route.params.type)">
......@@ -712,29 +712,6 @@ export default {
},
accountDepartName() {
return row => (row.accountDepartName ? row.accountDepartName : row.accountDepartId == 1 ? '总部' : '--');
},
getCodeAuth() {
return this.$getButtonLimit(this.getCode(this.$route.params.type));
},
getCode() {
return type => {
let code;
switch (type) {
case 'marketing':
code = 'marketingExportMarketing';
break;
case 'sms':
code = 'marketingExportSms';
break;
case 'call':
code = 'marketingExportCall';
break;
case 'record':
code = 'marketingExportRecord';
break;
}
return this.$buttonCode[code];
};
}
},
watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment