Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
ee7ead99
Commit
ee7ead99
authored
Nov 10, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修复巡检反馈切换关联事件表按钮一直变灰bug'
parent
ad4583e4
Pipeline
#63526
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
AddModal.jsx
...s/bsmanager/patrolMaintenance/patrolFeedback/AddModal.jsx
+22
-21
No files found.
src/pages/bsmanager/patrolMaintenance/patrolFeedback/AddModal.jsx
View file @
ee7ead99
...
...
@@ -164,27 +164,27 @@ const AddModal = props => {
setKeepTree
(
res
.
data
.
root
);
}
//
let arrlist = [];
//
let data = {};
//
let listArr = [];
//
res.data.root.map(i => {
//
arrlist.push(i.name);
//
});
//
data.TableFieldNames = arrlist;
//
data.TableName = e;
//
listArr.push(data);
//
let arr = formateArrDataA2(res.data.root, 'group');
//
let newArr = [];
//
Object.keys(arr).map((item, index) => {
//
newArr.push({ type: item, key: index, id: index });
//
});
//
let aa = [];
//
let bb = [];
//
Object.keys(arr).forEach((item, index) => {
//
aa.push({ name: item, key: index, ID: index, children: arr[item] });
//
bb.push(item);
//
});
//
console.log(aa, 'aaaaaaaaaaaaa');
let
arrlist
=
[];
let
data
=
{};
let
listArr
=
[];
res
.
data
.
root
.
map
(
i
=>
{
arrlist
.
push
(
i
.
name
);
});
data
.
TableFieldNames
=
arrlist
;
data
.
TableName
=
e
;
listArr
.
push
(
data
);
let
arr
=
formateArrDataA2
(
res
.
data
.
root
,
'group'
);
let
newArr
=
[];
Object
.
keys
(
arr
).
map
((
item
,
index
)
=>
{
newArr
.
push
({
type
:
item
,
key
:
index
,
id
:
index
});
});
let
aa
=
[];
let
bb
=
[];
Object
.
keys
(
arr
).
forEach
((
item
,
index
)
=>
{
aa
.
push
({
name
:
item
,
key
:
index
,
ID
:
index
,
children
:
arr
[
item
]
});
bb
.
push
(
item
);
});
console
.
log
(
aa
,
'aaaaaaaaaaaaa'
);
// setKeepTree(aa);
// setKeepAll(aa);
// all.current = aa;
...
...
@@ -560,6 +560,7 @@ const AddModal = props => {
// 改变关联事件类型
const
onChangeEvent
=
(
e
,
i
)
=>
{
if
(
!
i
)
{
setKeepData
(
keep
);
formAdd
.
resetFields
();
}
console
.
log
(
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment