feat:新增下发表全部删除后自动去除所选检查表

feature1.0
吴延福 2023-07-03 17:56:04 +08:00
parent cc8c76e1d1
commit d59299863f
1 changed files with 6 additions and 1 deletions

View File

@ -556,7 +556,12 @@ export default class PlanComponent extends BaseRecordComponent<any> {
}
public deleteSendData(index){
this.currentTable.tableItems.splice(index,1)
this.currentTable.tableItems.splice(index,1);
if(!this.currentTable.tableItems.length){
this.sendParams.tables.splice(this.sendParams.tables.findIndex(item=>item === this.currentTableId),1);
this.currentTableId = this.tableTabs[0]?.id;
this.currentTable = this.tableTabs[0]
}
}
public handleClose(){