You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/drawer-htmlroot/services/wellRecommandService.ts

58 lines
1.5 KiB
TypeScript

1 month ago
import { apiClient } from '../utils/apiClient';
1 month ago
1 month ago
/**
*
* @returns
*/
export const getWellRecommendList = async () => {
1 month ago
return apiClient(`/SmartWellSuggest/getlist`, {
method: "GET",
});
1 month ago
}
/**
* Id,Id
* @param {string} checkIds
* @returns
*/
export function deleteWellRecommendRecords(strToken: string, checkIds: string) {
1 month ago
console.log("参数:", strToken, checkIds);
return apiClient(`/SmartWellSuggest/delrecords?strToken=${strToken}&checkedIds=${checkIds}`, {
method: "POST"
});
1 month ago
}
export const fractureFileList = async () => {
1 month ago
return apiClient('/SmartWellSuggest/fractureFileList', {
method: 'GET'
});
1 month ago
};
// 开始智能计算
export const startSmartWellCalc = async (smartWellParam: any) => {
1 month ago
console.log("请求参数:", smartWellParam);
return apiClient('/SmartWellSuggest/smartwellcalc', {
method: 'POST',
body: JSON.stringify(smartWellParam)
});
1 month ago
};
// 停止智能计算
export const stopSmartWellCalc = async (drawerId: string) => {
1 month ago
console.log("stopSmartWellCalc 请求参数:", drawerId);
return apiClient(`/SmartWellSuggest/smartwellstop?drawerId=${drawerId}`, {
method: 'GET'
});
1 month ago
};
/**
*
* @param {*} id id
* @returns
*/
export const getWellRecommend = async (id: string) => {
1 month ago
return apiClient(`/SmartWellSuggest/getwellrecorddetail?id=${id}`, {
method: "GET",
});
1 month ago
}