diff --git a/public/react/src/modules/courses/Index.js b/public/react/src/modules/courses/Index.js index fb4afd436..8a21e76da 100644 --- a/public/react/src/modules/courses/Index.js +++ b/public/react/src/modules/courses/Index.js @@ -10,7 +10,7 @@ import { CNotificationHOC } from './common/CNotificationHOC' import {ImageLayerOfCommentHOC} from '../page/layers/ImageLayerOfCommentHOC' import "./css/Courses.css" //引入对应跳转的组件 - +//里面有资源 const ListPageIndex = Loadable({ loader: () => import('./ListPageIndex'), loading:Loading, @@ -964,4 +964,4 @@ class CoursesIndex extends Component{ } } -export default withRouter(ImageLayerOfCommentHOC({imgSelector: '.imageLayerParent img, .imageLayerParent .imageTarget', parentSelector: '.newMain'}) (CNotificationHOC() ( SnackbarHOC() ( TPMIndexHOC(CoursesIndex) )))); \ No newline at end of file +export default withRouter(ImageLayerOfCommentHOC({imgSelector: '.imageLayerParent img, .imageLayerParent .imageTarget', parentSelector: '.newMain'}) (CNotificationHOC() ( SnackbarHOC() ( TPMIndexHOC(CoursesIndex) )))); diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js index 8187cd5af..250d643dc 100644 --- a/public/react/src/modules/courses/Resource/index.js +++ b/public/react/src/modules/courses/Resource/index.js @@ -6,6 +6,8 @@ import Modals from '../../modals/Modals'; import Sendtofilesmodal from "../coursesPublic/SendToFilesModal"; import Selectresource from "../coursesPublic/SelectResource"; import Sendresource from "../coursesPublic/sendResource"; +import SendResources from "../coursesPublic/sendResources"; + import Selectsetting from "../coursesPublic/SelectSetting"; import HomeworkModal from "../coursesPublic/HomeworkModal"; import Fileslistitem from './Fileslistitem'; @@ -34,7 +36,9 @@ class Fileslists extends Component{ name:"", sendTotype:false, Accessoryvisible:false, - discussMessageid:undefined, + Addanexternallink:false, + Exterchainname:"添加外链", + discussMessageid:undefined, course_modules:undefined, has_course_groups:false, course_is_public:undefined, @@ -570,6 +574,35 @@ class Fileslists extends Component{ }) } + //添加外链资源设置 + sendResourcessls = (ints,bool) => { + if(bool===true){ + + if(ints===1){ + this.setState({ + Addanexternallink:true, + Exterchainname:"添加外链" + }) + + }else{ + this.setState({ + Addanexternallink:true, + Exterchainname:"资源设置" + }) + + } + + + }else{ + this.setState({ + Addanexternallink:false, + }) + } + + } + + + Cancelvisible=()=>{ @@ -729,7 +762,9 @@ class Fileslists extends Component{ course_is_public, filesId, child, - sort + sort, + Addanexternallink, + Exterchainname } = this.state; let category_id= this.props.match.params.category_id; @@ -781,7 +816,7 @@ class Fileslists extends Component{ loadtype={Loadtype} />:""} { - shixunmodal===true||Accessoryvisible===true||Settingtype===true? + +
+ 资源名称: + + + +
+ { + resourcesnamebool? +请输入资源名称
+ : + "" + } ++ 链接地址: + +
+ { + resourceurlbool? +请输入外链url
+ : + "" + } + + ++ + + {this.props.course_is_public===true?
请填写完整
:""}*/} + +请输入资源描述,最大限制100个字符
:""} + {this.state.Radiovaluetype===true?发布时间不能为空
:""} + + + + + + ) + } +} +export default sendResources;