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

fix: 修复事件弹框问题

parent 4afb95ea
Pipeline #41263 skipped with stages
...@@ -527,7 +527,7 @@ const ChangeAddFlows = props => { ...@@ -527,7 +527,7 @@ const ChangeAddFlows = props => {
<CheckboxGroup <CheckboxGroup
options={roleValue['部门']} options={roleValue['部门']}
value={checkedList[1]} value={checkedList[1]}
onChange={onChangeListNew} onChange={onChangeListNew1}
/> />
) : ( ) : (
<Empty <Empty
...@@ -543,7 +543,7 @@ const ChangeAddFlows = props => { ...@@ -543,7 +543,7 @@ const ChangeAddFlows = props => {
<CheckboxGroup <CheckboxGroup
options={roleValue['站点']} options={roleValue['站点']}
value={checkedList[2]} value={checkedList[2]}
onChange={onChangeListNew} onChange={onChangeListNew2}
/> />
) : ( ) : (
<Empty <Empty
......
...@@ -229,6 +229,7 @@ const ChangeAdd = props => { ...@@ -229,6 +229,7 @@ const ChangeAdd = props => {
}; };
const getRoles = (type, keywords, pageSizes, pageIndex) => { const getRoles = (type, keywords, pageSizes, pageIndex) => {
console.log(type);
CM_Event_LoadDepartmentAndRoles({ CM_Event_LoadDepartmentAndRoles({
type, type,
keywords, keywords,
...@@ -237,6 +238,7 @@ const ChangeAdd = props => { ...@@ -237,6 +238,7 @@ const ChangeAdd = props => {
}).then(res => { }).then(res => {
if (res.msg === 'Ok') { if (res.msg === 'Ok') {
setTotal(res.data.count); setTotal(res.data.count);
console.log(formateArrDataA1(res.data, 'groupType'));
setRoleValue(formateArrDataA1(res.data, 'groupType')); setRoleValue(formateArrDataA1(res.data, 'groupType'));
setFiled1(formateArrDataA1(res.data, 'groupType')); setFiled1(formateArrDataA1(res.data, 'groupType'));
if (res.data.count == 0) { if (res.data.count == 0) {
...@@ -359,6 +361,7 @@ const ChangeAdd = props => { ...@@ -359,6 +361,7 @@ const ChangeAdd = props => {
setIsCheck(1); setIsCheck(1);
let data = checkDataRole; let data = checkDataRole;
let DataValue = []; let DataValue = [];
console.log(roleValue);
checkDataRole.forEach(item => { checkDataRole.forEach(item => {
if (roleValue['角色'].indexOf(item) != -1) { if (roleValue['角色'].indexOf(item) != -1) {
DataValue.push(item); DataValue.push(item);
...@@ -392,6 +395,7 @@ const ChangeAdd = props => { ...@@ -392,6 +395,7 @@ const ChangeAdd = props => {
setIsCheck1(1); setIsCheck1(1);
let data = checkDataPm; let data = checkDataPm;
let DataValue = []; let DataValue = [];
console.log(roleValue);
checkDataPm.forEach(item => { checkDataPm.forEach(item => {
if (roleValue['部门'].indexOf(item) != -1) { if (roleValue['部门'].indexOf(item) != -1) {
DataValue.push(item); DataValue.push(item);
...@@ -425,6 +429,7 @@ const ChangeAdd = props => { ...@@ -425,6 +429,7 @@ const ChangeAdd = props => {
setIsCheck(1); setIsCheck(1);
let data = checkDataSite; let data = checkDataSite;
let DataValue = []; let DataValue = [];
console.log(roleValue);
checkDataSite.forEach(item => { checkDataSite.forEach(item => {
if (roleValue['站点'].indexOf(item) != -1) { if (roleValue['站点'].indexOf(item) != -1) {
DataValue.push(item); DataValue.push(item);
...@@ -546,7 +551,7 @@ const ChangeAdd = props => { ...@@ -546,7 +551,7 @@ const ChangeAdd = props => {
<CheckboxGroup <CheckboxGroup
options={roleValue['部门']} options={roleValue['部门']}
value={checkedList[1]} value={checkedList[1]}
onChange={onChangeListNew} onChange={onChangeListNew1}
/> />
) : ( ) : (
<Empty <Empty
...@@ -562,7 +567,7 @@ const ChangeAdd = props => { ...@@ -562,7 +567,7 @@ const ChangeAdd = props => {
<CheckboxGroup <CheckboxGroup
options={roleValue['站点']} options={roleValue['站点']}
value={checkedList[2]} value={checkedList[2]}
onChange={onChangeListNew} onChange={onChangeListNew2}
/> />
) : ( ) : (
<Empty <Empty
......
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