From ef8887bb1d43333446dbc094a8f8763ec399d0ae 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, 26 Jul 2019 16:06:46 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/courses/new/CoursesNew.js | 6 ++++++
public/react/src/modules/paths/PathNew.js | 9 +++++++++
2 files changed, 15 insertions(+)
diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js
index 3134a6b58..c6e81d06a 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/paths/PathNew.js b/public/react/src/modules/paths/PathNew.js
index 0575fc817..3acad7eed 100644
--- a/public/react/src/modules/paths/PathNew.js
+++ b/public/react/src/modules/paths/PathNew.js
@@ -158,6 +158,15 @@ class PathNew extends Component{
}
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;
if (pathId) {
this.isEditPage = true
From ff377294f1c1a9380d573798a5f75398df9fedb9 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, 26 Jul 2019 16:41:12 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../courses/common/CNotificationHOC.js | 24 ++++++---
.../shixunHomework/Listofworksstudentone.js | 51 +++++++++++++------
2 files changed, 51 insertions(+), 24 deletions(-)
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/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 = ;
// console.log(this.state.student_works);
// console.log("841");
// console.log(this.state.columns);
@@ -2384,13 +2385,16 @@ class Listofworksstudentone extends Component {
background:#EDEDED;
cursor: pointer;
}
-
+ .shixunSpin{
+ color:#FF6801;
+ margin-right: 10px;
+ }
`}
{computeTimetype===false?
+
- 正在执行成绩计算,请稍后刷新页面查看结果
- 温馨提示:执行时间因作品数量而异
+ 正在执行成绩计算,完成后将为您自动刷新结果。温馨提示:执行时间因作品数量而异
:""}
@@ -2630,10 +2634,10 @@ class Listofworksstudentone extends Component {
-
-
+
{computeTimetype===false?
+
- 正在执行成绩计算,请稍后刷新页面查看结果
- 温馨提示:执行时间因作品数量而异
+ 正在执行成绩计算,完成后将为您自动刷新结果。温馨提示:执行时间因作品数量而异
:""}
@@ -2774,12 +2785,20 @@ class Listofworksstudentone extends Component {
-
+
{computeTimetype===false?
+
- 正在执行成绩计算,请稍后刷新页面查看结果
- 温馨提示:执行时间因作品数量而异
+ 正在执行成绩计算,完成后将为您自动刷新结果。温馨提示:执行时间因作品数量而异
:""}
From ae1b31263ca283b3a34d13c902c38a36bbab3499 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 26 Jul 2019 17:24:02 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/react/src/modules/user/FindPasswordComponent.js | 2 +-
public/react/src/modules/user/LoginRegisterComponent.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/react/src/modules/user/FindPasswordComponent.js b/public/react/src/modules/user/FindPasswordComponent.js
index 408ca6142..b2e89da52 100644
--- a/public/react/src/modules/user/FindPasswordComponent.js
+++ b/public/react/src/modules/user/FindPasswordComponent.js
@@ -691,7 +691,7 @@ class LoginRegisterComponent extends Component {
this.inputOnBlurzhuche(e)}
+ // onBlur={(e) => this.inputOnBlurzhuche(e)}
onChange={this.loginInputonChange} style={{marginTop: '10px', height: "38px"}}>
{
Phonenumberisnotco && Phonenumberisnotco !== "" ?
diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js
index 1377298a9..081f868a7 100644
--- a/public/react/src/modules/user/LoginRegisterComponent.js
+++ b/public/react/src/modules/user/LoginRegisterComponent.js
@@ -1028,7 +1028,7 @@ class LoginRegisterComponent extends Component {
value={this.state.logins}
type="text" autoComplete="off"
onChange={this.loginInputonChanges}
- onBlur={(e) => this.inputOnBlurzhuche(e, 2)}
+ // onBlur={(e) => this.inputOnBlurzhuche(e, 2)}
style={{marginTop: '30px' , height: '38px',color:'#999999',fontSize:"14px"}}>
{
Phonenumberisnotcos && Phonenumberisnotcos !== "" ?
From 05cedd7bec6657d9f576825fce122a42904e2f5a Mon Sep 17 00:00:00 2001
From: cxt <853663049@qq.com>
Date: Fri, 26 Jul 2019 17:29:58 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/models/homework_common.rb | 2 +-
.../20190726082937_add_is_md_for_homeworks.rb | 12 ++++++++++++
db/migrate/20190726083814_migrate_course_is_md.rb | 14 ++++++++++++++
3 files changed, 27 insertions(+), 1 deletion(-)
create mode 100644 db/migrate/20190726082937_add_is_md_for_homeworks.rb
create mode 100644 db/migrate/20190726083814_migrate_course_is_md.rb
diff --git a/app/models/homework_common.rb b/app/models/homework_common.rb
index ac64b92c1..5f5808944 100644
--- a/app/models/homework_common.rb
+++ b/app/models/homework_common.rb
@@ -35,7 +35,7 @@ class HomeworkCommon < ApplicationRecord
has_many :homework_review_results, :dependent => :destroy
validates :name, length: { maximum: 60 }
- validates :description, length: { maximum: 5000 }
+ validates :description, length: { maximum: 10000 }
validates :reference_answer, length: { maximum: 5000 }
# after_update :update_activity
diff --git a/db/migrate/20190726082937_add_is_md_for_homeworks.rb b/db/migrate/20190726082937_add_is_md_for_homeworks.rb
new file mode 100644
index 000000000..0b25dde97
--- /dev/null
+++ b/db/migrate/20190726082937_add_is_md_for_homeworks.rb
@@ -0,0 +1,12 @@
+class AddIsMdForHomeworks < ActiveRecord::Migration[5.2]
+ def change
+ # add_column :homework_commons, :is_md, :boolean, :default => true
+ # add_column :homework_banks, :is_md, :boolean, :default => true
+ #
+ #
+ # add_column :exercise_questions,:is_md, :boolean, :default => true
+ # add_column :poll_questions,:is_md, :boolean, :default => true
+ #
+ # add_column :exercise_bank_questions, :is_md, :boolean, :default => true
+ end
+end
diff --git a/db/migrate/20190726083814_migrate_course_is_md.rb b/db/migrate/20190726083814_migrate_course_is_md.rb
new file mode 100644
index 000000000..6988db14a
--- /dev/null
+++ b/db/migrate/20190726083814_migrate_course_is_md.rb
@@ -0,0 +1,14 @@
+class MigrateCourseIsMd < ActiveRecord::Migration[5.2]
+ def change
+ # HomeworkCommon.where(homework_type: [1, 3]).where("created_at < '2019-07-21 00:00:00'").update_all(is_md: false)
+ # HomeworkBank.where(homework_type: [1, 3]).where("created_at < '2019-07-21 00:00:00'").update_all(is_md: false)
+ #
+ # HomeworkCommon.where(homework_type: [1, 3]).where("created_at >= '2019-07-21 00:00:00' and homework_bank_id is not null").each do |homework|
+ #
+ # end
+ #
+ # ExerciseQuestion.where("created_at < '2019-07-21 00:00:00'").update_all(is_md: false)
+ # PollQuestion.where("created_at < '2019-07-21 00:00:00'").update_all(is_md: false)
+ # ExerciseBankQuestion.where("created_at < '2019-07-21 00:00:00'").update_all(is_md: false)
+ end
+end