Commit 4a977f15 by huaying

fix: fenzu

parent a3f607a3
...@@ -41,9 +41,9 @@ export default { ...@@ -41,9 +41,9 @@ export default {
currentGroupId: { currentGroupId: {
handler: function(val) { handler: function(val) {
console.log(val, 111); console.log(val, 111);
if (val != null) { // if (val != null) {
this.currentGroupId = val; this.currentGroupId = val;
} // }
}, },
immediate: true immediate: true
} }
......
...@@ -46,12 +46,12 @@ ...@@ -46,12 +46,12 @@
<el-table-column type="selection" width="60" fixed> </el-table-column> <el-table-column type="selection" width="60" fixed> </el-table-column>
<el-table-column width="60" class-name="table-select-cell" fixed> <el-table-column width="60" class-name="table-select-cell" fixed>
<template #header> <template #header>
<dm-table-select-page class="table-select" :type="selectPage.type" :data-ready="selectPage.dataReady" :table-vm="$refs.actCodeTableRef" :table-data="actCodeList" :total="totalCount" @change="t => (selectPage.type = t)" @selection-change="handleSelectionChange"></dm-table-select-page> <dm-table-select-page class="table-select" :type="selectPage.type" :data-ready="selectPage.dataReady" :table-vm="$refs.actCodeTableRef" :table-data="tableData" :total="totalCount" @change="t => (selectPage.type = t)" @selection-change="handleSelectionChange"></dm-table-select-page>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="活码ID" fixed width="110"> <el-table-column label="活码ID" fixed width="110">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p>{{ row.hmId }}</p> <p>{{ row.hmCode }}</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="活码信息" width="100"> <el-table-column label="活码信息" width="100">
...@@ -454,9 +454,7 @@ export default { ...@@ -454,9 +454,7 @@ export default {
this.inFields.startTime = this.dateTime ? Date.parse(new Date(this.dateTime[0]).toString()) : ''; this.inFields.startTime = this.dateTime ? Date.parse(new Date(this.dateTime[0]).toString()) : '';
this.inFields.endTime = this.dateTime ? Date.parse(new Date(this.dateTime[1]).toString()) : ''; this.inFields.endTime = this.dateTime ? Date.parse(new Date(this.dateTime[1]).toString()) : '';
} }
if (this.currentGroupId != null) { this.inFields.hmGroupId = this.currentGroupId;
this.inFields.hmGroupId = Number(this.currentGroupId);
}
if (this.inFields.hmSelect == '') { if (this.inFields.hmSelect == '') {
delete this.inFields.hmSelect; delete this.inFields.hmSelect;
} }
...@@ -483,21 +481,22 @@ export default { ...@@ -483,21 +481,22 @@ export default {
this.tableData = res.data.result.data || []; this.tableData = res.data.result.data || [];
this.totalCount = res.data.result.page.totalCount; this.totalCount = res.data.result.page.totalCount;
} }
this.selectPage.dataReady = true;
}) })
.finally(_ => { .finally(_ => {
this.loadingStatus = false; this.loadingStatus = false;
this.selectPage.dataReady = true;
}); });
} }
}, },
watch: { watch: {
currentGroupId: { currentGroupId: {
handler: function(val) { handler: function(val) {
if (val != null) { console.log('val', val, 'val');
this.currentGroupId = val; // if (val != null) {
this.pageParam.pageNum = 1; this.currentGroupId = val;
this.getTableList(); this.pageParam.pageNum = 1;
} this.getTableList();
// }
}, },
immediate: true immediate: true
} }
......
...@@ -115,7 +115,9 @@ export default { ...@@ -115,7 +115,9 @@ export default {
} }
}, },
clickGroupListItem(listItem) { clickGroupListItem(listItem) {
console.log(listItem, 'uuuuu');
this.currentListItemUuid = listItem.groupId; this.currentListItemUuid = listItem.groupId;
console.log(this.currentListItemUuid, 'this.currentListItemUuid');
this.$emit('updateList', this.currentListItemUuid); this.$emit('updateList', this.currentListItemUuid);
}, },
isShowGroupListItemMore(listItem) { isShowGroupListItemMore(listItem) {
......
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
hmGroupId: '', //活码分组id hmGroupId: '', //活码分组id
passFlag: true, // 1自动通过 0否 passFlag: true, // 1自动通过 0否
memberLabelId: 'fd6b44967aa647bcadfad10706244c56', //会员活动标签id memberLabelId: 'fd6b44967aa647bcadfad10706244c56', //会员活动标签id
memberLabelName: '', memberLabelName: '测试121212-木瑾0630测试标签值50',
welcomeId: '' // 欢迎语id welcomeId: '' // 欢迎语id
// clerkIdList: '', // 选择导购id // clerkIdList: '', // 选择导购id
// storeId: '' //门店id // storeId: '' //门店id
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<dm-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageParam.pageNo" :page-sizes="[20, 40, 60, 80]" :page-size="pageParam.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="totalCount"> </dm-pagination> <dm-pagination v-if="tableData && tableData.length > 0" background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageParam.pageNo" :page-sizes="[20, 40, 60, 80]" :page-size="pageParam.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="totalCount"> </dm-pagination>
</div> </div>
</template> </template>
......
...@@ -105,6 +105,15 @@ export default { ...@@ -105,6 +105,15 @@ export default {
activated() { activated() {
this.onSearch(); this.onSearch();
}, },
// mounted() {
// this.getWelcomeTable();
// document.addEventListener('visibilitychange', () => {
// console.log(document.visibilityState, 99999);
// if (document.visibilityState == 'visible') {
// this.getWelcomeTable();
// }
// });
// },
methods: { methods: {
onSearch() { onSearch() {
this.welcomePage.pageNum = 1; this.welcomePage.pageNum = 1;
......
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