Browse Source

成员设置可以取消选择

dev
巴林闲侠 2 years ago
parent
commit
09d3121f02
  1. 14
      web/client/src/sections/install/components/memberModal.jsx

14
web/client/src/sections/install/components/memberModal.jsx

@ -1,6 +1,6 @@
import React, { useState, useRef, useEffect } from "react";
import { connect } from "react-redux";
import { Modal, Form, CheckboxGroup, Checkbox,Button } from "@douyinfe/semi-ui";
import { Modal, Form, CheckboxGroup, Checkbox, Button } from "@douyinfe/semi-ui";
import { IconAlertCircle } from '@douyinfe/semi-icons';
@ -55,7 +55,7 @@ function memberModal (props) {
setDepartmentId(editObj.departments[0].id)
setPeopleList(departmentList)
}
setPomsList_(pomsList.filter(p=>p.pepProjectIsDelete != -1))
setPomsList_(pomsList.filter(p => p.pepProjectIsDelete != -1))
}, []);
function handleOk () {
@ -214,11 +214,15 @@ function memberModal (props) {
style={{ width: 417 }}
filter
showClear
// autoAdjustOverflow={false}
outerBottomSlot={
<p style={{ margin:"6px 26px",}}>
<Button theme='borderless' onClick={()=>{
form.current.setValue('correlationProject',pomsList_.map(p=> p.id))
<p style={{ margin: "6px 26px", }}>
<Button theme='borderless' onClick={() => {
form.current.setValue('correlationProject', pomsList_.map(p => p.id))
}}>全选</Button>
<Button theme='borderless' onClick={() => {
form.current.setValue('correlationProject', [])
}}>取消选择</Button>
</p>
}
>

Loading…
Cancel
Save