1 line
2.5 KiB
JavaScript
1 line
2.5 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bbf1cad"],{"161f":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"f",(function(){return u})),n.d(e,"b",(function(){return l})),n.d(e,"d",(function(){return c}));var r=n("b775");function a(t){return Object(r["a"])({url:"/admin/toDo/list",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/admin/toDo/"+t,method:"get"})}function i(t){return Object(r["a"])({url:"/admin/toDo",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/admin/toDo",method:"put",data:t})}function l(t){return Object(r["a"])({url:"/admin/toDo/"+t,method:"delete"})}function c(){return Object(r["a"])({url:"/admin/toDo/getLabelList",method:"get"})}},"4b85":function(t,e,n){"use strict";n("af17")},af17:function(t,e,n){},cf5c:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"to-do"},[n("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:"待办事项","right-text":"新增"},on:{"click-right":function(e){return t.$router.push("/addToDo")},"click-left":function(e){return t.$router.go(-1)}}}),n("van-cell-group",{attrs:{inset:""}},[n("van-cell",{attrs:{"is-link":"",title:"全部待办",to:"/to-do-list/all",value:t.navNumber.all}})],1),n("van-cell-group",{attrs:{inset:""}},[n("van-cell",{attrs:{"is-link":"",title:"今日待办",to:"/to-do-list/today",value:t.navNumber.today}})],1),n("van-cell-group",{attrs:{inset:""}},[n("van-cell",{attrs:{"is-link":"",title:"我负责的",to:"/to-do-list/charge",value:t.navNumber.charge}})],1),n("van-cell-group",{attrs:{inset:""}},[n("van-cell",{attrs:{"is-link":"",title:"我发起的",to:"/to-do-list/started",value:t.navNumber.started}})],1)],1)},a=[],o=(n("d3b7"),n("159b"),n("161f")),i={name:"index",data:function(){return{navNumber:{all:0,today:0,charge:0,started:0}}},mounted:function(){this.listDo()},methods:{listDo:function(){var t=this;this.navNumber={all:0,today:0,charge:0,started:0},Object(o["e"])().then((function(e){e.rows.forEach((function(e){e.status||(t.navNumber.all++,e.planStartTime&&e.planEndTime&&e.planStartTime<t.getNow()&&e.planEndTime>t.getNow()&&t.navNumber.today++,e.performer&&-1!==e.performer.split(",").indexOf(t.$store.state.user.id+"")&&t.navNumber.charge++,e.createBy&&e.createBy===t.$store.state.user.id+""&&t.navNumber.started++)}))}))}}},u=i,l=(n("4b85"),n("2877")),c=Object(l["a"])(u,r,a,!1,null,"2d408e8c",null);e["default"]=c.exports}}]);
|