Commit 99f009dd authored by 邓超's avatar 邓超

fix: 整理service文件夹

parent 0b437a73
......@@ -6,7 +6,7 @@ import {
exetent2AmapPoint,
lngLat2WebMercator,
} from '@/utils/transformUtil';
import { GetAllConfig, GetMetaData } from '@/services/platform/gis';
import { GetAllConfig, GetMetaData } from '@/services/gis/gis';
const { Search } = Input;
import styles from './index.less';
const MapScope = props => {
......
import React, { useEffect, useState, useRef } from 'react'
import { Input, Button, Modal, message } from 'antd'
import { gcj_decrypt, exetent2AmapPoint, lngLat2WebMercator } from '@/utils/transformUtil'
import { GetAllConfig, GetMetaData } from '@/services/platform/gis'
import { GetAllConfig, GetMetaData } from '@/services/gis/gis'
import {
PdRender,
Cesium,
......
......@@ -31,20 +31,11 @@ export default function configureStore(initialState = {}, history) {
const sagaMiddleware = createSagaMiddleware(reduxSagaMonitorOptions);
const middlewares = [
sagaMiddleware,
routerMiddleware(history),
logger,
thunk,
];
const middlewares = [sagaMiddleware, routerMiddleware(history), logger, thunk];
const enhancers = [applyMiddleware(...middlewares)];
const store = createStore(
createReducer(),
initialState,
composeEnhancers(...enhancers),
);
const store = createStore(createReducer(), initialState, composeEnhancers(...enhancers));
// Extensions
store.runSaga = sagaMiddleware.run;
......
......@@ -2,7 +2,7 @@
import React, { useState, useEffect } from 'react';
import { Form, Input, Select, Tooltip, Button, notification, Drawer, Space } from 'antd';
import { PlusOutlined, InfoCircleOutlined } from '@ant-design/icons';
import { LoadEventFields } from '@/services/platform/bs';
import { LoadEventFields } from '@/services/tablemanager/tablemanager';
import {
GetCM_Ledger_LoadLedgerTable,
GetCMLedger_QueryLedgers,
......
......@@ -3,7 +3,7 @@ import { Form, Modal, Input, Select, Checkbox, Divider, notification, Row } from
import {
createTable, loadTableFields, addFields
} from '@/services/platform/bs'
} from '@/services/tablemanager/tablemanager'
import styles from './index.less'
const { Option } = Select;
......
import React, { useState, useEffect } from 'react';
import { Form, Modal, Input, Select, Checkbox, notification, Card } from 'antd';
import { loadTableFields, addTables, addFields } from '@/services/platform/bs';
import { loadTableFields, addTables, addFields } from '@/services/tablemanager/tablemanager';
import styles from './index.less';
const CheckboxGroup = Checkbox.Group;
import qs from 'qs';
......
import React, { useState, useEffect } from 'react';
import { Form, Modal, Input, Radio, notification } from 'antd';
import { getTableInfo, updateTable } from '@/services/platform/bs';
import { getTableInfo, updateTable } from '@/services/tablemanager/tablemanager';
const AddModal = props => {
const { callBackSubmit = () => {}, type, formObj, visible } = props;
......
import React, { useState, useEffect, useRef } from 'react';
import { Modal, Spin, Table, Button, Divider, Input, notification } from 'antd';
import classnames from 'classnames'
import { LoadFieldsByGroup, LoadGroup } from '@/services/platform/bs'
import { LoadFieldsByGroup, LoadGroup } from '@/services/tablemanager/tablemanager'
import { PlusOutlined, DeleteOutlined } from '@ant-design/icons';
import Sortable from 'sortablejs';
import styles from './index.less'
import {
ChangeOrder
} from '@/services/platform/bs'
} from '@/services/tablemanager/tablemanager'
import { DataRegion } from 'bizcharts/lib/components/Annotation';
import { Number } from 'core-js';
let list = {}
......
......@@ -7,7 +7,7 @@ import {
LoadFieldsByGroup,
LoadGroup,
ChangeOrder,
} from '@/services/platform/bs';
} from '@/services/tablemanager/tablemanager';
import DraggableBodyRow from './DraggableBodyRow';
import styles from './index.less';
const LoadGroupNew = props => {
......
......@@ -2,7 +2,7 @@ import React, { useState, useEffect, useCallback, useRef } from 'react';
import { Form, Modal, Space, Divider, Radio, Checkbox } from 'antd';
import {
} from '@/services/platform/bs'
} from '@/services/tablemanager/tablemanager'
import styles from './index.less'
import Sortable from 'sortablejs';
const CheckboxGroup = Checkbox.Group;
......
......@@ -19,7 +19,7 @@ import {
LoadEventFields,
LoadEventType,
UpdateFields,
} from '@/services/platform/bs';
} from '@/services/tablemanager/tablemanager';
import styles from './index.less';
import ChangeAdd from './changeAdd';
import VerifyModal from './VerifyModal';
......
......@@ -7,7 +7,7 @@ import {
PlusSquareOutlined,
RollbackOutlined,
} from '@ant-design/icons';
import { reloadTableFields, removeFields, loadUnattachedTables } from '@/services/platform/bs';
import { reloadTableFields, removeFields, loadUnattachedTables } from '@/services/tablemanager/tablemanager';
import { useHistory } from 'react-router-dom';
import FieldEditor from './fieldEditor';
import styles from './index.less';
......
......@@ -28,7 +28,7 @@ import {
CM_Table_LoadTable,
removeTable,
loadUnattachedTables,
} from '@/services/platform/bs';
} from '@/services/tablemanager/tablemanager';
import styles from './index.less';
import Editor from './components/Field/editor';
import AddTablelList from './components/Field/addTable';
......
......@@ -52,7 +52,7 @@ import ChangeImage from './ChangeImage';
import ModalDrag from '../../maintenance/ModalDrag';
import { PlusOutlined, DownOutlined, InfoCircleOutlined } from '@ant-design/icons';
import { set } from 'immutable';
import { getRoleGroup } from '@/services/userCenter/roleManage/api';
import { getRoleGroup } from '@/services/RoleManage/api';
const { Option } = Select;
const AddModal = props => {
......
import React, { useEffect, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { reloadFlows, removeFlowExtend } from '@/services/platform/flow';
import { reloadFlows, removeFlowExtend } from '@/services/flow/flow';
import { Card, Space, Table, Popconfirm, Spin, Tooltip, notification, message, Button } from 'antd';
import {
RightOutlined,
......
import React, { useState, useEffect } from 'react';
import { flowReOrder } from '@/services/platform/flow';
import { flowReOrder } from '@/services/flow/flow';
import { Modal, notification } from 'antd';
import DragTable from '@/components/DragTable/DragTable';
const Order = props => {
......
import React, { useEffect } from 'react';
import { CMFlowGet, CMFlowPost } from '@/services/platform/flow';
import { CMFlowGet, CMFlowPost } from '@/services/flow/flow';
import { Form, Modal, Input, Radio, Select, notification } from 'antd';
const { Option } = Select;
const { TextArea } = Input;
......
import React, { useEffect, useState } from 'react';
import { reloadFlowTimers, removeFlowTimer } from '@/services/platform/flow';
import { reloadFlowTimers, removeFlowTimer } from '@/services/flow/flow';
import {
Table,
Modal,
......
......@@ -3,7 +3,7 @@ import {
flowReloadFlowNodes,
reloadTimeLimitadFlowNodes,
operateFlowTimer,
} from '@/services/platform/flow';
} from '@/services/flow/flow';
import { Form, Modal, Input, notification, Select } from 'antd';
const { Option } = Select;
......
import React, { useEffect, useState } from 'react';
import { useHistory } from 'react-router-dom';
import { reloadFlowNodes, removeFlowNodeExtend } from '@/services/platform/flow';
import { reloadFlowNodes, removeFlowNodeExtend } from '@/services/flow/flow';
import { Space, Table, Popconfirm, Tooltip, notification, message, Button, Spin } from 'antd';
import { RollbackOutlined, EditTwoTone, ControlOutlined, DeleteOutlined } from '@ant-design/icons';
import PageContainer from '@/components/BasePageContainer';
......
import React, { useEffect, useState } from 'react';
import { reloadFlowNodeExtendPages, removeFlowNodeExtendPage } from '@/services/platform/flow';
import { reloadFlowNodeExtendPages, removeFlowNodeExtendPage } from '@/services/flow/flow';
import {
Table,
Modal,
......
......@@ -6,7 +6,7 @@ import {
loadEventFields,
loadFeedbackType,
editFlowNodeExtend,
} from '@/services/platform/flow';
} from '@/services/flow/flow';
import {
Form,
......
import React, { useEffect } from 'react';
import { getFlowNodeExtendPage, operateFlowNodeExtendPage } from '@/services/platform/flow';
import { getFlowNodeExtendPage, operateFlowNodeExtendPage } from '@/services/flow/flow';
import { Form, Modal, Input, notification } from 'antd';
const ProcessConfig = props => {
......
import React, { useEffect, useState } from 'react';
import { WFGetAllFlow, GetFlowNode, DeleteFlow } from '@/services/platform/workflow';
import { WFGetAllFlow, GetFlowNode, DeleteFlow } from '@/services/workflow/workflow';
import { Card, Spin, Tooltip, notification, Empty, Modal } from 'antd';
import {
......
import React, { useState, useEffect } from 'react';
import { Button, Modal, notification, Spin } from 'antd';
import { SaveNodeChange, GetFlowNode } from '@/services/platform/workflow';
import { SaveNodeChange, GetFlowNode } from '@/services/workflow/workflow';
import { ExclamationCircleOutlined } from '@ant-design/icons';
import { Prompt } from 'react-router-dom';
......
import React, { useEffect } from 'react';
import { UpdateFlowGroup } from '@/services/platform/workflow';
import { UpdateFlowGroup } from '@/services/workflow/workflow';
import { Form, Modal, Input, notification } from 'antd';
const FlowGroupModal = props => {
......
import React, { useEffect } from 'react';
import { CreateFlow } from '@/services/platform/workflow';
import { CreateFlow } from '@/services/workflow/workflow';
import { Form, Modal, Input, notification, Select } from 'antd';
const { Option } = Select;
......
import React, { useEffect, useState } from 'react';
import { GetRoleUser } from '@/services/platform/workflow';
import { GetRoleUser } from '@/services/workflow/workflow';
import {
Form,
Modal,
......
......@@ -42,7 +42,7 @@ import styles from './WebDic.less';
import { useHistory, Link } from 'react-router-dom';
import map from '@/pages/user/login/components/Login/map';
import { GetMetaData } from '@/services/platform/gis';
import { GetMetaData } from '@/services/gis/gis';
import DragTable from '@/components/DragTable/DragTable';
const WebDic = () => {
......
......@@ -2,7 +2,7 @@ import React, { useEffect, useState, useRef } from 'react'
import SiteModal from '@/components/Modal/SiteModa';
import { Input, Cascader, Button, message, Spin } from 'antd'
import { gcj_decrypt, exetent2AmapPoint, lngLat2WebMercator, plan2AMapbound, webMercator2LngLat } from '@/utils/transformUtil'
import { GetAllConfig, GetMetaData } from '@/services/platform/gis'
import { GetAllConfig, GetMetaData } from '@/services/gis/gis'
import ReactJson from 'react-json-view'
import { tr } from 'voca';
const { Search } = Input;
......
......@@ -2,7 +2,7 @@ import React, { useEffect, useState, useRef } from 'react'
import SiteModal from '@/components/Modal/SiteModa';
import { Input, Cascader, Button, message, Spin } from 'antd'
import { gcj_decrypt, exetent2AmapPoint, lngLat2WebMercator, plan2AMapbound, webMercator2LngLat } from '@/utils/transformUtil'
import { GetAllConfig, GetMetaData } from '@/services/platform/gis'
import { GetAllConfig, GetMetaData } from '@/services/gis/gis'
import ReactJson from 'react-json-view'
import { tr } from 'voca';
const { Search } = Input;
......
......@@ -11,7 +11,7 @@ import {
GetTCPConfigInfo,
PingIOTPlatform,
SaveTcpAddress,
} from '@/services/platform/hostmanager';
} from '@/services/hostmanager/hostmanager';
const layout = {
labelCol: { span: 4 },
wrapperCol: { span: 20 },
......
......@@ -6,7 +6,7 @@ import {
GetTCPConfigInfo,
GetDataBaseConfig,
GetBasicInfo,
} from '@/services/platform/hostmanager';
} from '@/services/hostmanager/hostmanager';
import { VerticalAlignBottomOutlined } from '@ant-design/icons';
import servie from '../../../../assets/images/icons/服务器管理.svg';
import configuration from '../../../../assets/images/icons/站点配置.svg';
......
import React, { useEffect, useState } from 'react';
import { Card, Form, Switch, message, Divider, Row, Col, Spin } from 'antd';
import styles from './gateWay.less';
import { GetGateWay, UpdateGeteWay } from '@/services/platform/hostmanager';
import { GetGateWay, UpdateGeteWay } from '@/services/hostmanager/hostmanager';
import configuration from '../../../../assets/images/icons/消息.svg';
const GateConfig = () => {
......
......@@ -7,7 +7,7 @@ import {
ConnectMessPlatform,
GetBasicInfo,
GetDataBaseConfig,
} from '@/services/platform/hostmanager';
} from '@/services/hostmanager/hostmanager';
import message11 from '../../../../assets/images/icons/消息.svg';
import Yes from '../../../../assets/images/icons/正确.svg';
import { CloseCircleFilled } from '@ant-design/icons';
......
......@@ -9,7 +9,7 @@ import {
ReloadNginx,
NginxCache,
NginxLog,
} from '@/services/platform/hostmanager';
} from '@/services/hostmanager/hostmanager';
import { ReloadOutlined } from '@ant-design/icons';
import configuration from '../../../../assets/images/icons/消息.svg';
......
......@@ -33,7 +33,7 @@ import {
DeleteMessageConfig,
GetMsgTypeList,
DeleteIISAgentConfig,
} from '@/services/platform/messagemanage';
} from '@/services/messagemanage/messagemanage';
import styles from './ProjectManage.less';
const { Search } = Input;
const { Option } = Select;
......
......@@ -8,9 +8,9 @@ import styles from './EditModal.less';
import v from 'voca';
import VisibleRoleModal from './RolseSelect/VisibleRoleModal'
import VisibleIISAgentConfig from './IISAgentConfig/VisibleIISAgentConfig'
import { GetMessageTemplate } from '@/services/platform/messagemanage'
import { GetMessageTemplate } from '@/services/messagemanage/messagemanage'
import moment from 'moment'
import { UpdateMessageConfig, InsertMessageConfig, AddIISAgentConfig } from '@/services/platform/messagemanage'
import { UpdateMessageConfig, InsertMessageConfig, AddIISAgentConfig } from '@/services/messagemanage/messagemanage'
const { Item } = Form;
......
import React, { useState, useEffect, useCallback } from 'react';
import { Modal, Input, Button, message, Spin, Pagination } from 'antd';
import { GetGroupUserTree, TestPush } from '@/services/platform/messagemanage';
import { GetGroupUserTree, TestPush } from '@/services/messagemanage/messagemanage';
import styles from './PushTest.less';
import DragTable from '@/components/DragTable/DragTable';
import CardCheck from './CardCheck';
......
import React, { useEffect, useState } from 'react';
import { Modal, Checkbox } from 'antd';
import { RoleGroupList } from '@/services/platform/messagemanage';
import { RoleGroupList } from '@/services/messagemanage/messagemanage';
import styles from './RoleModal.less';
const CheckboxGroup = Checkbox.Group;
......
......@@ -6,7 +6,7 @@ import { Checkbox, Input, Button, Modal } from 'antd';
import _ from 'lodash';
import classnames from 'classnames';
import { ManOutlined } from '@ant-design/icons';
import { RoleGroupList } from '@/services/platform/messagemanage';
import { RoleGroupList } from '@/services/messagemanage/messagemanage';
import { useTheme } from 'bizcharts';
import styles from './VisibleRoleModal.less';
......
......@@ -30,7 +30,7 @@ import {
InsertMessageConfig,
AddIISAgentConfig,
// eslint-disable-next-line import/no-duplicates
} from '@/services/platform/messagemanage';
} from '@/services/messagemanage/messagemanage';
import styles from './schemeDetail.less';
const { Item } = Form;
......
......@@ -29,7 +29,7 @@ import {
DeleteMessageTemplate,
InsertMessageTemplate,
GetThirdpartyTemplates,
} from '@/services/platform/messagemanage';
} from '@/services/messagemanage/messagemanage';
import styles from './TemplateManage.less';
const TemplateManage = () => {
......
import React, { useEffect, useState } from 'react';
import { Form, Modal, Row, Col, Input, Select, notification } from 'antd';
import { addInsertVideoConfig, editInsertVideoConfig } from '@/services/platform/videoManger';
import { addInsertVideoConfig, editInsertVideoConfig } from '@/services/videoManger/videoManger';
const AddModal = props => {
const { callBackSubmit = () => { }, visible, onCancel, type, type1, kind, obj } = props;
......
......@@ -31,7 +31,7 @@ import styles from './index.less';
import {
GetVideoConfigList,
deleteInsertVideoConfig,
} from '@/services/platform/videoManger';
} from '@/services/videoManger/videoManger';
import AddModal from './AddModal';
import CheckModal from './CheckModal';
import VideoModal from './VideoModal';
......
......@@ -5,7 +5,7 @@ import {
addRole,
GetRoleGroup,
getWebConfigTypes,
} from '@/services/userCenter/roleManage/api';
} from '@/services/RoleManage/api';
const { Item } = Form;
const { Option } = Select;
const AddModal = props => {
......
import React, { useState } from 'react';
import { notification } from 'antd';
import SiteModal from '@/components/Modal/SiteModa';
import { deleteRole } from '@/services/userCenter/roleManage/api';
import { deleteRole } from '@/services/RoleManage/api';
const DelModal = props => {
const { confirmModal, itemObj } = props;
const [loading, setLoading] = useState(false);
......
import React, { useState, useEffect } from 'react';
import { notification, Form, Input } from 'antd';
import SiteModal from '@/components/Modal/SiteModa';
import { updateGroupName } from '@/services/userCenter/roleManage/api';
import { updateGroupName } from '@/services/RoleManage/api';
const { Item } = Form;
const EditGroup = props => {
const { confirmModal, itemObj } = props;
......
import React, { useState, useEffect } from 'react';
import { Form, Input, notification, Select } from 'antd';
import SiteModal from '@/components/Modal/SiteModa';
import { editRole, GetRoleGroup } from '@/services/userCenter/roleManage/api';
import { editRole, GetRoleGroup } from '@/services/RoleManage/api';
const { Item } = Form;
const { Option } = Select;
const AddModal = props => {
......
......@@ -22,7 +22,7 @@ import {
getMenuByRoleWithLevel,
DragGroup,
getWebConfigTypes,
} from '@/services/userCenter/roleManage/api';
} from '@/services/RoleManage/api';
import ListCard, { checkChildrenByCondition, getId } from '@/components/CheckGroup';
// import ListCard from '@/pages/orgnazation/ListCard';
import qs from 'qs';
......
import React, { useState, useEffect, useCallback, useRef } from 'react';
import { Modal, Input, Button, message, Spin, Pagination, Table, Tooltip, Space } from 'antd';
import { GetGroupUserTree } from '@/services/platform/messagemanage';
import { getStationUsers, chooseUserToStation } from '@/services/userCenter/siteManage/api';
import { GetGroupUserTree } from '@/services/messagemanage/messagemanage';
import { getStationUsers, chooseUserToStation } from '@/services/siteManage/api';
import { DeleteOutlined } from '@ant-design/icons';
import styles from './SelectUser.less';
import CardCheck from './CardCheck';
......
......@@ -15,7 +15,7 @@ import {
addChildSiteNode,
getSiteTree,
getStationUsers,
} from '@/services/userCenter/siteManage/api';
} from '@/services/siteManage/api';
import { UserOutlined } from '@ant-design/icons';
import qs from 'qs';
const { Search } = Input;
......
import React, { useState } from 'react';
import { Form, Input, notification } from 'antd';
import SiteModal from '@/components/Modal/SiteModa';
import { addStation, addChildSiteNode } from '@/services/userCenter/siteManage/api';
import { addStation, addChildSiteNode } from '@/services/siteManage/api';
const { Item } = Form;
const AddChildModal = props => {
const [form] = Form.useForm();
......
import React, { useState } from 'react';
import { Form, Input, notification } from 'antd';
import SiteModal from '@/components/Modal/SiteModa';
import { addStation } from '@/services/userCenter/siteManage/api';
import { addStation } from '@/services/siteManage/api';
const { Item } = Form;
const AddModal = props => {
const [form] = Form.useForm();
......
import React, { useState } from 'react';
import { notification } from 'antd';
import SiteModal from '@/components/Modal/SiteModa';
import { deleteStation } from '@/services/userCenter/siteManage/api';
import { deleteStation } from '@/services/siteManage/api';
const DelModal = props => {
const { confirmModal, stationId } = props;
const [loading, setLoading] = useState(false);
......
import React, { useState, useEffect, useRef } from 'react';
import { Form, Input, notification } from 'antd';
import SiteModal from '@/components/Modal/SiteModa';
import { editStation } from '@/services/userCenter/siteManage/api';
import { editStation } from '@/services/siteManage/api';
const { Item } = Form;
const EditModal = props => {
const [form] = Form.useForm();
......
......@@ -56,7 +56,7 @@ import {
getSiteTree,
getStationUsers,
DragGroup,
} from '@/services/userCenter/siteManage/api';
} from '@/services/siteManage/api';
import AddModal from './AddModal';
import DelModal from './DelModal';
import EditModal from './EditModal';
......
import React, { useEffect } from 'react';
import { Modal, Form, Input, notification, message } from 'antd';
import { addOrg } from '@/services/userCenter/userManage/api';
import { addOrg } from '@/services/userManage/api';
const AddUserModal = props => {
const { title, visible, orgID, onCancel, updateTrees, onSelect } = props;
......
import React, { useEffect } from 'react';
import { Modal, Form, Input, notification, message } from 'antd';
import { addUser } from '@/services/userCenter/userManage/api';
import { addUser } from '@/services/userManage/api';
import { ok } from '../../../assets/images/icons/ok.svg';
const AddUserModal = props => {
......
import React, { useEffect } from 'react';
import { Modal, Form, Input, notification, message } from 'antd';
import { updateUserPassword } from '@/services/userCenter/userManage/api';
import { updateUserPassword } from '@/services/userManage/api';
const ChangePasswordModal = props => {
const {
......
import React from 'react';
import { Modal, notification, message } from 'antd';
import { deleteOrg } from '@/services/userCenter/userManage/api';
import { deleteOrg } from '@/services/userManage/api';
import { Margin } from 'gojs';
const DeleteOrgModal = props => {
......
import React, { useEffect } from 'react';
import { Modal, Form, Input, notification, message } from 'antd';
import { editOrgInfo } from '@/services/userCenter/userManage/api';
import { editOrgInfo } from '@/services/userManage/api';
const EditOrgModal = props => {
const {
......
import React, { useEffect } from 'react';
import { Modal, Form, Input, notification, message } from 'antd';
import voca from 'voca';
import { editUser } from '@/services/userCenter/userManage/api';
import { editUser } from '@/services/userManage/api';
const EditUserModal = props => {
const {
......
......@@ -4,7 +4,7 @@ import {
SetUserRelationList,
setUserRelation,
setUserRelations,
} from '@/services/userCenter/userManage/api';
} from '@/services/userManage/api';
import ListCardItem from './components/listCardItem';
const CheckboxGroup = Checkbox.Group;
......
......@@ -63,7 +63,7 @@ import {
DeleteUserNew,
loadAllUserRole,
DragGroup,
} from '@/services/userCenter/userManage/api';
} from '@/services/userManage/api';
import { AddUserAuthSetting, GetUserAuthSet } from '@/services/database/api';
import Tree from '@/components/ExpendableTree';
import classnames from 'classnames';
......
......@@ -38,7 +38,7 @@ export const addRole = params => get(`${PUBLISH_SERVICE}/UserCenter/AddRole`, pa
// 获取分组列表
export const getRoleGroup = params => get(`${CITY_SERVICE}/OMS.svc/P_GetRoleGroup`, params);
//获取角色备注
// 获取角色备注
export const GetRoleGroup = params => get(`${PUBLISH_SERVICE}/UserCenter/GetRoleGroup`, params);
// 编辑角色
export const editRole = params => get(`${PUBLISH_SERVICE}/UserCenter/EditRole`, params);
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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