## 获取孩子一个月的情况
~~~[api]
post:/api/qingjia/getyueinfo
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
time=2019-5#选择的时间不写默认是当月的
<<<
success
{
"code": 1,
"msg": "",
"data": {
"array": [
{
"nian": 2019,
"yue": 5,
"ri": 1,
"week": "3",
"color": "yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 2,
"week": "4",
"color": "yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 3,
"week": "5",
"color": "yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 4,
"week": "6",
"color": "yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 5,
"week": "0",
"color": "red",
"is_jilu": false,
"is_today": true
},
{
"nian": 2019,
"yue": 5,
"ri": 6,
"week": "1",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 7,
"week": "2",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 8,
"week": "3",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 9,
"week": "4",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 10,
"week": "5",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 11,
"week": "6",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 12,
"week": "0",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 13,
"week": "1",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 14,
"week": "2",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 15,
"week": "3",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 16,
"week": "4",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 17,
"week": "5",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 18,
"week": "6",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 19,
"week": "0",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 20,
"week": "1",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 21,
"week": "2",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 22,
"week": "3",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 23,
"week": "4",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 24,
"week": "5",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 25,
"week": "6",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 26,
"week": "0",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 27,
"week": "1",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 28,
"week": "2",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 29,
"week": "3",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 30,
"week": "4",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 31,
"week": "5",
"color": "red,yellow",
"is_jilu": false,
"is_today": false
}
],
"beizhu": {
"blue": "缺勤",
"yellow": "全勤"
}
},
"url": "",
"wait": 3
}
<<<
error
~~~
## 获取请假和登记的信息
~~~[api]
post:/api/qingjia/shiinfo
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJjeu2uOm55igeC03IOKzp6MsIDVhWKNrJt90GODnInXmLizdA#token
time=2019-4-23#不是必填 默认当前时间
<<<
success
{
"code": 1,
"msg": "",
"data": {
"dengji": [],
"qingjia": []
},
"url": "",
"wait": 3
}
<<<
error
~~~
## 请假
~~~[api]
post:/api/qingjia/qingjia
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
time=2019-4-30#请假的时间
reason='发烧了'#请假原因
<<<
success
{
"code": 1,
"msg": "请假成功",
"data": "",
"url": "/api/Qingjia/qingjia",
"wait": 3
}
<<<
error
~~~