|
@@ -24,6 +24,7 @@ export type Fire = {
|
|
|
createTime: string;
|
|
|
creatorDeptId: string;
|
|
|
caseId: number;
|
|
|
+ mapShow: boolean;
|
|
|
creatorId: string;
|
|
|
creatorName: string;
|
|
|
deptId: string;
|
|
@@ -37,6 +38,7 @@ export type Fire = {
|
|
|
organizerUsers: string;
|
|
|
projectAddress: string;
|
|
|
latAndLong: string;
|
|
|
+ latlng: string;
|
|
|
projectName: string;
|
|
|
projectSite: string;
|
|
|
projectSiteCode: string;
|
|
@@ -61,8 +63,7 @@ type FirePaggingParams = PaggingReq<Fire & { queryType: FirePaggingRoute }>;
|
|
|
export const getFirePagging = async (params: FirePaggingParams) =>
|
|
|
(await axios.get(getFireList, { params })).data as PaggingRes<Fire>;
|
|
|
|
|
|
-export const addFire = async (fire: Omit<Fire, "id">) =>
|
|
|
- axios.post(insertFire, fire);
|
|
|
+export const addFire = async (fire: Omit<Fire, "id">) => axios.post(insertFire, fire);
|
|
|
|
|
|
export const setFire = async (fire: Fire) => await axios.post(updateFire, fire);
|
|
|
|
|
@@ -84,13 +85,8 @@ export type FireLeaveMsg = {
|
|
|
createTime: number;
|
|
|
};
|
|
|
|
|
|
-export const getFireLeaveMsgPagging = async (
|
|
|
- params: PaggingReq<{ projectId: string }>
|
|
|
-) =>
|
|
|
- (await axios.get(getMessageList, { params }))
|
|
|
- .data as PaggingRes<FireLeaveMsg>;
|
|
|
+export const getFireLeaveMsgPagging = async (params: PaggingReq<{ projectId: string }>) =>
|
|
|
+ (await axios.get(getMessageList, { params })).data as PaggingRes<FireLeaveMsg>;
|
|
|
|
|
|
-export const addFireLeaveMsg = (params: {
|
|
|
- content: string;
|
|
|
- projectId: string;
|
|
|
-}) => axios.post(insertMessage, params);
|
|
|
+export const addFireLeaveMsg = (params: { content: string; projectId: string }) =>
|
|
|
+ axios.post(insertMessage, params);
|