@@ -43,12 +43,12 @@ | |||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
<text class="customlist-item-field-title">开始时间:</text> | <text class="customlist-item-field-title">开始时间:</text> | ||||
{{ displayListItem(item, "StartTime") }} | |||||
{{ itmeDel(displayListItem(item, "StartTime"))}} | |||||
</view> | </view> | ||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
<text class="customlist-item-field-title">结束时间:</text> | <text class="customlist-item-field-title">结束时间:</text> | ||||
{{ displayListItem(item, "EndTime") }} | |||||
{{ itmeDel(displayListItem(item, "EndTime")) }} | |||||
</view> | </view> | ||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
@@ -485,6 +485,10 @@ | |||||
LeaveTypeItem(data) { | LeaveTypeItem(data) { | ||||
}, | }, | ||||
itmeDel(data){ | |||||
var newDate = /\d{4}-\d{1,2}-\d{1,2}/g.exec(data) | |||||
return newDate[0] | |||||
} | |||||
}, | }, | ||||
created() { | created() { | ||||
this.user = this.GET_GLOBAL('loginUser'); | this.user = this.GET_GLOBAL('loginUser'); | ||||
@@ -193,8 +193,8 @@ export default { | |||||
CheckTime:{ type: 'text', title: '审核人' }, | CheckTime:{ type: 'text', title: '审核人' }, | ||||
CheckUserNo: { type: 'select', title: '审核人',dataSource: '1' }, | CheckUserNo: { type: 'select', title: '审核人',dataSource: '1' }, | ||||
LeaveType: { type: 'select', title: '请假类型', dataSource: '0' }, | LeaveType: { type: 'select', title: '请假类型', dataSource: '0' }, | ||||
StartTime: { type: 'datetime', title: '开始时间', dateformat: '1' }, | |||||
EndTime: { type: 'datetime', title: '结束时间', dateformat: '1' }, | |||||
StartTime: { type: 'datetime', title: '开始时间', dateformat: '0' }, | |||||
EndTime: { type: 'datetime', title: '结束时间', dateformat: '0' }, | |||||
LeaveDay: { type: 'number', title: '请假天数',verify:"NumOrNull" }, | LeaveDay: { type: 'number', title: '请假天数',verify:"NumOrNull" }, | ||||
LeaveReason: { type: 'texteditor', title: '请假事由' }, | LeaveReason: { type: 'texteditor', title: '请假事由' }, | ||||
CreateUserNo: { type: 'text', title: '学号' }, | CreateUserNo: { type: 'text', title: '学号' }, | ||||
@@ -45,7 +45,7 @@ | |||||
{{ k.ClassRoomName }} | {{ k.ClassRoomName }} | ||||
</view> | </view> | ||||
<view class="studCheckStatue" | <view class="studCheckStatue" | ||||
:class="k.Sort == '迟到'? 'studCheckStatue2' : k.Sort == '早退'? 'studCheckStatue2' : k.Sort == '病假'? 'studCheckStatue4' : k.Sort == '事假'? 'studCheckStatue2' : k.Sort == '准时'? 'studCheckStatue1' : 'studCheckStatue3' "> | |||||
:class="k.Sort == '迟到'? 'studCheckStatue5' : k.Sort == '早退'? 'studCheckStatue2' : k.Sort == '病假'? 'studCheckStatue4' : k.Sort == '事假'? 'studCheckStatue6' : k.Sort == '准时'? 'studCheckStatue1' : 'studCheckStatue3' "> | |||||
<text></text> {{ k.Sort }} | <text></text> {{ k.Sort }} | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -420,7 +420,23 @@ | |||||
.studCheckStatue4 text { | .studCheckStatue4 text { | ||||
background: #29cf41; | background: #29cf41; | ||||
} | } | ||||
.studCheckStatue5 { | |||||
color: #ad5151; | |||||
} | |||||
.studCheckStatue5 text { | |||||
background: #ad5151; | |||||
} | |||||
.studCheckStatue6 { | |||||
color: #84f193; | |||||
} | |||||
.studCheckStatue6 text { | |||||
background: #84f193; | |||||
} | |||||
.noHtml { | .noHtml { | ||||
height: 100%; | height: 100%; | ||||
line-height: 60px; | line-height: 60px; | ||||