Commit 7e490518 by 黑潮

update: 修改bug

parent 9903dfed
......@@ -197,8 +197,11 @@ export default {
// }, 5000);
}
},
created() {
this.ecmCurrentSendInfos();
async created() {
await this.ecmCurrentSendInfos();
this.$nextTick(_ => {
this.$refs.multipleTable.toggleAllSelection();
});
if (!this.isComponet) {
this.$store.commit('mutations_breadcrumb', [{ name: '营销管理', path: '' }, { name: '智能营销', path: '/ecm' }, { name: this.$route.query.name + ' - 提交日志', path: '' }]); // eslint-disable-line
}
......@@ -209,6 +212,7 @@ export default {
methods: {
formatDateTimeByType,
handleSelectionChange(val) {
this.selectedId = val.map(v => v.ecmMarketingTypeRelationId);
let list = val
.map(v => v.ecmMarketingTypeRelationId)
.filter(v => v)
......@@ -250,9 +254,18 @@ export default {
status: this.listParams.status
});
this.infoList = res.result || [];
this.$nextTick(_ => {
this.$refs.multipleTable.toggleAllSelection();
});
// this.$nextTick(_ => {
// this.$refs.multipleTable.toggleAllSelection();
// });
if (this.selectedId && this.selectedId.length > 0) {
const selectedRows = this.infoList.filter(el => this.selectedId.includes(el.ecmMarketingTypeRelationId));
this.$nextTick(_ => {
selectedRows.forEach(el => {
this.$refs.multipleTable.toggleRowSelection(el);
});
});
}
let list = this.infoList
.map(v => v.ecmMarketingTypeRelationId)
.filter(v => v)
......
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