diff --git a/public/react/src/common/TextUtil.js b/public/react/src/common/TextUtil.js index 70ca23258..05299467b 100644 --- a/public/react/src/common/TextUtil.js +++ b/public/react/src/common/TextUtil.js @@ -6,26 +6,30 @@ export function isImageExtension(fileName) { export function markdownToHTML(oldContent, selector) { window.$('#md_div').html('') // markdown to html - try { - var markdwonParser = window.editormd.markdownToHTML("md_div", { - markdown: oldContent, // .replace(/▁/g,"▁▁▁"), - emoji: true, - htmlDecode: "style,script,iframe", // you can filter tags decode - taskList: true, - tex: true, // 默认不解析 - flowChart: true, // 默认不解析 - sequenceDiagram: true // 默认不解析 - }); + if (selector && oldContent && oldContent.startsWith('
')) { // 普通html处理
+ window.$(selector).html(oldContent)
+ } else {
+ try {
+ var markdwonParser = window.editormd.markdownToHTML("md_div", {
+ markdown: oldContent, // .replace(/▁/g,"▁▁▁"),
+ emoji: true,
+ htmlDecode: "style,script,iframe", // you can filter tags decode
+ taskList: true,
+ tex: true, // 默认不解析
+ flowChart: true, // 默认不解析
+ sequenceDiagram: true // 默认不解析
+ });
- } catch(e) {
- console.error(e)
+ } catch(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) {
diff --git a/public/react/src/modules/courses/common/CNotificationHOC.js b/public/react/src/modules/courses/common/CNotificationHOC.js
index a74620764..4dfa25f0b 100644
--- a/public/react/src/modules/courses/common/CNotificationHOC.js
+++ b/public/react/src/modules/courses/common/CNotificationHOC.js
@@ -18,14 +18,22 @@ export function CNotificationHOC(options = {}) {
}
showNotification = (description, message = "提示", icon) => {
- const data = {
- message,
- description
- }
- if (icon) {
- data.icon = icon;
- }
- notification.open(data);
+ // const data = {
+ // message,
+ // description
+ // }
+ // if (icon) {
+ // data.icon = icon;
+ // }
+ // notification.open(data);
+
+ notification.open({
+ message:message,
+ description: description,
+ style: {
+ zIndex: 99999999
+ },
+ });
}
bytesToSize = (bytes) => {
diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js
index 5f63952cb..0114f564c 100644
--- a/public/react/src/modules/courses/new/CoursesNew.js
+++ b/public/react/src/modules/courses/new/CoursesNew.js
@@ -78,6 +78,12 @@ class CoursesNew extends Component {
console.log(error);
})
}else{
+ let url = "/courses/new.json"
+ axios.get(url).then((result) => {
+ console.log(result)
+ }).catch((error) => {
+ console.log(error);
+ })
// console.log(user_school);
this.props.form.setFieldsValue({
school:user_school,
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 8bb2bbcfd..8ec2ffcbc 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -15,7 +15,8 @@ import {
Pagination,
Radio,
Tooltip,
- notification
+ notification,
+ Spin,
} from "antd";
import './style.css';
import 'moment/locale/zh-cn';
@@ -2253,7 +2254,7 @@ class Listofworksstudentone extends Component {
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;
-
+ const antIcon =