| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- import { UN_REQ_NUM } from "@/constant/sys";
- import {
- getCaseScriptSaveOrUpdateUrl,
- getCaseScriptInfoUrl,
- axios,
- } from "@/request";
- export enum FireStatus {
- all = UN_REQ_NUM,
- incomplete = 0,
- complete = 1,
- }
- export type Fire = {
- accidentDate: string;
- createTime: string;
- creatorDeptId: string;
- caseId: number;
- mapShow: boolean;
- creatorId: string;
- creatorName: string;
- deptId: string;
- editTime: string;
- editorId: string;
- editorName: string;
- fireReason: string;
- id: string;
- isTeached: number;
- organizerDeptName: string;
- organizerUsers: string;
- projectAddress: string;
- latAndLong: string;
- latlng: string;
- projectName: string;
- projectSite: string;
- projectSiteCode: string;
- projectSn: string;
- status: FireStatus;
- statusDesc: string;
- updateTime: string;
- isDelete?: number;
- field1: string;
- field2: string;
- field3: string;
- field4: string;
- field5: string;
- field6: string;
- field7: string;
- field8: string;
- field9: string;
- field10: string;
- };
- export enum FirePaggingRoute {
- fire = 1,
- teached = 2,
- }
- export const getCaseScriptInfo = async (caseId) =>
- (await axios.get(getCaseScriptInfoUrl, { params:{caseId, ingoreRes: true} }));
- export const CaseScriptSaveOrUpdate = async (fire: Omit<Fire, "id">) =>
- axios.post(getCaseScriptSaveOrUpdateUrl, fire, {params: {ingoreRes: true}});
|