# Conflicts:
#	public/react/src/modules/login/Trialapplicationysl.js
dev_forum
杨树林 5 years ago
commit 8464485db3

@ -114,14 +114,14 @@ class coursesHome extends Component{
onClick={ () => this.changeStatus("course_members_count")}>最热</a> onClick={ () => this.changeStatus("course_members_count")}>最热</a>
<div className="fr mr5 search-new"> <div className="fr mr5 search-new">
<Search {/* <Search
placeholder="课堂名称/教师姓名/学校名称" placeholder="课堂名称/教师姓名/学校名称"
id="subject_search_input" id="subject_search_input"
value={search} value={search}
onInput={this.inputSearchValue} onInput={this.inputSearchValue}
onSearch={this.searchValue} onSearch={this.searchValue}
autoComplete="off" autoComplete="off"
></Search> ></Search> */}
</div> </div>
</div> </div>

@ -2203,8 +2203,48 @@ class Listofworksstudentone extends Component {
// //
// } // }
daochushixunbaogao=()=>{
}
confirmysl(url){
axios.get(url).then((response) => {
if(response.data.status&&response.data.status===-1){
}else if(response.data.status&&response.data.status===-2){
if(response.data.messages === "100"){
// 已超出文件导出的上限数量100 ),建议:
this.setState({
DownloadType:true,
DownloadMessageval:100
})
}else {
//因附件资料超过500M
this.setState({
DownloadType:true,
DownloadMessageval:500
})
}
}else {
this.props.showNotification(`正在下载中`);
window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
});
}
Downloadcal=()=>{
this.setState({
DownloadType:false,
DownloadMessageval:undefined
})
}
render() { render() {
let {columns,course_groupysls,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state; let {columns,course_groupysls,isAdmin, course_groupyslstwo, unlimited, unlimitedtwo, course_group_info, orders, task_status, checkedValuesine, searchtext, teacherlist, visible,visibles, game_list,columnsstu, limit,experience, boolgalist,viewtrainingdata, teacherdata, page, data, jobsettingsdata, styletable, datas, order, loadingstate,computeTimetype} = this.state;
@ -2234,7 +2274,13 @@ class Listofworksstudentone extends Component {
updatas={() => this.isupdatas()} updatas={() => this.isupdatas()}
/> : ""} /> : ""}
<DownloadMessageysl
{...this.props}
value={this.state.DownloadMessageval}
modalCancel={this.Downloadcal}
modalsType={this.state.DownloadType}
/>
{visibles === true ? {visibles === true ?
<div> <div>
<style> <style>

@ -102,40 +102,8 @@ class ShixunHomeworkPage extends Component {
child.workshowmodel(); child.workshowmodel();
} }
/// 确认是否下载 /// 确认是否下载
confirmysl(url){
axios.get(url).then((response) => {
if(response.data.status&&response.data.status===-1){
}else if(response.data.status&&response.data.status===-2){
if(response.data.messages === "100"){
// 已超出文件导出的上限数量100 ),建议:
this.setState({
DownloadType:true,
DownloadMessageval:100
})
}else {
//因附件资料超过500M
this.setState({
DownloadType:true,
DownloadMessageval:500
})
}
}else {
this.props.showNotification(`正在下载中`);
window.open("/api"+url, '_blank');
}
}).catch((error) => {
console.log(error)
});
}
Downloadcal=()=>{
this.setState({
DownloadType:false,
DownloadMessageval:undefined
})
}
bindRef = ref => { this.child = ref } bindRef = ref => { this.child = ref }
///////////////教师截止 ///////////////教师截止
@ -271,13 +239,13 @@ class ShixunHomeworkPage extends Component {
</div> </div>
</div> </div>
<DownloadMessageysl {/*<DownloadMessageysl*/}
{...this.props} {/*{...this.props}*/}
value={this.state.DownloadMessageval} {/*value={this.state.DownloadMessageval}*/}
modalCancel={this.Downloadcal} {/*modalCancel={this.Downloadcal}*/}
modalsType={this.state.DownloadType} {/*modalsType={this.state.DownloadType}*/}
/> {/*/>*/}
{parseInt(tab) === 0 ?<Listofworksstudentone triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone>:""} {parseInt(tab) === 0 ?<Listofworksstudentone triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone>:""}
{parseInt(tab) === 1 ?<Workquestionandanswer triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Workquestionandanswer>:""} {parseInt(tab) === 1 ?<Workquestionandanswer triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Workquestionandanswer>:""}

@ -216,13 +216,13 @@ class Trialapplication extends Component {
this.setState({ this.setState({
isRenders: false isRenders: false
}) })
this.Cancel(); this.handleDialogClose()
window.location.href = "/"; window.location.href = "/";
} else { } else {
this.setState({ this.setState({
isRenders: false isRenders: false
}) })
this.Cancel(); this.handleDialogClose()
} }
} }
@ -277,14 +277,12 @@ class Trialapplication extends Component {
this.setState({ this.setState({
isRenders: false isRenders: false
}) })
this.Cancel(); this.handleDialogClose()
} else { } else {
this.setState({ this.setState({
isRenders: false isRenders: false
}) })
this.Cancel(); this.handleDialogClose()
} }
} }
}).catch((error) => { }).catch((error) => {

@ -289,11 +289,12 @@ class Trialapplicationysl extends Component {
if(result !== undefined){ if(result !== undefined){
this.props.showNotification(`试用申请已提交,我们将尽快完成审核`); this.props.showNotification(`试用申请已提交,我们将尽快完成审核`);
// if (this.state.showTrial === false) { // if (this.state.showTrial === false) {
window.location.href = "/";
this.setState({ this.setState({
isRenders: false isRenders: false
}) })
this.Cancel(); // this.Cancel();
window.location.href = "/"; this.handleDialogClose()
// } else { // } else {
// this.setState({ // this.setState({
// isRenders: false // isRenders: false

@ -214,7 +214,7 @@ class ShixunCardList extends Component {
{/*enterButton*/} {/*enterButton*/}
{/*/>*/} {/*/>*/}
<Search {/* <Search
style={{ width: 300 }} style={{ width: 300 }}
className="fl" className="fl"
placeholder="请输入创建者/实训/关卡名称进行搜索" placeholder="请输入创建者/实训/关卡名称进行搜索"
@ -222,7 +222,7 @@ class ShixunCardList extends Component {
onInput={this.Input_searchs} onInput={this.Input_searchs}
onSearch={value => this.Input_search(value)} onSearch={value => this.Input_search(value)}
autoComplete="off" autoComplete="off"
></Search> ></Search> */}
</div> </div>
<div className="fr"> <div className="fr">
<span className="fl color-grey-6 mr30 font-16 mt5" id="search_name">{ <span className="fl color-grey-6 mr30 font-16 mt5" id="search_name">{

Loading…
Cancel
Save