12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Approval"],{"08e7":function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"approval"},[e("m-header"),e("van-tabs",{attrs:{swipeable:!0,animated:!0}},[e("van-tab",{attrs:{title:"待处理"}},[t.dataSection.show?e("van-list",{key:"data",attrs:{finished:t.dataSection.finished,"finished-text":"我是有底线的"},on:{load:t.getClassGroupList},model:{value:t.dataSection.loading,callback:function(a){t.$set(t.dataSection,"loading",a)},expression:"dataSection.loading"}},t._l(t.dataSection.dataList,function(a,s){return e("div",{key:s,staticClass:"app-item"},[e("div",{staticClass:"hd"},[e("span",{staticClass:"orangeStatus"},[t._v("待处理")]),e("span",[t._v("2019-09-01")])]),e("div",{staticClass:"bd"},[e("p",[t._v("申请人:黄青筝")]),e("p",[t._v("审批事项:调休")]),e("p",[t._v("开始时间:2019-09-01 9:00")]),e("p",[t._v("结束时间:2019-09-01 18:00")]),e("p",[t._v("备注:家中急事,调休一天")])])])}),0):e("m-empty",{key:"data"})],1),e("van-tab",{attrs:{title:"已处理"}},[t.recordSection.show?e("van-list",{key:"records",attrs:{finished:t.recordSection.finished,"finished-text":"我是有底线的"},on:{load:t.getStudentAttendanceList},model:{value:t.recordSection.loading,callback:function(a){t.$set(t.recordSection,"loading",a)},expression:"recordSection.loading"}},t._l(6,function(a){return e("div",{key:a,staticClass:"app-item"},[e("div",{staticClass:"hd"},[e("span",{staticClass:"orangeStatus"},[t._v("待处理")]),e("span",[t._v("2019-09-01")])]),e("div",{staticClass:"bd"},[e("p",[t._v("申请人:黄青筝")]),e("p",[t._v("审批事项:调休")]),e("p",[t._v("开始时间:2019-09-01 9:00")]),e("p",[t._v("结束时间:2019-09-01 18:00")]),e("p",[t._v("备注:家中急事,调休一天")])])])}),0):e("m-empty",{key:"records"})],1)],1)],1)},i=[],n=e("6e6e"),o=e("d678"),d=e("9afb"),r={name:"approval",components:{MHeader:n["a"],MEmpty:o["a"]},data:function(){return{dataSection:{show:!0,dataList:[],loading:!1,finished:!1,params:{groupId:this.$route.params.groupId,pageNo:1,pageSize:10}},recordSection:{show:!0,recordList:[],loading:!1,finished:!1,params:{groupId:this.$route.params.groupId,pageNo:1,pageSize:10}}}},methods:{getClassGroupList:function(){var t=this.dataSection,a=t.params;Object(d["m"])(a).then(function(e){var s=e.data;t.loading=!1,200==s.code?(t.dataList=t.dataList.concat(s.data.result),a.pageNo>=s.data.totalPages&&(t.finished=!0),t.params.pageNo++):t.finished=!0,t.dataList.length<=0&&(t.show=!1)})},getStudentAttendanceList:function(){var t=this,a=this.recordSection,e=a.params;Object(d["k"])(e).then(function(s){var i=s.data;a.loading=!1,200==i.returnCode?(t.recordTotal=i.total,a.recordList=a.recordList.concat(i.records),e.pageNo>=i.pages&&(a.finished=!0),a.params.pageNo++):a.finished=!0,a.recordList.length<=0&&(a.show=!1)})}}},c=r,p=(e("4dbb"),e("2877")),l=Object(p["a"])(c,s,i,!1,null,"51185b86",null);a["default"]=l.exports},"123d":function(t,a,e){},"4dbb":function(t,a,e){"use strict";var s=e("123d"),i=e.n(s);i.a},c5a3:function(t,a,e){},d678:function(t,a,e){"use strict";var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mempty"},[e("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),e("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},i=[],n={name:"mempty",props:{icon:String,msg:String}},o=n,d=(e("e9c4"),e("2877")),r=Object(d["a"])(o,s,i,!1,null,"30afa9a9",null);a["a"]=r.exports},e9c4:function(t,a,e){"use strict";var s=e("c5a3"),i=e.n(s);i.a}}]);
- //# sourceMappingURL=Approval.551487db.js.map
|