You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

100 lines
3.5 KiB

  1. <template>
  2. <view class="page">
  3. <l-input title="学年" placeholder="请填写学年" :value="data.AcademicYearNo" disabled right />
  4. <l-input title="学期" placeholder="请填写学期" :value="data.Semester" disabled right />
  5. <l-input title="课程名称" placeholder="请填写课程名称" :value="data.LessonName" disabled right />
  6. <view class="txt">课程简介:</view>
  7. <view class="remarks">
  8. <!-- <l-textarea class="remarks" title="课程简介" :value="data.Introduction" placeholder="输入点什么..." readonly="readonly" /> -->
  9. <textarea disabled auto-height='true' :value="data.Introduction" />
  10. </view>
  11. <l-input title="上课节次" placeholder="请填写上课节次" :value="data.LessonSection" disabled right />
  12. <l-input title="上课时间" placeholder="请填写上课时间" :value="data.LessonTime" disabled right />
  13. <l-input title="学分" placeholder="请填写学分" :value="data.StudyScore" disabled right />
  14. <l-input title="教师姓名" placeholder="请填写教师姓名" :value="data.EmpName" disabled right />
  15. <!-- <view class="txt">教师简介:</view>
  16. <view class="bg-white">
  17. <l-textarea :value="data.resume" disabled placeholder="输入点什么..." readonly="readonly" />
  18. </view> -->
  19. <view class="txt">教师简介:</view>
  20. <view class="remarks">
  21. <!-- <l-textarea class="remarks" title="课程简介" :value="data.Introduction" placeholder="输入点什么..." readonly="readonly" /> -->
  22. <textarea disabled auto-height='true' :value="data.resume" />
  23. </view>
  24. <l-input title="教室名称" placeholder="请填写教室名称" :value="data.ClassRoomName" disabled right />
  25. <!-- <l-input title="姓名" placeholder="请填写姓名" :value="data.AcademicYearNo" disabled right /> -->
  26. <l-input title="人数上限" placeholder="请填写人数上限" :value="data.StuNumMax" disabled right />
  27. <l-input title="已报名人数" placeholder="请填写已报名人数" :value="data.StuNum" disabled right />
  28. <view class="btn" @click="fromBtn">报名</view>
  29. </view>
  30. </template>
  31. <script>
  32. export default{
  33. data() {
  34. return {
  35. weekChina: ["一", "二", "三", "四", "五", "六", "日"],
  36. keyValue: '',
  37. data: {}
  38. }
  39. },
  40. methods:{
  41. init() {
  42. this.keyValue = this.GET_PARAM(); //获取页面传递参数
  43. console.log(this.keyValue);
  44. let _this = this;
  45. _this.LOADING('加载数据中…');
  46. _this.HTTP_GET('learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/form', _this.keyValue, '加载数据时出错').then(res => {
  47. this.HIDE_LOADING();
  48. console.log(res);
  49. _this.data = res.JournalReceive;
  50. });
  51. },
  52. fromBtn() {
  53. var _postData = {}
  54. let _this = this;
  55. let user = this.GET_GLOBAL('loginUser');;
  56. _postData.keyValue = this.keyValue;
  57. _postData.StuNo = user.account;
  58. _this.LOADING('提交数据中…');
  59. _this.HTTP_POST('learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/SignInPre', _postData, '加载数据时出错').then(res => {
  60. this.HIDE_LOADING();
  61. console.log(res);
  62. if(res){
  63. this.TOAST('提交成功');
  64. this.EMIT('OpenLessonPlanOfElectiveStudentPre')
  65. this.NAV_BACK()
  66. }
  67. });
  68. }
  69. },
  70. created() {
  71. this.init()
  72. }
  73. }
  74. </script>
  75. <style lang="less" scoped>
  76. .txt{
  77. line-height: 24px;
  78. font-size: 15px;
  79. background-color: #fff;
  80. padding: 10px 0 10px 15px;
  81. }
  82. .page{
  83. background-color: #fff;
  84. padding-bottom: 1px;
  85. }
  86. /deep/ .cu-form-group uni-textarea{
  87. height: auto;
  88. }
  89. .remarks{
  90. border-bottom: 0.5px solid #eee;
  91. padding-bottom: 10px;
  92. }
  93. .remarks textarea{
  94. width: 100%;
  95. padding: 0 15px;
  96. }
  97. </style>