Commit 4ef53d68 by crushh

update: 查看记录

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