Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_forum
cxt 5 years ago
commit accc9fcb1c

@ -6,26 +6,30 @@ export function isImageExtension(fileName) {
export function markdownToHTML(oldContent, selector) { export function markdownToHTML(oldContent, selector) {
window.$('#md_div').html('') window.$('#md_div').html('')
// markdown to html // markdown to html
try { if (selector && oldContent && oldContent.startsWith('<p>')) { // 普通html处理
var markdwonParser = window.editormd.markdownToHTML("md_div", { window.$(selector).html(oldContent)
markdown: oldContent, // .replace(/▁/g,"▁▁▁"), } else {
emoji: true, try {
htmlDecode: "style,script,iframe", // you can filter tags decode var markdwonParser = window.editormd.markdownToHTML("md_div", {
taskList: true, markdown: oldContent, // .replace(/▁/g,"▁▁▁"),
tex: true, // 默认不解析 emoji: true,
flowChart: true, // 默认不解析 htmlDecode: "style,script,iframe", // you can filter tags decode
sequenceDiagram: true // 默认不解析 taskList: true,
}); tex: true, // 默认不解析
flowChart: true, // 默认不解析
sequenceDiagram: true // 默认不解析
});
} catch(e) { } catch(e) {
console.error(e) console.error(e)
}
const content = window.$('#md_div').html()
if (selector) {
window.$(selector).html(content)
}
return content
} }
const content = window.$('#md_div').html()
if (selector) {
window.$(selector).html(content)
}
return content
} }
export function appendFileSizeToUploadFile(item) { export function appendFileSizeToUploadFile(item) {

@ -18,14 +18,22 @@ export function CNotificationHOC(options = {}) {
} }
showNotification = (description, message = "提示", icon) => { showNotification = (description, message = "提示", icon) => {
const data = { // const data = {
message, // message,
description // description
} // }
if (icon) { // if (icon) {
data.icon = icon; // data.icon = icon;
} // }
notification.open(data); // notification.open(data);
notification.open({
message:message,
description: description,
style: {
zIndex: 99999999
},
});
} }
bytesToSize = (bytes) => { bytesToSize = (bytes) => {

@ -78,6 +78,12 @@ class CoursesNew extends Component {
console.log(error); console.log(error);
}) })
}else{ }else{
let url = "/courses/new.json"
axios.get(url).then((result) => {
console.log(result)
}).catch((error) => {
console.log(error);
})
// console.log(user_school); // console.log(user_school);
this.props.form.setFieldsValue({ this.props.form.setFieldsValue({
school:user_school, school:user_school,

@ -15,7 +15,8 @@ import {
Pagination, Pagination,
Radio, Radio,
Tooltip, Tooltip,
notification notification,
Spin,
} from "antd"; } from "antd";
import './style.css'; import './style.css';
import 'moment/locale/zh-cn'; import 'moment/locale/zh-cn';
@ -2253,7 +2254,7 @@ class Listofworksstudentone extends Component {
render() { render() {
let {columns,course_groupysls,datajs,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,datajs,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;
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
// console.log(this.state.student_works); // console.log(this.state.student_works);
// console.log("841"); // console.log("841");
// console.log(this.state.columns); // console.log(this.state.columns);
@ -2384,13 +2385,16 @@ class Listofworksstudentone extends Component {
background:#EDEDED; background:#EDEDED;
cursor: pointer; cursor: pointer;
} }
.shixunSpin{
color:#FF6801;
margin-right: 10px;
}
`} `}
</style> </style>
{computeTimetype===false?<li className="clearfix startbox"> {computeTimetype===false?<li className="clearfix startbox">
<Spin indicator={antIcon} spinning={!computeTimetype} className={"shixunSpin"}/>
<span className={"startfont"}> <span className={"startfont"}>
正在执行成绩计算请稍后刷新页面查看结果 正在执行成绩计算完成后将为您自动刷新结果温馨提示执行时间因作品数量而异
温馨提示执行时间因作品数量而异
</span> </span>
</li>:""} </li>:""}
@ -2630,10 +2634,10 @@ class Listofworksstudentone extends Component {
<style> <style>
{ {
` `
body { body {
overflow: hidden !important; overflow: hidden !important;
} }
` `
} }
</style> </style>
<TraineetraininginformationModal <TraineetraininginformationModal
@ -2654,12 +2658,19 @@ class Listofworksstudentone extends Component {
<div className={"educontent "}> <div className={"educontent "}>
<div className="edu-back-white" style={{width: "1200"}}> <div className="edu-back-white" style={{width: "1200"}}>
<style>
{
`
.shixunSpin{
color:#FF6801;
margin-right: 10px;
}
`}
</style>
{computeTimetype===false?<li className="clearfix startbox mb20"> {computeTimetype===false?<li className="clearfix startbox mb20">
<Spin indicator={antIcon} spinning={!computeTimetype} className={"shixunSpin"}/>
<span className={"startfont"}> <span className={"startfont"}>
正在执行成绩计算请稍后刷新页面查看结果 正在执行成绩计算完成后将为您自动刷新结果温馨提示执行时间因作品数量而异
温馨提示执行时间因作品数量而异
</span> </span>
</li>:""} </li>:""}
@ -2774,12 +2785,20 @@ class Listofworksstudentone extends Component {
<div className={"educontent mb20"}> <div className={"educontent mb20"}>
<div className="edu-back-white"> <div className="edu-back-white">
<style>
{
`
.shixunSpin{
color:#FF6801;
margin-right: 10px;
}
`}
</style>
{computeTimetype===false?<li className="clearfix startbox mb20"> {computeTimetype===false?<li className="clearfix startbox mb20">
<Spin indicator={antIcon} spinning={!computeTimetype} className={"shixunSpin"}/>
<span className={"startfont"}> <span className={"startfont"}>
正在执行成绩计算请稍后刷新页面查看结果 正在执行成绩计算完成后将为您自动刷新结果温馨提示执行时间因作品数量而异
温馨提示执行时间因作品数量而异
</span> </span>
</li>:""} </li>:""}

@ -158,6 +158,15 @@ class PathNew extends Component{
} }
componentDidMount() { componentDidMount() {
let url = "/paths/new.json"
axios.get(url).then((result) => {
console.log(result)
}).catch((error) => {
console.log(error);
})
let pathId = this.props.match.params.pathId; let pathId = this.props.match.params.pathId;
if (pathId) { if (pathId) {
this.isEditPage = true this.isEditPage = true

@ -691,7 +691,7 @@ class LoginRegisterComponent extends Component {
<Input style={loginInputsyl} type="text" autoComplete="off" onClick={this.changeTypey} <Input style={loginInputsyl} type="text" autoComplete="off" onClick={this.changeTypey}
className={Phonenumberisnotco && Phonenumberisnotco !== "" ?" color-grey-9 loginInputzhucheyslass bor-reds":" color-grey-9 loginInputzhuche"} className={Phonenumberisnotco && Phonenumberisnotco !== "" ?" color-grey-9 loginInputzhucheyslass bor-reds":" color-grey-9 loginInputzhuche"}
placeholder="输入注册手机号或邮箱" value={this.state.login} placeholder="输入注册手机号或邮箱" value={this.state.login}
onBlur={(e) => this.inputOnBlurzhuche(e)} // onBlur={(e) => this.inputOnBlurzhuche(e)}
onChange={this.loginInputonChange} style={{marginTop: '10px', height: "38px"}}></Input> onChange={this.loginInputonChange} style={{marginTop: '10px', height: "38px"}}></Input>
{ {
Phonenumberisnotco && Phonenumberisnotco !== "" ? Phonenumberisnotco && Phonenumberisnotco !== "" ?

@ -1028,7 +1028,7 @@ class LoginRegisterComponent extends Component {
value={this.state.logins} value={this.state.logins}
type="text" autoComplete="off" type="text" autoComplete="off"
onChange={this.loginInputonChanges} onChange={this.loginInputonChanges}
onBlur={(e) => this.inputOnBlurzhuche(e, 2)} // onBlur={(e) => this.inputOnBlurzhuche(e, 2)}
style={{marginTop: '30px' , height: '38px',color:'#999999',fontSize:"14px"}}></Input> style={{marginTop: '30px' , height: '38px',color:'#999999',fontSize:"14px"}}></Input>
{ {
Phonenumberisnotcos && Phonenumberisnotcos !== "" ? Phonenumberisnotcos && Phonenumberisnotcos !== "" ?

Loading…
Cancel
Save