Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp_estate_client
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
mp_estate_backstage
mp_estate_client
Commits
35fd2f04
Commit
35fd2f04
authored
Sep 09, 2020
by
成旭东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
62644adf
Pipeline
#28054
passed with stage
in 2 minutes 46 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
18 deletions
+6
-18
index.tsx
src/pages/mpEstate/videoList/index.tsx
+6
-18
No files found.
src/pages/mpEstate/videoList/index.tsx
View file @
35fd2f04
/* eslint-disable react/no-array-index-key */
/* eslint-disable no-plusplus */
/* eslint-disable no-plusplus */
/* eslint-disable no-param-reassign */
/* eslint-disable no-param-reassign */
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
...
@@ -110,10 +111,11 @@ const DrawerForm = (props: any) => {
...
@@ -110,10 +111,11 @@ const DrawerForm = (props: any) => {
>
>
<
Select
<
Select
showSearch
showSearch
filterOption=
{
false
}
onSearch=
{
searchProject
}
onSearch=
{
searchProject
}
onChange=
{
changeProject
}
onChange=
{
changeProject
}
>
>
{
estateData
.
list
.
map
((
item
:
any
,
index
:
any
)
=>
(
{
estateData
.
map
((
item
:
any
,
index
:
any
)
=>
(
<
Option
key=
{
index
}
value=
{
item
.
id
}
>
<
Option
key=
{
index
}
value=
{
item
.
id
}
>
{
item
.
name
}
{
item
.
name
}
</
Option
>
</
Option
>
...
@@ -254,14 +256,7 @@ const VideoList: React.FC<any> = (props) => {
...
@@ -254,14 +256,7 @@ const VideoList: React.FC<any> = (props) => {
},
},
});
});
const
[
estateData
,
setEstateData
]
=
useState
({
const
[
estateData
,
setEstateData
]
=
useState
([]);
list
:
[],
pagination
:
{
pageSize
:
10
,
current
:
1
,
total
:
0
,
},
});
// 获取楼盘数据
// 获取楼盘数据
const
getProjectList
=
(
params
=
{})
=>
{
const
getProjectList
=
(
params
=
{})
=>
{
...
@@ -274,14 +269,7 @@ const VideoList: React.FC<any> = (props) => {
...
@@ -274,14 +269,7 @@ const VideoList: React.FC<any> = (props) => {
if
(
ret
.
error
)
{
if
(
ret
.
error
)
{
message
.
error
(
ret
.
error
);
message
.
error
(
ret
.
error
);
}
else
{
}
else
{
setEstateData
({
setEstateData
(
ret
.
data
||
[])
list
:
ret
.
data
,
pagination
:
{
pageSize
:
ret
.
size
,
current
:
ret
.
page
,
total
:
ret
.
total
,
},
})
}
}
}
}
});
});
...
@@ -403,7 +391,7 @@ const VideoList: React.FC<any> = (props) => {
...
@@ -403,7 +391,7 @@ const VideoList: React.FC<any> = (props) => {
// 编辑视频
// 编辑视频
const
editeVideo
=
(
obj
:
any
)
=>
{
const
editeVideo
=
(
obj
:
any
)
=>
{
const
currentEstateData
=
estateData
.
list
.
map
((
item
:
any
)
=>
item
.
id
);
const
currentEstateData
=
estateData
.
map
((
item
:
any
)
=>
item
.
id
);
if
(
!
currentEstateData
.
includes
(
obj
.
project_id
))
{
if
(
!
currentEstateData
.
includes
(
obj
.
project_id
))
{
getProjectList
({
getProjectList
({
...
...
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