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

fix: 修复事件弹框问题

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