Commit 24479819 authored by 皮倩雯's avatar 皮倩雯
parents d520731f 0b437a73
Pipeline #42596 skipped with stages
...@@ -2,26 +2,12 @@ import { Route, Redirect } from 'react-router-dom'; ...@@ -2,26 +2,12 @@ import { Route, Redirect } from 'react-router-dom';
import React from 'react'; import React from 'react';
import Authorized from './Authorized'; import Authorized from './Authorized';
const AuthorizedRoute = ({ const AuthorizedRoute = ({ component: Component, render, authority, redirectPath, ...rest }) => (
component: Component,
render,
authority,
redirectPath,
...rest
}) => (
<Authorized <Authorized
authority={authority} authority={authority}
noMatch={ noMatch={<Route {...rest} render={() => <Redirect to={{ pathname: redirectPath }} />} />}
<Route
{...rest}
render={() => <Redirect to={{ pathname: redirectPath }} />}
/>
}
> >
<Route <Route {...rest} render={props => (Component ? <Component {...props} /> : render(props))} />
{...rest}
render={props => (Component ? <Component {...props} /> : render(props))}
/>
</Authorized> </Authorized>
); );
......
...@@ -57,11 +57,7 @@ const authorize = (authority, error) => { ...@@ -57,11 +57,7 @@ const authorize = (authority, error) => {
throw new Error('authority is required'); throw new Error('authority is required');
} }
return function decideAuthority(target) { return function decideAuthority(target) {
const component = CheckPermissions( const component = CheckPermissions(authority, target, classError || Exception403);
authority,
target,
classError || Exception403,
);
return checkIsInstantiation(component); return checkIsInstantiation(component);
}; };
}; };
......
...@@ -3,13 +3,7 @@ import { Radio } from 'antd'; ...@@ -3,13 +3,7 @@ import { Radio } from 'antd';
import styles from './index.less'; import styles from './index.less';
const RadioBox = props => { const RadioBox = props => {
const { const { radioTitle, radioOptions, currentVal, currentIndex, callBack } = props;
radioTitle,
radioOptions,
currentVal,
currentIndex,
callBack,
} = props;
useEffect(() => {}, []); useEffect(() => {}, []);
// 选择时通过回调函数传回要改变数据的索引跟选中的值 // 选择时通过回调函数传回要改变数据的索引跟选中的值
const onChange = e => { const onChange = e => {
......
...@@ -8,7 +8,7 @@ import { uuid } from '@/utils/tools'; ...@@ -8,7 +8,7 @@ import { uuid } from '@/utils/tools';
import { get, PUBLISH_SERVICE } from '@/services'; import { get, PUBLISH_SERVICE } from '@/services';
import styles from './index.less'; import styles from './index.less';
import { getImageBases } from '@/services/common/api'; import { getImageBases } from '@/services/common/api';
import UploadContext from './context.js' import UploadContext from './context'
import _, { clone } from 'lodash' import _, { clone } from 'lodash'
const { Link } = Anchor; const { Link } = Anchor;
......
...@@ -3,11 +3,7 @@ import React, { useEffect } from 'react'; ...@@ -3,11 +3,7 @@ import React, { useEffect } from 'react';
import { Helmet, HelmetProvider } from 'react-helmet-async'; import { Helmet, HelmetProvider } from 'react-helmet-async';
import { renderRoutes } from 'react-router-config'; import { renderRoutes } from 'react-router-config';
import { import { DefaultFooter, getMenuData, getPageTitle } from '@ant-design/pro-layout';
DefaultFooter,
getMenuData,
getPageTitle,
} from '@ant-design/pro-layout';
import logo from '../assets/images/logo/panda-logo.svg'; import logo from '../assets/images/logo/panda-logo.svg';
import styles from './UserLayout.less'; import styles from './UserLayout.less';
...@@ -48,16 +44,11 @@ const UserLayout = props => { ...@@ -48,16 +44,11 @@ const UserLayout = props => {
<img alt="logo" className={styles.logo} src={logo} /> <img alt="logo" className={styles.logo} src={logo} />
<span className={styles.title}>熊猫运维平台</span> <span className={styles.title}>熊猫运维平台</span>
</div> </div>
<div className={styles.desc}> <div className={styles.desc}>{/* Ant Design 是西湖区最具影响力的 Web 设计规范 */}</div>
{/* Ant Design 是西湖区最具影响力的 Web 设计规范 */}
</div>
</div> </div>
{children || renderRoutes(route.routes)} {children || renderRoutes(route.routes)}
</div> </div>
<DefaultFooter <DefaultFooter copyright={`${new Date().getFullYear()} 熊猫智慧水务有限公司`} links={[]} />
copyright={`${new Date().getFullYear()} 熊猫智慧水务有限公司`}
links={[]}
/>
</div> </div>
</HelmetProvider> </HelmetProvider>
); );
......
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
import { Select, Card, Row, Col, Button, Spin, notification } from 'antd'; import { Select, Card, Row, Col, Button, Spin, notification } from 'antd';
import PageContainer from '@/components/BasePageContainer'; import PageContainer from '@/components/BasePageContainer';
import { import { getSolutionList, changeSolution, publishGetSolutionList } from '@/services/database/api';
getSolutionList,
changeSolution,
publishGetSolutionList,
} from '@/services/database/api';
import styles from './CurrentSolution.less'; import styles from './CurrentSolution.less';
const { Option } = Select; const { Option } = Select;
const CurrentSolution = () => { const CurrentSolution = () => {
...@@ -121,9 +117,7 @@ const CurrentSolution = () => { ...@@ -121,9 +117,7 @@ const CurrentSolution = () => {
<p> <p>
主要为客户项目经理在实施应用部署的过程中提供可视化配置系统,一站式交付用户需求的熊猫智慧水务相关产品; 主要为客户项目经理在实施应用部署的过程中提供可视化配置系统,一站式交付用户需求的熊猫智慧水务相关产品;
</p> </p>
<p> <p>数据库支持SQL Server、Oracle、MongoDB、MySQL四大类常见数据库;</p>
数据库支持SQL Server、Oracle、MongoDB、MySQL四大类常见数据库;
</p>
<p> <p>
平台中心涵盖GIS平台、物联网平台、业务平台、消息平台等基础平台,2021年会推出数字孪生平台、数据治理平台、AI平台等进阶平台; 平台中心涵盖GIS平台、物联网平台、业务平台、消息平台等基础平台,2021年会推出数字孪生平台、数据治理平台、AI平台等进阶平台;
</p> </p>
......
...@@ -11,13 +11,7 @@ const LoginSubmit = ({ className, ...rest }) => { ...@@ -11,13 +11,7 @@ const LoginSubmit = ({ className, ...rest }) => {
const clsString = classNames(styles.submit, className); const clsString = classNames(styles.submit, className);
return ( return (
<FormItem> <FormItem>
<Button <Button size="large" className={clsString} type="primary" htmlType="submit" {...rest} />
size="large"
className={clsString}
type="primary"
htmlType="submit"
{...rest}
/>
</FormItem> </FormItem>
); );
}; };
......
import React from 'react'; import React from 'react';
import { import { LockTwoTone, MailTwoTone, MobileTwoTone, UserOutlined } from '@ant-design/icons';
LockTwoTone,
MailTwoTone,
MobileTwoTone,
UserOutlined,
} from '@ant-design/icons';
import styles from './index.less'; import styles from './index.less';
......
...@@ -23,13 +23,7 @@ const LoginMessage = ({ content }) => ( ...@@ -23,13 +23,7 @@ const LoginMessage = ({ content }) => (
); );
const Login = props => { const Login = props => {
const { const { userLogin = {}, submitting, setAuth, setUserMode, setLoginName } = props;
userLogin = {},
submitting,
setAuth,
setUserMode,
setLoginName,
} = props;
const { status, type: loginType } = userLogin; const { status, type: loginType } = userLogin;
const history = useHistory(); const history = useHistory();
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
......
import React from 'react';
import {
DatabaseOutlined,
UsergroupAddOutlined,
SettingOutlined,
HomeOutlined,
// AndroidOutlined,
// CommentOutlined,
CopyOutlined,
} from '@ant-design/icons';
const iconStyle = { verticalAlign: '0.125em' };
const menuConfig = [
{
path: '/dbm',
component: 'BasicLayout',
name: '数据库管理',
icon: <DatabaseOutlined style={iconStyle} />,
routes: [
{
path: '/dbm/dbInit',
name: '数据库初始化',
},
{
path: '/dbm/dbsm',
name: '数据库标准化管理',
},
],
},
{
path: '/userCenter',
component: 'BasicLayout',
name: '用户中心',
icon: <UsergroupAddOutlined style={iconStyle} />,
routes: [
{
path: '/userCenter/UserManage',
name: '用户管理',
},
{
path: '/userCenter/RoleManage',
name: '角色管理',
},
{
path: '/userCenter/SiteManage',
name: '站点管理',
},
{
path: '/userCenter/testTable',
name: '测试表格',
},
],
},
{
path: '/platformCenter',
component: 'BasicLayout',
name: '平台中心',
icon: <SettingOutlined style={iconStyle} />,
routes: [
{
path: '/platformCenter/gis',
name: 'GIS平台',
},
{
path: '/platformCenter/order',
name: '工单平台',
},
{
path: '/platformCenter/notify',
name: '消息平台',
},
{
path: '/platformCenter/iot',
name: '物联平台',
},
{
path: '/platformCenter/vedio',
name: '视频管理',
},
{
path: '/platformCenter/emq',
name: '宿主管理',
},
{
path: '/platformCenter/dictionary',
name: '数据字典',
},
],
},
{
path: '/productCenter',
component: 'BasicLayout',
name: '产品中心',
icon: <HomeOutlined style={iconStyle} />,
routes: [
{
path: '/productCenter/web',
name: 'web配置',
},
{
path: '/productCenter/app',
name: 'app配置',
},
{
path: '/productCenter/miniProgram',
name: '小程序配置',
},
],
},
{
path: '/log',
component: 'BasicLayout',
name: '日志管理',
icon: <CopyOutlined style={iconStyle} />,
routes: [
{
path: '/log/service',
name: '服务日志',
},
{
path: '/log/login',
name: '登录日志',
},
{
path: '/log/omsOperation',
name: '运维操作日志',
},
{
path: '/log/omsError',
name: '运维错误日志',
},
],
},
];
export default menuConfig;
...@@ -17,15 +17,11 @@ export const getSevenParamsByTransType = value => ...@@ -17,15 +17,11 @@ export const getSevenParamsByTransType = value =>
}); });
// 提交七参数 // 提交七参数
export const postSevenParams = sevenFormData => export const postSevenParams = sevenFormData =>
post( post(`${CITY_SERVICE}/OMS.svc/M_SetSevenParams?_version=9999`, qs.stringify(sevenFormData), {
`${CITY_SERVICE}/OMS.svc/M_SetSevenParams?_version=9999`, headers: {
qs.stringify(sevenFormData), 'content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
{
headers: {
'content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
},
}, },
); });
/** ***菜单管理*** */ /** ***菜单管理*** */
// 获取菜单树 // 获取菜单树
...@@ -40,14 +36,7 @@ export const getTree = () => ...@@ -40,14 +36,7 @@ export const getTree = () =>
select: '', select: '',
}); });
// 添加菜单 // 添加菜单
export const addMenuApi = ( export const addMenuApi = (menuID, menuName, shortName, imageUrl, pageUrl, funParam) =>
menuID,
menuName,
shortName,
imageUrl,
pageUrl,
funParam,
) =>
get(`${CITY_SERVICE}/OMS.svc/MiniApp_AddMenu`, { get(`${CITY_SERVICE}/OMS.svc/MiniApp_AddMenu`, {
_version: 9999, _version: 9999,
_dc: new Date().getTime(), _dc: new Date().getTime(),
...@@ -61,14 +50,7 @@ export const addMenuApi = ( ...@@ -61,14 +50,7 @@ export const addMenuApi = (
relatedRoleList: '', relatedRoleList: '',
}); });
// 添加菜单组 // 添加菜单组
export const addMenuGroupApi = ( export const addMenuGroupApi = (menuID, menuName, shortName, imageUrl, offlineImgUrl, funParam) =>
menuID,
menuName,
shortName,
imageUrl,
offlineImgUrl,
funParam,
) =>
get(`${CITY_SERVICE}/OMS.svc/MiniApp_AddMenu`, { get(`${CITY_SERVICE}/OMS.svc/MiniApp_AddMenu`, {
_version: 9999, _version: 9999,
_dc: new Date().getTime(), _dc: new Date().getTime(),
...@@ -95,8 +77,7 @@ export const getMenuInfo = id => ...@@ -95,8 +77,7 @@ export const getMenuInfo = id =>
menuID: id, menuID: id,
}); });
// 编辑-提交菜单 // 编辑-提交菜单
export const submitMenuInfo = params => export const submitMenuInfo = params => get(`${CITY_SERVICE}/OMS.svc/MiniApp_EditMenu`, params);
get(`${CITY_SERVICE}/OMS.svc/MiniApp_EditMenu`, params);
// 删除菜单 // 删除菜单
export const deleteMenuApi = id => export const deleteMenuApi = id =>
get(`${CITY_SERVICE}/OMS.svc/MiniApp_DeleteMenu`, { get(`${CITY_SERVICE}/OMS.svc/MiniApp_DeleteMenu`, {
...@@ -107,10 +88,6 @@ export const deleteMenuApi = id => ...@@ -107,10 +88,6 @@ export const deleteMenuApi = id =>
}); });
// 获取当前服务器上最新的apk包名和更新时间 // 获取当前服务器上最新的apk包名和更新时间
export const getApkNameAndDate = params => export const getApkNameAndDate = params =>
get( get(`/Cityinterface/Services/CityServer_MobileBusiness/REST/BaseREST.svc/AppModifyTime`, params);
`/Cityinterface/Services/CityServer_MobileBusiness/REST/BaseREST.svc/AppModifyTime`,
params,
);
// 上传apk版本信息以及apk包的接口 // 上传apk版本信息以及apk包的接口
export const SaveMobileApk = params => export const SaveMobileApk = params => post(`/Publish/OMS/FileCenter/SaveMobileApk`, params);
post(`/Publish/OMS/FileCenter/SaveMobileApk`, params);
...@@ -11,11 +11,7 @@ export const getImageBases = moduleName => ...@@ -11,11 +11,7 @@ export const getImageBases = moduleName =>
get(`${PUBLISH_SERVICE}/FileCenter/GetFileUrls`, { moduleName }); get(`${PUBLISH_SERVICE}/FileCenter/GetFileUrls`, { moduleName });
export const getSysConfigurate = params => export const getSysConfigurate = params =>
get( get(`/CityInterface/rest/services/Common.svc/Tool/GetSysConfigurate?dicName=网关启停`);
`/CityInterface/rest/services/Common.svc/Tool/GetSysConfigurate?dicName=网关启停`, export const gateWayConfig = params => get(`/PandaCore/GCK/Basis/GateWayConfig`, params);
);
export const gateWayConfig = params =>
get(`/PandaCore/GCK/Basis/GateWayConfig`, params);
// 获取网关配置 // 获取网关配置
export const GetGateWay = param => export const GetGateWay = param => get(`${PUBLISH_SERVICE}/HostManager/GetGateWay`, param);
get(`${PUBLISH_SERVICE}/HostManager/GetGateWay`, param);
...@@ -13,14 +13,10 @@ export const AddDataDictionaryList = params => ...@@ -13,14 +13,10 @@ export const AddDataDictionaryList = params =>
export const SearchDataDictionaryList = params => export const SearchDataDictionaryList = params =>
get(`${PUBLISH_SERVICE}/DataManger/SearchDataDictionaryList`, params); get(`${PUBLISH_SERVICE}/DataManger/SearchDataDictionaryList`, params);
// 获取数据字典 // 获取数据字典
export const GetKeyValue = params => export const GetKeyValue = params => get(`${PUBLISH_SERVICE}/DataManger/GetKeyValue`, params);
get(`${PUBLISH_SERVICE}/DataManger/GetKeyValue`, params); export const AddKeyValue = params => get(`${PUBLISH_SERVICE}/DataManger/AddKeyValue`, params);
export const AddKeyValue = params => export const EditKeyValue = params => get(`${PUBLISH_SERVICE}/DataManger/EditKeyValue`, params);
get(`${PUBLISH_SERVICE}/DataManger/AddKeyValue`, params); export const DeleteKeyValue = params => get(`${PUBLISH_SERVICE}/DataManger/DeleteKeyValue`, params);
export const EditKeyValue = params =>
get(`${PUBLISH_SERVICE}/DataManger/EditKeyValue`, params);
export const DeleteKeyValue = params =>
get(`${PUBLISH_SERVICE}/DataManger/DeleteKeyValue`, params);
// 导出文件 // 导出文件
export const ExportDataDictionary = params => export const ExportDataDictionary = params =>
get(`${PUBLISH_SERVICE}/DataManger/ExportDataDictionary`, params, { get(`${PUBLISH_SERVICE}/DataManger/ExportDataDictionary`, params, {
......
...@@ -15,8 +15,7 @@ import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index'; ...@@ -15,8 +15,7 @@ import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
* } * }
*/ */
// 测试数据库连接 // 测试数据库连接
export const connectionTest = params => export const connectionTest = params => post(`${PUBLISH_SERVICE}/DBManager/TestConnetions`, params);
post(`${PUBLISH_SERVICE}/DBManager/TestConnetions`, params);
// 获取数据库配置信息 // 获取数据库配置信息
export const getDataBaseConfigNew = params => export const getDataBaseConfigNew = params =>
...@@ -24,8 +23,7 @@ export const getDataBaseConfigNew = params => ...@@ -24,8 +23,7 @@ export const getDataBaseConfigNew = params =>
// 获取数据库连接记录 // 获取数据库连接记录
export const getConnRecordNew = params => export const getConnRecordNew = params => get(`${PUBLISH_SERVICE}/DBManager/GetConnRecord`, params);
get(`${PUBLISH_SERVICE}/DBManager/GetConnRecord`, params);
// 保存数据库连接 // 保存数据库连接
// export const saveConnection = params => // export const saveConnection = params =>
...@@ -43,8 +41,7 @@ export const getDataBaseList = params => ...@@ -43,8 +41,7 @@ export const getDataBaseList = params =>
// 数据库初始化 // 数据库初始化
// export const initDBv4 = params => // export const initDBv4 = params =>
// get(`${CITY_SERVICE}/OMS.svc/S_InitDBv4`, params); // get(`${CITY_SERVICE}/OMS.svc/S_InitDBv4`, params);
export const initDBv4new = params => export const initDBv4new = params => get(`${PUBLISH_SERVICE}/DBManager/InitDB`, params);
get(`${PUBLISH_SERVICE}/DBManager/InitDB`, params);
// 更新描述 // 更新描述
// export const updateConnDesc = params => // export const updateConnDesc = params =>
...@@ -55,12 +52,10 @@ export const updateConnDescNew = params => ...@@ -55,12 +52,10 @@ export const updateConnDescNew = params =>
// 获取日志 // 获取日志
// export const getInitDBLog = params => // export const getInitDBLog = params =>
// get(`${CITY_SERVICE}/OMS.svc/S_GetInitDBLog`, params); // get(`${CITY_SERVICE}/OMS.svc/S_GetInitDBLog`, params);
export const getInitDBLogNew = params => export const getInitDBLogNew = params => get(`${PUBLISH_SERVICE}/DBManager/GetInitDBLog`, params);
get(`${PUBLISH_SERVICE}/DBManager/GetInitDBLog`, params);
// 删除初始化日志 // 删除初始化日志
export const deleteInitDBLog = params => export const deleteInitDBLog = params => get(`${CITY_SERVICE}/OMS.svc/S_DeleteInitDBLog`, params);
get(`${CITY_SERVICE}/OMS.svc/S_DeleteInitDBLog`, params);
export const deleteInitDBLogNew = params => export const deleteInitDBLogNew = params =>
get(`${PUBLISH_SERVICE}/DBManager/DeleteInitDBLog`, params); get(`${PUBLISH_SERVICE}/DBManager/DeleteInitDBLog`, params);
...@@ -71,22 +66,19 @@ export const setTableSQLDirName = params => ...@@ -71,22 +66,19 @@ export const setTableSQLDirName = params =>
// 删除数据库连接记录 // 删除数据库连接记录
// export const deleteConn = params => // export const deleteConn = params =>
// get(`${CITY_SERVICE}/OMS.svc/S_DeleteConn`, params); // get(`${CITY_SERVICE}/OMS.svc/S_DeleteConn`, params);
export const deleteConnNew = params => export const deleteConnNew = params => get(`${PUBLISH_SERVICE}/DBManager/DeleteConnection`, params);
get(`${PUBLISH_SERVICE}/DBManager/DeleteConnection`, params);
/** /**
* *
* @解决方案管理 * @解决方案管理
*/ */
// 切换解决方案配置 // 切换解决方案配置
export const getSolutionList = params => export const getSolutionList = params => get(`${CITY_SERVICE}/OMS.svc/W4_GetSolutionList`, params);
get(`${CITY_SERVICE}/OMS.svc/W4_GetSolutionList`, params);
export const publishGetSolutionList = params => export const publishGetSolutionList = params =>
get(`${PUBLISH_SERVICE}/PlatformCenter/GetSolutionList`, params); get(`${PUBLISH_SERVICE}/PlatformCenter/GetSolutionList`, params);
// 切换解决方案 // 切换解决方案
export const changeSolution = params => export const changeSolution = params => get(`${CITY_SERVICE}/OMS.svc/W4_ChangeSolution`, params);
get(`${CITY_SERVICE}/OMS.svc/W4_ChangeSolution`, params);
/** /**
* *
...@@ -95,8 +87,7 @@ export const changeSolution = params => ...@@ -95,8 +87,7 @@ export const changeSolution = params =>
// 检查数据库表 // 检查数据库表
// export const tableCheck = params => // export const tableCheck = params =>
// get(`${CITY_SERVICE}/OMS.svc/TableCheck`, params); // get(`${CITY_SERVICE}/OMS.svc/TableCheck`, params);
export const tableCheckNew = params => export const tableCheckNew = params => get(`${PUBLISH_SERVICE}/DBManager/GetTableCheck`, params);
get(`${PUBLISH_SERVICE}/DBManager/GetTableCheck`, params);
// 获取数据库升级记录 // 获取数据库升级记录
// export const databaseStandardGetLog = params => // export const databaseStandardGetLog = params =>
...@@ -105,8 +96,7 @@ export const databaseStandardGetLogNew = params => ...@@ -105,8 +96,7 @@ export const databaseStandardGetLogNew = params =>
get(`${PUBLISH_SERVICE}/DBManager/GetUpdateDBLog`, params); get(`${PUBLISH_SERVICE}/DBManager/GetUpdateDBLog`, params);
// 更新 // 更新
export const updateDateBase = params => export const updateDateBase = params => get(`${PUBLISH_SERVICE}/DBManager/UpdateDataBase`, params);
get(`${PUBLISH_SERVICE}/DBManager/UpdateDataBase`, params);
/** /**
* @数据库连接配置 * @数据库连接配置
...@@ -182,36 +172,27 @@ export const editMySQLConnString = params => ...@@ -182,36 +172,27 @@ export const editMySQLConnString = params =>
}); });
// 获取数据库链接字符串 // 获取数据库链接字符串
export const GetConnString = params => export const GetConnString = params => get(`${PUBLISH_SERVICE}/DBManager/GetConnString`, params);
get(`${PUBLISH_SERVICE}/DBManager/GetConnString`, params);
// 添加数据库链接字符串 // 添加数据库链接字符串
export const AddConnString = params => export const AddConnString = params => get(`${PUBLISH_SERVICE}/DBManager/AddConnString`, params);
get(`${PUBLISH_SERVICE}/DBManager/AddConnString`, params);
// 编辑数据库链接字符串 // 编辑数据库链接字符串
export const EditConnString = params => export const EditConnString = params => get(`${PUBLISH_SERVICE}/DBManager/EditConnString`, params);
get(`${PUBLISH_SERVICE}/DBManager/EditConnString`, params);
// 删除数据库连接 // 删除数据库连接
export const DeleteConnString = params => export const DeleteConnString = params =>
get(`${PUBLISH_SERVICE}/DBManager/DeleteConnString`, params); get(`${PUBLISH_SERVICE}/DBManager/DeleteConnString`, params);
export const GetConnTest = params => export const GetConnTest = params => get(`${PUBLISH_SERVICE}/DBManager/GetConnectionTest`, params);
get(`${PUBLISH_SERVICE}/DBManager/GetConnectionTest`, params);
// 接口鉴权 // 接口鉴权
export const AuthSetting = params => export const AuthSetting = params => get(`${PUBLISH_SERVICE}/WebSite/AuthSetting`, params);
get(`${PUBLISH_SERVICE}/WebSite/AuthSetting`, params); export const GetAuthSet = params => get(`${PUBLISH_SERVICE}/WebSite/GetAuthSet`, params);
export const GetAuthSet = params =>
get(`${PUBLISH_SERVICE}/WebSite/GetAuthSet`, params);
export const AddUserAuthSetting = params => export const AddUserAuthSetting = params =>
get(`${PUBLISH_SERVICE}/WebSite/AddUserAuthSetting`, params); get(`${PUBLISH_SERVICE}/WebSite/AddUserAuthSetting`, params);
export const GetUserAuthSet = params => export const GetUserAuthSet = params => get(`${PUBLISH_SERVICE}/WebSite/GetUserAuthSet`, params);
get(`${PUBLISH_SERVICE}/WebSite/GetUserAuthSet`, params);
// 获取产品列表 // 获取产品列表
export const GetProductList = params => export const GetProductList = params => get(`${PUBLISH_SERVICE}/DBManager/GetProductList`, params);
get(`${PUBLISH_SERVICE}/DBManager/GetProductList`, params);
// 获取产品方案配置 // 获取产品方案配置
export const GetDbProduct = params => export const GetDbProduct = params => post(`${PUBLISH_SERVICE}/DBManager/GetDbProduct`, params);
post(`${PUBLISH_SERVICE}/DBManager/GetDbProduct`, params);
// 数据库初始化 // 数据库初始化
export const InitAddDataBase = params => export const InitAddDataBase = params =>
post(`${PUBLISH_SERVICE}/DBManager/InitAddDataBase`, params); post(`${PUBLISH_SERVICE}/DBManager/InitAddDataBase`, params);
......
import qs from 'qs';
import { CITY_SERVICE, get, PUBLISH_SERVICE, post, postForm } from '../index';
// 获取任务列表
export const taskOptionsList = () =>
get(`${PUBLISH_SERVICE}/AIConfig/TaskOptionsList`);
// 获取设备类型
export const getIotDeviceType = () =>
get(`${PUBLISH_SERVICE}/AIConfig/GetIotDeviceType`);
// 获取场景列表
export const algorithmList = () => get(`/PandaCore/OMS/AIConfig/AlgorithmList`);
// 获取设备列表
export const getEquipmentInfo = query =>
get(`/PandaCore/GCK/Device/DeviceTree?equipType=${query}`);
// 获取指标列表
export const getQutaList = query =>
get(
`/PandaCore/GCK/Device/GetQuotaList?AcountName=${
query.accountName
}&&AddrSchemeID=${query.AddrSchemeID}`,
);
// 获取场景列表
export const getSceneNameInfo = () =>
get(`/PandaCore/OMS/AIConfig/GetSceneNameInfo`);
// 任务添加
export const addTaskOptions = params =>
post(`/PandaCore/OMS/AIConfig/AddTaskOptions`, params);
// 任务编辑
export const updateTaskOptions = params =>
post(`/PandaCore/OMS/AIConfig/UpdateTaskOptions`, params);
// 任务删除
export const deleteTaskOptions = params =>
post(`/PandaCore/OMS/AIConfig/DeleteTaskOptions`, params);
// 预测列表
export const getPredictInfo = () =>
get(`${PUBLISH_SERVICE}/AIConfig/GetPredictInfo`);
// 预测新增
export const addPredictOptions = params =>
post(`/PandaCore/OMS/AIConfig/AddPredictOptions`, params);
// 预测编辑
export const editPredictOptions = params =>
post(`/PandaCore/OMS/AIConfig/EditPredictOptions`, params);
// 预测删除
export const deletePredictOptions = params =>
post(`/PandaCore/OMS/AIConfig/DeletePredictOptions?PredictID=${params}`);
// 策略下发列表
export const getStrategyInfo = () =>
get(`/PandaCore/OMS/AIConfig/GetStrategyInfo`);
// 策略下发增加
export const addStrategyOptions = params =>
post(`/PandaCore/OMS/AIConfig/AddStrategyOptions`, params);
// 策略下发编辑
export const editStrategyOptions = params =>
post(`/PandaCore/OMS/AIConfig/EditStrategyOptions`, params);
// 策略下发删除
export const deleteStrategyOptions = params =>
post(`/PandaCore/OMS​/AIConfig​/DeleteStrategyOptions?StrategyId=${params}`);
// 获取预测设备
export const getPredictDevice = params =>
get(`/PandaCore/OMS/AIConfig/GetPredictDevice?DeviceType=${params}`);
// 获取预测指标
export const getPredictDevicePoint = params =>
get(
`/PandaCore/OMS/AIConfig/GetPredictDevicePoint?DeviceType=${
params.deviceType
}&DeviceCode=${params.DeviceCode}`,
);
/*
* @Description:
* @Author: leizhe
* @Date: 2021-05-27 16:31:05
* @LastEditTime: 2021-07-07 16:10:30
* @LastEditors: leizhe
*/
import { get, post, CITY_SERVICE, PUBLISH_SERVICE } from '../index';
export const orgTest = params =>
get(
`${PUBLISH_SERVICE}/UserCenter/GetMenuByRoleWithLevel?roleID=6&subSystemValue=city&subSystemName=city&_version=9999&_dc=1604051878230`,
params,
);
// 获取组织结构树
export const orgGet = params =>
get(
`${CITY_SERVICE}/OMS.svc/U_GetOUTree?_version=9999&_dc=1604304482575&node=-1`,
params,
);
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
// 1.获取所有已附加的表
export const CM_Table_LoadTable = param => get(`${PUBLISH_SERVICE}/CaseManage/LoadTable`, param);
// 2.获取单张表的字段 CM_Table_ReloadFields
export const CM_Table_ReloadFields = param =>
get(`${CITY_SERVICE}/OMS.svc/CM_Table_ReloadFields`, param);
// 3.删除表
export const removeTable = param => get(`${PUBLISH_SERVICE}/CaseManage/RemoveTable`, param);
// 4.建立表
export const createTable = param => get(`${PUBLISH_SERVICE}/CaseManage/CreateTable`, param);
// 5.附加字段
export const loadTableFields = param => get(`${PUBLISH_SERVICE}/CaseManage/LoadTableFields`, param);
// 6.附加表时加载未添加的表
export const loadUnattachedTables = () => get(`${PUBLISH_SERVICE}/CaseManage/LoadUnattachedTables`);
// 7.附加表
export const addTables = param => post(`${PUBLISH_SERVICE}/CaseManage/AddTables`, param);
// 8.添加表字段
export const addFields = param => post(`${PUBLISH_SERVICE}/CaseManage/AddFields`, param);
// 9.获取表信息
export const getTableInfo = param => get(`${PUBLISH_SERVICE}/CaseManage/GetTableInfo`, param);
// 10.更新表信息
export const updateTable = param => get(`${PUBLISH_SERVICE}/CaseManage/UpdateTable`, param);
// 11.加载表字段
export const reloadTableFields = param =>
get(`${PUBLISH_SERVICE}/CaseManage/ReloadTableFields`, param);
// 12.根据字段ID查询字段信息
export const getField = param => get(`${PUBLISH_SERVICE}/CaseManage/GetField`, param);
// 13.删除表字段
export const removeFields = param => get(`${PUBLISH_SERVICE}/CaseManage/RemoveFields`, param);
// 14.加载事件类型
export const LoadEventType = param => get(`${PUBLISH_SERVICE}/CaseManage/LoadEventType`, param);
// 15.根据触发事件加载字段
export const LoadEventFields = param => get(`${PUBLISH_SERVICE}/CaseManage/LoadEventFields`, param);
// 16.更改字段信息
export const UpdateFields = data => post(`${PUBLISH_SERVICE}/CaseManage/UpdateFields`, data);
// 17.分组与调序,根据表名加载分组
export const LoadGroup = param => get(`${PUBLISH_SERVICE}/CaseManage/LoadGroup`, param);
// 18.根据分组名加载字段集
export const LoadFieldsByGroup = param =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadFieldsByGroup`, param);
// 18.根据分组名加载字段集
export const ChangeOrder = data => post(`${PUBLISH_SERVICE}/CaseManage/ChangeOrder`, data);
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
//1.获取所有已附加的表
export const CM_Table_LoadTable = param =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadTable`, param);
//2.获取单张表的字段 CM_Table_ReloadFields
export const CM_Table_ReloadFields = param =>
get(`${CITY_SERVICE}/OMS.svc/CM_Table_ReloadFields`, param);
//3.删除表
export const removeTable = param =>
get(`${PUBLISH_SERVICE}/CaseManage/RemoveTable`, param);
//4.建立表
export const createTable = param =>
get(`${PUBLISH_SERVICE}/CaseManage/CreateTable`, param);
//5.附加字段
export const loadTableFields = param =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadTableFields`, param);
//6.附加表时加载未添加的表
export const loadUnattachedTables = () =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadUnattachedTables`);
//7.附加表
export const addTables = (param) =>
post(`${PUBLISH_SERVICE}/CaseManage/AddTables`, param);
//8.添加表字段
export const addFields = (param) =>
post(`${PUBLISH_SERVICE}/CaseManage/AddFields`, param);
//9.获取表信息
export const getTableInfo = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/GetTableInfo`, param);
//10.更新表信息
export const updateTable = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/UpdateTable`, param);
//11.加载表字段
export const reloadTableFields = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/ReloadTableFields`, param);
//12.根据字段ID查询字段信息
export const getField = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/GetField`, param);
//13.删除表字段
export const removeFields = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/RemoveFields`, param);
//14.加载事件类型
export const LoadEventType = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadEventType`, param);
//15.根据触发事件加载字段
export const LoadEventFields = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadEventFields`, param);
//16.更改字段信息
export const UpdateFields = (data) =>
post(`${PUBLISH_SERVICE}/CaseManage/UpdateFields`, data);
//17.分组与调序,根据表名加载分组
export const LoadGroup = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadGroup`, param);
//18.根据分组名加载字段集
export const LoadFieldsByGroup = (param) =>
get(`${PUBLISH_SERVICE}/CaseManage/LoadFieldsByGroup`, param);
//18.根据分组名加载字段集
export const ChangeOrder = (data) =>
post(`${PUBLISH_SERVICE}/CaseManage/ChangeOrder`, data);
...@@ -3,32 +3,19 @@ import { get, post, PUBLISH_SERVICE } from '@/services/index'; ...@@ -3,32 +3,19 @@ import { get, post, PUBLISH_SERVICE } from '@/services/index';
export const reloadFlows = param => export const reloadFlows = param =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_ReloadFlows`, param); get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_ReloadFlows`, param);
// 流程信息查询 // 流程信息查询
export const CMFlowGet = param => export const CMFlowGet = param => get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow/${param.flowId}`);
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow/${param.flowId}`);
// 流程信息查询 // 流程信息查询
export const CMFlowPost = param => export const CMFlowPost = param =>
post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow/${param.flowId}`, param); post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow/${param.flowId}`, param);
// 工单流程组内调序 // 工单流程组内调序
export const flowReOrder = param => export const flowReOrder = param =>
post( post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_ReOrder?flowIDs=${param.flowIDs}`);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_ReOrder?flowIDs=${
param.flowIDs
}`,
);
// 删除流程配置 // 删除流程配置
export const removeFlowExtend = param => export const removeFlowExtend = param =>
post( post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_RemoveFlowExtend?flowId=${param.flowIDs}`);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_RemoveFlowExtend?flowId=${
param.flowIDs
}`,
);
// 流程节点列表查询 // 流程节点列表查询
export const reloadFlowNodes = param => export const reloadFlowNodes = param =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_ReloadFlowNodes?flowName=${param.flowName}`);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_ReloadFlowNodes?flowName=${
param.flowName
}`,
);
// 清除节点配置 // 清除节点配置
export const removeFlowNodeExtend = param => export const removeFlowNodeExtend = param =>
get( get(
...@@ -38,17 +25,11 @@ export const removeFlowNodeExtend = param => ...@@ -38,17 +25,11 @@ export const removeFlowNodeExtend = param =>
); );
// 流程节点详情 // 流程节点详情
export const getFlowNode = param => export const getFlowNode = param =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_GetFlowNode?flowNodeId=${param.flowNodeId}`);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_GetFlowNode?flowNodeId=${
param.flowNodeId
}`,
);
// 流程节点详情 // 流程节点详情
export const loadRollbackNodes = param => export const loadRollbackNodes = param =>
get( get(
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_LoadRollbackNodes?flowNodeId=${ `${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_LoadRollbackNodes?flowNodeId=${param.flowNodeId}`,
param.flowNodeId
}`,
); );
// 加载事件主表 // 加载事件主表
export const loadEventTypeTable = query => export const loadEventTypeTable = query =>
...@@ -67,16 +48,10 @@ export const editFlowNodeExtend = query => ...@@ -67,16 +48,10 @@ export const editFlowNodeExtend = query =>
// 加载流程辅助视图 // 加载流程辅助视图
export const reloadFlowNodeExtendPages = query => export const reloadFlowNodeExtendPages = query =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_ReloadFlowNodeExtendPages`, query);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_ReloadFlowNodeExtendPages`,
query,
);
// 查询流程辅助视图配置信息 // 查询流程辅助视图配置信息
export const getFlowNodeExtendPage = query => export const getFlowNodeExtendPage = query =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_GetFlowNodeExtendPage`, query);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_GetFlowNodeExtendPage`,
query,
);
// 添加或修改流程节点辅助视图配置 // 添加或修改流程节点辅助视图配置
export const operateFlowNodeExtendPage = (query, flowNodeId) => export const operateFlowNodeExtendPage = (query, flowNodeId) =>
post( post(
...@@ -107,8 +82,6 @@ export const operateFlowTimer = query => ...@@ -107,8 +82,6 @@ export const operateFlowTimer = query =>
// 添加或修改时限配置 // 添加或修改时限配置
export const removeFlowTimer = query => export const removeFlowTimer = query =>
post( post(
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_RemoveFlowTimer?flowTimerID=${ `${PUBLISH_SERVICE}/WorkOrderCenter/CM_Flow_RemoveFlowTimer?flowTimerID=${query.flowTimerID}`,
query.flowTimerID
}`,
query, query,
); );
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
// 1.获取全部地图方案配置
export const GetAllConfig = param => get(`${CITY_SERVICE}/OMS.svc/GetAllConfig`, param);
// 2.获取元数据
export const GetMetaData = param => get(`${CITY_SERVICE}/MapServer.svc/${param}`);
// 3.获取元数据新
export const GetMetaDataNew = param => get(`${CITY_SERVICE}/MapServer.svc/${param}`);
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
//1.获取全部地图方案配置
export const GetAllConfig = param =>
get(`${CITY_SERVICE}/OMS.svc/GetAllConfig`, param);
//2.获取元数据
export const GetMetaData = param =>
get(`${CITY_SERVICE}/MapServer.svc/${param}`);
//3.获取元数据新
export const GetMetaDataNew = param =>
get(`${CITY_SERVICE}/MapServer.svc/${param}`);
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
// 基础信息展示
export const GetDataBaseConfig = param =>
get(`${PUBLISH_SERVICE}/DBManager/GetDataBaseConfig`, param);
export const GetBasicInfo = param => get(`${PUBLISH_SERVICE}/HostManager/GetBasicInfo`, param);
// 物联平台接口
export const GetIOTPlatformVersion = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetIOTPlatformVersion`, param);
export const GetTCPConfigInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetTCPConfigInfo`, param);
export const PingIOTPlatform = param =>
get(`${PUBLISH_SERVICE}/HostManager/PingIOTPlatform`, param);
export const SaveTcpAddress = param => get(`${PUBLISH_SERVICE}/HostManager/SaveTcpAddress`, param);
// 消息平台接口
export const GetMessageConfigInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetMessageConfigInfo`, param);
export const ConnectMessPlatform = param =>
get(`${PUBLISH_SERVICE}/HostManager/ConnectMessagePlatform`, param);
export const SaveSystemInfo = param => get(`${PUBLISH_SERVICE}/HostManager/SaveSystemInfo`, param);
// 代理服务器接口
export const GetNginxConfigInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetNginxConfigInfo`, param);
export const InsertNginxConfig = param =>
get(`${PUBLISH_SERVICE}/HostManager/InsertNginxConfig`, param);
export const StartNginx = param => get(`${PUBLISH_SERVICE}/HostManager/StartNginx`, param);
export const StopNginx = param => get(`${PUBLISH_SERVICE}/HostManager/StopNginx`, param);
export const NginxLog = param => get(`${PUBLISH_SERVICE}/HostManager/NginxLog`, param);
export const NginxCache = param => get(`${PUBLISH_SERVICE}/HostManager/NginxCache`, param);
export const ReloadNginx = param => get(`${PUBLISH_SERVICE}/HostManager/ReloadNginx`, param);
// 获取网关配置
export const GetGateWay = param => get(`${PUBLISH_SERVICE}/HostManager/GetGateWay`, param);
export const UpdateGeteWay = param => get(`${PUBLISH_SERVICE}/HostManager/UpdateGeteWay`, param);
// 代理服务老接口
export const GetNginxConfigInfoOLD = param =>
get(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/GetNginxConfigInfo`, param);
export const InsertNginxConfigOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/InsertNginxConfig`, param);
export const StartNginxOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/StartNginx`, param);
export const StopNginxOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/StopNginx`, param);
export const NginxLogOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/NginxLog`, param);
export const NginxCacheOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/NginxCache`, param);
export const ReloadNginxOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/ReloadNginx`, param);
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
//基础信息展示
export const GetDataBaseConfig = param =>
get(`${PUBLISH_SERVICE}/DBManager/GetDataBaseConfig`, param);
export const GetBasicInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetBasicInfo`, param);
//物联平台接口
export const GetIOTPlatformVersion = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetIOTPlatformVersion`, param);
export const GetTCPConfigInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetTCPConfigInfo`, param);
export const PingIOTPlatform = param =>
get(`${PUBLISH_SERVICE}/HostManager/PingIOTPlatform`, param);
export const SaveTcpAddress = param =>
get(`${PUBLISH_SERVICE}/HostManager/SaveTcpAddress`, param);
//消息平台接口
export const GetMessageConfigInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetMessageConfigInfo`, param);
export const ConnectMessPlatform = param =>
get(`${PUBLISH_SERVICE}/HostManager/ConnectMessagePlatform`, param);
export const SaveSystemInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/SaveSystemInfo`, param);
//代理服务器接口
export const GetNginxConfigInfo = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetNginxConfigInfo`, param);
export const InsertNginxConfig = param =>
get(`${PUBLISH_SERVICE}/HostManager/InsertNginxConfig`, param);
export const StartNginx = param =>
get(`${PUBLISH_SERVICE}/HostManager/StartNginx`, param);
export const StopNginx = param =>
get(`${PUBLISH_SERVICE}/HostManager/StopNginx`, param);
export const NginxLog = param =>
get(`${PUBLISH_SERVICE}/HostManager/NginxLog`, param);
export const NginxCache = param =>
get(`${PUBLISH_SERVICE}/HostManager/NginxCache`, param);
export const ReloadNginx = param =>
get(`${PUBLISH_SERVICE}/HostManager/ReloadNginx`, param);
//获取网关配置
export const GetGateWay = param =>
get(`${PUBLISH_SERVICE}/HostManager/GetGateWay`, param);
export const UpdateGeteWay = param =>
get(`${PUBLISH_SERVICE}/HostManager/UpdateGeteWay`, param);
//代理服务老接口
export const GetNginxConfigInfoOLD = param =>
get(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/GetNginxConfigInfo`, param);
export const InsertNginxConfigOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/InsertNginxConfig`, param);
export const StartNginxOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/StartNginx`, param);
export const StopNginxOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/StopNginx`, param);
export const NginxLogOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/NginxLog`, param);
export const NginxCacheOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/NginxCache`, param);
export const ReloadNginxOLD = param =>
post(`${CITY_SERVICE}/MessagePlatform.svc/MessageManage/ReloadNginx`, param);
...@@ -24,8 +24,7 @@ export const GetMessageVersion = param => ...@@ -24,8 +24,7 @@ export const GetMessageVersion = param =>
get(`${PUBLISH_SERVICE}/MessageConfig/GetMessageVersion`, param); get(`${PUBLISH_SERVICE}/MessageConfig/GetMessageVersion`, param);
export const GetMsgTypeList = param => export const GetMsgTypeList = param =>
get(`${PUBLISH_SERVICE}/MessageConfig/GetMsgTypeList`, param); get(`${PUBLISH_SERVICE}/MessageConfig/GetMsgTypeList`, param);
export const TestPush = param => export const TestPush = param => post(`${PUBLISH_SERVICE}/MessageConfig/TestPush`, param);
post(`${PUBLISH_SERVICE}/MessageConfig/TestPush`, param);
export const AddIISAgentConfig = param => export const AddIISAgentConfig = param =>
post(`${PUBLISH_SERVICE}/MessageConfig/AddIISAgentConfig`, param); post(`${PUBLISH_SERVICE}/MessageConfig/AddIISAgentConfig`, param);
export const DeleteIISAgentConfig = param => export const DeleteIISAgentConfig = param =>
...@@ -34,7 +33,6 @@ export const GetIISAgentConfig = param => ...@@ -34,7 +33,6 @@ export const GetIISAgentConfig = param =>
get(`${PUBLISH_SERVICE}/MessageConfig/GetIISAgentConfig`, param); get(`${PUBLISH_SERVICE}/MessageConfig/GetIISAgentConfig`, param);
// 组件接口 // 组件接口
export const RoleGroupList = param => export const RoleGroupList = param => get(`${PUBLISH_SERVICE}/UserCenter/RoleGroupList`, param);
get(`${PUBLISH_SERVICE}/UserCenter/RoleGroupList`, param);
export const GetGroupUserTree = param => export const GetGroupUserTree = param =>
get(`${PUBLISH_SERVICE}/UserCenter/GetGroupUserTree`, param); get(`${PUBLISH_SERVICE}/UserCenter/GetGroupUserTree`, param);
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index'; import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
//获取视频配置列表 // 获取视频配置列表
export const GetVideoConfigList = param => export const GetVideoConfigList = param =>
get(`${PUBLISH_SERVICE}/VideoManager/GetVideoConfigList`, param); get(`${PUBLISH_SERVICE}/VideoManager/GetVideoConfigList`, param);
//添加配置 // 添加配置
export const addInsertVideoConfig = data => export const addInsertVideoConfig = data =>
post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=add`, data); post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=add`, data);
//修改配置 // 修改配置
export const editInsertVideoConfig = data => export const editInsertVideoConfig = data =>
post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=edit`, data); post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=edit`, data);
//删除配置 // 删除配置
export const deleteInsertVideoConfig = data => export const deleteInsertVideoConfig = data =>
post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=delete`, data); post(`${PUBLISH_SERVICE}/VideoManager/InsertVideoConfig?type=delete`, data);
\ No newline at end of file
import { get, post, PUBLISH_SERVICE } from '@/services/index'; import { get, post, PUBLISH_SERVICE } from '@/services/index';
// 获取全部流程 // 获取全部流程
export const WFGetAllFlow = param => export const WFGetAllFlow = param => get(`${PUBLISH_SERVICE}/WorkFlow/WFGetAllFlow`, param);
get(`${PUBLISH_SERVICE}/WorkFlow/WFGetAllFlow`, param);
// 获取流程节点的信息 // 获取流程节点的信息
export const GetFlowNode = param => export const GetFlowNode = param => get(`${PUBLISH_SERVICE}/WorkFlow/GetFlowNode`, param);
get(`${PUBLISH_SERVICE}/WorkFlow/GetFlowNode`, param);
// 创建或更新流程流程 // 创建或更新流程流程
export const CreateFlow = param => export const CreateFlow = param => post(`${PUBLISH_SERVICE}/WorkFlow/CreateFlow`, param);
post(`${PUBLISH_SERVICE}/WorkFlow/CreateFlow`, param);
// 更新流程名称 // 更新流程名称
export const UpdateFlowGroup = param => export const UpdateFlowGroup = param => post(`${PUBLISH_SERVICE}/WorkFlow/UpdateFlowGroup`, param);
post(`${PUBLISH_SERVICE}/WorkFlow/UpdateFlowGroup`, param);
// 查询全部角色对应的人员 // 查询全部角色对应的人员
export const GetRoleUser = param => export const GetRoleUser = param => post(`${PUBLISH_SERVICE}/WorkFlow/GetRoleUser`, param);
post(`${PUBLISH_SERVICE}/WorkFlow/GetRoleUser`, param);
// 获取节点信息 // 获取节点信息
export const GetNodeInfo = param => export const GetNodeInfo = param => get(`${PUBLISH_SERVICE}/WorkFlow/GetNodeInfo`, param);
get(`${PUBLISH_SERVICE}/WorkFlow/GetNodeInfo`, param);
// 创建或修改流程节点 // 创建或修改流程节点
export const CreateOrUpdateNode = param => export const CreateOrUpdateNode = param =>
post(`${PUBLISH_SERVICE}/WorkFlow/CreateOrUpdateNode`, param); post(`${PUBLISH_SERVICE}/WorkFlow/CreateOrUpdateNode`, param);
// 保存修改 // 保存修改
export const SaveNodeChange = param => export const SaveNodeChange = param => post(`${PUBLISH_SERVICE}/WorkFlow/SaveNodeChange`, param);
post(`${PUBLISH_SERVICE}/WorkFlow/SaveNodeChange`, param);
// 删除流程 // 删除流程
export const DeleteFlow = param => export const DeleteFlow = param => get(`${PUBLISH_SERVICE}/WorkFlow/DeleteFlow`, param);
get(`${PUBLISH_SERVICE}/WorkFlow/DeleteFlow`, param);
...@@ -34,21 +34,14 @@ export const GetCM_Event_LoadEventTable = query => ...@@ -34,21 +34,14 @@ export const GetCM_Event_LoadEventTable = query =>
// 加载事件主表 // 加载事件主表
export const GetCM_Event_LoadEventTypeTable = query => export const GetCM_Event_LoadEventTypeTable = query =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetCM_Event_LoadEventTypeTable`, query);
`${PUBLISH_SERVICE}/WorkOrderCenter/GetCM_Event_LoadEventTypeTable`,
query,
);
// 根据触发事件加载字段 // 根据触发事件加载字段
export const LoadEventFields = query => export const LoadEventFields = query => get(`${PUBLISH_SERVICE}/CaseManage/LoadEventFields`, query);
get(`${PUBLISH_SERVICE}/CaseManage/LoadEventFields`, query);
// 加载事件权限部门角色 // 加载事件权限部门角色
export const CM_Event_LoadDepartmentAndRoles = query => export const CM_Event_LoadDepartmentAndRoles = query =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_LoadDepartmentAndRoles`, query);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_LoadDepartmentAndRoles`,
query,
);
// 修改事件类型 // 修改事件类型
export const CM_Event_EditEventTable = data => export const CM_Event_EditEventTable = data =>
...@@ -64,15 +57,11 @@ export const CM_Event_AddEventTable = data => ...@@ -64,15 +57,11 @@ export const CM_Event_AddEventTable = data =>
// 删除事件类型表 // 删除事件类型表
export const CM_Event_RemoveEventTable = eventTypeIDs => export const CM_Event_RemoveEventTable = eventTypeIDs =>
post( post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_RemoveEventTable?eventTypeIDs=${eventTypeIDs}`);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_RemoveEventTable?eventTypeIDs=${eventTypeIDs}`,
);
// 事件类型调序 // 事件类型调序
export const CM_Event_ReOrder = eventTypeIDs => export const CM_Event_ReOrder = eventTypeIDs =>
post( post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_ReOrder?eventTypeIDs=${eventTypeIDs}`);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_ReOrder?eventTypeIDs=${eventTypeIDs}`,
);
// 点击受理流程之后加载受理流程和权限,显示字段为FlowName,FlowRoles // 点击受理流程之后加载受理流程和权限,显示字段为FlowName,FlowRoles
export const GetCM_Event_LoadEvenFlows = query => export const GetCM_Event_LoadEvenFlows = query =>
...@@ -96,17 +85,11 @@ export const CM_Event_RemoveEvenFlow = query => ...@@ -96,17 +85,11 @@ export const CM_Event_RemoveEvenFlow = query =>
// 加载事件辅助视图配置信息 // 加载事件辅助视图配置信息
export const CM_Event_ReloadEventExtendPages = query => export const CM_Event_ReloadEventExtendPages = query =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_ReloadEventExtendPages`, query);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_ReloadEventExtendPages`,
query,
);
// 添加或修改事件辅助视图配置 // 添加或修改事件辅助视图配置
export const CM_Event_OperateEventExtendPage = data => export const CM_Event_OperateEventExtendPage = data =>
post( post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_OperateEventExtendPage`, data);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_OperateEventExtendPage`,
data,
);
// 查询事件辅助视图配置信息 // 查询事件辅助视图配置信息
export const GetEventExtendPage = query => export const GetEventExtendPage = query =>
...@@ -114,7 +97,4 @@ export const GetEventExtendPage = query => ...@@ -114,7 +97,4 @@ export const GetEventExtendPage = query =>
// 删除事件辅助视图配置 // 删除事件辅助视图配置
export const CM_Event_RemoveEventExtendPage = query => export const CM_Event_RemoveEventExtendPage = query =>
get( get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_RemoveEventExtendPage`, query);
`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_RemoveEventExtendPage`,
query,
);
...@@ -3,8 +3,7 @@ import { CITY_SERVICE, get, post, postForm, PUBLISH_SERVICE } from '../index'; ...@@ -3,8 +3,7 @@ import { CITY_SERVICE, get, post, postForm, PUBLISH_SERVICE } from '../index';
export const getUserInfo = param => get('/cityinterface/getUserinfo', param); export const getUserInfo = param => get('/cityinterface/getUserinfo', param);
export const login = param => export const login = param => get(`${CITY_SERVICE}/OMS.svc/L_GetCheckUser`, param);
get(`${CITY_SERVICE}/OMS.svc/L_GetCheckUser`, param);
export const OMSLogin = (userName, password, systemType) => export const OMSLogin = (userName, password, systemType) =>
postForm(`${PUBLISH_SERVICE}/OMSLogin`, { userName, password, systemType }); postForm(`${PUBLISH_SERVICE}/OMSLogin`, { userName, password, systemType });
...@@ -8,14 +8,11 @@ ...@@ -8,14 +8,11 @@
import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index'; import { get, post, PUBLISH_SERVICE, CITY_SERVICE } from '@/services/index';
// 新增站点 // 新增站点
export const addStation = params => export const addStation = params => get(`${CITY_SERVICE}/OMS.svc/W4_AddStation`, params);
get(`${CITY_SERVICE}/OMS.svc/W4_AddStation`, params);
// 删除站点 // 删除站点
export const deleteStation = params => export const deleteStation = params => get(`${PUBLISH_SERVICE}/UserCenter/DeleteStation`, params);
get(`${PUBLISH_SERVICE}/UserCenter/DeleteStation`, params);
// 编辑站点 // 编辑站点
export const editStation = params => export const editStation = params => get(`${PUBLISH_SERVICE}/UserCenter/EditStation`, params);
get(`${PUBLISH_SERVICE}/UserCenter/EditStation`, params);
// 角色关联用户 // 角色关联用户
export const chooseUserToStation = (params, options) => export const chooseUserToStation = (params, options) =>
...@@ -37,21 +34,16 @@ export const getRoleGroupList = params => ...@@ -37,21 +34,16 @@ export const getRoleGroupList = params =>
get(`${PUBLISH_SERVICE}/UserCenter/RoleGroupList`, params); get(`${PUBLISH_SERVICE}/UserCenter/RoleGroupList`, params);
// 新增角色 // 新增角色
export const addRole = params => export const addRole = params => get(`${PUBLISH_SERVICE}/UserCenter/AddRole`, params);
get(`${PUBLISH_SERVICE}/UserCenter/AddRole`, params);
// 获取分组列表 // 获取分组列表
export const getRoleGroup = params => export const getRoleGroup = params => get(`${CITY_SERVICE}/OMS.svc/P_GetRoleGroup`, params);
get(`${CITY_SERVICE}/OMS.svc/P_GetRoleGroup`, params);
//获取角色备注 //获取角色备注
export const GetRoleGroup = params => export const GetRoleGroup = params => get(`${PUBLISH_SERVICE}/UserCenter/GetRoleGroup`, params);
get(`${PUBLISH_SERVICE}/UserCenter/GetRoleGroup`, params);
// 编辑角色 // 编辑角色
export const editRole = params => export const editRole = params => get(`${PUBLISH_SERVICE}/UserCenter/EditRole`, params);
get(`${PUBLISH_SERVICE}/UserCenter/EditRole`, params);
// 删除角色 // 删除角色
export const deleteRole = params => export const deleteRole = params => get(`${PUBLISH_SERVICE}/UserCenter/DeleteRole`, params);
get(`${PUBLISH_SERVICE}/UserCenter/DeleteRole`, params);
// 编辑分组名称 // 编辑分组名称
export const updateGroupName = params => export const updateGroupName = params =>
get(`${PUBLISH_SERVICE}/UserCenter/UpdateGroupName`, params); get(`${PUBLISH_SERVICE}/UserCenter/UpdateGroupName`, params);
...@@ -64,5 +56,4 @@ export const getMenuByRoleWithLevel = params => ...@@ -64,5 +56,4 @@ export const getMenuByRoleWithLevel = params =>
export const getWebConfigTypes = params => export const getWebConfigTypes = params =>
get(`${PUBLISH_SERVICE}/PlatformCenter/GetWebConfigTypes`, params); get(`${PUBLISH_SERVICE}/PlatformCenter/GetWebConfigTypes`, params);
// 菜单拖拽 // 菜单拖拽
export const DragGroup = params => export const DragGroup = params => post(`${PUBLISH_SERVICE}/UserCenter/DragGroup `, params);
post(`${PUBLISH_SERVICE}/UserCenter/DragGroup `, params);
...@@ -15,25 +15,20 @@ export const getWebModuleTree = userMode => ...@@ -15,25 +15,20 @@ export const getWebModuleTree = userMode =>
); );
// 新增站点 // 新增站点
export const addStation = params => export const addStation = params => get(`${PUBLISH_SERVICE}/UserCenter/AddStation`, params);
get(`${PUBLISH_SERVICE}/UserCenter/AddStation`, params);
// 删除站点 // 删除站点
export const deleteStation = params => export const deleteStation = params => get(`${PUBLISH_SERVICE}/UserCenter/DeleteStation`, params);
get(`${PUBLISH_SERVICE}/UserCenter/DeleteStation`, params);
// 编辑站点 // 编辑站点
export const editStation = params => export const editStation = params => get(`${PUBLISH_SERVICE}/UserCenter/EditStation`, params);
get(`${PUBLISH_SERVICE}/UserCenter/EditStation`, params);
// 保存站点选择人员 // 保存站点选择人员
export const chooseUserToStation = (params, options) => export const chooseUserToStation = (params, options) =>
get(`${PUBLISH_SERVICE}/UserCenter/ChooseUserToStation?`, params, options); get(`${PUBLISH_SERVICE}/UserCenter/ChooseUserToStation?`, params, options);
// 获取人员 // 获取人员
export const getUserByStation = params => export const getUserByStation = params => get(`${CITY_SERVICE}/OMS.svc/P_GetUserByStation`, params);
get(`${CITY_SERVICE}/OMS.svc/P_GetUserByStation`, params);
// 获取站点一级列表 // 获取站点一级列表
export const getAllGroup = params => export const getAllGroup = params => get(`${PUBLISH_SERVICE}/UserCenter/GetAllGroup`, params);
get(`${PUBLISH_SERVICE}/UserCenter/GetAllGroup`, params);
// 获取站点二级列表 // 获取站点二级列表
export const getStationUserList = params => export const getStationUserList = params =>
...@@ -46,11 +41,9 @@ export const groupUserPagingList = params => ...@@ -46,11 +41,9 @@ export const groupUserPagingList = params =>
export const addChildSiteNode = params => export const addChildSiteNode = params =>
get(`${PUBLISH_SERVICE}/UserCenter/AddChildSiteNode`, params); get(`${PUBLISH_SERVICE}/UserCenter/AddChildSiteNode`, params);
// 获取树状站点列表 // 获取树状站点列表
export const getSiteTree = params => export const getSiteTree = params => get(`${PUBLISH_SERVICE}/UserCenter/GetSiteTree`, params);
get(`${PUBLISH_SERVICE}/UserCenter/GetSiteTree`, params);
// 获取当前站点关联的用户 // 获取当前站点关联的用户
export const getStationUsers = params => export const getStationUsers = params =>
get(`${PUBLISH_SERVICE}/UserCenter/GetStationUsers`, params); get(`${PUBLISH_SERVICE}/UserCenter/GetStationUsers`, params);
// 菜单拖拽 // 菜单拖拽
export const DragGroup = params => export const DragGroup = params => post(`${PUBLISH_SERVICE}/UserCenter/DragGroup `, params);
post(`${PUBLISH_SERVICE}/UserCenter/DragGroup `, params);
...@@ -31,21 +31,13 @@ export const getOneOUUserListNew = OUID => ...@@ -31,21 +31,13 @@ export const getOneOUUserListNew = OUID =>
// key, // key,
// }); // });
export const GetUserByKeyNew = params => export const GetUserByKeyNew = params => get(`${PUBLISH_SERVICE}/UserCenter/GetUserByKey`, params);
get(`${PUBLISH_SERVICE}/UserCenter/GetUserByKey`, params);
/** /**
* 添加用户 * 添加用户
* @param {*} param0 * @param {*} param0
*/ */
export const addUser = ({ export const addUser = ({ OUID, loginName, userName, password, phone, email }) =>
OUID,
loginName,
userName,
password,
phone,
email,
}) =>
get(`${PUBLISH_SERVICE}/UserCenter/AddUser`, { get(`${PUBLISH_SERVICE}/UserCenter/AddUser`, {
_version: 9999, _version: 9999,
_dc: Date.now(), _dc: Date.now(),
...@@ -159,23 +151,18 @@ export const setUserRelations = (userIDs, roleList, stationList) => ...@@ -159,23 +151,18 @@ export const setUserRelations = (userIDs, roleList, stationList) =>
stationList: stationList || '', stationList: stationList || '',
}); });
export const setOrgArea = params => export const setOrgArea = params => get(`${PUBLISH_SERVICE}/UserCenter/SetOrgUserArea`, params);
get(`${PUBLISH_SERVICE}/UserCenter/SetOrgUserArea`, params); export const getOrgArea = params => get(`${PUBLISH_SERVICE}/UserCenter/GetOrgUserArea`, params);
export const getOrgArea = params =>
get(`${PUBLISH_SERVICE}/UserCenter/GetOrgUserArea`, params);
export const GetMapSetByGroupID = params => export const GetMapSetByGroupID = params =>
get(`${PUBLISH_SERVICE}/Maplayer/GetMapSetByGroupID`, params); get(`${PUBLISH_SERVICE}/Maplayer/GetMapSetByGroupID`, params);
export const GetOUTreeNew = params => export const GetOUTreeNew = params => get(`${PUBLISH_SERVICE}/UserCenter/GetOUTree`, params);
get(`${PUBLISH_SERVICE}/UserCenter/GetOUTree`, params);
export const GetUserRelationListNew = params => export const GetUserRelationListNew = params =>
get(`${PUBLISH_SERVICE}/UserCenter/GetUserRelationList`, params); get(`${PUBLISH_SERVICE}/UserCenter/GetUserRelationList`, params);
export const AddUserNew = params => export const AddUserNew = params => get(`${PUBLISH_SERVICE}/UserCenter/AddUser`, params);
get(`${PUBLISH_SERVICE}/UserCenter/AddUser`, params);
export const AddOUNew = params => export const AddOUNew = params => get(`${PUBLISH_SERVICE}/UserCenter/AddOUNew`, params);
get(`${PUBLISH_SERVICE}/UserCenter/AddOUNew`, params);
// export const EditOneOUInfoNew = params => // export const EditOneOUInfoNew = params =>
// get(`${PUBLISH_SERVICE}/UserCenter/EditOneOUInfo`, params) // get(`${PUBLISH_SERVICE}/UserCenter/EditOneOUInfo`, params)
...@@ -183,20 +170,16 @@ export const AddOUNew = params => ...@@ -183,20 +170,16 @@ export const AddOUNew = params =>
export const JumpToAnotherOUNew = params => export const JumpToAnotherOUNew = params =>
get(`${PUBLISH_SERVICE}/UserCenter/JumpToAnotherOU`, params); get(`${PUBLISH_SERVICE}/UserCenter/JumpToAnotherOU`, params);
export const EditUserNew = params => export const EditUserNew = params => get(`${PUBLISH_SERVICE}/UserCenter/EditUser`, params);
get(`${PUBLISH_SERVICE}/UserCenter/EditUser`, params);
export const UserStateOUNew = params => export const UserStateOUNew = params => get(`${PUBLISH_SERVICE}/UserCenter/UserStateOU`, params);
get(`${PUBLISH_SERVICE}/UserCenter/UserStateOU`, params);
export const DeleteUserNew = params => export const DeleteUserNew = params => get(`${PUBLISH_SERVICE}/UserCenter/DeleteUser`, params);
get(`${PUBLISH_SERVICE}/UserCenter/DeleteUser`, params);
export const SetUserRelationListNew = params => export const SetUserRelationListNew = params =>
get(`${PUBLISH_SERVICE}/UserCenter/SetUserRelationList`, params); get(`${PUBLISH_SERVICE}/UserCenter/SetUserRelationList`, params);
// 菜单拖拽 // 菜单拖拽
export const DragGroup = params => export const DragGroup = params => post(`${PUBLISH_SERVICE}/UserCenter/DragGroup `, params);
post(`${PUBLISH_SERVICE}/UserCenter/DragGroup `, params);
// export const DeleteOUNew = params => // export const DeleteOUNew = params =>
// get(`${PUBLISH_SERVICE}/UserCenter/DeleteOU`, params) // get(`${PUBLISH_SERVICE}/UserCenter/DeleteOU`, params)
...@@ -16,30 +16,26 @@ export const getWebModuleTree = userMode => ...@@ -16,30 +16,26 @@ export const getWebModuleTree = userMode =>
/** /**
* 获取主题下拉选项 * 获取主题下拉选项
*/ */
export const getWebThemes = () => export const getWebThemes = () => get(`${CITY_SERVICE}/OMS.svc/W4_GetThemes`, { query: '' });
get(`${CITY_SERVICE}/OMS.svc/W4_GetThemes`, { query: '' });
/** /**
* 获取登录模板下拉选项 * 获取登录模板下拉选项
*/ */
export const getLoginPage = () => export const getLoginPage = () => get(`${PUBLISH_SERVICE}/WebSite/GetLoginPage`, { query: '' });
get(`${PUBLISH_SERVICE}/WebSite/GetLoginPage`, { query: '' });
/** /**
* 获取地图配置下拉选项 * 获取地图配置下拉选项
*/ */
export const getMapCofigs = () => export const getMapCofigs = () =>
get( get(`${CITY_SERVICE}/OMS.svc/GetAllConfigText?terminalType=scheme&isBaseMap=false`, {
`${CITY_SERVICE}/OMS.svc/GetAllConfigText?terminalType=scheme&isBaseMap=false`, query: '',
{ query: '' }, });
);
/** /**
* 获取网站配置 * 获取网站配置
* @param {*} title 网站标题 * @param {*} title 网站标题
*/ */
export const getWebconfig = title => export const getWebconfig = title => get(`${PUBLISH_SERVICE}/WebSite/GetWebsite`, { title });
get(`${PUBLISH_SERVICE}/WebSite/GetWebsite`, { title });
/** /**
* 编辑或添加网站。默认编辑模式 * 编辑或添加网站。默认编辑模式
...@@ -54,9 +50,7 @@ export const postEditWebConfig = (config, isAdd = false) => { ...@@ -54,9 +50,7 @@ export const postEditWebConfig = (config, isAdd = false) => {
} }
}); });
return post( return post(
`${PUBLISH_SERVICE}/WebSite/${ `${PUBLISH_SERVICE}/WebSite/${isAdd ? 'AddWebsite' : 'EditWebsite'}?_version=9999`,
isAdd ? 'AddWebsite' : 'EditWebsite'
}?_version=9999`,
obj, obj,
); );
}; };
...@@ -76,17 +70,13 @@ export const addWebMenu = param => { ...@@ -76,17 +70,13 @@ export const addWebMenu = param => {
const defaultConfig = { pageUrl: '' }; const defaultConfig = { pageUrl: '' };
// eslint-disable-next-line no-return-assign // eslint-disable-next-line no-return-assign
Object.keys(param).forEach(k => (defaultConfig[k] = param[k])); Object.keys(param).forEach(k => (defaultConfig[k] = param[k]));
return post( return post(`${PUBLISH_SERVICE}/WebSite/AddMenu?_version=9999`, defaultConfig);
`${PUBLISH_SERVICE}/WebSite/AddMenu?_version=9999`,
defaultConfig,
);
}; };
export const editWebMenu = param => export const editWebMenu = param =>
post(`${PUBLISH_SERVICE}/WebSite/EditMenu?_version=9999`, param); post(`${PUBLISH_SERVICE}/WebSite/EditMenu?_version=9999`, param);
export const pEditWebMenu = param => export const pEditWebMenu = param => get(`${CITY_SERVICE}/OMS.svc/P_EditMenu?_version=9999`, param);
get(`${CITY_SERVICE}/OMS.svc/P_EditMenu?_version=9999`, param);
export const deleteWebMenu = param => export const deleteWebMenu = param =>
get(`${PUBLISH_SERVICE}/WebSite/DeleteMenu?_version=9999`, param); get(`${PUBLISH_SERVICE}/WebSite/DeleteMenu?_version=9999`, param);
...@@ -111,27 +101,22 @@ export const getConfigContent = name => ...@@ -111,27 +101,22 @@ export const getConfigContent = name =>
}); });
// 菜单拖拽 // 菜单拖拽
export const dragMenu = params => export const dragMenu = params => get(`${PUBLISH_SERVICE}/PlatformCenter/DragMenu`, params);
get(`${PUBLISH_SERVICE}/PlatformCenter/DragMenu`, params);
// 获取产品列表 // 获取产品列表
export const getProductList = params => export const getProductList = params => post(`${PUBLISH_SERVICE}/UserCenter/ProductList`, params);
post(`${PUBLISH_SERVICE}/UserCenter/ProductList`, params);
// 新增或修改产品列表 Id为0时新增,Id大于0时修改 // 新增或修改产品列表 Id为0时新增,Id大于0时修改
export const modifyProduct = params => export const modifyProduct = params => post(`${PUBLISH_SERVICE}/UserCenter/ModifyProduct`, params);
post(`${PUBLISH_SERVICE}/UserCenter/ModifyProduct`, params);
// 删除产品列表 // 删除产品列表
export const delProductList = params => export const delProductList = params => get(`${PUBLISH_SERVICE}/UserCenter/DelProduct`, params);
get(`${PUBLISH_SERVICE}/UserCenter/DelProduct`, params);
/** /**
* @新接口 * @新接口
*/ */
// 根据title获取网站配置 // 根据title获取网站配置
export const getWebSite = title => export const getWebSite = title => get(`${PUBLISH_SERVICE}/WebSite/GetWebsite`, { title });
get(`${PUBLISH_SERVICE}/WebSite/GetWebsite`, { title });
// 添加网站配置 // 添加网站配置
export const addWebsite = params => { export const addWebsite = params => {
const obj = { ...params }; const obj = { ...params };
...@@ -162,12 +147,10 @@ export const GetMaplayerByTerminalType = query => ...@@ -162,12 +147,10 @@ export const GetMaplayerByTerminalType = query =>
get(`${PUBLISH_SERVICE}/Maplayer/GetMaplayerByTerminalType`, query); get(`${PUBLISH_SERVICE}/Maplayer/GetMaplayerByTerminalType`, query);
// 获取全部 // 获取全部
export const GettMaplayer = query => export const GettMaplayer = query => get(`${PUBLISH_SERVICE}/Maplayer/GetMaplayer`, query);
get(`${PUBLISH_SERVICE}/Maplayer/GetMaplayer`, query);
// 设置底图数据 // 设置底图数据
export const SetServiceConfig = query => export const SetServiceConfig = query => get(`${PUBLISH_SERVICE}/Maplayer/SetServiceConfig`, query);
get(`${PUBLISH_SERVICE}/Maplayer/SetServiceConfig`, query);
// 获取方矢量数据列表 // 获取方矢量数据列表
export const GetVectorService = () => export const GetVectorService = () =>
...@@ -182,8 +165,7 @@ export const publisService = (query, timeout) => ...@@ -182,8 +165,7 @@ export const publisService = (query, timeout) =>
get(`${CITY_SERVICE}/OMS.svc/D_Publish_GS_Service`, query, timeout); get(`${CITY_SERVICE}/OMS.svc/D_Publish_GS_Service`, query, timeout);
// 解决方案名称 // 解决方案名称
export const getSolutionList = query => export const getSolutionList = query => get(`${CITY_SERVICE}/OMS.svc/W4_GetSolutionList`, query);
get(`${CITY_SERVICE}/OMS.svc/W4_GetSolutionList`, query);
// 删除元数据 // 删除元数据
export const deleteVectorService = query => export const deleteVectorService = query =>
...@@ -194,8 +176,7 @@ export const updatePublishedMetaData = query => ...@@ -194,8 +176,7 @@ export const updatePublishedMetaData = query =>
get(`${CITY_SERVICE}/OMS.svc/D_UpdatePublishedMetaData`, query); get(`${CITY_SERVICE}/OMS.svc/D_UpdatePublishedMetaData`, query);
// 删除配置 // 删除配置
export const deleteConfig = query => export const deleteConfig = query => get(`${PUBLISH_SERVICE}/Maplayer/DeletMaplayer`, query);
get(`${PUBLISH_SERVICE}/Maplayer/DeletMaplayer`, query);
// 增加瓦片 // 增加瓦片
export const bindSchemeBaseMap = query => export const bindSchemeBaseMap = query =>
...@@ -206,71 +187,59 @@ export const unbindSchemeBaseMap = query => ...@@ -206,71 +187,59 @@ export const unbindSchemeBaseMap = query =>
get(`${PUBLISH_SERVICE}/Maplayer/UnBindSchemeBaseMap`, query); get(`${PUBLISH_SERVICE}/Maplayer/UnBindSchemeBaseMap`, query);
// 设置web状态 // 设置web状态
export const setServiceType = query => export const setServiceType = query => get(`${CITY_SERVICE}/OMS.svc/SetServiceType`, query);
get(`${CITY_SERVICE}/OMS.svc/SetServiceType`, query);
// 获取角色 // 获取角色
export const getUserRelationList = query => export const getUserRelationList = query =>
get(`${CITY_SERVICE}/OMS.svc/WebGIS_GetUserRelationList`, query); get(`${CITY_SERVICE}/OMS.svc/WebGIS_GetUserRelationList`, query);
// 获取瓦片数据列表 // 获取瓦片数据列表
export const GetBaseMapList = query => export const GetBaseMapList = query => get(`${PUBLISH_SERVICE}/Maplayer/GetBaseMapList`, query);
get(`${PUBLISH_SERVICE}/Maplayer/GetBaseMapList`, query);
// 新增瓦片服务 // 新增瓦片服务
export const AddBaseMap = data => export const AddBaseMap = data => post(`${PUBLISH_SERVICE}/Maplayer/AddBaseMap`, data);
post(`${PUBLISH_SERVICE}/Maplayer/AddBaseMap`, data);
// 编辑瓦片数据 // 编辑瓦片数据
export const EditBaseMap = data => export const EditBaseMap = data => post(`${PUBLISH_SERVICE}/Maplayer/EditBaseMap`, data);
post(`${PUBLISH_SERVICE}/Maplayer/EditBaseMap`, data);
// 根据瓦片类型删除瓦片数据 // 根据瓦片类型删除瓦片数据
export const DeleteBaseMap = query => export const DeleteBaseMap = query => get(`${PUBLISH_SERVICE}/Maplayer/DeleteBaseMap`, query);
get(`${PUBLISH_SERVICE}/Maplayer/DeleteBaseMap`, query);
// 获取矢量列表服务 // 获取矢量列表服务
export const GetVectorDataList = query => export const GetVectorDataList = query =>
get(`${PUBLISH_SERVICE}/Maplayer/GetVectorDataList`, query); get(`${PUBLISH_SERVICE}/Maplayer/GetVectorDataList`, query);
// 删除矢量数据 // 删除矢量数据
export const DeleteVectorData = id => export const DeleteVectorData = id => post(`${PUBLISH_SERVICE}/Maplayer/DeleteVectorData?id=${id}`);
post(`${PUBLISH_SERVICE}/Maplayer/DeleteVectorData?id=${id}`);
// 添加矢量数据配置服务 // 添加矢量数据配置服务
export const AddVectorData = data => export const AddVectorData = data => post(`${PUBLISH_SERVICE}/Maplayer/AddVectorData`, data);
post(`${PUBLISH_SERVICE}/Maplayer/AddVectorData`, data);
// 刷新矢量数据 // 刷新矢量数据
export const RefreshVectorData = query => export const RefreshVectorData = query =>
get(`${PUBLISH_SERVICE}/Maplayer/RefreshVectorData`, query); get(`${PUBLISH_SERVICE}/Maplayer/RefreshVectorData`, query);
// 根据IP地址和端口号获取 // 根据IP地址和端口号获取
export const GetProjectNames = query => export const GetProjectNames = query => get(`${PUBLISH_SERVICE}/Maplayer/GetProjectNames`, query);
get(`${PUBLISH_SERVICE}/Maplayer/GetProjectNames`, query);
// 查询方案列表 // 查询方案列表
export const GetSchemaInfoList = query => export const GetSchemaInfoList = query =>
get(`${PUBLISH_SERVICE}/Maplayer/GetSchemaInfoList`, query); get(`${PUBLISH_SERVICE}/Maplayer/GetSchemaInfoList`, query);
// 增加方案 // 增加方案
export const AddSchema = data => export const AddSchema = data => post(`${PUBLISH_SERVICE}/Maplayer/AddSchema`, data);
post(`${PUBLISH_SERVICE}/Maplayer/AddSchema`, data);
// 删除方案 // 删除方案
export const DeleteSchema = query => export const DeleteSchema = query => get(`${PUBLISH_SERVICE}/Maplayer/DeleteSchema`, query);
get(`${PUBLISH_SERVICE}/Maplayer/DeleteSchema`, query);
// 编辑方案 // 编辑方案
export const EditSchema = data => export const EditSchema = data => post(`${PUBLISH_SERVICE}/Maplayer/EditSchema`, data);
post(`${PUBLISH_SERVICE}/Maplayer/EditSchema`, data);
// 方案管理设置地图范围 // 方案管理设置地图范围
export const SchemaMapSettings = data => export const SchemaMapSettings = data =>
post(`${PUBLISH_SERVICE}/Maplayer/SchemaMapSettings`, data); post(`${PUBLISH_SERVICE}/Maplayer/SchemaMapSettings`, data);
// 方案管理添加方案瓦片 // 方案管理添加方案瓦片
export const AddSchemaBaseMap = query => export const AddSchemaBaseMap = query => get(`${PUBLISH_SERVICE}/Maplayer/AddSchemaBaseMap`, query);
get(`${PUBLISH_SERVICE}/Maplayer/AddSchemaBaseMap`, query);
// 方案管理删除方案瓦片 // 方案管理删除方案瓦片
export const DeleteSchemaBaseMap = query => export const DeleteSchemaBaseMap = query =>
...@@ -281,12 +250,10 @@ export const SchemaSettingIsActive = query => ...@@ -281,12 +250,10 @@ export const SchemaSettingIsActive = query =>
get(`${PUBLISH_SERVICE}/Maplayer/SchemaSettingIsActive`, query); get(`${PUBLISH_SERVICE}/Maplayer/SchemaSettingIsActive`, query);
// 获取Web方案配置列表 // 获取Web方案配置列表
export const GetWebSchemaList = query => export const GetWebSchemaList = query => get(`${PUBLISH_SERVICE}/Maplayer/GetWebSchemaList`, query);
get(`${PUBLISH_SERVICE}/Maplayer/GetWebSchemaList`, query);
// 添加Web方案 // 添加Web方案
export const AddWebSchema = query => export const AddWebSchema = query => post(`${PUBLISH_SERVICE}/Maplayer/AddWebSchema`, query);
post(`${PUBLISH_SERVICE}/Maplayer/AddWebSchema`, query);
// 删除Web方案 // 删除Web方案
export const DeleteWebSchema = schemaname => export const DeleteWebSchema = schemaname =>
...@@ -311,6 +278,6 @@ export const UpLoadWebModuleTree = query => ...@@ -311,6 +278,6 @@ export const UpLoadWebModuleTree = query =>
}, },
}); });
export const DownLoadWebModuleTree = query => export const DownLoadWebModuleTree = query =>
`${PUBLISH_SERVICE}/PlatformCenter/DownLoadWebModuleTree?nodeId=${ `${PUBLISH_SERVICE}/PlatformCenter/DownLoadWebModuleTree?nodeId=${query.nodeId}&sysName=${
query.nodeId query.sysName
}&sysName=${query.sysName}`; }`;
...@@ -24,9 +24,7 @@ export default Authorized; ...@@ -24,9 +24,7 @@ export default Authorized;
export function getAuthority(str) { export function getAuthority(str) {
if (!isDev) return [...auth]; if (!isDev) return [...auth];
const authorityString = const authorityString =
typeof str === 'undefined' && localStorage typeof str === 'undefined' && localStorage ? localStorage.getItem('panda-oms-authority') : str;
? localStorage.getItem('panda-oms-authority')
: str;
// authorityString could be admin, "admin", ["admin"] // authorityString could be admin, "admin", ["admin"]
let authority; let authority;
try { try {
......
...@@ -11,8 +11,5 @@ export default function checkStore(store) { ...@@ -11,8 +11,5 @@ export default function checkStore(store) {
injectedReducers: isObject, injectedReducers: isObject,
injectedSagas: isObject, injectedSagas: isObject,
}; };
invariant( invariant(conformsTo(store, shape), '(src/utils...) injectors: Expected a valid redux store');
conformsTo(store, shape),
'(src/utils...) injectors: Expected a valid redux store',
);
} }
...@@ -13,11 +13,7 @@ export function injectReducerFactory(store, isValid) { ...@@ -13,11 +13,7 @@ export function injectReducerFactory(store, isValid) {
'(src/utils...) injectReducer: Expected `reducer` to be a reducer function', '(src/utils...) injectReducer: Expected `reducer` to be a reducer function',
); );
if ( if (Reflect.has(store.injectedReducers, key) && store.injectedReducers[key] === reducer) return;
Reflect.has(store.injectedReducers, key) &&
store.injectedReducers[key] === reducer
)
return;
store.injectedReducers[key] = reducer; // eslint-disable-line no-param-reassign store.injectedReducers[key] = reducer; // eslint-disable-line no-param-reassign
store.replaceReducer(createReducer(store.injectedReducers)); store.replaceReducer(createReducer(store.injectedReducers));
......
...@@ -47,10 +47,7 @@ export function injectSagaFactory(store, isValid) { ...@@ -47,10 +47,7 @@ export function injectSagaFactory(store, isValid) {
} }
} }
if ( if (!hasSaga || (hasSaga && mode !== DAEMON && mode !== ONCE_TILL_UNMOUNT)) {
!hasSaga ||
(hasSaga && mode !== DAEMON && mode !== ONCE_TILL_UNMOUNT)
) {
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
store.injectedSagas[key] = { store.injectedSagas[key] = {
...newDescriptor, ...newDescriptor,
......
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