From d217b09af0f7ed81262ece14bc8b94cee02d1868 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Sat, 10 Aug 2019 17:56:31 +0800
Subject: [PATCH 1/3] =?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/config/webpack.config.dev.js | 3 ++-
.../modules/paths/PathDetail/DetailCardsEditAndAdd.js | 10 ++++++----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/public/react/config/webpack.config.dev.js b/public/react/config/webpack.config.dev.js
index 81afdb70b..6e78fd410 100644
--- a/public/react/config/webpack.config.dev.js
+++ b/public/react/config/webpack.config.dev.js
@@ -29,7 +29,8 @@ const env = getClientEnvironment(publicUrl);
module.exports = {
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.s
- devtool: "cheap-module-eval-source-map", // 开启调试
+ devtool: "cheap-module-eval-source-map",
+ // 开启调试
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
diff --git a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
index 6f771ece8..ba260469f 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
@@ -40,7 +40,7 @@ class DetailCardsEditAndAdd extends Component{
page:1,
ChooseShixunList:undefined,
hometypepvisible:true,
- shixuns_listedit:undefined,
+ shixuns_listedit:[],
shixuns_listeditlist:[],
patheditarry:[],
stage_descriptions:undefined,
@@ -75,8 +75,9 @@ class DetailCardsEditAndAdd extends Component{
}
clickShixunchoose=()=>{
- let{patheditarry,shixuns_listeditlist}=this.state
- let newshixuns_listedit=[];
+ let{patheditarry,shixuns_listeditlist,shixuns_listedit}=this.state
+
+ let newshixuns_listedit=shixuns_listedit;
let list=shixuns_listeditlist
if(patheditarry.length===0){
@@ -129,7 +130,7 @@ class DetailCardsEditAndAdd extends Component{
stage_names:undefined,
stage_descriptions:undefined,
shixuns_listeditlist:[],
- shixuns_listedit:undefined
+ shixuns_listedit:[]
})
this.props.getPathCardsLists();
}
@@ -241,6 +242,7 @@ class DetailCardsEditAndAdd extends Component{
//保存
clickShixunsaves=()=>{
+ debugger
let{stage_names,stage_descriptions,shixuns_listeditlist}=this.state;
let newstage_descriptions=stage_descriptions;
From c068f4df4925afb44c7a5267d4da240192890f5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com>
Date: Sat, 10 Aug 2019 18:09:49 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
index 6f771ece8..39e2063d7 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCardsEditAndAdd.js
@@ -572,7 +572,7 @@ class DetailCardsEditAndAdd extends Component{
- {this.props.sum+1}-{key+1} {item.shixun_name}
+ {this.props.sum}-{key+1} {item.shixun_name}
From 43f6b0f603eab2aa868f548fb9b8302cede7ff17 Mon Sep 17 00:00:00 2001
From: jingquan huang
Date: Sun, 11 Aug 2019 18:55:23 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E8=AF=BE=E5=A0=82=E5=A4=8D=E5=88=B6?=
=?UTF-8?q?=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/services/duplicate_course_service.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/services/duplicate_course_service.rb b/app/services/duplicate_course_service.rb
index c9e991d7f..9d61984db 100644
--- a/app/services/duplicate_course_service.rb
+++ b/app/services/duplicate_course_service.rb
@@ -130,7 +130,7 @@ class DuplicateCourseService < ApplicationService
def copy_attachments!
origin_course.attachments.each do |origin_attachment|
attachment = origin_attachment.copy
- attachment.tag_list.add(origin_attachment.tag_list) # tag关联
+ # attachment.tag_list.add(origin_attachment.tag_list) # tag关联
attachment.container = course
attachment.created_on = Time.now
attachment.publish_time = nil