From 5333e28f0030c9d34158ed1c6ac99bedef8270cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 2 Aug 2019 15:56:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PackageIndex/PackageConcent.js | 15 +++++++++++++-- .../PackageIndexNEITaskDetails.js | 2 +- .../projectPackages/ProjectPackageIndex.js | 3 ++- .../modules/projectPackages/packageconcnet.css | 4 ++-- .../src/modules/user/usersInfo/InfosPackage.js | 1 + 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js index ea9de38fe..1950d7ed8 100644 --- a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js +++ b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js @@ -185,6 +185,17 @@ class PackageConcent extends Component { }) } + onChangePagelist=(pageNum)=> { + + this.setState({ + page: pageNum + }) + let {category, keyword, sort_by, sort_direction} = this.state; + this.setdatas(category, keyword, sort_by, sort_direction, pageNum) + + } + + render() { let {data,page,category,sort_by,sort_direction,project_packages, isRender,AccountProfiletype @@ -286,7 +297,7 @@ class PackageConcent extends Component {
- this.onReleaseRequirements("/crowdsourcing/"+item.id)} title={item.title} >{item.title} @@ -346,7 +357,7 @@ class PackageConcent extends Component {
:""}
- +
diff --git a/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js index 2eee9d882..2ad696538 100644 --- a/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js +++ b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js @@ -311,7 +311,7 @@ class PackageIndexNEITaskDetails extends Component {
- {data&&data.title} diff --git a/public/react/src/modules/projectPackages/ProjectPackageIndex.js b/public/react/src/modules/projectPackages/ProjectPackageIndex.js index 097e012e0..29d4efa17 100644 --- a/public/react/src/modules/projectPackages/ProjectPackageIndex.js +++ b/public/react/src/modules/projectPackages/ProjectPackageIndex.js @@ -36,7 +36,8 @@ class ProjectPackageIndex extends Component { } render() { - +console.log(this.props) + console.log(this.state) return (
diff --git a/public/react/src/modules/projectPackages/packageconcnet.css b/public/react/src/modules/projectPackages/packageconcnet.css index 2fc8a8ebb..f7ee4cc06 100644 --- a/public/react/src/modules/projectPackages/packageconcnet.css +++ b/public/react/src/modules/projectPackages/packageconcnet.css @@ -31,8 +31,8 @@ color:#8F8F8F !important; } -.maxwidth700{ - max-width: 700px; +.maxwidth670{ + max-width: 670px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; diff --git a/public/react/src/modules/user/usersInfo/InfosPackage.js b/public/react/src/modules/user/usersInfo/InfosPackage.js index 272c827f4..6bd11a926 100644 --- a/public/react/src/modules/user/usersInfo/InfosPackage.js +++ b/public/react/src/modules/user/usersInfo/InfosPackage.js @@ -138,6 +138,7 @@ class InfosPackage extends Component{ axios.delete(url).then((response) => { if (response.data.status == 0) { this.getCourses(cate,status,1); + this.cancelProject; } }) .catch(function (error) {