Browse Source

修改学生按天请假页面事件格式,修改我的考勤学生 请假颜色展示

新疆警官学校中职
lb01 2 years ago
parent
commit
74c4912f94
3 changed files with 26 additions and 6 deletions
  1. +6
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/list.vue
  2. +2
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/single.vue
  3. +18
    -2
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/studentCheck/list.vue

+ 6
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/list.vue View File

@@ -43,12 +43,12 @@

<view class="customlist-item-field">
<text class="customlist-item-field-title">开始时间:</text>
{{ displayListItem(item, "StartTime") }}
{{ itmeDel(displayListItem(item, "StartTime"))}}
</view>

<view class="customlist-item-field">
<text class="customlist-item-field-title">结束时间:</text>
{{ displayListItem(item, "EndTime") }}
{{ itmeDel(displayListItem(item, "EndTime")) }}
</view>

<view class="customlist-item-field">
@@ -485,6 +485,10 @@
LeaveTypeItem(data) {

},
itmeDel(data){
var newDate = /\d{4}-\d{1,2}-\d{1,2}/g.exec(data)
return newDate[0]
}
},
created() {
this.user = this.GET_GLOBAL('loginUser');


+ 2
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/StuLeaveManagement/Check/single.vue View File

@@ -193,8 +193,8 @@ export default {
CheckTime:{ type: 'text', title: '审核人' },
CheckUserNo: { type: 'select', title: '审核人',dataSource: '1' },
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" },
LeaveReason: { type: 'texteditor', title: '请假事由' },
CreateUserNo: { type: 'text', title: '学号' },


+ 18
- 2
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/studentCheck/list.vue View File

@@ -45,7 +45,7 @@
{{ k.ClassRoomName }}
</view>
<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 }}
</view>
</view>
@@ -420,7 +420,23 @@
.studCheckStatue4 text {
background: #29cf41;
}

.studCheckStatue5 {
color: #ad5151;
}
.studCheckStatue5 text {
background: #ad5151;
}
.studCheckStatue6 {
color: #84f193;
}
.studCheckStatue6 text {
background: #84f193;
}
.noHtml {
height: 100%;
line-height: 60px;


Loading…
Cancel
Save