Commit fbc76097 authored by 皮倩雯's avatar 皮倩雯

事件管理模块

parent e3a32324
......@@ -183,7 +183,7 @@ const LoginLog = () => {
bordered
columns={columns}
dataSource={data0}
scroll={{ x: 'max-content', y: 'calc(100vh - 208px)' }}
scroll={{ x: 'max-content', y: 'calc(100vh - 230px)' }}
pagination={{
showTotal: (total, range) =>
`第${range[0]}-${range[1]} 条/共 ${total} 条`,
......
......@@ -18,7 +18,7 @@
background-color:#F6F9FE;
}
.ant-table-body{
height:calc(100vh - 208px);
height:calc(100vh - 230px);
border-right: white;
overflow: auto !important;
}
......
This diff is collapsed.
This diff is collapsed.
import React, { useEffect, useState } from 'react';
import { Modal, Form, Input, notification, Row, Col} from 'antd';
import { CM_Event_OperateEventExtendPage, GetEventExtendPage} from '@/services/standingBook/api';
import { IdcardTwoTone } from '@ant-design/icons';
const AddViewModal = props => {
const { callBackSubmit = () => { }, visible, onCancel, maxLength, title2, obj, type } = props;
const [id, setId]= useState('')
const [form] = Form.useForm();
const { Item } = Form;
const { TextArea } = Input;
const onSubmit = () => {
let aa = title2;
let bb = form.getFieldsValue().WebLabel;
let cc = form.getFieldsValue().WebPage;
let dd = form.getFieldsValue().WebParam;
let ee = form.getFieldsValue().MobileLabel;
let ff = form.getFieldsValue().MobilePage;
let gg = form.getFieldsValue().MobileParam;
if(type=='edit'){
CM_Event_OperateEventExtendPage({
ID: id,
EventName: aa,
WebLabel: bb,
WebPage: cc,
WebParam: dd,
MobileLabel: ee,
MobilePage: ff,
MobileParam: gg,
}).then(res => {
if (res.msg === '') {
form.resetFields();
callBackSubmit();
notification.success({
message: '提示',
duration: 3,
description: '编辑成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
})
}else{
CM_Event_OperateEventExtendPage({
ID: 0,
EventName: aa,
WebLabel: bb,
WebPage: cc,
WebParam: dd,
MobileLabel: ee,
MobilePage: ff,
MobileParam: gg,
}).then(res => {
if (res.msg === '') {
form.resetFields();
callBackSubmit();
notification.success({
message: '提示',
duration: 3,
description: '添加成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
})
}
}
useEffect(() => {
console.log(type)
if(type==='edit'){
GetEventExtendPage({eventExtendPageId:obj}).then(res=>{
console.log(res.data)
form.setFieldsValue({...res.data})
setId(res.data.ID)
})
}else if(type==='add'){
form.resetFields();
}
}, [visible])
return (
<Modal
visible={visible}
onCancel={onCancel}
title={type=='edit' ? '编辑事件辅助视图配置':'添加事件辅助视图配置'}
onOk={() => onSubmit()}
>
<Form form={form} labelCol={{ span: 7 }} style={{ height: '23rem', overflowY: 'scroll' }}>
<Row>
<Col span={23}>
<Item
label="前端标签"
name="WebLabel"
>
<Input style={{ width: '17rem' }} placeholder="请输入前端标签" />
</Item>
</Col>
<Col span={23}>
<Item
label="前端视图"
name="WebPage"
>
<Input style={{ width: '17rem' }} placeholder="请输入前端视图" />
</Item>
</Col>
<Col span={23}>
<Item
label="视图参数"
name="WebParam"
>
<Input style={{ width: '17rem' }} placeholder="请输入视图参数" />
</Item>
</Col>
<Col span={23}>
<Item
label="手持标签"
name="MobileLabel"
>
<Input style={{ width: '17rem' }} placeholder="请输入手持标签" />
</Item>
</Col>
<Col span={23}>
<Item
label="手持视图"
name="MobilePage"
>
<Input style={{ width: '17rem' }} placeholder="请输入手持视图" />
</Item>
</Col>
<Col span={23}>
<Item
label="手持参数"
name="MobileParam"
>
<TextArea style={{ width: '17rem' }} placeholder="请输入手持参数" />
</Item>
</Col>
</Row>
</Form>
</Modal>
)
}
export default AddViewModal;
\ No newline at end of file
import React, { useState, useEffect, useCallback, useRef } from 'react';
import { Form, Modal, Space, Divider, Radio, Checkbox } from 'antd';
import styles from './incident.less';
import Sortable from 'sortablejs';
const CheckboxGroup = Checkbox.Group;
const ChangeAddFlows = props =>{
const { callBackSubmit = () => { }, pickItem, visible, filed1, characterValue, newCheckedList } = props;
const [loading, setLoading] = useState(false);
const [value, setValue] = useState('');
const [checkValue, setCheckValue] = useState([]);
const [form] = Form.useForm();
const [title, setTitle] = useState([])
const { Item } = Form;
const [checkedList, setCheckedList] = useState([]);//选中的复选框内容
const [indeterminate, setIndeterminate] = useState([]);
const [checkAll, setCheckAll] = useState([]);
const [selectData, setSelectData] = useState([])
let objArr = []
const onChangeList1 = (list, index, title) => {
const checkedListArr = [...checkedList]
checkedListArr[index] = list
setCheckedList(checkedListArr);
const indeterminateArr = [...indeterminate]
const checkAllArr = [...checkAll]
indeterminateArr[index] = !!list.length && list.length < filed1[title].length
checkAllArr[index] = list.length === filed1[title].length
setIndeterminate(indeterminateArr)
setCheckAll(checkAllArr);
};
const onSubmit = () => {
console.log(selectData.join(","))
console.log(pickItem)
console.log(checkedList)
callBackSubmit({ checkedList, str: selectData.join(","), pickItem });
}
const onCheckAllChange = e => {
const indeterminateArr = [...indeterminate]
const checkAllArr = [...checkAll]
const checkedListArr = [...checkedList]
checkAllArr[e.target.index] = e.target.checked
indeterminateArr[e.target.index] = false
e.target.checked ? checkedListArr[e.target.index] = e.target.checkvalue : checkedListArr[e.target.index] = []
setCheckedList(checkedListArr);
setIndeterminate(indeterminateArr);
setCheckAll(checkAllArr);
};
useEffect(() => {
selectAll()
}, [checkedList]);
const selectAll = () => {
objArr = []
checkedList.map(item => {
objArr = objArr.concat(item)
})
setSelectData(objArr)
}
useEffect(() => {
console.log(characterValue)
console.log(pickItem)
console.log(filed1)
let arr = Object.keys(filed1)
console.log(arr, 'arr')
setTitle(arr)
let checkArr = []
let indeterminateArr = []
let checkAllArr = []
console.log(newCheckedList);
arr.map((item, index) => {
checkArr[index] = []
newCheckedList.map(checkItem => {
if (filed1[item].includes(checkItem)) {
checkArr[index].push(checkItem)
}
})
indeterminateArr.push(!!checkArr[index].length && checkArr[index].length < filed1[item].length)
checkAllArr.push(checkArr[index].length === filed1[item].length)
})
console.log(checkArr)
setCheckedList(checkArr)
setIndeterminate(indeterminateArr)
setCheckAll(checkAllArr)
let newArr = characterValue.length ? characterValue.split(",") : []
setSelectData(newArr)
draftSort()
}, [visible]);
//拖拽初始化及逻辑
const draftSort = () => {
let el = document.getElementById('doctor-drag-items');
if (el) {
let sortable = Sortable.create(el, {
animation: 100, //动画参数
onEnd: function (evt) { //拖拽完毕之后发生,只需关注该事件
let arr = [];
let len = evt.from.children.length;
for (let i = 0; i < len; i++) {
arr.push(evt.from.children[i].getAttribute('drag-id'))
}
setSelectData(arr)
}
});
}
}
return (
<Modal
title='部门或角色'
bodyStyle={{ width: '100%', minHeight: '100px' }}
style={{ top: '10px' }}
width="700px"
destroyOnClose
centered={true}
maskClosable={false}
onOk={onSubmit}
okText="确认"
cancelText="取消"
{...props}
onOk={() => onSubmit()}
forceRender={true}
getContainer={false}
>
{visible && (
<div className={styles.listCard}>
<div className={styles.cardItem} style={{ borderRight: '1px solid #99bbe8' }}>
<Divider orientation="left" style={{ margin: '0 0 10px 0', backgroundColor: '#dfe8f6' }}>待选字段列表</Divider>
<div className={styles.cardContent}>
{title.map((item, index) => {
return <div className={styles.cardItemData} key={index}>
<Divider orientation="left" style={{ margin: '0 0 10px 0', color: '#15428b', borderTopColor: '#99bbe8' }}>{item} <Checkbox indeterminate={indeterminate[index]} onChange={onCheckAllChange} index={index} checkvalue={filed1[item]} checked={checkAll[index]}> </Checkbox></Divider>
<CheckboxGroup options={filed1[item]} value={checkedList[index]} onChange={(e) => onChangeList1(e, index, item)} /></div>
})}
</div>
</div>
<div className={styles.cardItem}>
<Divider orientation="left" style={{ margin: '0 0 10px 0', backgroundColor: '#dfe8f6' }}>已选字段列表</Divider>
<div className={styles.cardContent}>
<div className={styles.doctorTable}>
<table>
<thead>
<tr>
<td>字段名</td>
</tr>
</thead>
<tbody id='doctor-drag-items'>
{selectData && selectData.length > 0 ?
selectData.map((item, index) => {
return <tr drag-id={item} key={index} style={{ cursor: 'move' }}>
<td><span title={item}>{item}</span></td>
</tr>
})
: <tr><td colSpan='10' style={{ textAlign: 'center' }}>暂无数据</td></tr>
}
</tbody>
</table>
</div>
</div>
</div>
</div>
)
}
</Modal>
)
};
export default ChangeAddFlows;
\ No newline at end of file
import React, { useEffect, useState } from 'react';
import { Form, Modal, Table, Input, Select, Tooltip, Button, notification, Image, Menu, Dropdown, Space, Popconfirm } from 'antd';
import {
DoubleLeftOutlined,
DoubleRightOutlined,
PlusSquareFilled,
RightOutlined,
EditTwoTone,
DeleteOutlined,
OrderedListOutlined,
ApartmentOutlined,
DesktopOutlined
} from '@ant-design/icons';
import styles from './incident.less';
import { GetCM_Event_LoadEvenFlows, CM_Event_RemoveEvenFlow } from '@/services/standingBook/api';
import AddFlowsModal from './AddFlowsModal'
const ProcessModal = props => {
const { callBackSubmit = () => { }, title1, visible, onCancel, formObj, maxLength} = props;
const [tableData, setTableData] = useState([])
const [addVisible, setAddVisible] = useState(false)
const [isType, setIsType] = useState(''); // 弹窗类型
const [record1, setRecord1] = useState('')
const [obj, setObj] = useState('')
const columns = [
{
title: '流程名称',
dataIndex: 'FlowName',
key: 'FlowName',
width: 150,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
}
,
{
title: '受理权限',
dataIndex: 'FlowRoles',
key: 'FlowRoles',
width: 500,
ellipsis: true,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
},
{
title: '操作',
key: 'action',
aligin: 'center',
render: record => (
<Space size="middle">
<Tooltip title="编辑用户">
<EditTwoTone
onClick={() => editEventType(record)}
style={{ fontSize: '16px' }}
/>
</Tooltip>
<Tooltip title="删除">
<Popconfirm
placement="bottomRight"
title={
<p>
即将删除事件流程,是否确认删除?
</p>
}
okText="确认"
cancelText="取消"
onConfirm={() => deleteEventType(record)}
>
<DeleteOutlined style={{ fontSize: '16px', color: '#e86060' }} />
</Popconfirm>
</Tooltip>
</Space>
)
}
]
useEffect(() => {
GetCM_Event_LoadEvenFlows({ eventTypeId: formObj.ID }).then(res => {
if (res.msg === 'Ok') {
console.log(res.data)
setTableData(res.data)
}
})
},[visible])
const addIncident = () => {
console.log(formObj.ID)
setObj(formObj.ID)
setAddVisible(true)
setIsType('add')
}
const editEventType = record => {
setObj(formObj.ID)
setRecord1(record)
setIsType('edit');
setAddVisible(true)
}
const deleteEventType = record => {
console.log(record)
CM_Event_RemoveEvenFlow({ eventFlowIds: record.ID }).then(res=>{
if (res.msg === '') {
notification.success({
message: '提示',
duration: 3,
description: '删除成功',
});
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
})
GetCM_Event_LoadEvenFlows({ eventTypeId: formObj.ID }).then(res => {
if (res.msg === 'Ok') {
console.log(res.data)
setTableData(res.data)
}
})
}
const onOK = () => {
setAddVisible(false)
GetCM_Event_LoadEvenFlows({ eventTypeId: formObj.ID }).then(res => {
if (res.msg === 'Ok') {
console.log(res.data)
setTableData(res.data)
}
})
}
const onSumbit = () => {
callBackSubmit()
}
return (
<Modal
title={`${title1}受理流程和权限`}
visible={visible}
width="800px"
onCancel={onCancel}
onOk={onSumbit}
>
<Tooltip title="添加事件类型">
<PlusSquareFilled
onClick={() => addIncident()}
style={{
color: '#1890FF',
fontSize: '25px',
verticalAlign: 'middle',
}}
/>
</Tooltip>
<Table
size="small"
rowKey='ID'
bordered
onRow={record => {
return {
onDoubleClick: event => {event.stopPropagation(); editEventType(record)}, //双击
};
}}
columns={columns}
dataSource={tableData}
scroll={{ x: 'max-content', y: 'calc(100vh - 150px)' }}
/>
<AddFlowsModal
visible={addVisible}
obj={obj}
formObj={formObj}
type={isType}
record={record1}
maxLength={maxLength}
onCancel={() => setAddVisible(false)}
callBackSubmit={onOK}
/>
</Modal>
)
}
export default ProcessModal;
\ No newline at end of file
import React, { useState, useEffect } from 'react';
import { Modal } from 'antd';
import styles from './incident.less';
import Sortable from 'sortablejs';
const SortModal = props => {
const {callBackSubmit = () => { }, title, visible, onCancel, sortData1 } = props;
const [drag, setDrag] = useState([])
useEffect(()=>{
draftSort()
},[visible])
const onSumbit = () => {
callBackSubmit({str: drag});
}
//拖拽初始化及逻辑
const draftSort = () => {
let el = document.getElementById('doctor-drag-items');
if (el) {
let sortable = Sortable.create(el, {
animation: 100, //动画参数
onEnd: function (evt) { //拖拽完毕之后发生,只需关注该事件
let arr = [];
let len = evt.from.children.length;
for (let i = 0; i < len; i++) {
console.log(i)
arr.push(evt.from.children[i].getAttribute('drag-id'))
}
console.log(arr)
setDrag(arr)
}
});
}
}
return (
<Modal
title={title}
visible={visible}
onCancel={onCancel}
onOk={onSumbit}
okText="确认"
cancelText="取消"
>
<div className={styles.cardContent}>
<div className={styles.doctorTable}>
<table>
<thead>
<tr>
<td>事件名称</td>
</tr>
</thead>
<tbody id='doctor-drag-items'>
{
sortData1.map((item, index) => {
return <tr drag-id={item.ID} key={item.ID} style={{ cursor: 'move' }}>
<td><span title={item.name}>{item.name}</span></td>
</tr>
})
}
</tbody>
</table>
</div>
</div>
</Modal>
)
}
export default SortModal;
\ No newline at end of file
import React, { useEffect, useState } from 'react';
import { Form, Modal, Table, Input, Select, Tooltip, Button, notification, Image, Menu, Dropdown, Space, Popconfirm } from 'antd';
import { CM_Event_ReloadEventExtendPages, CM_Event_RemoveEventExtendPage } from '@/services/standingBook/api';
import {
PlusSquareFilled,
EditTwoTone,
DeleteOutlined,
} from '@ant-design/icons';
import AddViewModal from './AddViewModal'
import { set } from 'immutable';
const ViewModal = props => {
const { callBackSubmit = () => { }, visible, onCancel, formObj, title2} = props;
const [tableData, setTableData] = useState([])
const [addViewVisible, setAddViewVisible] = useState(false)
const [flag,setFlag] = useState(0)
const [obj,setObj] = useState('')
const [type,setType] = useState('')
const columns = [
{
title: '视图标签',
dataIndex: 'WebLabel',
key: 'WebLabel',
width: 150,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
}
,
{
title: '视图模块',
dataIndex: 'WebPage',
key: 'WebPage',
width: 150,
ellipsis: true,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
},
{
title: '视图参数',
dataIndex: 'WebParam',
key: 'WebParam',
width: 150,
ellipsis: true,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
},
,
{
title: '手持视图标签',
dataIndex: 'MobileLabel',
key: 'MobileLabel',
width: 150,
ellipsis: true,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
},
{
title: '手持视图模块',
dataIndex: 'MobilePage',
key: 'MobilePage',
width: 150,
ellipsis: true,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
},
,
{
title: '手持视图参数',
dataIndex: 'MobileParam',
key: 'MobileParam',
width: 150,
ellipsis: true,
render: item => (
<div
ref={r => {
if (r) {
r.innerHTML = item;
}
}}
/>
)
},
{
title: '操作',
key: 'action',
aligin: 'center',
width: 150,
render: record => (
<Space size="middle">
<Tooltip title="编辑用户">
<EditTwoTone
onClick={() => editView(record)}
style={{ fontSize: '16px' }}
/>
</Tooltip>
<Tooltip title="删除">
<Popconfirm
placement="bottomRight"
title={
<p>
即将删除事件处理流程,是否确认删除?
</p>
}
okText="确认"
cancelText="取消"
onConfirm={() => deleteView(record)}
>
<DeleteOutlined style={{ fontSize: '16px', color: '#e86060' }} />
</Popconfirm>
</Tooltip>
</Space>
)
}
]
useEffect(()=>{
console.log(formObj)
CM_Event_ReloadEventExtendPages({eventName:formObj.name}).then(res=>{
if (res.msg === 'Ok'||res.msg==='') {
console.log(res.data)
setTableData(res.data)
}
})
},[visible,flag])
const onSumbit =()=>{
}
const addView=()=>{
setType('add')
setAddViewVisible(true)
}
const editView = record =>{
setType('edit')
setAddViewVisible(true)
setObj(record.ID)
}
const deleteView= record =>{
console.log(record)
CM_Event_RemoveEventExtendPage({eventExtendId:record.ID}).then(res=>{
if (res.msg === '') {
notification.success({
message: '提示',
duration: 3,
description: '删除成功',
});
setFlag(flag + 1);
} else {
notification.error({
message: '提示',
duration: 3,
description: res.msg,
});
}
})
}
const okk =()=>{
setAddViewVisible(false)
setFlag(flag+1)
}
return(
<Modal
title={`${title2}的辅助视图`}
visible={visible}
onCancel={onCancel}
width="1300px"
onOk={onSumbit}
>
<Tooltip title="添加">
<PlusSquareFilled
onClick={() => addView()}
style={{
color: '#1890FF',
fontSize: '25px',
verticalAlign: 'middle',
}}
/>
</Tooltip>
<Table
size="small"
rowKey='ID'
bordered
onRow={record => {
return {
onDoubleClick: event => {event.stopPropagation(); editView(record)}, //双击
};
}}
columns={columns}
dataSource={tableData}
scroll={{ x: 'max-content', y: 'calc(100vh - 150px)' }}
/>
<AddViewModal
visible={addViewVisible}
title="事件辅助视图配置"
onCancel={()=>setAddViewVisible(false)}
title2={title2}
callBackSubmit={okk}
obj={obj}
type={type}
/>
</Modal>
)
}
export default ViewModal;
\ No newline at end of file
This diff is collapsed.
.incidentContainer{
.ant-card-body {
padding: 12px 24px 24px 24px;
}
.listItem{
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 400;
color: #414E65;
cursor: pointer;
line-height: 28px;
align-items: center;
padding: 8px 14px;
}
.pickItem{
background-color: #F5F6F9;
}
.contentContainers{
display: flex;
width: 100%;
position: relative;
.ant-table.ant-table-bordered > .ant-table-container {
min-width: calc(100vw - 582px);
height: calc(100vh - 120px);
height: calc(100vh - 166px);
overflow-x: hidden;
border: none;
}
.orgContainer{
height: calc(100vh - 74px);
width: 280px;
width: 250px;
left: 0;
top: 0;
overflow-x: hidden;
......@@ -115,4 +132,67 @@
margin-top: -5px !important;
vertical-align: text-bottom;
}
}
\ No newline at end of file
}
.formData{
height: 38rem;
overflow-y: scroll;
.ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before{
display: none;
}
.formData_label{
display: flex;
align-items: center;
}
.filed_listItem{
display: flex;
height: 3.6rem;
.ant-btn-icon-only {
width: 32px;
height: 32px;
/* padding: 2.4px 0; */
font-size: 16px;
border-radius: 2px;
display: flex;
align-items: center;
justify-content: center;
}
}
}
.listCard{
display: flex;
.cardItem{
padding: 0.5rem;
}
.cardContent{
height: 30rem;
overflow-y: scroll;
width: 19.5rem;
}
.cardItemData{
padding: 1rem;
border: 1px solid #b5b8c8;
margin-bottom: 1rem;
}
}
.doctorTable {
margin-bottom: 16px;
table {
width: 100%;
td {
padding: 6px;
border: 1px solid #e8e8e8;
}
thead {
tr {
font-weight: 600;
background: #FAFAFA;
}
}
tbody{
tr:hover{
background-color:#ededed ;
}
}
}
}
\ No newline at end of file
......@@ -60,6 +60,9 @@ const AddModal = props => {
useEffect(() => {
if (isType != '') {
let arr = Object.keys(filed)
console.log(arr)
console.log(newCheckedList)
console.log(characterValue)
setTitle(arr)
let checkArr = []
let indeterminateArr = []
......@@ -74,6 +77,7 @@ const AddModal = props => {
indeterminateArr.push(!!checkArr[index].length && checkArr[index].length < filed[item].length)
checkAllArr.push(checkArr[index].length === filed[item].length)
})
console.log(checkArr)
setCheckedList(checkArr)
setIndeterminate(indeterminateArr)
setCheckAll(checkAllArr)
......
......@@ -147,6 +147,7 @@ const AddModal = props => {
//新建一个包含多个list的结果对象
let tempObj = {}
// 根据不同的"name"生成多个数组
console.log(initialArr)
for (let k in nameArr) {
for (let j in initialArr) {
if (initialArr[j][`${name}`] == nameArr[k]) {
......@@ -156,6 +157,7 @@ const AddModal = props => {
}
}
}
console.log(tempObj);
for (let key in tempObj) {
let arr = []
tempObj[key].map(item => {
......
......@@ -154,12 +154,14 @@ const standingBook = props => {
GetCM_Ledger_LoadLedgers().then(res => {
setTreeLoading(false);
if (res.msg === 'Ok' && res.data.root) {
console.log(res.data.root)
setMaxLength(res.data.root.length + 1)
let arr = formateArrDataA(res.data.root, 'type')
let newArr = []
Object.keys(arr).map((item, index) => {
newArr.push(item)
})
console.log(arr)
setAllData(arr);
setPickItem(newArr[0])
console.log(newArr, 'newArr');
......@@ -169,6 +171,8 @@ const standingBook = props => {
}, [flag]);
const formateArrDataA = (initialArr, name) => {
console.log(initialArr)
console.log(name)
// 判定传参是否符合规则
if (!(initialArr instanceof Array)) {
return '请传入正确格式的数组'
......
......@@ -472,6 +472,7 @@ const UserManage = () => {
.then(newres => {
if (newres.code === 0) {
let res = newres.data;
console.log(res)
setTreeLoading(false);
setTreeData(res);
setTreeDataCopy(res);
......
/*
* @Description:
* @Author: leizhe
* @Date: 2021-07-23 10:42:58
* @LastEditTime: 2021-09-01 10:50:55
* @LastEditors: leizhe
*/
import { CITY_SERVICE, get, PUBLISH_SERVICE, post, postForm } from '../index';
// 加载台账
......@@ -19,4 +26,77 @@ post(`${PUBLISH_SERVICE}/WorkOrderCenter/GetCMLedger_OperateLedger`, data);
// 删除台账
export const CM_Ledger_RmoveLedger = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Ledger_RmoveLedger`, query);
\ No newline at end of file
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Ledger_RmoveLedger`, query);
// 加载事件
export const GetCM_Event_LoadEventTable = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetCM_Event_LoadEventTable`, query);
// 加载事件主表
export const GetCM_Event_LoadEventTypeTable = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetCM_Event_LoadEventTypeTable`, 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);
// 修改事件类型
export const CM_Event_EditEventTable = data =>
post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_EditEventTable`, data);
// 加载事件权限部门角色
export const GetCM_Event_QueryEventType = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetCM_Event_QueryEventType`, query);
// 添加事件类型表
export const CM_Event_AddEventTable = data =>
post(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_AddEventTable`, data);
// 删除事件类型表
export const CM_Event_RemoveEventTable = 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}`);
// 点击受理流程之后加载受理流程和权限,显示字段为FlowName,FlowRoles
export const GetCM_Event_LoadEvenFlows = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetCM_Event_LoadEvenFlows`, query);
// 点击添加之后加载受理流程集
export const CM_Event_ReloadFlows = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_ReloadFlows`, query);
// 添加受理流程
export const CM_Event_AddEvenFlow = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_AddEvenFlow`, query);
// 编辑受理流程
export const CM_Event_EditEvenFlow = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_EditEvenFlow`, query);
// 删除受理流程
export const CM_Event_RemoveEvenFlow = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_RemoveEvenFlow`, query);
// 加载事件辅助视图配置信息
export const 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);
// 查询事件辅助视图配置信息
export const GetEventExtendPage = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/GetEventExtendPage`, query);
// 删除事件辅助视图配置
export const CM_Event_RemoveEventExtendPage = query =>
get(`${PUBLISH_SERVICE}/WorkOrderCenter/CM_Event_RemoveEventExtendPage`, query);
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