import BaseService from "hbt-common/service/base.service" import type { AxiosResponse } from 'axios' import { ActionResult } from "hbt-common/models/actionResult"; export default class AreaService extends BaseService{ constructor(){ super() } // 查询列表 public selectByPage(params: any):Promise>>{ const url = this.prefix.prevention+'/risk/area/list'; return this.get(url,params,true) } // 批量删除 public deleteByIds(params):Promise>>{ const url = this.prefix.prevention+'/risk/area'; return this.deleteBatch(url,params,{},true) } public getAreaNumber():Promise>>{ const url = this.prefix.prevention+'/risk/area/number'; return this.get(url,null) } public getQrCode(params){ const url = this.prefix.file+'/qrCode/createQrCode'; return this.post(url,params) } // 新增或更新 public addOrUpdate(params: any, add: boolean,showLoading?:boolean): Promise>>{ const url = this.prefix.prevention+'/risk/area'; if(add){ return this.post(url,params,{},showLoading) }else{ return this.put(url,params,{},showLoading) } } public getAnalControls():Promise>>{ const url = this.prefix.prevention+'/risk/identifyinventory/getAnalControls'; return this.get(url,null,false) } }