|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <template>
- <view class="page">
- <l-input title="学年" placeholder="请填写学年" :value="data.AcademicYearNo" disabled right />
- <l-input title="学期" placeholder="请填写学期" :value="data.Semester" disabled right />
- <l-input title="课程名称" placeholder="请填写课程名称" :value="data.LessonName" disabled right />
- <view class="txt">课程简介:</view>
- <view class="remarks">
- <!-- <l-textarea class="remarks" title="课程简介" :value="data.Introduction" placeholder="输入点什么..." readonly="readonly" /> -->
- <textarea disabled auto-height='true' :value="data.Introduction" />
- </view>
- <l-input title="上课节次" placeholder="请填写上课节次" :value="data.LessonSection" disabled right />
- <l-input title="上课时间" placeholder="请填写上课时间" :value="data.LessonTime" disabled right />
- <l-input title="学分" placeholder="请填写学分" :value="data.StudyScore" disabled right />
- <l-input title="教师姓名" placeholder="请填写教师姓名" :value="data.EmpName" disabled right />
- <!-- <view class="txt">教师简介:</view>
- <view class="bg-white">
- <l-textarea :value="data.resume" disabled placeholder="输入点什么..." readonly="readonly" />
- </view> -->
- <view class="txt">教师简介:</view>
- <view class="remarks">
- <!-- <l-textarea class="remarks" title="课程简介" :value="data.Introduction" placeholder="输入点什么..." readonly="readonly" /> -->
- <textarea disabled auto-height='true' :value="data.resume" />
- </view>
- <l-input title="教室名称" placeholder="请填写教室名称" :value="data.ClassRoomName" disabled right />
- <!-- <l-input title="姓名" placeholder="请填写姓名" :value="data.AcademicYearNo" disabled right /> -->
- <l-input title="人数上限" placeholder="请填写人数上限" :value="data.StuNumMax" disabled right />
- <l-input title="已报名人数" placeholder="请填写已报名人数" :value="data.StuNum" disabled right />
- <view class="btn" @click="fromBtn">报名</view>
- </view>
- </template>
-
- <script>
- export default{
- data() {
- return {
- weekChina: ["一", "二", "三", "四", "五", "六", "日"],
- keyValue: '',
- data: {}
- }
- },
- methods:{
- init() {
- this.keyValue = this.GET_PARAM(); //获取页面传递参数
- // console.log(this.keyValue);
- let _this = this;
- _this.LOADING('加载数据中…');
- _this.HTTP_GET('learun/OpenLessonPlanOfElectiveStudent/form', _this.keyValue, '加载数据时出错').then(res => {
- console.log(_postData,"_postData")
- this.HIDE_LOADING();
- // console.log(res);
- _this.data = res.JournalReceive;
- });
- },
- fromBtn() {
- var _postData = {}
- let _this = this;
- let user = this.GET_GLOBAL('loginUser');;
- _postData.keyValue = this.keyValue;
- _postData.StuNo = user.account;
- _this.LOADING('正在提交…');
- _this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/SignInByMobile', _postData, '加载数据时出错').then((res,info, code) => {
- // this.HIDE_LOADING();
- console.log(res);
- // console.log(info);
- // console.log(code);
- if (res) {// 表单数据保存成功
- //判断队列结果
- let timer = setInterval(function () {
- // _this.LOADING('正在提交…');
- _this.HTTP_POST('learun/OpenLessonPlanOfElectiveStudent/GetApplyResult', _postData, '加载数据时出错').then((dataresult) => {
- _this.HIDE_LOADING();
- console.log(dataresult)
- clearInterval(timer);
- _this.EMIT('OpenLessonPlanOfElectiveStudent')
- _this.TOAST(dataresult.msg);
- // _this.NAV_BACK()
- });
- }, 5000);
- }
- });
-
- }
- },
- created() {
- this.init()
- }
- }
- </script>
-
- <style lang="less" scoped>
- .txt{
- line-height: 24px;
- font-size: 15px;
- background-color: #fff;
- padding: 10px 0 10px 15px;
- }
- .page{
- background-color: #fff;
- padding-bottom: 1px;
- }
- /deep/ .cu-form-group uni-textarea{
- height: auto;
- }
- .remarks{
- border-bottom: 0.5px solid #eee;
- padding-bottom: 10px;
- }
- .remarks textarea{
- width: 100%;
- padding: 0 15px;
- }
- </style>
|