Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wecom-sidebar
Project
Project
Details
Activity
Releases
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
wanghuihui
wecom-sidebar
Commits
348058e1
Commit
348058e1
authored
Mar 09, 2022
by
Aivs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:字段名更改
parent
4e56aeb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
findCustom.tsx
src/pages/findCustom.tsx
+3
-3
No files found.
src/pages/findCustom.tsx
View file @
348058e1
...
@@ -84,7 +84,7 @@ const Actions: React.FC = () => {
...
@@ -84,7 +84,7 @@ const Actions: React.FC = () => {
const
linkdata
=
await
linkData
(
data
)
const
linkdata
=
await
linkData
(
data
)
if
(
linkdata
.
data
===
'bind OK'
){
if
(
linkdata
.
data
===
'bind OK'
){
let
data
=
listData
let
data
=
listData
data
[
index
].
is
l
ink
=
true
data
[
index
].
is
L
ink
=
true
setListData
([...
data
])
setListData
([...
data
])
}
}
}
}
...
@@ -97,7 +97,7 @@ const Actions: React.FC = () => {
...
@@ -97,7 +97,7 @@ const Actions: React.FC = () => {
console
.
log
(
linkdata
)
console
.
log
(
linkdata
)
if
(
linkdata
.
data
===
'unlink OK'
){
if
(
linkdata
.
data
===
'unlink OK'
){
let
data
=
listData
let
data
=
listData
data
[
index
].
is
l
ink
=
false
data
[
index
].
is
L
ink
=
false
setListData
([...
data
])
setListData
([...
data
])
}
}
}
}
...
@@ -168,7 +168,7 @@ const Actions: React.FC = () => {
...
@@ -168,7 +168,7 @@ const Actions: React.FC = () => {
<
div
className=
"rightItem"
>
<
div
className=
"rightItem"
>
{
list
.
avatar
?<
img
src=
{
list
.
avatar
}
className=
'avatar'
alt=
""
/>:(
<
div
className=
"avatar"
></
div
>
)
}
{
list
.
avatar
?<
img
src=
{
list
.
avatar
}
className=
'avatar'
alt=
""
/>:(
<
div
className=
"avatar"
></
div
>
)
}
<
div
className=
"mgt"
>
<
div
className=
"mgt"
>
{
list
.
is
l
ink
?
{
list
.
is
L
ink
?
<
Button
type=
"primary"
size=
'small'
danger
onClick=
{
unlink
.
bind
(
this
,
list
,
index
)
}
>
取消关联
</
Button
>:
<
Button
type=
"primary"
size=
'small'
danger
onClick=
{
unlink
.
bind
(
this
,
list
,
index
)
}
>
取消关联
</
Button
>:
<
Button
type=
"primary"
size=
'small'
onClick=
{
link
.
bind
(
this
,
list
,
index
)
}
>
关联客户
</
Button
>
<
Button
type=
"primary"
size=
'small'
onClick=
{
link
.
bind
(
this
,
list
,
index
)
}
>
关联客户
</
Button
>
}
}
...
...
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