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

修改bug

上级 162582d3
此差异已折叠。
......@@ -58,3 +58,10 @@ export const getDoctorInfo = async (data) => {
method: 'post',
});
};
export const previewWork = async (data) => {
return request({
url: '/diagnose/doctor/work/previewWork',
method: 'post',
data: data,
});
};
src/assets/image/nothingData.png

77.8 KB | W: | H:

src/assets/image/nothingData.png

17.6 KB | W: | H:

src/assets/image/nothingData.png
src/assets/image/nothingData.png
src/assets/image/nothingData.png
src/assets/image/nothingData.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -12,7 +12,7 @@
<div
ref="agment"
class="agment-box"
:class="{'w2':week==2,'w3':week==3}"
:class="{ w2: week == 2, w3: week == 3 }"
>
<FullCalendar :options="calendarOptions" />
</div>
......@@ -48,13 +48,11 @@
{{ this.schedulingTypeValue.departmentName }}
</div>
</div>
<div
style="margin-top: 24px"
>
<div style="margin-top: 24px">
<p class="agment-head-title">
选择匹配优先级
</p>
<div :class="this.schedulingType == 3 ? 'agment-head-none' : '' ">
<div :class="this.schedulingType == 3 ? 'agment-head-none' : ''">
<div class="agment-head-priority">
<p
v-for="(item, index) in createList"
......@@ -112,9 +110,9 @@
},
data() {
return {
id:'',
doctorId:'',
schedulingTypeValue:{},
id: '',
doctorId: '',
schedulingTypeValue: {},
schedulingType: 1, // 1 新增 2 编辑 3 查看
createList: [],
listDate: [],
......@@ -191,17 +189,16 @@
workingTicketVisible: false, // 工作表票详情页面
scrollerHeight: 0,
loading: false,
isDoIt:false
isDoIt: false,
};
},
watch: {
week(newV, oldV) {
console.log(newV, oldV, 'newV, oldV');
if (this.haveWeek.indexOf(newV) == -1) {
this.haveWeek.push(newV);
this.handleInitSearch();
}
if(newV !== oldV) {
// if (this.haveWeek.indexOf(newV) == -1) {
// this.haveWeek.push(newV);
// this.handleInitSearch();
// }
if (newV !== oldV) {
this.handleInitSearch();
this.saveDoctoreScheduling(2);
}
......@@ -210,12 +207,12 @@
created() {
this.schedulingType = this.$route.query.type || 1;
this.id = this.$route.query.id;
this.doctorId = this.$route.query.doctorId,
(this.doctorId = this.$route.query.doctorId),
getDoctorInfo({ id: this.id }).then((res) => {
if (res.code == '000000') {
this.schedulingTypeValue = res.data;
this.currentIndex = res.data.level;
}else{
} else {
this.$toast(res.message);
}
});
......@@ -226,7 +223,6 @@
});
},
mounted() {
console.log(this.calendarOptions.events, 'this.calendarOptions.events');
this.scrollerHeight = this.$refs.agment.clientHeight + 'px';
// console.log(this.$refs.agment.clientHeight, 'this.$refs.agment.offsetHeight;');
this.init();
......@@ -272,14 +268,12 @@
var newDate = null;
if (this.schedulingType != 3) {
newDate = [].concat(data.noAcceptList);
console.log(newDate, 'newDate');
} else {
var acceptList = [];
data.acceptList.forEach((item) => {
item.type = 88;
acceptList.push(item);
});
console.log(data.acceptList, 'data.acceptList');
newDate = [].concat(acceptList, data.noAcceptList);
}
// const keyAll = ['end', 'endStr', 'id', 'start', 'startStr'];
......@@ -290,7 +284,6 @@
dataObj['id'] = id;
dataObj['end'] = item.endTime;
dataObj['start'] = item.startTime;
console.log(item.type);
dataObj['type'] = item.type;
if (item.type == 88) {
dataObj['color'] = '#FFEDE9';
......@@ -424,9 +417,7 @@
this.handleInitSearch(true);
},
saveDoctoreScheduling(type) {
console.log(this.isDoIt, 'this.isDoIt');
if(this.isDoIt) {
console.log(this.week, 'this.week');
if (this.isDoIt) {
this.loading = true;
const objParms = {};
objParms.week = this.week;
......@@ -434,7 +425,6 @@
objParms.level = this.currentIndex;
objParms.list = [];
const data = this.calendarOptions.events;
console.log(data, 'data');
data.forEach((item) => {
// if (item.week == this.week) {
const obj = {};
......@@ -449,10 +439,10 @@
// this.handleInitSearch(true);
// this.$router.go(0);
this.loading = false;
if(type == 1) {
if (type == 1) {
this.$message({
message: '排班保存成功',
type: 'success'
type: 'success',
});
}
this.isDoIt = false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册