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

修改页面逻辑

上级 f5f81a46
...@@ -6,6 +6,38 @@ ...@@ -6,6 +6,38 @@
border-radius: 6px; border-radius: 6px;
flex: 3.8; flex: 3.8;
} }
.setMaxNum {
display: flex;
justify-content: space-around;
}
.input-value {
width: 100px;
/deep/.el-input-number__decrease {
width: 20px;
}
/deep/.el-input-number__increase {
width: 20px;
}
/deep/.el-input__inner {
padding: 0;
}
}
.list-item {
width: 86px;
height: 25px;
background: #ffffff;
border-radius: 16px;
border: 1px solid rgba(0, 0, 0, 0.15);
text-align: center;
}
.list-item-noth {
width: 86px;
height: 25px;
background: red;
border-radius: 16px;
border: 1px solid rgba(0, 0, 0, 0.15);
text-align: center;
}
.w2 { .w2 {
/deep/.fc-prev-button { /deep/.fc-prev-button {
background: #f4f4f5; background: #f4f4f5;
...@@ -125,6 +157,13 @@ ...@@ -125,6 +157,13 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.copy-submit {
background: #fff;
border: 1px solid #0d9078;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #0d9078;
}
.reset-submit { .reset-submit {
background: #fff; background: #fff;
border: 1px solid #0d9078; border: 1px solid #0d9078;
......
...@@ -361,6 +361,7 @@ ...@@ -361,6 +361,7 @@
const objParms = {}; const objParms = {};
objParms.doctorId = this.doctorId; objParms.doctorId = this.doctorId;
objParms.week = type == 1 ? copyWeek : this.week; objParms.week = type == 1 ? copyWeek : this.week;
// type == 1 表示 copy
objParms.workId = this.id; objParms.workId = this.id;
console.log(objParms.week, 'objParms.week'); console.log(objParms.week, 'objParms.week');
dutyRosterQuery(objParms).then((res) => { dutyRosterQuery(objParms).then((res) => {
...@@ -371,7 +372,8 @@ ...@@ -371,7 +372,8 @@
this.getWeekMax(res.data); this.getWeekMax(res.data);
} }
this.handleInitData(res.data); this.handleInitData(res.data);
if (res.data.countList.length > 0 && type != 1) { if (type != 1) {
if (res.data.countList.length > 0) {
const newAR = res.data.countList.map((item, index) => { const newAR = res.data.countList.map((item, index) => {
if (item.weekDay == this.maxList[index].weekDay) { if (item.weekDay == this.maxList[index].weekDay) {
return { return {
...@@ -381,6 +383,17 @@ ...@@ -381,6 +383,17 @@
}); });
this.maxList = newAR; this.maxList = newAR;
console.log(newAR, 'newAR'); console.log(newAR, 'newAR');
} else {
this.maxList = [
{ preNum: 0 },
{ preNum: 0 },
{ preNum: 0 },
{ preNum: 0 },
{ preNum: 0 },
{ preNum: 0 },
{ preNum: 0 },
];
}
} }
} else { } else {
this.$toast(res.message); this.$toast(res.message);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册