Commit 2258ff46 by caoyanzhi

update: 游戏菜单调整

parent 78f9a96f
<template>
<section class="dm-form__wrap">
<h3 class="dm-title__label">分享设置</h3>
<h3 class="dm-title__label border-bottom">分享设置</h3>
<el-form-item label="分享设置" class="width50 is-required">
<el-radio-group v-model="form.shareFlag">
<el-radio :label="1">可分享</el-radio>
......
<template>
<section class="dm-form__wrap clearfix">
<h3 class="dm-title__label">
<h3 class="dm-title__label border-bottom">
参与门槛
<i class="iconfont icon-xinxixianshi pl5 gray"></i>
<span class="gray fz13">满足参与门槛会员才可以参与游戏</span>
......
......@@ -2,7 +2,7 @@
<div>
<el-form class="content" ref="form" :model="form" label-width="100px" :rules="rules" v-loading="loading" element-loading-text="拼命加载中">
<section class="dm-form__wrap">
<h3 class="dm-title__label">游戏内容</h3>
<h3 class="dm-title__label border-bottom">游戏内容</h3>
<el-form-item label="游戏名称" prop="gameName">
<dm-input v-model="form.gameName" class="w400" :disabled="isInfo" :maxlength="25"></dm-input>
</el-form-item>
......@@ -46,7 +46,7 @@
</el-form-item>
</section>
<section class="dm-form__wrap">
<h3 class="dm-title__label">抽奖机制</h3>
<h3 class="dm-title__label border-bottom">抽奖机制</h3>
<el-form-item label="抽奖消耗" prop="gameIntegral">
<el-input-number controls-position="right" v-model="form.gameIntegral" class="w400" :min="0" :precision="0" :disabled="isInfo"></el-input-number> 积分
<p class="fz12 gray">0表示免费抽奖</p>
......@@ -160,10 +160,10 @@
<dm-share :form="form"></dm-share>
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :creatorId="creatorId" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<dm-form-bottom>
<el-button type="primary" @click="saveLottery('form')" :disabled="!canEdit" v-if="!isInfo"> </el-button>
<el-button @click="$router.go(-1)"> </el-button>
</div>
</dm-form-bottom>
</el-form>
<vue-gic-card :showCardDialog.sync="showCardDialog" @selectCard="selectCard" :cardLimit="3" :cardType="null"></vue-gic-card>
<adjust-stock :show.sync="adjustStock" :totalCount="currentCard.couponStock" :coupCardId="currentCard.coupCardId" @backStock="backStock"></adjust-stock>
......@@ -312,9 +312,6 @@ export default {
created() {
if (this.isEdit || this.isInfo) {
this.detailLottery();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '大转盘', path: '/game/dzp' }, { name: '大转盘详情', path: '/game/dzp/add' }]); // eslint-disable-line
} else {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '大转盘', path: '/game/dzp' }, { name: '大转盘新增', path: '/game/dzp/add' }]); // eslint-disable-line
}
},
computed: {
......@@ -326,9 +323,6 @@ export default {
}
});
return parseInt(this.form.gameWinningRate) / result;
},
asideShow() {
return this.$store.state.marketing.asideShow;
}
},
methods: {
......
<template>
<section class="dm-wrap" v-loading="loading">
<div class="page-tip" v-if="lastDate">每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:{{ lastDate }}</div>
<div class="pb22 clearfix">
<el-select class="dm-select" v-model="listParams.gameStatus" placeholder="选择游戏状态" @change="refresh">
<el-option v-for="(v, i) in gameStatusOptions" :key="i" :label="v.label" :value="v.value"></el-option>
......@@ -44,6 +45,7 @@ export default {
mixins: [linksMixin, tableMethods],
data() {
return {
lastDate: '',
gameStatusOptions: [{ value: '', label: '所有状态' }, { value: 1, label: '待开始' }, { value: 2, label: '进行中' }, { value: 3, label: '已结束' }], // eslint-disable-line
listParams: {
gameStatus: '',
......@@ -124,20 +126,11 @@ export default {
created() {
this.getTableList();
this.getGameDataUpdatetime();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '' }, { name: '大转盘', path: '/game/dzp' }]); // eslint-disable-line
},
methods: {
getGameDataUpdatetime() {
getGameDataUpdatetime().then(res => {
const date = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:${date}
</div>
`
);
this.lastDate = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
});
},
// 拉取列表
......
......@@ -104,7 +104,6 @@ export default {
},
created() {
this.loadLotteryRecordList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '大转盘', path: '/game/dzp' }, { name: '大转盘中奖记录', path: '' }]); // eslint-disable-line
},
methods: {
async loadLotteryRecordList() {
......
......@@ -2,7 +2,7 @@
<div>
<el-form class="content" ref="form" :model="form" label-width="100px" :rules="rules" v-loading="loading" element-loading-text="拼命加载中">
<section class="dm-form__wrap">
<h3 class="dm-title__label">游戏内容</h3>
<h3 class="dm-title__label border-bottom">游戏内容</h3>
<el-form-item label="游戏名称" class="width50" prop="gameName">
<dm-input v-model="form.gameName" class="w400" :disabled="isInfo" :maxlength="25"></dm-input>
</el-form-item>
......@@ -42,7 +42,7 @@
</el-form-item>
</section>
<section class="dm-form__wrap">
<h3 class="dm-title__label">抽奖机制</h3>
<h3 class="dm-title__label border-bottom">抽奖机制</h3>
<el-form-item label="抽奖消耗" class="width50" prop="gameIntegral">
<el-input-number controls-position="right" class="w400" :min="0" v-model="form.gameIntegral" :precision="0" :disabled="isInfo"></el-input-number> 积分
<p class="fz12 gray">0表示免费抽奖</p>
......@@ -124,10 +124,10 @@
<dm-share :form="form"></dm-share>
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :creatorId="creatorId" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<dm-form-bottom>
<el-button type="primary" @click="saveLottery('form')" :disabled="!canEdit" v-if="!isInfo"> </el-button>
<el-button @click="$router.go(-1)"> </el-button>
</div>
</dm-form-bottom>
</el-form>
<vue-gic-card :showCardDialog.sync="showCardDialog" @selectCard="selectCard" :cardLimit="3" :cardType="null"></vue-gic-card>
<adjust-stock :show.sync="adjustStock" :totalCount="currentCard.couponStock" :coupCardId="currentCard.coupCardId" @backStock="backStock"></adjust-stock>
......@@ -256,9 +256,6 @@ export default {
created() {
if (this.isEdit || this.isInfo) {
this.detailLottery();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '刮刮卡', path: '/game/ggk' }, { name: '刮刮卡详情', path: '' }]); // eslint-disable-line
} else {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '刮刮卡', path: '/game/ggk' }, { name: '刮刮卡新增', path: '' }]); // eslint-disable-line
}
},
computed: {
......@@ -270,9 +267,6 @@ export default {
}
});
return parseInt(this.form.gameWinningRate) / result;
},
asideShow() {
return this.$store.state.marketing.asideShow;
}
},
methods: {
......
<template>
<section class="dm-wrap" v-loading="loading">
<div class="page-tip" v-if="lastDate">每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:{{ lastDate }}</div>
<div class="pb22 clearfix">
<el-select class="dm-select" v-model="listParams.gameStatus" placeholder="选择游戏状态" @change="refresh">
<el-option v-for="(v, i) in gameStatusOptions" :key="i" :label="v.label" :value="v.value"></el-option>
......@@ -43,6 +44,7 @@ export default {
mixins: [linksMixin, tableMethods],
data() {
return {
lastDate: '',
gameStatusOptions: [{ value: '', label: '所有状态' }, { value: 1, label: '待开始' }, { value: 2, label: '进行中' }, { value: 3, label: '已结束' }], // eslint-disable-line
listParams: {
gameStatus: '',
......@@ -123,20 +125,11 @@ export default {
created() {
this.getTableList();
this.getGameDataUpdatetime();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '' }, { name: '刮刮卡', path: '/game/ggk' }]); // eslint-disable-line
},
methods: {
getGameDataUpdatetime() {
getGameDataUpdatetime().then(res => {
const date = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:${date}
</div>
`
);
this.lastDate = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
});
},
// 拉取列表
......
......@@ -109,7 +109,6 @@ export default {
},
created() {
this.loadLotteryRecordList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '刮刮卡', path: '/game/ggk' }, { name: '刮刮卡中奖记录', path: '' }]); // eslint-disable-line
},
methods: {
async loadLotteryRecordList() {
......
<template>
<el-form ref="form" :model="form" :rules="rules" label-width="110px" class="ptyx-add content" v-loading="loading" loading-text="加载中">
<section class="dm-form__wrap">
<h3 class="dm-title__label">游戏内容</h3>
<h3 class="dm-title__label border-bottom">游戏内容</h3>
<el-form-item label="游戏名称" prop="gameName" class="width50">
<dm-input v-model="form.gameName" class="w400" :maxlength="10"></dm-input>
</el-form-item>
......@@ -94,7 +94,7 @@
</el-form-item>
</section>
<section class="dm-form__wrap">
<h3 class="dm-title__label">奖项设置</h3>
<h3 class="dm-title__label border-bottom">奖项设置</h3>
<el-form-item label="首次特殊策略" class="el-form-item__margin-top14">
<el-table tooltipEffect="light" :data="tableList" style="width: 100%" v-loading="tableLoading">
<el-table-column prop="strategyName" label="策略名称" align="left"></el-table-column>
......@@ -190,10 +190,10 @@
<dm-share :form="form"></dm-share>
<!-- 参与门槛 -->
<dm-threshold :form="form" :creatorId="creatorId" :isAdd="isAdd" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<dm-form-bottom>
<el-button type="primary" @click="klflSave('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
</dm-form-bottom>
<vue-gic-card :showCardDialog.sync="showCardDialog" @selectCard="selectCard" :cardLimit="3" :cardType="null"></vue-gic-card>
<calculate ref="calculate" :show.sync="calculateShow" :gameId="form.gameActivityId" :currentCount="currentObj.prizeStock" :totalCount="currentObj.prizeCount" :prizeId="currentObj.prizeId" :prizeReferType="currentObj.prizeReferType" :prizeReferId="currentObj.prizeReferId" :useStrategy="0" @countRefresh="countRefresh"></calculate>
<strategy :show.sync="strategyShow" :gameId="form.gameActivityId" :strategyType="strategyType" :dataId="gamePrizeStrategyId" :gameActivityId="form.gameActivityId" :cardObj="strategyDialog" @set-data="setStrategyCard" @refesh="klflStrategyList"></strategy>
......@@ -334,19 +334,12 @@ export default {
dmShare,
dmThreshold
},
computed: {
asideShow() {
return this.$store.state.marketing.asideShow;
}
},
created() {
if (this.isEdit || this.isInfo) {
this.klflDetail();
this.klflStrategyList();
this.klflPrizeList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '' }, { name: '口令福利', path: '/game/klfl' }, { name: '口令福利编辑', path: '' }]); // eslint-disable-line
} else if (this.isAdd) {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '' }, { name: '口令福利', path: '/game/klfl' }, { name: '口令福利新增', path: '' }]); // eslint-disable-line
(async () => {
await this.klflDetail(true);
await this.klflStrategyList();
......
<template>
<section class="dm-wrap" v-loading="loading">
<div class="page-tip" v-if="lastDate">每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:{{ lastDate }}</div>
<div class="pb22 clearfix">
<el-select class="dm-select" v-model="listParams.gameStatus" placeholder="选择游戏状态" @change="refresh">
<el-option v-for="(v, i) in gameStatusOptions" :key="i" :label="v.label" :value="v.value"></el-option>
......@@ -107,20 +108,11 @@ export default {
created() {
this.getTableList();
this.getGameDataUpdatetime();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '' }, { name: '口令福利', path: '/game/klfl' }]); // eslint-disable-line
},
methods: {
getGameDataUpdatetime() {
getGameDataUpdatetime().then(res => {
const date = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:${date}
</div>
`
);
this.lastDate = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
});
},
async getTableList() {
......
......@@ -50,7 +50,6 @@ export default {
mixins: [filterAvatar],
created() {
this.klflReportList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '口令福利', path: '/game/klfl' }, { name: '口令福利中奖记录', path: '' }]); // eslint-disable-line
},
data() {
return {
......
<template>
<el-form ref="form" :model="form" :rules="rules" label-width="120px" class="ptyx-add content" v-loading="loading" element-loading-text="拼命加载中">
<section class="dm-form__wrap">
<h3 class="dm-title__label">游戏内容</h3>
<h3 class="dm-title__label border-bottom">游戏内容</h3>
<el-form-item label="游戏名称" prop="gameName" class="width50">
<dm-input v-model="form.gameName" class="w400" :disabled="isInfo" :maxlength="25"></dm-input>
</el-form-item>
......@@ -53,7 +53,7 @@
</el-form-item>
</section>
<section class="dm-form__wrap">
<h3 class="dm-title__label">页面设置</h3>
<h3 class="dm-title__label border-bottom">页面设置</h3>
<el-form-item label="品牌logo" class="width50 is-required">
<dm-upload-avatar :model.sync="form.logoImg" label="上传图片" width="80" height="80" tips="请上传高度为85px的PNG透明背景图片" :disabled="isInfo"></dm-upload-avatar>
</el-form-item>
......@@ -73,7 +73,7 @@
<!-- 游戏背景音乐设置 -->
<section class="dm-form__wrap">
<h3 class="dm-title__label">游戏背景音乐设置</h3>
<h3 class="dm-title__label border-bottom">游戏背景音乐设置</h3>
<el-form-item label="游戏背景音乐">
<el-switch v-model="form.musicFlag" :active-value="1" :inactive-value="0"></el-switch>
</el-form-item>
......@@ -106,10 +106,10 @@
<dm-share :form="form"></dm-share>
<!-- 参与门槛 -->
<dm-threshold :form="form" :creatorId="creatorId" :isAdd="isAdd" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<dm-form-bottom>
<el-button type="primary" @click="savePtyx('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
</dm-form-bottom>
</el-form>
</template>
......@@ -227,22 +227,13 @@ export default {
}
};
},
computed: {
asideShow() {
return this.$store.state.marketing.asideShow;
}
},
created() {
gameInfo = {};
if (this.$route.meta.type === 'edit') {
this.ptyxDetail();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '拼图游戏', path: '/game/ptyx' }, { name: '拼图游戏编辑', path: '' }]); // eslint-disable-line
} else if (this.$route.meta.type === 'add') {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '拼图游戏', path: '/game/ptyx' }, { name: '拼图游戏新增', path: '' }]); // eslint-disable-line
}
if (this.$route.meta.type === 'query') {
this.ptyxDetail();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '拼图游戏', path: '/game/ptyx' }, { name: '拼图游戏详情', path: '' }]); // eslint-disable-line
}
this.getGameSystemMusicList();
},
......
<template>
<section class="dm-wrap" v-loading="loading">
<div class="page-tip" v-if="lastDate">每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:{{ lastDate }}</div>
<div class="pb22 clearfix">
<el-select class="dm-select" clearable v-model="listParams.gameStatus" placeholder="选择游戏状态" @change="refresh">
<el-option v-for="(v, i) in gameStatusOptions" :key="i" :label="v.label" :value="v.value"></el-option>
......@@ -48,6 +49,7 @@ export default {
},
data() {
return {
lastDate: '',
loading: false,
total: 0,
gameStatusOptions: [{ value: -1, label: '所有状态' }, { value: 1, label: '待开始' }, { value: 2, label: '进行中' }, { value: 3, label: '已结束' }], // eslint-disable-line
......@@ -106,20 +108,11 @@ export default {
created() {
this.getTableList();
this.getGameDataUpdatetime();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '' }, { name: '拼图游戏', path: '/game/ptyx' }]); // eslint-disable-line
},
methods: {
getGameDataUpdatetime() {
getGameDataUpdatetime().then(res => {
const date = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:${date}
</div>
`
);
this.lastDate = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
});
},
async getTableList() {
......
......@@ -127,7 +127,6 @@ export default {
this.LoadPtyxRecordList();
this.LoadPtyxRecordList1();
this.ptyxCalcTitle();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '拼图游戏', path: '/game/ptyx' }, { name: '拼图游戏统计', path: '' }]); // eslint-disable-line
},
methods: {
formatDateTimeByType,
......
<template>
<el-form ref="form" :model="form" :rules="rules" label-width="100px" class="ptyx-add content" v-loading="loading" loading-text="加载中">
<section class="dm-form__wrap">
<h3 class="dm-title__label">游戏内容</h3>
<h3 class="dm-title__label border-bottom">游戏内容</h3>
<el-form-item label="游戏名称" prop="gameName" class="width50">
<dm-input v-model="form.gameName" class="w400" :maxlength="25"></dm-input>
</el-form-item>
......@@ -28,7 +28,7 @@
</el-form-item>
</section>
<section class="dm-form__wrap">
<h3 class="dm-title__label">奖项设置</h3>
<h3 class="dm-title__label border-bottom">奖项设置</h3>
<el-form-item label="首次奖项设置" class="width50">
<el-button @click="showCard('firstStrategy')">{{ firstStrategy.cardName || '卡券选择' }}</el-button>
<template v-if="!isAdd">
......@@ -86,10 +86,10 @@
<dm-share :form="form"></dm-share>
<!-- 参与门槛 -->
<dm-threshold :form="form" :isAdd="isAdd" :creatorId="creatorId" :thresholdData="thresholdData" ref="threshold"></dm-threshold>
<div class="btn-wrap_fixed" :class="{ on: asideShow }">
<dm-form-bottom>
<el-button type="primary" @click="znmSave('form')" :disabled="!canEdit" v-if="!isInfo">保 存</el-button>
<el-button @click="$router.go(-1)">返 回</el-button>
</div>
</dm-form-bottom>
<vue-gic-card :showCardDialog.sync="showCardDialog" :cardLimit="3" @selectCard="selectCard"></vue-gic-card>
<strategy :show.sync="strategyShow" :dataId="gamePrizeStrategyId" :gameActivityId="form.gameActivityId" :cardObj="dialogStrategy" @get-data="showCard" @refresh="znmStrategyList"></strategy>
</el-form>
......@@ -190,19 +190,12 @@ export default {
dmShare,
dmThreshold
},
computed: {
asideShow() {
return this.$store.state.marketing.asideShow;
}
},
created() {
if (this.isEdit || this.isInfo) {
this.znmDetail();
this.znmStrategyList();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '找你马', path: '/game/znm' }, { name: '找你马详情', path: '' }]); // eslint-disable-line
} else if (this.isAdd) {
this.znmDetail(true);
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '找你马', path: '/game/znm' }, { name: '找你马新增', path: '' }]); // eslint-disable-line
}
},
methods: {
......
<template>
<section class="dm-wrap" v-loading="loading">
<div class="page-tip" v-if="lastDate">每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:{{ lastDate }}</div>
<div class="pb22 clearfix">
<el-select class="dm-select" v-model="listParams.gameStatus" placeholder="选择游戏状态" @change="refresh">
<el-option v-for="(v, i) in gameStatusOptions" :key="i" :label="v.label" :value="v.value"></el-option>
......@@ -42,6 +43,7 @@ export default {
mixins: [linksMixin, tableMethods],
data() {
return {
lastDate: '',
loading: false,
gameStatusOptions: [{ value: -1, label: '所有状态' }, { value: 1, label: '待开始' }, { value: 2, label: '进行中' }, { value: 3, label: '已结束' }], // eslint-disable-line
listParams: { gameStatus: -1, searchParam: '', currentPage: 1, pageSize: 20, showSelfFlag: '' },
......@@ -98,20 +100,11 @@ export default {
created() {
this.getTableList();
this.getGameDataUpdatetime();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '' }, { name: '找你马', path: '/game/znm' }]); // eslint-disable-line
},
methods: {
getGameDataUpdatetime() {
getGameDataUpdatetime().then(res => {
const date = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
this.$store.commit(
'mutations_layoutTips',
`<div class="layout--tips">
<i class="el-icon-info"></i>
每隔3小时对所有数据收集一次,然后统计到下面列表中(耗费一段时间)。上次收集时间为:${date}
</div>
`
);
this.lastDate = res.result ? formatDateTimeByType(res.result, 'yyyy-MM-dd HH:mm:ss') : '--';
});
},
async getTableList() {
......
......@@ -81,7 +81,6 @@ export default {
created() {
this.znmReportList();
this.znmReportList1();
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '游戏营销', path: '/game' }, { name: '找你马', path: '/game/znm' }, { name: '找你马统计', path: '' }]); // eslint-disable-line
},
data() {
return {
......
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