Commit c1141961 by crushh

update: dist

parent 606bc30f
......@@ -2,7 +2,7 @@
<div class="logs">
<div class="search-bar">
<el-date-picker @change="handleCurrentChange(1)" class="search-date" v-model="search.dateRange" value-format="yyyy-MM-dd" type="daterange" range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<el-button type="primary" :disabled="total == 0" @click="handleExportData"><i class="iconfont icon-xiazai" style="margin-right: 10px"></i>批量导出</el-button>
<el-button type="primary" v-if="$getButtonLimit($buttonCode.marketingAiExport)" :limit-code="$buttonCode.marketingAiExport" :disabled="total == 0" @click="handleExportData"><i class="iconfont icon-xiazai" style="margin-right: 10px"></i>批量导出</el-button>
</div>
<el-table :data="tableData" v-loading="loading" tooltipEffect="light" @selection-change="handleSelectionChange">
<el-table-column type="selection"></el-table-column>
......
......@@ -78,7 +78,7 @@
</el-form-item>
</div>
<dm-sub-title type="line">外呼规则配置</dm-sub-title>
<div class="section">
<div class="section" style="padding-bottom: 40px;">
<!--根据客户意向打标签 -->
<div class="card">
<div class="tagHead">
......@@ -229,7 +229,7 @@
</div>
</div>
<dm-sub-title type="line">活动分析设置</dm-sub-title>
<div class="section">
<div class="section" style="padding-bottom: 40px;">
<el-form-item label="活动分析" required>
<el-radio v-model="form.analyseFlag" :label="1" @change="onChangeEffectType">开启</el-radio>
<el-radio v-model="form.analyseFlag" :label="0" @change="onChangeEffectType">关闭</el-radio>
......@@ -666,7 +666,7 @@ export default {
delete data.activityPlanList[0].activityEventList[0].aiEventId;
}
const { result } = await rechargeCenter();
this.money = result.account.balance;
this.money = result.account.balance / 100;
const totalCount = (planMemberCount * this.unitPrice).toFixed(2);
if (this.isWhite || totalCount < this.money) {
this.$confirm(`本次外呼费用预计需要消费 ${totalCount} 元,是否继续创建?`, '提示', {
......@@ -888,7 +888,7 @@ export default {
line-height: 20px;
}
.section {
padding: 20px 0 40px 0;
padding: 20px 0 18px 0;
}
.card {
width: 730px;
......
......@@ -9,14 +9,14 @@
<div class="cardBody">
{{ item.content }}
</div>
<el-button size="small" type="primary" @click="create(item.scene)">立即新建</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingAddAi)" :limit-code="$buttonCode.marketingAddAi" size="small" type="primary" @click="create(item.scene)">立即新建</el-button>
</div>
</div>
<div class="account">
<span>
账户可用余额:<span style="font-size:16px;">{{ (money / 100) | amount }}</span>
</span>
<el-button type="text" @click="recharge">立即充值</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingAiRecharge)" :limit-code="$buttonCode.marketingAiRecharge" type="text" @click="recharge">立即充值</el-button>
</div>
<div class="searchWarp">
<el-form inline="true" class="table-page-search-wrapper" size="small">
......@@ -39,7 +39,7 @@
</el-form>
</div>
<el-table :data="tableData" style="width:100%" v-loading="loading">
<el-table-column prop="activityName" label="活动名称" show-overflow-tooltip width="200px" />
<el-table-column prop="activityName" label="活动名称" fixed="left" show-overflow-tooltip width="200px" />
<el-table-column prop="scene" label="活动场景" show-overflow-tooltip width="120px">
<template slot-scope="{ row }">
{{ row.scene | sceneFilter }}
......@@ -114,44 +114,50 @@ export default {
{
text: '查看',
props: {
limitCode: ''
limitCode: this.$buttonCode.marketingAiInfo
},
visible: row => {
return this.$getButtonLimit(this.$buttonCode.marketingAiInfo);
},
handler: row => this.$router.push('/ai/info/' + row.activityId)
},
{
text: '编辑',
props: {
limitCode: ''
limitCode: this.$buttonCode.marketingAiEdit
},
visible: row => {
return row.activityPlanStatus === 1;
return row.activityPlanStatus === 1 && this.$getButtonLimit(this.$buttonCode.marketingAiEdit);
},
handler: row => this.editPlan(row)
},
{
text: '终止',
props: {
limitCode: ''
limitCode: this.$buttonCode.marketingAiStop
},
visible: row => {
return row.activityPlanStatus === 1 || row.activityPlanStatus == 2;
return (row.activityPlanStatus === 1 || row.activityPlanStatus == 2) && this.$getButtonLimit(this.$buttonCode.marketingAiStop);
},
handler: row => this.stopTask(row)
},
{
text: '重新开启',
props: {
limitCode: ''
limitCode: this.$buttonCode.marketingAiStart
},
visible: row => {
return row.activityPlanStatus === 5;
return row.activityPlanStatus === 5 && this.$getButtonLimit(this.$buttonCode.marketingAiStart);
},
handler: row => this.rebootTask(row)
},
{
text: '复制',
props: {
limitCode: ''
limitCode: this.$buttonCode.marketingAiCopy
},
visible: () => {
return this.$getButtonLimit(this.$buttonCode.marketingAiCopy);
},
handler: row => {
this.create('', row.activityId);
......@@ -160,10 +166,10 @@ export default {
{
text: '提交日志',
props: {
limitCode: ''
limitCode: this.$buttonCode.marketingAiLog
},
visible: row => {
return row.logFlag === 1;
return row.logFlag === 1 && this.$getButtonLimit(this.$buttonCode.marketingAiLog);
},
handler: row =>
this.$router.push({
......@@ -178,10 +184,10 @@ export default {
{
text: '数据统计',
props: {
limitCode: ''
limitCode: this.$buttonCode.marketingAiStatistics
},
visible: row => {
return row.logFlag === 1;
return row.logFlag === 1 && this.$getButtonLimit(this.$buttonCode.marketingAiStatistics);
},
handler: row => {
this.$router.push({
......@@ -425,6 +431,12 @@ export default {
item.totalConnectionNumber = totalConnectionNumber;
item.telephoneConnectionRate = telephoneConnectionRate;
item.connectionIntentionRate = connectionIntentionRate;
} else {
item.marketingNumber = '- -';
item.outboundNumber = '- -';
item.totalConnectionNumber = '- -';
item.telephoneConnectionRate = '- -';
item.connectionIntentionRate = '- -';
}
});
......@@ -483,9 +495,8 @@ export default {
border-radius: 4px;
padding: 12px 16px;
box-sizing: border-box;
margin-right: 1;
margin-right: 12px;
:last-child {
&:last-child {
margin-right: 0;
}
}
......
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