Commit 45f5d5fa authored by 沈翠玲's avatar 沈翠玲

加上请求前缀

parent b019bc9c
......@@ -9,6 +9,7 @@ import routes from './routes';
const { REACT_APP_ENV } = process.env;
export default defineConfig({
history: { type: 'hash' },
hash: true,
antd: {},
dva: {
......@@ -47,6 +48,7 @@ export default defineConfig({
title: false,
ignoreMomentLocale: true,
proxy: proxy[REACT_APP_ENV || 'dev'],
publicPath: './',
manifest: {
basePath: '/',
},
......
......@@ -12,9 +12,9 @@ const Settings: LayoutSettings & {
fixedHeader: false,
fixSiderbar: true,
colorWeak: false,
title: '希迈看板',
title: '看板系统',
pwa: false,
logo: '/logo.png',
logo: 'logo.png',
iconfontUrl: '',
};
......
......@@ -75,8 +75,9 @@ const authHeaderInterceptor: RequestInterceptor = (url, options) => {
};
if (token) {
}
const prefix = process.env.NODE_ENV === 'development' ? '/api' : 'http://192.168.222.60:8088'
return {
url,
url: prefix + url,
options: {
...options,
headers: {
......
export default {
'pages.layouts.userLayout.main': '希迈看板',
'pages.layouts.userLayout.main': '看板系统',
'pages.layouts.userLayout.title': '讓艾特成為受人尊敬的航空發動機零部件生產企業',
'pages.welcome.speech': '歡迎登陸希迈看板',
'pages.welcome.speech': '歡迎登陸看板系统',
'pages.login.success': '登錄成功!',
'pages.login.failure': '登錄失敗,請重試!',
......
......@@ -11,7 +11,7 @@ const Welcome: React.FC = () => {
<Alert
message={intl.formatMessage({
id: 'pages.welcome.speech',
defaultMessage: '欢迎登陆希迈看板系统',
defaultMessage: '欢迎登陆看板系统',
})}
type="success"
showIcon
......
......@@ -22,7 +22,7 @@
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<title>希迈看板</title>
<title>看板系统</title>
<link rel="icon" href="<%= context.config.publicPath +'logo.png'%>" type="image/x-icon" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
......@@ -231,7 +231,7 @@
width="32"
style="margin-right: 8px"
/>
希迈看板
看板系统
</div>
</div>
</div>
......
......@@ -47,7 +47,7 @@ export async function queryProductionProgressKanbanDetail(body: {
}) {
return request<
Api.ServiceResult<{ lotNo: string; plannedEndDate: string; actualEndDate: string }[]>
>('/api/productionProgressKanban/detail', {
>('/productionProgressKanban/detail', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -48,7 +48,7 @@ export async function queryQPStatisIndex(data: CommonParams) {
}
export async function queryQPStatisTableIndex(data: CommonParams) {
return request<Api.ServiceResult<StatisTableDto>>('/api/qiPingProcessData/statisTableIndex', {
return request<Api.ServiceResult<StatisTableDto>>('/qiPingProcessData/statisTableIndex', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -8,7 +8,7 @@ type ReqWrokUnit = {
};
export async function queryCKKanbanSetting() {
return request<Api.ServiceResult<SettingDto[]>>('/api/chouKongProcessKanbanSetting/list', {
return request<Api.ServiceResult<SettingDto[]>>('/chouKongProcessKanbanSetting/list', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -59,7 +59,7 @@ const formatOptions = (data: any) => {
},
{
offset: 0,
color: '#7bb249',
color: '#d1040a',
},
],
global: false, // 缺省为 false
......
......@@ -45,7 +45,7 @@ export async function queryProductionComprehensKanbanData() {
}
export async function queryProductionComprehensProcessOutputData(body: ProcessOutputParams) {
return request<Api.ServiceResult<ProcessYieldData[]>>('/api/kanban/task/currentMonthStat', {
return request<Api.ServiceResult<ProcessYieldData[]>>('/kanban/task/currentMonthStat', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -57,7 +57,7 @@ export async function queryProductionComprehensProcessOutputData(body: ProcessOu
// 质量异常
export async function currentMonthStat(body: { settingId: string }) {
return request<Api.ServiceResult<ComprehensiveDataCount>>(
'/api/kanban/abnormal/currentMonthStat',
'/kanban/abnormal/currentMonthStat',
{
method: 'POST',
headers: {
......@@ -273,7 +273,7 @@ export async function queryPlanQuantityPenetratingByKanban(body: { kanbanSetting
export async function queryMonthPlanRateData(body: { settingId: string }) {
return request<
Api.ServiceResult<{ currentMonthRate: ChartData[]; beforeMonthRate: ChartData[] }>
>('/api/workOrderMonthlyIndexData/statisticMonthPlanIndexAllYear', {
>('/workOrderMonthlyIndexData/statisticMonthPlanIndexAllYear', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -40,7 +40,7 @@ export async function queryProductionComprehensKanbanData() {
}
export async function queryProductionComprehensProcessOutputData(body: ProcessOutputParams) {
return request<Api.ServiceResult<ProcessYieldData[]>>('/api/processYieldData1/kanbanData', {
return request<Api.ServiceResult<ProcessYieldData[]>>('/processYieldData1/kanbanData', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -87,7 +87,7 @@ export async function queryComprehensiveDeviceEcpData(body: { settingId: string
}
// 生产异常
export async function queryComprehensiveProdEcpData(body: { settingId: string }) {
return request<Api.ServiceResult<ComprehensiveDataCount>>('/api/comprehensiveProdEcpData/count', {
return request<Api.ServiceResult<ComprehensiveDataCount>>('/comprehensiveProdEcpData/count', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -110,7 +110,7 @@ export async function queryComprehensiveQualityEcpData(body: { settingId: string
}
// 焊接通过率
export async function queryCountWeldingPassRate(body: { settingId: string }) {
return request<Api.ServiceResult<CountWeldingPassRate>>('/api/batchInfo/countWeldingPassRate', {
return request<Api.ServiceResult<CountWeldingPassRate>>('/batchInfo/countWeldingPassRate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export type CountHjKanbanDataDto = {
};
export async function queryHjKanbanSetting() {
return request<Api.ServiceResult<WeldingProcessSetting[]>>('/api/hjKanbanSetting/query', {
return request<Api.ServiceResult<WeldingProcessSetting[]>>('/hjKanbanSetting/query', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -22,7 +22,7 @@ export async function queryHjKanbanSetting() {
}
export async function queryCountHjKanbanData(params: { settingId: string }) {
return request<Api.ServiceResult<CountHjKanbanDataDto>>('/api/hjKanbanData/countHjKanbanData', {
return request<Api.ServiceResult<CountHjKanbanDataDto>>('/hjKanbanData/countHjKanbanData', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -36,7 +36,7 @@ export async function queryHFChangedInfoDataDto(
params: { kanbanSettingId: string; type: number },
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<HFChangedInfoDataDto[]>>('/api/hfChangedInfoData/find', {
return request<Api.ServiceResult<HFChangedInfoDataDto[]>>('/hfChangedInfoData/find', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -83,9 +83,9 @@ const Login: React.FC = () => {
<div className={styles.top}>
<div className={styles.header}>
<Link to="/">
<img alt="logo" className={styles.logo} src="/logo.png" />
<img alt="logo" className={styles.logo} src="logo.png" />
<span className={styles.title}>
<FormattedMessage id="pages.layouts.userLayout.main" defaultMessage="希迈看板" />
<FormattedMessage id="pages.layouts.userLayout.main" defaultMessage="看板系统" />
</span>
</Link>
</div>
......
......@@ -3,7 +3,7 @@
import { request } from '@@/plugin-request/request';
export async function graphql(body: Common.GraphqlParams, options?: { [key: string]: any }) {
return request<Common.GraphqlResult>('/api/graphql', {
return request<Common.GraphqlResult>('/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -84,7 +84,7 @@ export async function create(
body: KANBAN.Settings.GaoYaProcessStandardDailyDataCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/gaoYaProcessStandardDailyData/create', {
return request<Common.ServiceResult<string>>('/gaoYaProcessStandardDailyData/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -103,7 +103,7 @@ export async function update(
body: KANBAN.Settings.GaoYaProcessStandardDailyDataUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/gaoYaProcessStandardDailyData/update', {
return request<Common.ServiceResult<string>>('/gaoYaProcessStandardDailyData/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -10,7 +10,7 @@ import * as gaoYaProcessStandardDailyDataService from './gaoYaProcessStandardDai
import * as updatePwdService from './updatePwdService';
export async function graphql(body: Common.GraphqlParams, options?: { [key: string]: any }) {
return request<Common.GraphqlResult>('/api/graphql', {
return request<Common.GraphqlResult>('/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -84,7 +84,7 @@ export async function create(
body: KANBAN.Settings.ProcessDefectRatioDatumCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/processDefectRatioDatum/create', {
return request<Common.ServiceResult<string>>('/processDefectRatioDatum/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -103,7 +103,7 @@ export async function update(
body: KANBAN.Settings.ProcessDefectRatioDatumUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/processDefectRatioDatum/update', {
return request<Common.ServiceResult<string>>('/processDefectRatioDatum/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -84,7 +84,7 @@ export async function create(
body: KANBAN.Settings.ProcessYieldStandDailyDataCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/processYieldStandDailyData/create', {
return request<Common.ServiceResult<string>>('/processYieldStandDailyData/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -103,7 +103,7 @@ export async function update(
body: KANBAN.Settings.ProcessYieldStandDailyDataUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/processYieldStandDailyData/update', {
return request<Common.ServiceResult<string>>('/processYieldStandDailyData/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export async function pageProductProgressKanbanSetting(
) {
return request<
Api.ServiceResult<Api.PageResult<KANBAN.Settings.ProductProgressKanbanSettingDto>>
>('/api/productProgressKanbanSetting/page', {
>('/productProgressKanbanSetting/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -32,7 +32,7 @@ export async function create(
body: KANBAN.Settings.ProductProgressKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productProgressKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/productProgressKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function update(
body: KANBAN.Settings.ProductProgressKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productProgressKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/productProgressKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export async function pageProductionProgressKanbanSetting(
) {
return request<
Api.ServiceResult<Api.PageResult<KANBAN.Settings.ProductionProgressKanbanSettingDto>>
>('/api/productionProgressKanbanSetting/page', {
>('/productionProgressKanbanSetting/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -32,7 +32,7 @@ export async function create(
body: KANBAN.Settings.ProductionProgressKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productionProgressKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/productionProgressKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function update(
body: KANBAN.Settings.ProductionProgressKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productionProgressKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/productionProgressKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -80,7 +80,7 @@ export async function create(
body: KANBAN.Settings.QiPingDayNumberCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/qiPingDayNumber/create', {
return request<Common.ServiceResult<string>>('/qiPingDayNumber/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -99,7 +99,7 @@ export async function update(
body: KANBAN.Settings.QiPingDayNumberUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/qiPingDayNumber/update', {
return request<Common.ServiceResult<string>>('/qiPingDayNumber/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -7,7 +7,7 @@ import { request } from 'umi';
* @param options
*/
export async function updatePwd(body: FormData, options?: { [key: string]: any }) {
return request<Common.ServiceResult<string>>('/api/updateMesPwd', {
return request<Common.ServiceResult<string>>('/updateMesPwd', {
method: 'POST',
data: body,
...(options || {}),
......
......@@ -6,7 +6,7 @@ import { Modal } from 'antd';
export async function login(body: Api.LoginMgrParams, options?: { [key: string]: any }) {
localStorage.removeItem('token');
const resData = request<Api.LoginResult>('/api/login', {
const resData = request<Api.LoginResult>('/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -19,7 +19,7 @@ export async function login(body: Api.LoginMgrParams, options?: { [key: string]:
}
export async function logout(options?: { [key: string]: any }) {
const res = await request<Api.ServiceResult<null>>('/api/logout', {
const res = await request<Api.ServiceResult<null>>('/logout', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -31,7 +31,7 @@ export async function logout(options?: { [key: string]: any }) {
}
export async function currentUser(options?: { [key: string]: any }) {
return request<Api.CurrentUser>('/api/getInfo', {
return request<Api.CurrentUser>('/getInfo', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
......@@ -41,7 +41,7 @@ export async function currentUser(options?: { [key: string]: any }) {
}
export async function currentAccount(options?: { [key: string]: any }) {
return request<Api.ServiceResult<Api.CurrentAccount>>('/api/currentAccount', {
return request<Api.ServiceResult<Api.CurrentAccount>>('/currentAccount', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function currentAccount(options?: { [key: string]: any }) {
}
export async function updatePwd(body: { [key: string]: any }, options?: { [key: string]: any }) {
return request<Api.ServiceResult<Api.CurrentUser>>('/api/updatePwd', {
return request<Api.ServiceResult<Api.CurrentUser>>('/updatePwd', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -62,7 +62,7 @@ export async function updatePwd(body: { [key: string]: any }, options?: { [key:
}
export async function token(options?: { [key: string]: any }) {
return request<Api.ServiceResult<Api.LoginResult>>('/api/token', {
return request<Api.ServiceResult<Api.LoginResult>>('/token', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -72,7 +72,7 @@ export async function token(options?: { [key: string]: any }) {
}
export async function graphql(body: Api.GraphqlParams, options?: { [key: string]: any }) {
return request<Api.GraphqlResult>('/api/graphql', {
return request<Api.GraphqlResult>('/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -83,7 +83,7 @@ export async function graphql(body: Api.GraphqlParams, options?: { [key: string]
}
export async function create(entityName: string, body: any, options?: { [key: string]: any }) {
return request<Api.ServiceResult<null>>(`/api/${entityName}/create`, {
return request<Api.ServiceResult<null>>(`/${entityName}/create`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -94,7 +94,7 @@ export async function create(entityName: string, body: any, options?: { [key: st
}
export async function update(entityName: string, body: any, options?: { [key: string]: any }) {
return request<Api.ServiceResult<null>>(`/api/${entityName}/update`, {
return request<Api.ServiceResult<null>>(`/${entityName}/update`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -109,7 +109,7 @@ export async function importExcel(
body: FormData,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<null>>(`/api/${entityName}/excel/import`, {
return request<Api.ServiceResult<null>>(`/${entityName}/excel/import`, {
method: 'POST',
data: body,
skipErrorHandler: true,
......@@ -131,7 +131,7 @@ export async function downloadImportExcelExample(
entityName: string,
options?: { [key: string]: any },
) {
return request<Blob>(`/api/${entityName}/excel/import/example`, {
return request<Blob>(`/${entityName}/excel/import/example`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -146,7 +146,7 @@ export async function remove(
body: Api.RemoveDto,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<null>>(`/api/${entityName}/remove`, {
return request<Api.ServiceResult<null>>(`/${entityName}/remove`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -160,7 +160,7 @@ export async function updateEmployee(
body: Api.EmployeeUpdateParams,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<Api.EmployeeDto>>('/api/org/employee/update', {
return request<Api.ServiceResult<Api.EmployeeDto>>('/org/employee/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -174,7 +174,7 @@ export async function createSingleTable(
body: Api.SingleTableCreateParams,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<null>>('/api/qckcd/stb/create', {
return request<Api.ServiceResult<null>>('/qckcd/stb/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -188,7 +188,7 @@ export async function updateSingleTable(
body: Api.SingleTableUpdateParams,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<null>>('/api/qckcd/stb/update', {
return request<Api.ServiceResult<null>>('/qckcd/stb/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -199,7 +199,7 @@ export async function updateSingleTable(
}
export async function removeSingleTable(body: Api.RemoveDto, options?: { [key: string]: any }) {
return request<Api.ServiceResult<null>>('/api/qckcd/stb/remove', {
return request<Api.ServiceResult<null>>('/qckcd/stb/remove', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -213,7 +213,7 @@ export async function createSingleTableField(
body: Api.SingleTableFieldCreateParams,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<null>>('/api/qckcd/stb/fd/create', {
return request<Api.ServiceResult<null>>('/qckcd/stb/fd/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -227,7 +227,7 @@ export async function updateSingleTableField(
body: Api.SingleTableFieldUpdateParams,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<null>>('/api/qckcd/stb/fd/update', {
return request<Api.ServiceResult<null>>('/qckcd/stb/fd/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -241,7 +241,7 @@ export async function removeSingleTableField(
body: Api.RemoveDto,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<null>>('/api/qckcd/stb/fd/remove', {
return request<Api.ServiceResult<null>>('/qckcd/stb/fd/remove', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -253,7 +253,7 @@ export async function removeSingleTableField(
export async function getMenu(userName: string, options?: { [key: string]: any }) {
const resData = request<Api.ServiceResult<MenuDataItem[]>>(
`/api/getMenu?userName=${userName}&groupId=5`,
`/getMenu?userName=${userName}&groupId=5`,
{
method: 'GET',
headers: {
......@@ -267,7 +267,7 @@ export async function getMenu(userName: string, options?: { [key: string]: any }
}
export async function getPermission(userName: string, options?: { [key: string]: any }) {
const resData = request<Api.ServiceResult<string[]>>(`/api/getPermission?userName=${userName}`, {
const resData = request<Api.ServiceResult<string[]>>(`/getPermission?userName=${userName}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
......@@ -279,7 +279,7 @@ export async function getPermission(userName: string, options?: { [key: string]:
}
export async function queryRptOee(body: Api.RptOeeQueryParams, options?: { [key: string]: any }) {
return request<Api.ServiceResult<Api.RptOee[]>>('/api/report/queryrptoee', {
return request<Api.ServiceResult<Api.RptOee[]>>('/report/queryrptoee', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -293,7 +293,7 @@ export async function queryRptEquipmentOee(
body: Api.RptOeeQueryParams,
options?: { [key: string]: any },
) {
return request<Api.ServiceResult<Api.RptEquipmentOee[]>>('/api/report/queryrptequipmentoee', {
return request<Api.ServiceResult<Api.RptEquipmentOee[]>>('/report/queryrptequipmentoee', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export async function chouKongProcessKanbanSettingService(
) {
return request<
Api.ServiceResult<Api.PageResult<Report.Settings.ChouKongProcessKanbanSettingDto>>
>('/api/chouKongProcessKanbanSetting/page', {
>('/chouKongProcessKanbanSetting/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -32,7 +32,7 @@ export async function create(
body: Report.Settings.ChouKongProcessKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/chouKongProcessKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/chouKongProcessKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function update(
body: Report.Settings.ChouKongProcessKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/chouKongProcessKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/chouKongProcessKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -72,7 +72,7 @@ export async function create(
body: Report.Settings.DeviceTotalQuantityCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/deviceTotalQuantity/create', {
return request<Common.ServiceResult<string>>('/deviceTotalQuantity/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -91,7 +91,7 @@ export async function update(
body: Report.Settings.DeviceTotalQuantityUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/deviceTotalQuantity/update', {
return request<Common.ServiceResult<string>>('/deviceTotalQuantity/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -33,7 +33,7 @@ export async function create(
body: Report.Settings.GaoYaProcessDataCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/gaoYaProcessData/create', {
return request<Common.ServiceResult<string>>('/gaoYaProcessData/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -52,7 +52,7 @@ export async function update(
body: Report.Settings.GaoYaProcessDataUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/gaoYaProcessData/update', {
return request<Common.ServiceResult<string>>('/gaoYaProcessData/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -33,7 +33,7 @@ export async function create(
body: Report.Settings.GaoYaProcessKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/gaoYaProcessKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/gaoYaProcessKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -52,7 +52,7 @@ export async function update(
body: Report.Settings.GaoYaProcessKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/gaoYaProcessKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/gaoYaProcessKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -33,7 +33,7 @@ export async function create(
body: Report.Settings.HjKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/hjKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/hjKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -52,7 +52,7 @@ export async function update(
body: Report.Settings.HjKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/hjKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/hjKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -15,7 +15,7 @@ import * as gaoYaProcessDataService from '@/services/report/settings/gaoYaProces
import * as qiPingComprehensiveKanbanSettingService from '@/services/report/settings/qiPingComprehensiveKanbanSettingService';
export async function graphql(body: Common.GraphqlParams, options?: { [key: string]: any }) {
return request<Common.GraphqlResult>('/api/graphql', {
return request<Common.GraphqlResult>('/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export async function materialComprehensiveKanbanSetting(
) {
return request<
Api.ServiceResult<Api.PageResult<Report.Settings.MaterialComprehensiveKanbanSettingDto>>
>('/api/materialChKanbanSetting/page', {
>('/materialChKanbanSetting/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -32,7 +32,7 @@ export async function create(
body: Report.Settings.MaterialComprehensiveKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/materialChKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/materialChKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function update(
body: Report.Settings.MaterialComprehensiveKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/materialChKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/materialChKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -141,7 +141,7 @@ export async function create(
body: Report.Settings.MonthlyPlanCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/monthlyPlan/create', {
return request<Common.ServiceResult<string>>('/monthlyPlan/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -160,7 +160,7 @@ export async function update(
body: Report.Settings.MonthlyPlanUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/monthlyPlan/update', {
return request<Common.ServiceResult<string>>('/monthlyPlan/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export async function productionComprehensiveKanbanSettingService(
) {
return request<
Api.ServiceResult<Api.PageResult<Report.Settings.ProductionComprehensiveKanbanSettingDto>>
>('/api/productionComprehensiveKanbanSetting/page', {
>('/productionComprehensiveKanbanSetting/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -32,7 +32,7 @@ export async function create(
body: Report.Settings.ProductionComprehensiveKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productionComprehensiveKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/productionComprehensiveKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function update(
body: Report.Settings.ProductionComprehensiveKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productionComprehensiveKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/productionComprehensiveKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export async function pageProductionProgressKanbanSetting(
) {
return request<
Api.ServiceResult<Api.PageResult<Report.Settings.ProductionProgressKanbanSettingDto>>
>('/api/productionProgressKanbanSetting/page', {
>('/productionProgressKanbanSetting/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -32,7 +32,7 @@ export async function create(
body: Report.Settings.ProductionProgressKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productionProgressKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/productionProgressKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function update(
body: Report.Settings.ProductionProgressKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/productionProgressKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/productionProgressKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -13,7 +13,7 @@ export async function qiPingComprehensiveKanbanSettingService(
) {
return request<
Api.ServiceResult<Api.PageResult<Report.Settings.QiPingComprehensiveKanbanSettingDto>>
>('/api/qiPingComprehensiveKanbanSetting/page', {
>('/qiPingComprehensiveKanbanSetting/page', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -32,7 +32,7 @@ export async function create(
body: Report.Settings.QiPingComprehensiveKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/qiPingComprehensiveKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/qiPingComprehensiveKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -51,7 +51,7 @@ export async function update(
body: Report.Settings.QiPingComprehensiveKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/qiPingComprehensiveKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/qiPingComprehensiveKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -33,7 +33,7 @@ export async function create(
body: Report.Settings.QiPingProcessKanbanSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/qiPingProcessKanbanSetting/create', {
return request<Common.ServiceResult<string>>('/qiPingProcessKanbanSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -52,7 +52,7 @@ export async function update(
body: Report.Settings.QiPingProcessKanbanSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/qiPingProcessKanbanSetting/update', {
return request<Common.ServiceResult<string>>('/qiPingProcessKanbanSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
......@@ -168,7 +168,7 @@ export async function create(
body: Report.Settings.ReportOperationSettingCreate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/reportOperationSetting/create', {
return request<Common.ServiceResult<string>>('/reportOperationSetting/create', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......@@ -187,7 +187,7 @@ export async function update(
body: Report.Settings.ReportOperationSettingUpdate,
options?: { [key: string]: any },
) {
return request<Common.ServiceResult<string>>('/api/reportOperationSetting/update', {
return request<Common.ServiceResult<string>>('/reportOperationSetting/update', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment