提交 74b1dfa0 编写于 作者: qian.jie's avatar qian.jie

Merge branch 'feature/jq' into 'develop'

Feature/jq

See merge request !252
...@@ -11,4 +11,10 @@ export const getCountByDay = async (data) => { ...@@ -11,4 +11,10 @@ export const getCountByDay = async (data) => {
url: `/im/team/callOp/countByDay?startTimestamp=${data.startTimestamp}&endTimestamp=${data.endTimestamp}`, url: `/im/team/callOp/countByDay?startTimestamp=${data.startTimestamp}&endTimestamp=${data.endTimestamp}`,
method: 'get', method: 'get',
}); });
}; };
\ No newline at end of file export const lateCountByDay = async (data) => {
return request({
url: `/diagnose/superiorDoctor/lateCountByDay?startTimestamp=${data.startTimestamp}&endTimestamp=${data.endTimestamp}`,
method: 'get',
});
};
\ No newline at end of file
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<script> <script>
import consultationlist from '@/components/common/consultation'; import consultationlist from '@/components/common/consultation';
import { getMatchList, getCountByDay } from '@/api/administrators'; import { getMatchList, getCountByDay, lateCountByDay } from '@/api/administrators';
export default { export default {
components: { components: {
...@@ -100,6 +100,7 @@ ...@@ -100,6 +100,7 @@
created() { created() {
this.init(); this.init();
this.getCountByDay(); this.getCountByDay();
this.lateCountByDay();
}, },
methods: { methods: {
init() { init() {
...@@ -112,6 +113,7 @@ ...@@ -112,6 +113,7 @@
getWorkbenchTime(value) { getWorkbenchTime(value) {
this.workbenchAdminDate = value; this.workbenchAdminDate = value;
this.getCountByDay(); this.getCountByDay();
this.lateCountByDay();
}, },
getCountByDay() { getCountByDay() {
const params = { const params = {
...@@ -123,7 +125,18 @@ ...@@ -123,7 +125,18 @@
this.callDoctorNum = res.data; this.callDoctorNum = res.data;
} }
}); });
} },
lateCountByDay() {
const params = {
startTimestamp:new Date(this.workbenchAdminDate).getTime(),
endTimestamp:new Date(this.workbenchAdminDate).getTime() + 86400 * 1000
};
lateCountByDay(params).then(res => {
if (res.code == '000000') {
this.doctorLaterNum = res.data;
}
});
},
}, },
}; };
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册