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