|
@@ -120,7 +120,10 @@
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <view class="cu-load load-modal" v-if="loading">
|
|
|
+ <image src="/static/login3.png" mode="aspectFit" style="top: 35px;"></image>
|
|
|
+ <view class="gray-text" style="margin-top: 35px;">加载中...</view>
|
|
|
+ </view>
|
|
|
|
|
|
</div>
|
|
|
|
|
@@ -131,6 +134,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
userUrl:'/attendance/attendance/list2',
|
|
|
+ loading:false,
|
|
|
currentDay: 1,
|
|
|
currentMonth: 1,
|
|
|
currentYear: 1970,
|
|
@@ -245,32 +249,27 @@
|
|
|
if(this.state==2||this.state=="2"){
|
|
|
userid=uni.getStorageSync('id');
|
|
|
}
|
|
|
-
|
|
|
+ this.loading=true;
|
|
|
this.$http.get(this.userUrl,{params:{userid:userid,date:date}}).then(res=>{
|
|
|
-
|
|
|
this.SetData=res.data.date;
|
|
|
if(res.data.day.length>0&&res.data.day!=[]&&res.data.day!=undefined){
|
|
|
this.SetDays=res.data.day;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
if(res.data.data!=null&&res.data.data.length>0){
|
|
|
this.Setdds=res.data.data;
|
|
|
}else{
|
|
|
this.Setdds=null;
|
|
|
}
|
|
|
-
|
|
|
this.count=res.data.count;
|
|
|
if(res.data.work!=null&&res.data.work.length>0){
|
|
|
this.work=res.data.work;
|
|
|
}else{
|
|
|
this.work=null;
|
|
|
}
|
|
|
-
|
|
|
- console.log(res)
|
|
|
}).catch(err => {
|
|
|
console.log(err);
|
|
|
});
|
|
|
+ this.loading=false;
|
|
|
},
|
|
|
formats:function(e){
|
|
|
var date = new Date(e);
|