|
@@ -41,8 +41,17 @@ |
|
|
<text class="text-xxl cuIcon cuIcon-profile"></text> |
|
|
<text class="text-xxl cuIcon cuIcon-profile"></text> |
|
|
{{ k.teacher }} |
|
|
{{ k.teacher }} |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view> |
|
|
|
|
|
<view v-if="k.leaveType == 0"> |
|
|
|
|
|
请假 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view v-else> |
|
|
|
|
|
{{LeaveItem(k.checkType)}} |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="tSec2Location"> |
|
|
<view class="tSec2Location"> |
|
|
<view> |
|
|
<view> |
|
|
<text class="text-xxl cuIcon cuIcon-location"></text> |
|
|
<text class="text-xxl cuIcon cuIcon-location"></text> |
|
@@ -54,6 +63,10 @@ |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<!-- <view class="tSec2Leave"> |
|
|
|
|
|
<text>正常</text> |
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@@ -72,7 +85,7 @@ |
|
|
num: 0, |
|
|
num: 0, |
|
|
user: null, |
|
|
user: null, |
|
|
weekDayTime: 0, |
|
|
weekDayTime: 0, |
|
|
noClassTime:0, |
|
|
|
|
|
|
|
|
noClassTime: 0, |
|
|
todayWeek: {}, |
|
|
todayWeek: {}, |
|
|
dataArr: [], |
|
|
dataArr: [], |
|
|
weekArr: [{ |
|
|
weekArr: [{ |
|
@@ -137,7 +150,7 @@ |
|
|
timeTap(num) { |
|
|
timeTap(num) { |
|
|
let _this = this; |
|
|
let _this = this; |
|
|
if (num == 1) { |
|
|
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; |
|
|
_this.todayWeek.SundayTime = _this.todayWeek.SundayTime - _this.weekDayTime; |
|
|
} else { |
|
|
} else { |
|
|
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime + _this.weekDayTime; |
|
|
_this.todayWeek.MondayTime = _this.todayWeek.MondayTime + _this.weekDayTime; |
|
@@ -151,7 +164,7 @@ |
|
|
}, |
|
|
}, |
|
|
// 获取数据 |
|
|
// 获取数据 |
|
|
loadData(start, end) { |
|
|
loadData(start, end) { |
|
|
if(!this.user) return |
|
|
|
|
|
|
|
|
if (!this.user) return |
|
|
let { |
|
|
let { |
|
|
Description, |
|
|
Description, |
|
|
account: Account |
|
|
account: Account |
|
@@ -209,12 +222,15 @@ |
|
|
if (_this.user.Description == "教师") { |
|
|
if (_this.user.Description == "教师") { |
|
|
//console.log("教师"); |
|
|
//console.log("教师"); |
|
|
} else if (_this.user.Description == "学生") { |
|
|
} 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") { |
|
|
if (LeaveType == "1") { |
|
|
let msg = "请假申请中"; |
|
|
let msg = "请假申请中"; |
|
|
|
|
|
if(!IsCheck){ |
|
|
|
|
|
msg = "请假申请中"; |
|
|
|
|
|
} |
|
|
if (IsCheck == "1") { |
|
|
if (IsCheck == "1") { |
|
|
msg = "请假通过"; |
|
|
msg = "请假通过"; |
|
|
} |
|
|
} |
|
@@ -236,6 +252,15 @@ |
|
|
this.NAV_TO('./leaveFrom', data, true); |
|
|
this.NAV_TO('./leaveFrom', data, true); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
LeaveItem(data){ |
|
|
|
|
|
if(!data){ |
|
|
|
|
|
return '请假申请中' |
|
|
|
|
|
}else if(data == 1){ |
|
|
|
|
|
return '请假通过' |
|
|
|
|
|
}else if(data == 2){ |
|
|
|
|
|
return '请假未通过' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@@ -376,7 +401,7 @@ |
|
|
.tSec2ListLi { |
|
|
.tSec2ListLi { |
|
|
border-bottom: 1px solid #d5eaf7; |
|
|
border-bottom: 1px solid #d5eaf7; |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
height: 60px; |
|
|
|
|
|
|
|
|
height: 75px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.tSec2ListL { |
|
|
.tSec2ListL { |
|
@@ -385,7 +410,7 @@ |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
width: 20%; |
|
|
width: 20%; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
line-height: 36px; |
|
|
|
|
|
|
|
|
line-height: 58px; |
|
|
padding: 11px 0; |
|
|
padding: 11px 0; |
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
|
color: #646464; |
|
|
color: #646464; |
|
@@ -409,7 +434,7 @@ |
|
|
.tSec2ListT { |
|
|
.tSec2ListT { |
|
|
color: #3e3e3e; |
|
|
color: #3e3e3e; |
|
|
font-size: 15px; |
|
|
font-size: 15px; |
|
|
margin: 5px 0; |
|
|
|
|
|
|
|
|
|
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
white-space: nowrap; |
|
|
white-space: nowrap; |
|
|
text-overflow: ellipsis; |
|
|
text-overflow: ellipsis; |
|
@@ -418,22 +443,30 @@ |
|
|
.tSec2ListTxt { |
|
|
.tSec2ListTxt { |
|
|
color: #888888; |
|
|
color: #888888; |
|
|
font-size: 13px; |
|
|
font-size: 13px; |
|
|
|
|
|
margin: 5px 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.tSec2Location { |
|
|
.tSec2Location { |
|
|
width: 38%; |
|
|
width: 38%; |
|
|
float: left; |
|
|
float: left; |
|
|
line-height: 22px; |
|
|
|
|
|
|
|
|
line-height: 30px; |
|
|
font-size: 13px; |
|
|
font-size: 13px; |
|
|
color: #888888; |
|
|
color: #888888; |
|
|
display: flex; |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
flex-direction: column; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.noHtml { |
|
|
.noHtml { |
|
|
height: 100%; |
|
|
height: 100%; |
|
|
line-height: 60px; |
|
|
|
|
|
|
|
|
line-height: 75px; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
font-size: 14px; |
|
|
font-size: 14px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.tSec2Leave { |
|
|
|
|
|
padding-left: 10px; |
|
|
|
|
|
font-size: 15px; |
|
|
|
|
|
margin-top: 5px; |
|
|
|
|
|
line-height: 25px; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |