diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 6d19b13ef..98ba43e55 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -75,7 +75,7 @@ class Listofworks extends Component { teacherlist: undefined, searchtext: "", course_groupysls: undefined, - course_groupyslstwo: undefined, + course_groupyslstwo: [], visible: false, userid: 0, course_group: null, @@ -1164,7 +1164,7 @@ class Listofworks extends Component { // console.log(checkedValues); this.setState({ unlimited: 0, - course_groupyslstwo: undefined, + course_groupyslstwo: [], loadingstate: true, }) @@ -1172,7 +1172,7 @@ class Listofworks extends Component { } else if (checkedValues.length === data.length) { this.setState({ unlimited: 0, - course_groupyslstwo: undefined, + course_groupyslstwo: [], loadingstate: true, }) this.Startsorting(this.state.order, checkedValues, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); @@ -1198,6 +1198,7 @@ class Listofworks extends Component { this.setState({ unlimitedtwo: 1, course_groupysls: undefined, + checkedValuesineinfo:[], loadingstate: true, }) @@ -1206,6 +1207,7 @@ class Listofworks extends Component { this.setState({ unlimitedtwo: 1, course_groupysls: undefined, + checkedValuesineinfo:[], loadingstate: true, }) this.Startsorting(this.state.order, this.state.checcourse_groupyslstwokedValuesine, checkedValues, this.state.searchtext, this.state.page, this.state.limit); @@ -1485,22 +1487,22 @@ class Listofworks extends Component { notlimiteds = () => { this.setState({ checkedValuesine: undefined, - course_groupyslstwo: undefined, + course_groupyslstwo: [], unlimited: 0, loadingstate: true, }) - this.Startsorting(this.state.order, null, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); + this.Startsorting(this.state.order, [], this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); } notlimitedst = () => { // console.log(this.state.course_group_info); this.setState({ unlimitedtwo: 1, - checkedValuesineinfo: undefined, + checkedValuesineinfo: [], course_groupysls: undefined, loadingstate: true, }) - this.Startsorting(this.state.order, this.state.course_groupyslstwo, undefined, this.state.searchtext, this.state.page, this.state.limit); + this.Startsorting(this.state.order, this.state.course_groupyslstwo, [], this.state.searchtext, this.state.page, this.state.limit); } //立即截止确定按钮 coursetaskend = () => { diff --git a/public/react/src/modules/login/Trialapplication.js b/public/react/src/modules/login/Trialapplication.js index e5bc75466..846971e82 100644 --- a/public/react/src/modules/login/Trialapplication.js +++ b/public/react/src/modules/login/Trialapplication.js @@ -30,7 +30,7 @@ class Trialapplication extends Component { Phonenumberisnotco: undefined, Phonenumberisnotcobool: false, readonlyInput: true, - user_phone_binded: false, + user_phone_binded: props.user_phone_binded, showTrial: false, user: undefined, } @@ -383,7 +383,7 @@ class Trialapplication extends Component { { isRenders === false ? "" : -
+