Commit 4ef53d68 by crushh

update: 查看记录

parent 88815aba
...@@ -83,12 +83,6 @@ import { postJsonRequest } from '@/api/api'; ...@@ -83,12 +83,6 @@ import { postJsonRequest } from '@/api/api';
export default { export default {
name: 'actCodeRecord', name: 'actCodeRecord',
components: {}, components: {},
props: {
hmId: {
type: String,
default: ''
}
},
data() { data() {
return { return {
loading: false, loading: false,
...@@ -152,31 +146,19 @@ export default { ...@@ -152,31 +146,19 @@ export default {
async getTableList() { async getTableList() {
const that = this; const that = this;
that.loading = true; that.loading = true;
let para = {}; const { startTime, endTime, clerkId, linkId, hmId } = this.$route.query;
let api = ''; let para = {
if (this.$route.query.hmId) { pageNum: that.currentPage, // 当前页
api = '/haoban-manage3-web/hm/qrcode/wxUserAddLog/list'; pageSize: that.pageSize, // 一页显示个数
para = { linkId,
pageNum: that.currentPage, // 当前页 hmId,
pageSize: that.pageSize, // 一页显示个数 clerkId,
hmId: that.$route.query.hmId, startTime,
createTimeOrder: that.sortType || '' endTime,
}; addChannel: linkId ? 1 : hmId ? 2 : 0,
} else if (this.$route.query.linkId) { createTimeOrder: that.sortType || ''
const { startTime, endTime, clerkId, linkId } = this.$route.query; };
api = '/haoban-manage3-web/hm/link/statistics/log'; postJsonRequest('/haoban-manage3-web/hm/qrcode/wxUserAddLog/list', para)
para = {
pageNum: that.currentPage, // 当前页
pageSize: that.pageSize, // 一页显示个数
linkId,
clerkId,
startTime,
endTime,
createTimeOrder: that.sortType || ''
};
}
// console.log(para);
postJsonRequest(api, para)
.then(res => { .then(res => {
let resData = res.data; let resData = res.data;
that.loading = false; that.loading = false;
......
...@@ -238,18 +238,14 @@ export default { ...@@ -238,18 +238,14 @@ export default {
}); });
}, },
lookRecords(row) { lookRecords(row) {
if (row.hmId) { const { clerkId, linkId, hmId } = row;
this.$router.push(`/actCodeRecord?hmId=${row.hmId}`); const startTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[0] : undefined;
} else if (row.linkId) { const endTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[1] : undefined;
const { clerkId, linkId } = row;
const startTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[0] : undefined;
const endTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[1] : undefined;
let query = { linkId, clerkId }; let query = { linkId, clerkId, hmId };
startTime ? (query.startTime = startTime) : ''; startTime ? (query.startTime = startTime) : '';
endTime ? (query.endTime = endTime) : ''; endTime ? (query.endTime = endTime) : '';
this.$router.push({ path: '/actCodeRecord', query: query }); this.$router.push({ path: '/actCodeRecord', query: query });
}
} }
} }
}; };
......
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