|
|
@ -1,6 +1,6 @@ |
|
|
|
import React, { useState, useRef, useEffect } from "react"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { Modal, Form, CheckboxGroup, Checkbox } from "@douyinfe/semi-ui"; |
|
|
|
import { Modal, Form, CheckboxGroup, Checkbox,Button } from "@douyinfe/semi-ui"; |
|
|
|
import { IconAlertCircle } from '@douyinfe/semi-icons'; |
|
|
|
|
|
|
|
|
|
|
@ -42,6 +42,7 @@ function memberModal (props) { |
|
|
|
text: '拥有服务、工单、资料相关的权限' |
|
|
|
}, |
|
|
|
]); //权限配置 |
|
|
|
const [pomsList_, setPomsList_] = useState([]) |
|
|
|
//初始化 |
|
|
|
useEffect(() => { |
|
|
|
if (editObj.id) { |
|
|
@ -54,6 +55,7 @@ function memberModal (props) { |
|
|
|
setDepartmentId(editObj.departments[0].id) |
|
|
|
setPeopleList(departmentList) |
|
|
|
} |
|
|
|
setPomsList_(pomsList.filter(p=>p.pepProjectIsDelete != -1)) |
|
|
|
}, []); |
|
|
|
|
|
|
|
function handleOk () { |
|
|
@ -212,15 +214,20 @@ function memberModal (props) { |
|
|
|
style={{ width: 417 }} |
|
|
|
filter |
|
|
|
showClear |
|
|
|
outerBottomSlot={ |
|
|
|
<p style={{ margin:"6px 26px",}}> |
|
|
|
<Button theme='borderless' onClick={()=>{ |
|
|
|
form.current.setValue('correlationProject',pomsList_.map(p=> p.id)) |
|
|
|
}}>全选</Button> |
|
|
|
</p> |
|
|
|
} |
|
|
|
> |
|
|
|
{ |
|
|
|
pomsList.map((item, index) => { |
|
|
|
pomsList_.map((item, index) => { |
|
|
|
return ( |
|
|
|
item.pepProjectIsDelete !== 1 ? ( |
|
|
|
<Form.Select.Option key={index} value={item.id}> |
|
|
|
{item.pepProjectName || item.name} |
|
|
|
</Form.Select.Option> |
|
|
|
) : ('') |
|
|
|
) |
|
|
|
}) |
|
|
|
} |
|
|
|