Commit c664586e by huaying

Merge branch 'feature/act-code' into dev

parents c28a6272 d211bc2d
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
startTime, startTime,
endTime, endTime,
// addChannel: 1, // addChannel: 1,
addChannel: linkId ? 1 : hmId ? 2 : 0, // 不具备传0 addChannel: linkId ? 1 : hmId ? this.$route.query.addChannel : 0, // 不具备传0
createTimeOrder: that.sortType || '' createTimeOrder: that.sortType || ''
}; };
postJsonRequest('/haoban-manage3-web/hm/qrcode/wxUserAddLog/list', para) postJsonRequest('/haoban-manage3-web/hm/qrcode/wxUserAddLog/list', para)
...@@ -195,6 +195,7 @@ export default { ...@@ -195,6 +195,7 @@ export default {
mounted() { mounted() {
let that = this; let that = this;
that.getTableList(); that.getTableList();
console.log(this.$route.query);
} }
}; };
</script> </script>
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
import { detailClerkList } from '@/api/actCode.js'; import { detailClerkList } from '@/api/actCode.js';
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
import mixin from '../actCodeManage/components/mixin'; import mixin from '../actCodeManage/components/mixin';
import { getRequest } from '@/api/api';
export default { export default {
name: 'DateDetail', name: 'DateDetail',
props: { props: {
...@@ -126,7 +127,8 @@ export default { ...@@ -126,7 +127,8 @@ export default {
return time.getTime() <= start || time.getTime() >= end; return time.getTime() <= start || time.getTime() >= end;
} }
}; };
} },
hmTypeLook: null
}; };
}, },
created() { created() {
...@@ -230,8 +232,6 @@ export default { ...@@ -230,8 +232,6 @@ export default {
delete paras.inFields.storeSelect; delete paras.inFields.storeSelect;
delete paras.inFields.clerkSelect; delete paras.inFields.clerkSelect;
} }
console.log(this.api, 'api');
await this.api(paras).then(res => { await this.api(paras).then(res => {
if (res.data.code == 0) { if (res.data.code == 0) {
this.tableData = res.data.result.result || []; this.tableData = res.data.result.result || [];
...@@ -252,7 +252,13 @@ export default { ...@@ -252,7 +252,13 @@ export default {
if (linkId) { if (linkId) {
this.$router.push({ path: '/attLinkRecord', query: query }); this.$router.push({ path: '/attLinkRecord', query: query });
} else { } else {
this.$router.push({ path: '/actCodeRecord', query: query }); if (this.id) {
getRequest('/haoban-manage3-web/hm/qrcode/detail', { hmId: this.id }).then(res => {
this.hmTypeLook = res.data.result.hmType;
query.addChannel = this.hmTypeLook;
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