生成管道气上载点前端代码
This commit is contained in:
122
src/api/mdm/PipeGasDownloadPoint/index.ts
Normal file
122
src/api/mdm/PipeGasDownloadPoint/index.ts
Normal file
@ -0,0 +1,122 @@
|
||||
import { LngBStationPngPageModel, LngBStationPngPageParams, LngBStationPngPageResult } from './model/PipeGasDownloadPointModel';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
Page = '/mdm/pipeGasDownloadPoint/page',
|
||||
List = '/mdm/pipeGasDownloadPoint/list',
|
||||
Info = '/mdm/pipeGasDownloadPoint/info',
|
||||
LngBStationPng = '/mdm/pipeGasDownloadPoint',
|
||||
|
||||
|
||||
|
||||
Enable = '/mdm/pipeGasDownloadPoint/enable',
|
||||
Disable= '/mdm/pipeGasDownloadPoint/disable',
|
||||
|
||||
DataLog = '/mdm/pipeGasDownloadPoint/datalog',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询LngBStationPng分页列表
|
||||
*/
|
||||
export async function getLngBStationPngPage(params: LngBStationPngPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngBStationPngPageResult>(
|
||||
{
|
||||
url: Api.Page,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngBStationPng信息
|
||||
*/
|
||||
export async function getLngBStationPng(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngBStationPngPageModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 新增LngBStationPng
|
||||
*/
|
||||
export async function addLngBStationPng(lngBStationPng: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.LngBStationPng,
|
||||
params: lngBStationPng,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新LngBStationPng
|
||||
*/
|
||||
export async function updateLngBStationPng(lngBStationPng: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.put<boolean>(
|
||||
{
|
||||
url: Api.LngBStationPng,
|
||||
params: lngBStationPng,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除LngBStationPng(批量删除)
|
||||
*/
|
||||
export async function deleteLngBStationPng(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.delete<boolean>(
|
||||
{
|
||||
url: Api.LngBStationPng,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @description: 启用数据LngBStationPng
|
||||
*/
|
||||
export async function enableLngBStationPng(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.Enable,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @description: 作废数据LngBStationPng
|
||||
*/
|
||||
export async function disableLngBStationPng(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.Disable,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
|
||||
/**
|
||||
* @description: LngBStationPng分页参数 模型
|
||||
*/
|
||||
export interface LngBStationPngPageParams extends BasicPageParams {
|
||||
code: string;
|
||||
|
||||
fullName: string;
|
||||
|
||||
pipelineCode: string;
|
||||
|
||||
enterprise: string;
|
||||
|
||||
contact: string;
|
||||
|
||||
tel: string;
|
||||
|
||||
email: string;
|
||||
|
||||
regionCode: string;
|
||||
|
||||
addr: string;
|
||||
|
||||
addrMail: string;
|
||||
|
||||
ownSign: string;
|
||||
|
||||
staCodeLng: string;
|
||||
|
||||
ownLineSign: string;
|
||||
|
||||
sort: string;
|
||||
|
||||
valid: string;
|
||||
|
||||
note: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngBStationPng分页返回值模型
|
||||
*/
|
||||
export interface LngBStationPngPageModel {
|
||||
id: string;
|
||||
|
||||
code: string;
|
||||
|
||||
fullName: string;
|
||||
|
||||
pipelineCode: string;
|
||||
|
||||
enterprise: string;
|
||||
|
||||
contact: string;
|
||||
|
||||
tel: string;
|
||||
|
||||
email: string;
|
||||
|
||||
addr: string;
|
||||
|
||||
addrMail: string;
|
||||
|
||||
ownSign: string;
|
||||
|
||||
staCodeLng: string;
|
||||
|
||||
ownLineSign: string;
|
||||
|
||||
sort: string;
|
||||
|
||||
valid: string;
|
||||
|
||||
note: string;
|
||||
|
||||
regionCode: string;
|
||||
}
|
||||
|
||||
0;
|
||||
|
||||
/**
|
||||
* @description: LngBStationPng分页返回值结构
|
||||
*/
|
||||
export type LngBStationPngPageResult = BasicFetchResult<LngBStationPngPageModel>;
|
||||
122
src/api/mdm/PipelineGgasLine/index.ts
Normal file
122
src/api/mdm/PipelineGgasLine/index.ts
Normal file
@ -0,0 +1,122 @@
|
||||
import { LngBPngLinePageModel, LngBPngLinePageParams, LngBPngLinePageResult } from './model/PipelineGgasLineModel';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
Page = '/mdm/pipelineGgasLine/page',
|
||||
List = '/mdm/pipelineGgasLine/list',
|
||||
Info = '/mdm/pipelineGgasLine/info',
|
||||
LngBPngLine = '/mdm/pipelineGgasLine',
|
||||
|
||||
|
||||
|
||||
Enable = '/mdm/pipelineGgasLine/enable',
|
||||
Disable= '/mdm/pipelineGgasLine/disable',
|
||||
|
||||
DataLog = '/mdm/pipelineGgasLine/datalog',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询LngBPngLine分页列表
|
||||
*/
|
||||
export async function getLngBPngLinePage(params: LngBPngLinePageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngBPngLinePageResult>(
|
||||
{
|
||||
url: Api.Page,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngBPngLine信息
|
||||
*/
|
||||
export async function getLngBPngLine(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngBPngLinePageModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 新增LngBPngLine
|
||||
*/
|
||||
export async function addLngBPngLine(lngBPngLine: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.LngBPngLine,
|
||||
params: lngBPngLine,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新LngBPngLine
|
||||
*/
|
||||
export async function updateLngBPngLine(lngBPngLine: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.put<boolean>(
|
||||
{
|
||||
url: Api.LngBPngLine,
|
||||
params: lngBPngLine,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除LngBPngLine(批量删除)
|
||||
*/
|
||||
export async function deleteLngBPngLine(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.delete<boolean>(
|
||||
{
|
||||
url: Api.LngBPngLine,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @description: 启用数据LngBPngLine
|
||||
*/
|
||||
export async function enableLngBPngLine(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.Enable,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @description: 作废数据LngBPngLine
|
||||
*/
|
||||
export async function disableLngBPngLine(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.Disable,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
83
src/api/mdm/PipelineGgasLine/model/PipelineGgasLineModel.ts
Normal file
83
src/api/mdm/PipelineGgasLine/model/PipelineGgasLineModel.ts
Normal file
@ -0,0 +1,83 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
|
||||
/**
|
||||
* @description: LngBPngLine分页参数 模型
|
||||
*/
|
||||
export interface LngBPngLinePageParams extends BasicPageParams {
|
||||
fullName: string;
|
||||
|
||||
valid: string;
|
||||
|
||||
code: string;
|
||||
|
||||
ownSign: string;
|
||||
|
||||
staCodeLng: string;
|
||||
|
||||
sort: string;
|
||||
|
||||
note: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngBPngLine分页返回值模型
|
||||
*/
|
||||
export interface LngBPngLinePageModel {
|
||||
id: string;
|
||||
|
||||
code: string;
|
||||
|
||||
fullName: string;
|
||||
|
||||
ownSign: string;
|
||||
|
||||
staCodeLng: string;
|
||||
|
||||
valid: string;
|
||||
|
||||
note: string;
|
||||
|
||||
sort: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngBPngLine表类型
|
||||
*/
|
||||
export interface LngBPngLineModel {
|
||||
id: number;
|
||||
|
||||
code: string;
|
||||
|
||||
fullName: string;
|
||||
|
||||
ownSign: string;
|
||||
|
||||
staCodeLng: string;
|
||||
|
||||
sort: number;
|
||||
|
||||
valid: string;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
deleteMark: number;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngBPngLine分页返回值结构
|
||||
*/
|
||||
export type LngBPngLinePageResult = BasicFetchResult<LngBPngLinePageModel>;
|
||||
Reference in New Issue
Block a user