hbt-prevention-ui/src/service/hiddendangerResumption.serv...

25 lines
904 B
TypeScript

import BaseService from "hbt-common/service/base.service"
import type { AxiosResponse } from 'axios'
import { ActionResult } from "hbt-common/models/actionResult";
export default class HiddendangerResumptionService extends BaseService<any>{
constructor(){
super()
}
public selectByPage(params: any):Promise<AxiosResponse<ActionResult<any>>>{
const url = this.prefix.prevention+'/execute/list';
return this.get(url,params)
}
//周期
public selectCycleData(params: any):Promise<AxiosResponse<ActionResult<any>>>{
const url = this.prefix.prevention+'/worktask/cycle';
return this.get(url,params)
}
// 批量删除
public deleteByIds(params:any,showLoading?):Promise<AxiosResponse<ActionResult<any>>>{
const url = this.prefix.prevention+'/execute';
return this.deleteBatch(url,params,{},showLoading)
}
}