No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

112 líneas
4.0 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/SignInByMobile', _postData, '加载数据时出错').then((res,info, code) => {
  60. // this.HIDE_LOADING();
  61. console.log(res);
  62. // console.log(info);
  63. // console.log(code);
  64. if (res) {// 表单数据保存成功
  65. //判断队列结果
  66. let timer = setInterval(function () {
  67. // _this.LOADING('正在提交…');
  68. _this.HTTP_POST('learun/EducationalAdministration/OpenLessonPlanOfElectiveStudent/GetApplyResult', _postData, '加载数据时出错').then((dataresult) => {
  69. _this.HIDE_LOADING();
  70. console.log(dataresult)
  71. clearInterval(timer);
  72. _this.EMIT('OpenLessonPlanOfElectiveStudent')
  73. _this.TOAST(dataresult.msg);
  74. // _this.NAV_BACK()
  75. });
  76. }, 5000);
  77. }
  78. });
  79. }
  80. },
  81. created() {
  82. this.init()
  83. }
  84. }
  85. </script>
  86. <style lang="less" scoped>
  87. .txt{
  88. line-height: 24px;
  89. font-size: 15px;
  90. background-color: #fff;
  91. padding: 10px 0 10px 15px;
  92. }
  93. .page{
  94. background-color: #fff;
  95. padding-bottom: 1px;
  96. }
  97. /deep/ .cu-form-group uni-textarea{
  98. height: auto;
  99. }
  100. .remarks{
  101. border-bottom: 0.5px solid #eee;
  102. padding-bottom: 10px;
  103. }
  104. .remarks textarea{
  105. width: 100%;
  106. padding: 0 15px;
  107. }
  108. </style>