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.
58 lines
1.5 KiB
TypeScript
58 lines
1.5 KiB
TypeScript
import { apiClient } from '../utils/apiClient';
|
|
|
|
|
|
/**
|
|
*
|
|
* @returns 获取所有智能布井计算结果列表
|
|
*/
|
|
export const getWellRecommendList = async () => {
|
|
return apiClient(`/SmartWellSuggest/getlist`, {
|
|
method: "GET",
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 根据选中的智能布井计算结果Id删除数据,以逗号连接多个Id
|
|
* @param {string} checkIds
|
|
* @returns
|
|
*/
|
|
export function deleteWellRecommendRecords(strToken: string, checkIds: string) {
|
|
console.log("参数:", strToken, checkIds);
|
|
return apiClient(`/SmartWellSuggest/delrecords?strToken=${strToken}&checkedIds=${checkIds}`, {
|
|
method: "POST"
|
|
});
|
|
}
|
|
|
|
export const fractureFileList = async () => {
|
|
return apiClient('/SmartWellSuggest/fractureFileList', {
|
|
method: 'GET'
|
|
});
|
|
};
|
|
|
|
// 开始智能计算
|
|
export const startSmartWellCalc = async (smartWellParam: any) => {
|
|
console.log("请求参数:", smartWellParam);
|
|
return apiClient('/SmartWellSuggest/smartwellcalc', {
|
|
method: 'POST',
|
|
body: JSON.stringify(smartWellParam)
|
|
});
|
|
};
|
|
|
|
// 停止智能计算
|
|
export const stopSmartWellCalc = async (drawerId: string) => {
|
|
console.log("stopSmartWellCalc 请求参数:", drawerId);
|
|
return apiClient(`/SmartWellSuggest/smartwellstop?drawerId=${drawerId}`, {
|
|
method: 'GET'
|
|
});
|
|
};
|
|
|
|
/**
|
|
*
|
|
* @param {*} id 根据id获取井推荐详情
|
|
* @returns
|
|
*/
|
|
export const getWellRecommend = async (id: string) => {
|
|
return apiClient(`/SmartWellSuggest/getwellrecorddetail?id=${id}`, {
|
|
method: "GET",
|
|
});
|
|
} |