Commit b8dd80ec authored by 徐光星's avatar 徐光星

feat: 增加逻辑注释

parent 10ee6c14
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
'fetchTenantAuthData' 'fetchTenantAuthData'
]), ]),
select(name) { select(name) {
console.log('select', name); // console.log('select', name);
const current = this.page[name]; const current = this.page[name];
this.$router.push({ this.$router.push({
name: current.path, name: current.path,
...@@ -90,11 +90,11 @@ export default { ...@@ -90,11 +90,11 @@ export default {
}, },
created() { created() {
this.fetchTenantAuthData(); this.fetchTenantAuthData();
console.log('isDashboard', this.$route); // console.log('isDashboard', this.$route);
}, },
watch: { watch: {
$route(to, from) { $route(to, from) {
console.log(to, from); // console.log(to, from);
if (to.path !== from.path && to.path === '/list') { if (to.path !== from.path && to.path === '/list') {
this.activeName = 0; this.activeName = 0;
} }
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
return ['ivu-menu-dark', 'menu-item', this.isCollapsed ? 'collapsed-menu' : '']; return ['ivu-menu-dark', 'menu-item', this.isCollapsed ? 'collapsed-menu' : ''];
}, },
isDashboard() { isDashboard() {
console.log('isDashboard', this.$route); // console.log('isDashboard', this.$route);
return this.$route.name === 'detail'; return this.$route.name === 'detail';
} }
}, },
......
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
} }
// 判断填入的活动ID是否存在重复的渠道ID的情况 // 判断填入的活动ID是否存在重复的渠道ID的情况
const normalKey = 'common'; const normalKey = 'common';
const validArr = res.filter(item => item.activityTemplateType && item.activityTemplateType == 1); const validArr = res.filter(item => item.activityTemplateType && item.activityTemplateType == 11);
const channel2Id = {}; const channel2Id = {};
validArr.map(item => { validArr.map(item => {
if (item.kaChannelNo) { if (item.kaChannelNo) {
......
...@@ -73,7 +73,6 @@ export default class GoodsTabsMixin extends Vue { ...@@ -73,7 +73,6 @@ export default class GoodsTabsMixin extends Vue {
let ids: any = []; let ids: any = [];
const batchPickupIndexArr: any[] = []; // 记录一键领取索引值 const batchPickupIndexArr: any[] = []; // 记录一键领取索引值
elements.forEach((item, index) => { elements.forEach((item, index) => {
console.log(item);
if (item.name == 'cs-coupon' && item.props.couponsList && item.props.couponsList.length) { if (item.name == 'cs-coupon' && item.props.couponsList && item.props.couponsList.length) {
ids = ids.concat(item.props.couponsList); ids = ids.concat(item.props.couponsList);
} }
...@@ -102,7 +101,6 @@ export default class GoodsTabsMixin extends Vue { ...@@ -102,7 +101,6 @@ export default class GoodsTabsMixin extends Vue {
} }
} }
}); });
console.log('parseGoodsTabs', goodsTabs);
Object.keys(goodsTabs).forEach(key => { Object.keys(goodsTabs).forEach(key => {
goodsTabs[key].forEach((child, index) => { goodsTabs[key].forEach((child, index) => {
// console.log('parseGoodsTabs', { containerIndex: +key + 1 + index, data: child }); // console.log('parseGoodsTabs', { containerIndex: +key + 1 + index, data: child });
......
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