|
|
@ -23,25 +23,31 @@ |
|
|
|
<view class="r-list"> |
|
|
|
<view class="l-item" v-for="(e, i) in approveList" :key="i"> |
|
|
|
<view class="l-content"> |
|
|
|
|
|
|
|
<view class="c-user"> |
|
|
|
<image></image> |
|
|
|
<view>胡可课</view> |
|
|
|
<image :src="e.user_data.avatar_url" mode="aspectFit"></image> |
|
|
|
<view>{{e.user_name || '-'}}</view> |
|
|
|
</view> |
|
|
|
<view class="c-content"> |
|
|
|
<view class="c-name">羽毛球课程(羽毛球课)</view> |
|
|
|
<view class="c-name">{{e.course_name || '-'}}</view> |
|
|
|
<view class="c-times"> |
|
|
|
<view v-for="i in 10" :key="i">2020-08-22 10:30</view> |
|
|
|
<view v-for="(k, j) in e.duration_list" :key="j">{{k || '-'}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="c-status"> |
|
|
|
<view class="s-icon" v-if="false"></view> |
|
|
|
<view class="s-txt s-active" v-else>通过</view> |
|
|
|
<view :class="['s-txt', e.status ==2?'s-active':'']"> |
|
|
|
{{ |
|
|
|
e.status == 0?'待审批': |
|
|
|
e.status == 1?'通过': |
|
|
|
e.status == 2?'拒绝': '-' |
|
|
|
}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="l-reason"> |
|
|
|
<view>原因:</view> |
|
|
|
<view>作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内容作业内…</view> |
|
|
|
<view>{{e.for_leave_reason || '-'}}</view> |
|
|
|
</view> |
|
|
|
<view class="l-unfold"> |
|
|
|
<view> |
|
|
@ -73,9 +79,11 @@ export default { |
|
|
|
this.getApproveList(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
tabChange(i){ |
|
|
|
tabChange: util.debounce(function(i){ |
|
|
|
this.approveList = []; |
|
|
|
this.tabIdx = i; |
|
|
|
}, |
|
|
|
this.getApproveList(i); |
|
|
|
}, 300, 300), |
|
|
|
getApproveList(approve_type = 0){ |
|
|
|
let { storeInfo } = this; |
|
|
|
util.showLoad(); |
|
|
@ -90,7 +98,7 @@ export default { |
|
|
|
}) |
|
|
|
.then(res=>{ |
|
|
|
util.hideLoad(); |
|
|
|
let _list = res.list || [{},{}]; |
|
|
|
let _list = res.list || []; |
|
|
|
this.approveList = _list; |
|
|
|
console.warn('approve list --->', res); |
|
|
|
}) |
|
|
@ -169,7 +177,6 @@ export default { |
|
|
|
width: 100upx; |
|
|
|
height: 100upx; |
|
|
|
border-radius: 50%; |
|
|
|
background-color: skyblue; |
|
|
|
} |
|
|
|
>view{ |
|
|
|
max-width: 120upx; |
|
|
@ -187,9 +194,7 @@ export default { |
|
|
|
font-size: 28upx; |
|
|
|
line-height: 52upx; |
|
|
|
color: #333; |
|
|
|
overflow: hidden; |
|
|
|
white-space: nowrap; |
|
|
|
text-overflow: ellipsis; |
|
|
|
@include textHide(1); |
|
|
|
} |
|
|
|
} |
|
|
|
.c-status{ |
|
|
|