fix:修复翻页问题

feat:新增删除只删除已整改
feature1.0
吴延福 2023-07-04 14:28:48 +08:00
parent 4b20cb89cc
commit 66b32a95d6
3 changed files with 19 additions and 4 deletions

View File

@ -451,7 +451,12 @@ export default class HiddenDangerClapComponent extends BaseRecordComponent<any>
// //
} }
public callback(data){ public callback(data,type?){
if(type){
this.params[type] = data;
this.getTableData();
return
}
// //
if(data.value==="search"){ if(data.value==="search"){
this.getTableData() this.getTableData()

View File

@ -601,7 +601,12 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
this.tableColumn.push({name:'整改时限',width:"120",key:"reformDeadline"}); this.tableColumn.push({name:'整改时限',width:"120",key:"reformDeadline"});
} }
public callback(data){ public callback(data,type?){
if(type){
this.params[type] = data;
this.getTableData();
return
}
// //
if(data.value==="search"){ if(data.value==="search"){
this.getTableData() this.getTableData()
@ -615,7 +620,7 @@ export default class HiddenDangerFilesComponent extends BaseRecordComponent<any>
}else if(data.value === "selectAll"){ }else if(data.value === "selectAll"){
this.selectAll() this.selectAll()
}else if(data.value === "delete"){ }else if(data.value === "delete"){
this.deleteData(this.selectData.map((item:any)=>item.id)) this.deleteData(this.selectData.map((item:any)=>item.id && item.status === 5))
}else if(data.value ==="cancel"){ }else if(data.value ==="cancel"){
this.handleClose() this.handleClose()

View File

@ -787,7 +787,12 @@ export default class HiddenDangerManagerComponent extends BaseRecordComponent<an
// //
} }
public callback(data){ public callback(data,type?){
if(type){
this.params[type] = data;
this.getTableData();
return
}
// //
if(data.value==="search"){ if(data.value==="search"){
this.getTableData() this.getTableData()