提交 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) => {
url: `/im/team/callOp/countByDay?startTimestamp=${data.startTimestamp}&endTimestamp=${data.endTimestamp}`,
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 @@
<script>
import consultationlist from '@/components/common/consultation';
import { getMatchList, getCountByDay } from '@/api/administrators';
import { getMatchList, getCountByDay, lateCountByDay } from '@/api/administrators';
export default {
components: {
......@@ -100,6 +100,7 @@
created() {
this.init();
this.getCountByDay();
this.lateCountByDay();
},
methods: {
init() {
......@@ -112,6 +113,7 @@
getWorkbenchTime(value) {
this.workbenchAdminDate = value;
this.getCountByDay();
this.lateCountByDay();
},
getCountByDay() {
const params = {
......@@ -123,7 +125,18 @@
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>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册