|
@@ -240,7 +240,7 @@ export const getPointTimeSeries = async (params: PointTimeSeriesQuery, pointId:
|
|
|
|
|
|
// 字典类型表
|
|
|
export const getDictTypeData = async (params: DictTypeDataParams) => {
|
|
|
- const data = await request<DictTypeData[]>(apiSys('/sysDictType/typeAndData/', params));
|
|
|
+ const data = await request<DictTypeData[]>(apiSys('/sysDictType/typeAndData', params));
|
|
|
return data;
|
|
|
};
|
|
|
|
|
@@ -662,7 +662,7 @@ export const uploadUserProtocol = async (protocolType: string, file: Blob) => {
|
|
|
formData.append('file', file);
|
|
|
|
|
|
const data = await request<Pick<ProtocolBaseInfo, 'id' | 'protocolName' | 'protocolType'>>(
|
|
|
- apiBiz('/protocolBaseInfo/uploadUserTemplate/', { protocolType }),
|
|
|
+ apiBiz('/protocolBaseInfo/uploadUserTemplate', { protocolType }),
|
|
|
{
|
|
|
method: 'POST',
|
|
|
body: formData,
|
|
@@ -677,7 +677,7 @@ export const reUploadUserProtocol = async (protocolType: string, id: number, fil
|
|
|
formData.append('file', file);
|
|
|
|
|
|
const data = await request<Pick<ProtocolBaseInfo, 'id' | 'protocolName' | 'protocolType'>>(
|
|
|
- apiBiz('/protocolBaseInfo/resetConfiguration/', { protocolType, id }),
|
|
|
+ apiBiz('/protocolBaseInfo/resetConfiguration', { protocolType, id }),
|
|
|
{
|
|
|
method: 'POST',
|
|
|
body: formData,
|
|
@@ -688,7 +688,7 @@ export const reUploadUserProtocol = async (protocolType: string, id: number, fil
|
|
|
};
|
|
|
|
|
|
export const downloadUserProtocol = async (id: number) => {
|
|
|
- const blob = await request<Blob>(apiBiz('/protocolBaseInfo/downloadUserProtocol/', { id }));
|
|
|
+ const blob = await request<Blob>(apiBiz('/protocolBaseInfo/downloadUserProtocol', { id }));
|
|
|
return blob;
|
|
|
};
|
|
|
|
|
@@ -697,7 +697,7 @@ export const downloadUserProtocol = async (id: number) => {
|
|
|
*/
|
|
|
export const getUploadProtocol = async (protocolType: string, protocolName: string) => {
|
|
|
const data = await request<ProtocolBaseInfo>(
|
|
|
- apiBiz('/protocolBaseInfo/findUploadProtocolBaseInfo/', {
|
|
|
+ apiBiz('/protocolBaseInfo/findUploadProtocolBaseInfo', {
|
|
|
protocolType,
|
|
|
protocolName,
|
|
|
}),
|