提交 e997ee9f 编写于 作者: xiaoping.di's avatar xiaoping.di

裁分新的页面

上级 16d2513e
......@@ -52,3 +52,9 @@ export const saveDutyRoster = async (data) => {
method: 'post',
});
};
export const getDoctorInfo = async (data) => {
return request({
url: `/diagnose/doctor/work/selectById/${data.id}`,
method: 'post',
});
};
......@@ -57,7 +57,7 @@
:class="{ active: index == currentIndex }"
@click="handlePriority(index)"
>
{{ item.value }}
{{ item }}
</p>
</div>
</div>
......@@ -89,7 +89,12 @@
import dayGridPlugin from '@fullcalendar/daygrid';
import timeGridPlugin from '@fullcalendar/timegrid';
import interactionPlugin from '@fullcalendar/interaction';
import { dutyRosterQuery, saveDutyRoster } from '@/api/serviceSchedule';
import {
dutyRosterQuery,
saveDutyRoster,
getLevel,
getDoctorInfo,
} from '@/api/serviceSchedule';
export default {
name: 'Index',
components: {
......@@ -102,19 +107,11 @@
return {};
},
},
schedulingType: {
type: String,
default: '', // 1 新增 2 编辑 3 查看
},
createList: {
type: Array,
default: () => {
return [];
},
},
},
data() {
return {
schedulingType: 1, // 1 新增 2 编辑 3 查看
createList: [],
listDate: [],
week: 1, // 1:当前周 2:上一周 3:下一周
currentIndex: 2,
......@@ -198,6 +195,20 @@
}
},
},
created() {
this.schedulingType = this.$route.query.doctorId || 1;
const id = this.$route.query.id || '77';
getDoctorInfo({ id: id }).then((res) => {
if (res.code == '000000') {
console.log(res);
}
});
getLevel().then((res) => {
if (res.code == '000000') {
this.createList = res.data;
}
});
},
mounted() {
this.scrollerHeight = this.$refs.agment.clientHeight + 'px';
// console.log(this.$refs.agment.clientHeight, 'this.$refs.agment.offsetHeight;');
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册