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
96afec15
Commit
96afec15
authored
3 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据字典拖拽问题
parent
168c023b
Pipeline
#38765
skipped with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
33 deletions
+49
-33
WebDic.js
src/pages/dataCenter/dictionary1/WebDic.js
+31
-31
schemeDetail.jsx
src/pages/platformCenter/schemeDetail/schemeDetail.jsx
+16
-0
siteManage.jsx
src/pages/userCenter/siteManageV2/siteManage.jsx
+2
-2
No files found.
src/pages/dataCenter/dictionary1/WebDic.js
View file @
96afec15
...
...
@@ -319,26 +319,26 @@ const WebDic = () => {
},
[
flag
]);
const
setOd
=
e
=>
{
setOrderTable
(
e
)
setFgg
(
fgg
+
1
)
}
//
const setOd = e => {
//
setOrderTable(e)
//
setFgg(fgg + 1)
//
}
const
setOd1
=
e
=>
{
setOrderTable1
(
e
)
setFgg
(
fgg
+
1
)
}
//
const setOd1 = e => {
//
setOrderTable1(e)
//
setFgg(fgg + 1)
//
}
useEffect
(()
=>
{
setOrderTable
(
data
);
setOrderTable1
(
subData
);
},
[
fgg
]);
//
useEffect(() => {
//
setOrderTable(data);
//
setOrderTable1(subData);
//
}, [fgg]);
// 根据orderTable值改变flowIDs
useEffect
(()
=>
{
let
ids
=
''
;
console
.
log
(
orderTable
)
orderTable
.
forEach
((
item
,
index
)
=>
{
if
(
index
===
orderTable
.
length
-
1
)
{
console
.
log
(
data
)
data
.
forEach
((
item
,
index
)
=>
{
if
(
index
===
data
.
length
-
1
)
{
ids
+=
`
${
item
.
nodeID
}
`
;
}
else
{
ids
+=
`
${
item
.
nodeID
}
,`
;
...
...
@@ -352,13 +352,13 @@ const WebDic = () => {
setLoading
(
false
)
})
},
[
orderTable
]);
},
[
data
]);
useEffect
(()
=>
{
let
ids
=
''
;
console
.
log
(
orderTable1
)
if
(
orderTable1
!=
''
){
orderTable1
.
forEach
((
item
,
index
)
=>
{
if
(
index
===
orderTable1
.
length
-
1
)
{
console
.
log
(
subData
)
if
(
subData
!=
''
){
subData
.
forEach
((
item
,
index
)
=>
{
if
(
index
===
subData
.
length
-
1
)
{
ids
+=
`
${
item
.
nodeID
}
`
;
}
else
{
ids
+=
`
${
item
.
nodeID
}
,`
;
...
...
@@ -372,7 +372,7 @@ const WebDic = () => {
DataDictionaryChangeOrder
(
bb
).
then
(
res
=>
{
setIsloading
(
false
)
})
},
[
orderTable1
]);
},
[
subData
]);
// 根据父节点nodeID(即parentID)获取子节点数据,一级条目parentID = -1
const
getData
=
value
=>
{
console
.
log
(
value
);
...
...
@@ -391,7 +391,7 @@ const WebDic = () => {
//是否首次加载
if
(
value
===
null
||
value
===
'-1'
)
{
setData
(
res
);
setOd
(
res
)
//
setOd(res)
console
.
log
(
res
)
console
.
log
(
first
)
...
...
@@ -405,7 +405,7 @@ const WebDic = () => {
}
else
if
(
value
)
{
console
.
log
(
res
);
setSubData
(
res
);
//设置二级条目,res为空[]时也要设置
setOd1
(
res
)
//
setOd1(res)
}
isLoadingShow
(
value
,
false
)
// } else {
...
...
@@ -760,17 +760,17 @@ const WebDic = () => {
// 拖拽回调函数
const
dragCallBack
=
value
=>
{
console
.
log
(
value
)
console
.
log
(
orderTable
)
//
console.log(value)
//
console.log(orderTable)
if
(
value
)
{
set
OrderTable
(
value
)
set
Data
(
value
)
}
};
const
dragCallBack1
=
e
=>
{
console
.
log
(
e
)
console
.
log
(
orderTable1
)
//
console.log(e)
//
console.log(orderTable1)
if
(
e
)
{
set
OrderTable1
(
e
);
set
SubData
(
e
);
}
};
...
...
@@ -809,7 +809,7 @@ const WebDic = () => {
size
=
"small"
rowKey
=
{
record
=>
record
.
nodeID
}
columns
=
{
columns
}
dataSource
=
{
orderTable
}
dataSource
=
{
data
}
scroll
=
{{
y
:
'calc(100vh - 370px)'
}}
bordered
dragCallBack
=
{
dragCallBack
}
...
...
@@ -852,7 +852,7 @@ const WebDic = () => {
columns
=
{
columns1
}
dragCallBack
=
{
dragCallBack1
}
className
=
{
styles
.
tab
}
dataSource
=
{
orderTable1
}
dataSource
=
{
subData
}
scroll
=
{{
x
:
'max-content'
,
y
:
'calc(100vh - 340px)'
}}
rowClassName
=
{
setRowClassName1
}
onClick
=
{
record
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/schemeDetail/schemeDetail.jsx
View file @
96afec15
...
...
@@ -77,6 +77,22 @@ const EditModal = props => {
)
},
[])
useEffect
(()
=>
{
let
ab
=
[]
GetMessageTemplate
().
then
(
res
=>
{
console
.
log
(
2121212
)
if
(
res
.
code
===
0
)
{
res
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
Type
===
"企业微信"
)
{
console
.
log
(
index
)
ab
.
push
(
item
)
}
})
}
}
)
console
.
log
(
ab
)
console
.
log
()
console
.
log
(
'template'
,
template
);
console
.
log
(
template
.
WorkWeiXinTemplateId
)
let
aa
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManageV2/siteManage.jsx
View file @
96afec15
...
...
@@ -600,12 +600,12 @@ const SiteManageV2 = () => {
)
}
<
div
className=
{
styles
.
switcher
}
>
{
treeVisible
&&
(
<
Tooltip
title=
"隐藏
机构
列表"
>
<
Tooltip
title=
"隐藏
站点
列表"
>
<
DoubleLeftOutlined
onClick=
{
()
=>
setTreeVisible
(
false
)
}
/>
</
Tooltip
>
)
}
{
!
treeVisible
&&
(
<
Tooltip
title=
"显示
机构
列表"
>
<
Tooltip
title=
"显示
站点
列表"
>
<
DoubleRightOutlined
onClick=
{
()
=>
setTreeVisible
(
true
)
}
/>
</
Tooltip
>
)
}
...
...
This diff is collapsed.
Click to expand it.
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