Commit aeb84db8 by crushh

update: dist

parent 8a7d8c73
......@@ -90,7 +90,7 @@
</template>
<script>
import { page, rechargeCenter, stopActivityPlan, startActivityPlan, pageStatistics, aiAccountCheck } from '@/service/api/aiApi.js';
import { page, rechargeCenter, stopActivityPlan, startActivityPlan, pageStatistics, aiAccountCheck, aiDictList } from '@/service/api/aiApi.js';
import { formatDateTimeByType } from '@/utils/index.js';
import filterAvater from '@/mixins/filterAvater.js';
......@@ -205,34 +205,34 @@ export default {
}
}
],
cardContent: [
originCardContent: [
{
title: '客户生日',
scene: 1,
scene: '1',
iconName: 'icon-shengrizunxiang',
content: '针对生日客户进行营销,提高会员粘性'
},
{
title: '节日活动邀约',
scene: 2,
scene: '2',
iconName: 'icon-huodongyaoyue',
content: '节日活动邀约,会员专享权益,提升门店营业额'
},
{
title: '加企微好友',
scene: 3,
scene: '3',
iconName: 'icon-qiweihaoyou',
content: '针对未添加企微好友的客户进行营销,添加企微好友'
},
{
title: '客户复购',
scene: 4,
scene: '4',
iconName: 'icon-kehufugouguanli',
content: '针对消费过的客户进行营销,提升核心客户数量'
},
{
title: '其它场景',
scene: 0,
scene: '0',
iconName: 'icon-qitachangjing',
content: '自定义营销场景'
}
......@@ -289,15 +289,17 @@ export default {
3: 'dm-status--error',
4: 'dm-status--info',
5: 'dm-status--warning'
}
},
cardContent: []
};
},
created() {
if (window.location.host != 'gicdev.demogic.com' && !window.location.host.includes('localhost')) {
this.cardContent.splice(2, 1);
}
},
// created() {
// if (window.location.host != 'gicdev.demogic.com' && !window.location.host.includes('localhost')) {
// this.cardContent.splice(2, 1);
// }
// },
mounted() {
this.getAiDictList();
this.getTableData();
this.getRechargeCenter();
this.getAiAccountCheck();
......@@ -373,6 +375,13 @@ export default {
}
},
methods: {
getAiDictList() {
aiDictList({ dictType: 'marketing_activity_scene' }).then(res => {
let arr = res.result || [];
let codeArr = arr.map(item => item.dict_code);
this.cardContent = this.originCardContent.filter(item => codeArr.includes(item.scene));
});
},
create(scene, id) {
if (!this.canCreate) {
this.$confirm(`当前账户已无可用余额,请充值后再${id ? '复制' : '创建'}外呼任务`, '提示', {
......
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