Commit 585aa752 authored by 陈前坚's avatar 陈前坚

perf: CITY_SERVICE

parent db78c080
......@@ -12,7 +12,7 @@ import {
notification,
message,
} from 'antd';
import { get } from '@/services';
import { get, CITY_SERVICE } from '@/services';
import { EditTwoTone, DeleteOutlined } from '@ant-design/icons';
import styles from './AppDic.less';
......@@ -100,7 +100,7 @@ const AppDic = () => {
}, []);
const getData = () => {
setLoading(true);
get(`/Cityinterface/rest/services/OMS.svc/M_GetKeyValue`, {
get(`${CITY_SERVICE}/OMS.svc/M_GetKeyValue`, {
_version: 9999,
_dc: new Date().getTime(),
})
......@@ -133,7 +133,7 @@ const AppDic = () => {
const value = addForm.getFieldValue('value');
const description = addForm.getFieldValue('description');
if (label && key && value) {
get(`/Cityinterface/rest/services/OMS.svc/M_AddKeyValue`, {
get(`${CITY_SERVICE}/OMS.svc/M_AddKeyValue`, {
_version: 9999,
_dc: new Date().getTime(),
label,
......@@ -167,7 +167,7 @@ const AppDic = () => {
};
// 提交-重置
const submitReset = () => {
get(`/Cityinterface/rest/services/OMS.svc/M_ResetKeyValue`, {
get(`${CITY_SERVICE}/OMS.svc/M_ResetKeyValue`, {
_version: 9999,
_dc: new Date().getTime(),
})
......@@ -195,7 +195,7 @@ const AppDic = () => {
const value = editForm.getFieldValue('value');
const description = editForm.getFieldValue('description');
if (label && key && value) {
get(`/Cityinterface/rest/services/OMS.svc/M_EditKeyValue`, {
get(`${CITY_SERVICE}/OMS.svc/M_EditKeyValue`, {
_version: 9999,
_dc: new Date().getTime(),
id: select.id,
......@@ -230,7 +230,7 @@ const AppDic = () => {
};
const submitDelete = () => {
get(`/Cityinterface/rest/services/OMS.svc/M_DeleteKeyValue`, {
get(`${CITY_SERVICE}/OMS.svc/M_DeleteKeyValue`, {
_version: 9999,
_dc: new Date().getTime(),
key: select.Key,
......
......@@ -15,7 +15,7 @@ import {
Col,
} from 'antd';
import { EditTwoTone, DeleteOutlined } from '@ant-design/icons';
import { get } from '@/services';
import { get, CITY_SERVICE } from '@/services';
import styles from './WebDic.less';
const WebDic = () => {
......@@ -105,7 +105,7 @@ const WebDic = () => {
// 根据父节点nodeID(即parentID)获取数据,一级条目parentID = -1
const getData = value => {
setLoading(true);
get(`/Cityinterface/rest/services/OMS.svc/D_GetDataDictionaryList`, {
get(`${CITY_SERVICE}/OMS.svc/D_GetDataDictionaryList`, {
_version: 9999,
_dc: new Date().getTime(),
nodeID: value,
......@@ -156,7 +156,7 @@ const WebDic = () => {
const nodeName1 = addForm.getFieldValue('nodeName1');
const nodeValue = addForm.getFieldValue('nodeValue');
if (nodeName1) {
get(`/Cityinterface/rest/services/OMS.svc/D_AddDataDictionary`, {
get(`${CITY_SERVICE}/OMS.svc/D_AddDataDictionary`, {
_version: 9999,
_dc: new Date().getTime(),
nodeID: value,
......@@ -201,7 +201,7 @@ const WebDic = () => {
const nodeName1 = editForm.getFieldValue('nodeName1');
const nodeValue = editForm.getFieldValue('nodeValue');
if (nodeName1) {
get(`/Cityinterface/rest/services/OMS.svc/D_EditDataDictionary`, {
get(`${CITY_SERVICE}/OMS.svc/D_EditDataDictionary`, {
_version: 9999,
_dc: new Date().getTime(),
nodeID: select.nodeID,
......@@ -234,7 +234,7 @@ const WebDic = () => {
};
// 提交-删除
const submitDelete = () => {
get(`/Cityinterface/rest/services/OMS.svc/D_DeleteDataDictionary`, {
get(`${CITY_SERVICE}/OMS.svc/D_DeleteDataDictionary`, {
_version: 9999,
_dc: new Date().getTime(),
nodeID: select.nodeID,
......
......@@ -4,7 +4,7 @@ import PageContainer from '@/components/BasePageContainer';
import { connect } from 'react-redux';
import TestModal from './ModalComponent';
import ListCard from './ListCard';
import { get, post } from '../../services';
import { get, post, CITY_SERVICE } from '../../services';
import { orgGet, orgTest } from '../../services/orgnazation/api';
import styles from './DefaultComponent.less';
const { Search } = Input;
......@@ -121,7 +121,7 @@ const DefaultComponent = () => {
});
};
useEffect(() => {
get('/Cityinterface/rest/services/OMS.svc/U_GetOneOUUserListNew', {
get('${CITY_SERVICE}/OMS.svc/U_GetOneOUUserListNew', {
OUID: 24,
_version: 9999,
_dc: new Date().getTime(),
......
import React, { useState, useEffect, useCallback } from 'react';
import { Spin, Button } from 'antd';
import ListCardItem from './listCardItem';
import { get, post } from '../../services';
import { get, post, CITY_SERVICE } from '../../services';
import styles from './listCardItem.less';
const tip = 'loading...';
......@@ -30,8 +30,8 @@ const ListCard = props => {
title: '默认组',
id: '',
};
// /Cityinterface/rest/services/OMS.svc/U_GetUserListForBatchOper
get('/Cityinterface/rest/services/OMS.svc/P_GetUserByStation', {
// ${CITY_SERVICE}/OMS.svc/U_GetUserListForBatchOper
get(`${CITY_SERVICE}/OMS.svc/P_GetUserByStation`, {
// OUID:ouid||'',
stationID: ouid || '',
_version: 9999,
......
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