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

perf: CITY_SERVICE

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