ソースを参照

学生我的课表显示请假状态

新疆警官学校中职
lb01 2年前
コミット
89f2eaaea7
1個のファイルの変更48行の追加15行の削除
  1. +48
    -15
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/list.vue

+ 48
- 15
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/timeTable/list.vue ファイルの表示

@@ -41,8 +41,17 @@
<text class="text-xxl cuIcon cuIcon-profile"></text>
{{ k.teacher }}
</view>
<view>
<view v-if="k.leaveType == 0">
请假
</view>
<view v-else>
{{LeaveItem(k.checkType)}}
</view>
</view>
</view>
<view class="tSec2Location">
<view>
<text class="text-xxl cuIcon cuIcon-location"></text>
@@ -54,6 +63,10 @@
</view>
</view>
<!-- <view class="tSec2Leave">
<text>正常</text>
</view> -->

</view>
</view>
</view>
@@ -72,7 +85,7 @@
num: 0,
user: null,
weekDayTime: 0,
noClassTime:0,
noClassTime: 0,
todayWeek: {},
dataArr: [],
weekArr: [{
@@ -137,7 +150,7 @@
timeTap(num) {
let _this = this;
if (num == 1) {
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime - _this.weekDayTime ;
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime - _this.weekDayTime;
_this.todayWeek.SundayTime = _this.todayWeek.SundayTime - _this.weekDayTime;
} else {
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime + _this.weekDayTime;
@@ -151,7 +164,7 @@
},
// 获取数据
loadData(start, end) {
if(!this.user) return
if (!this.user) return
let {
Description,
account: Account
@@ -209,12 +222,15 @@
if (_this.user.Description == "教师") {
//console.log("教师");
} else if (_this.user.Description == "学生") {
let LeaveType = data.LeaveType;
//console.log(LeaveType);
let IsCheck = data.IsCheck;
//console.log(IsCheck);
let LeaveType = data.leaveType;
console.log(LeaveType);
let IsCheck = data.checkType;
console.log(IsCheck);
if (LeaveType == "1") {
let msg = "请假申请中";
if(!IsCheck){
msg = "请假申请中";
}
if (IsCheck == "1") {
msg = "请假通过";
}
@@ -236,6 +252,15 @@
this.NAV_TO('./leaveFrom', data, true);
}
}
},
LeaveItem(data){
if(!data){
return '请假申请中'
}else if(data == 1){
return '请假通过'
}else if(data == 2){
return '请假未通过'
}
}
},
created() {
@@ -376,7 +401,7 @@
.tSec2ListLi {
border-bottom: 1px solid #d5eaf7;
overflow: hidden;
height: 60px;
height: 75px;
}

.tSec2ListL {
@@ -385,7 +410,7 @@
height: 100%;
width: 20%;
text-align: center;
line-height: 36px;
line-height: 58px;
padding: 11px 0;
font-size: 14px;
color: #646464;
@@ -409,7 +434,7 @@
.tSec2ListT {
color: #3e3e3e;
font-size: 15px;
margin: 5px 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
@@ -418,22 +443,30 @@
.tSec2ListTxt {
color: #888888;
font-size: 13px;
margin: 5px 0;
}

.tSec2Location {
width: 38%;
float: left;
line-height: 22px;
line-height: 30px;
font-size: 13px;
color: #888888;
display: flex;
flex-direction: column;
}
flex-direction: column;
}

.noHtml {
height: 100%;
line-height: 60px;
line-height: 75px;
text-align: center;
font-size: 14px;
}

.tSec2Leave {
padding-left: 10px;
font-size: 15px;
margin-top: 5px;
line-height: 25px;
}
</style>

読み込み中…
キャンセル
保存