From ad9c38f00251eb8a70a753dda972d42ccb9114fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 26 Nov 2019 11:36:55 +0800 Subject: [PATCH 1/9] =?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/tpm/NewFooter.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/public/react/src/modules/tpm/NewFooter.js b/public/react/src/modules/tpm/NewFooter.js index 4ff1cc46a..0bad2de70 100644 --- a/public/react/src/modules/tpm/NewFooter.js +++ b/public/react/src/modules/tpm/NewFooter.js @@ -18,6 +18,18 @@ class NewFooter extends Component { render() { return (
[#{params[:question_kind]}]
问题页面网址:#{params[:url]}
#{params[:description]}" + if params[:url].blank? + content = "[#{params[:question_kind]}]
#{params[:description]}" + params[:attachment_ids].each do |attachment_id| + content += "![](/api/attachments/#{attachment_id})↵" + end + else + content = "[#{params[:question_kind]}]
问题页面网址:#{params[:url]}
#{params[:description]}" + end ActiveRecord::Base.transaction do attr = { sender_id: User.current.id, receiver_id: 1, content: content, send_time: Time.now } From 086804688ef78bff1764c9f73af9e47293ca5159 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 26 Nov 2019 15:54:28 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AB=AF?= =?UTF-8?q?=E7=9A=84=E6=84=8F=E8=A7=81=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/helps_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/helps_controller.rb b/app/controllers/helps_controller.rb index a32aba62f..8d58663f6 100644 --- a/app/controllers/helps_controller.rb +++ b/app/controllers/helps_controller.rb @@ -27,8 +27,10 @@ class HelpsController < ApplicationController def feedback if params[:url].blank? content = "[#{params[:question_kind]}]
#{params[:description]}" - params[:attachment_ids].each do |attachment_id| - content += "![](/api/attachments/#{attachment_id})↵" + if params[:attachment_ids] + params[:attachment_ids].each do |attachment_id| + content += "![](/api/attachments/#{attachment_id})↵" + end end else content = "[#{params[:question_kind]}]
问题页面网址:#{params[:url]}
#{params[:description]}" From 286fc11d8789ab443fd5b439058a8c3814cc393f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 26 Nov 2019 16:05:29 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E5=AE=9E=E8=B7=B5=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E6=96=B0=E5=BB=BA=E9=98=B6=E6=AE=B5-=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=9E=E8=AE=AD=E9=A1=B9=E7=9B=AE=E7=9A=84?= =?UTF-8?q?=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/paths/PathDetail/Addshixuns.js | 73 ++++++++++++++++++ .../paths/PathDetail/DetailCardsEditAndAdd.js | 72 ++++++++++++++++- .../PathDetail/DetailCardsEditAndEdit.js | 77 ++++++++++++++++--- public/react/src/modules/tpm/NewFooter.js | 4 + public/react/src/modules/tpm/NewHeader.js | 4 +- 5 files changed, 214 insertions(+), 16 deletions(-) create mode 100644 public/react/src/modules/paths/PathDetail/Addshixuns.js diff --git a/public/react/src/modules/paths/PathDetail/Addshixuns.js b/public/react/src/modules/paths/PathDetail/Addshixuns.js new file mode 100644 index 000000000..df6f0751e --- /dev/null +++ b/public/react/src/modules/paths/PathDetail/Addshixuns.js @@ -0,0 +1,73 @@ +import React, { Component } from 'react'; +import {getImageUrl} from 'educoder'; +import {Modal,Input} from 'antd'; +class Addshixuns extends Component { + constructor(props) { + super(props); + this.state = { + shixunname:undefined, + } + } + + handleChange=(e)=>{ + this.setState({ + shixunname:e.target.value, + }) + } + + modalCancel=()=>{ + this.setState({ + shixunname:undefined, + }) + this.props.modalCancel() + } + + modalSave=()=>{ + let {shixunname}=this.state; + this.props.Setaddshixuns(shixunname); + this.props.modalCancel(); + } + + render() { + + return( +
-
+
+ this.AddShixunBox()} className="fl defalutGreyBorder color-grey-6 ml37">
选用实训项目
选择下面实训后,可以通过拖拽进行排序调整
+ this.Addshixuns()} className="fl defalutGreyBorder color-grey-6 ml37">
+
+ 添加实训项目
+ 您只需输入实训名称即可完成实训项目的添加,进入实训详情后可进行具体配置操作
+
+
+
选用实训项目
选择下面实训后,可以通过拖拽进行排序调整
+
+ 添加实训项目
+
+ 您只需输入实训名称即可完成实训项目的添加,进入实训详情后可进行具体配置操作
+ 请输入实训名称 a~@HaLuV}Y6p
z;sf83CqWqvm#{&ldwq?y4Uy4iZi)neG_l9;_>A
- {this.props.current_user&&this.props.current_user.user_identity==="学生"?"":coursestypes===true?"":
7TBxxS
z%PB<{;d=#9zbMt%#F{k?V4=@V9!~nQY
4AP5m@3foiS5rAov
v>w>r+boFYx;WX#pm*O
zb$%IgUkF8owt^PwUVC=bDaDK4{oI(vlIxI+8-cbw2qK{*!1JI>_Bsz1gTKD&b^6*p
zQNT52A-uP`BQ_%>LU3j|hRs;PW0XY-vIjE>M!h~N#{@tNTh6_7SkEz>5yo+dbW;it
zGYr}ZD$5xLlfZ+oY@#>iHaLtlTXznz{V%(SHX~%+4B3$F#Ph1SY2;`i#oSn3OVu=k
zrU}Cc!%>E#!!^|#OD)TwGs3~=G%=VKk`93M44IA)FOM+uHydbvN9L5vU##1cey4$A
zb4SqzI3WnJ08FiPrCE%$>J~svtKZ&a1;cuT=7ZwD%zvX