update waiting list

This commit is contained in:
lb 2024-02-19 11:27:23 +08:00
rodzic 66337f4aca
commit 874e36eb50
3 zmienionych plików z 32 dodań i 8 usunięć

Wyświetl plik

@ -135,6 +135,9 @@ export default {
this.$refs['search-bar'].resetForm();
this.resetQuery();
break;
default:
this.searchBarClicked(btn);
break;
}
},
handleEmitFun(val) {

Wyświetl plik

@ -30,7 +30,11 @@
:method-list="tableBtn"
@clickBtn="handleTableBtnClick" />
</base-table> -->
<WaitingListTable :table-data="list" :page="queryParams.pageNo" :limit="queryParams.pageSize" />
<WaitingListTable
ref="waiting-list-table"
:table-data="list"
:page="queryParams.pageNo"
:limit="queryParams.pageSize" />
<!-- 分页组件 -->
<pagination
@ -62,7 +66,6 @@
</el-row>
</base-dialog>
<!-- 编辑 -->
<!-- <RecordDetail
v-if="recordDetailVisible"
@ -168,7 +171,7 @@ export default {
watch: {
selected(val) {
if (!this.outside) {
console.log("emit row-selected...")
console.log('emit row-selected...');
this.$emit('emitData', {
action: 'row-selected',
value: {
@ -186,7 +189,7 @@ export default {
this.selected = !!((val._selection & 0b01) != 0);
this.$nextTick(() => {
this.outside = false;
})
});
},
},
},
@ -473,6 +476,24 @@ export default {
// }
},
methods: {
searchBarClicked(btn) {
console.log('searchBarClicked', btn);
switch (btn.btnName) {
case 'batchConfirm':
if (this.$refs['waiting-list-table'].selectedPlan.length == 0) {
console.log(
'selectedPlan',
this.$refs['waiting-list-table'].selectedPlan
);
alert('no data...');
};
console.log(
'selectedPlan',
this.$refs['waiting-list-table'].selectedPlan
);
break;
}
},
handleSelectionChange(list) {
if (this.tobeConfirmedIdList.length) {
this.tobeConfirmedIdList = [];

Wyświetl plik

@ -215,16 +215,16 @@ export default {
true,
true,
],
selectedPlan: []
selectedPlan: [],
};
},
computed: {
tableDataWithIndex() {
return this.tableData.map((item, index) => ({
...item,
_pageIndex: (this.page - 1) * this.limit + index + 1
}))
}
_pageIndex: (this.page - 1) * this.limit + index + 1,
}));
},
},
methods: {
handleSelectionChange(val) {