Commit 13f9ba98 by 黑潮

update: 清空数据

parent 4015d4f1
......@@ -382,6 +382,7 @@ export default {
},
async marketingCharts() {
try {
this.list = [];
let res = await messageMarketingChart(this.listParams);
this.sumCount = res.result.sumCount;
this.sumFee = res.result.sumFee;
......@@ -404,6 +405,7 @@ export default {
async smsData(type = 'list') {
this.loading = true;
try {
this.list = [];
let res = await smsData(Object.assign({ ajaxType: type }, this.listParams));
if (type === 'list') {
if (res.errorCode === 0 && res.result.page.result) {
......@@ -436,6 +438,7 @@ export default {
async voiceData(type = 'list') {
this.loading = true;
try {
this.list = [];
let res = await voiceData(Object.assign({ ajaxType: type }, this.listParams));
if (type === 'list') {
if (res.errorCode === 0 && res.result.page.result) {
......@@ -466,6 +469,7 @@ export default {
async callData(type = 'list') {
this.loading = true;
try {
this.list = [];
let res = await callData(Object.assign({ ajaxType: type, taskType: type === 'list' ? this.taskType : '' }, this.listParams));
if (type === 'list') {
if (res.errorCode === 0 && res.result.page.result) {
......@@ -498,6 +502,7 @@ export default {
async videoPage(type = 'list') {
this.loading = true;
try {
this.list = [];
this.videoListParams.startTime = formatDateTimeByType(this.dateTimeVideo[0], 'yyyy-MM-dd');
this.videoListParams.endTime = formatDateTimeByType(this.dateTimeVideo[1], 'yyyy-MM-dd');
if (type === 'list') {
......@@ -553,6 +558,7 @@ export default {
async recordData(type = 'list') {
this.loading = true;
try {
this.list = [];
let res = await recordData(Object.assign({ ajaxType: type, taskType: type === 'list' ? this.taskType : '' }, this.listParams));
if (type === 'list') {
if (res.errorCode === 0 && res.result.page.result) {
......
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