## 获取某一个月的日期
~~~[api]
post:/api/dengji/getyueinfo
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMIOWv2uNiKarlpjW3pd7t2KUiozOhHiCpoR6vmaWZGyWhKi7dA#token
time=2019-5#当月的时间 如:2019-04
<<<
success
{
"code": 1,
"msg": "",
"data": {
"array": [
{
"nian": 2019,
"yue": 5,
"ri": 1,
"week": "3",
"color": "yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 2,
"week": "4",
"color": "yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 3,
"week": "5",
"color": "yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 4,
"week": "6",
"color": "yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 5,
"week": "0",
"color": "red",
"nums": 0,
"is_today": true
},
{
"nian": 2019,
"yue": 5,
"ri": 6,
"week": "1",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 7,
"week": "2",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 8,
"week": "3",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 9,
"week": "4",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 10,
"week": "5",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 11,
"week": "6",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 12,
"week": "0",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 13,
"week": "1",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 14,
"week": "2",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 15,
"week": "3",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 16,
"week": "4",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 17,
"week": "5",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 18,
"week": "6",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 19,
"week": "0",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 20,
"week": "1",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 21,
"week": "2",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 22,
"week": "3",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 23,
"week": "4",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 24,
"week": "5",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 25,
"week": "6",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 26,
"week": "0",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 27,
"week": "1",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 28,
"week": "2",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 29,
"week": "3",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 30,
"week": "4",
"color": "red,yellow",
"nums": 0,
"is_today": false
},
{
"nian": 2019,
"yue": 5,
"ri": 31,
"week": "5",
"color": "red,yellow",
"nums": 0,
"is_today": false
}
],
"beizhu": {
"blue": "缺勤",
"yellow": "全勤"
}
},
"url": "",
"wait": 3
}
<<<
error
~~~
## 获取孩子的接口(老师)
~~~[api]
post:/api/dengji/gethaizi
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
<<<
success
{
"code": 1,
"msg": "",
"data": [
{
"id": 4,
"name": "昌静怡",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 5,
"name": "谢红燕",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 6,
"name": "谢惠文",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 7,
"name": "费晓艺",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 8,
"name": "费子轩",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 9,
"name": "费珈钰",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 10,
"name": "车函",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 11,
"name": "车阳霞",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 12,
"name": "车奕琳",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 13,
"name": "桓宇",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 14,
"name": "桓舒涵",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 15,
"name": "慕容嫣",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 16,
"name": "慕容清秋",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 17,
"name": "楚欣佳",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 18,
"name": "楚雨彤",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 19,
"name": "轩辕龙飞",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
},
{
"id": 20,
"name": "轩辕柔紫",
"school_id": 1,
"banji_id": 2,
"touxiang": null,
"sex": 0
}
],
"url": "",
"wait": 3
}
<<<
error
~~~
## 选择孩子进行登记
~~~[api]
post:/api/dengji/dengji
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMJqozWmVeHikgdO12piK2WOVfnzbhJ1pq4WOu2GWiW+bmrirdA#token
ids=[19,20]#选择的孩子的id
<<<
success
{
"code": 1,
"msg": "操作成功",
"data": "",
"url": "/api/Dengji/dengji",
"wait": 3
}
<<<
error
~~~
## 获取某一天的孩子的请假或者登记信息
~~~[api]
post:/api/dengji/shiinfo
_ajax=1#ajax请求标记
token=MDAwMDAwMDAwMIOWv2uNiKarlpjW3pd7t2KUiozOhHiCpoR6vmaWZGyWhKi7dA#token
time=2019-5-6#查看的那天的时间
<<<
success
{
"code": 1,
"msg": "",
"data": {
"dengji": [],
"qingjia": []
},
"url": "",
"wait": 3
}
<<<
error
~~~