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

裁分新的页面

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