|
@@ -196,7 +196,7 @@
|
196
|
196
|
</el-option>
|
197
|
197
|
</el-select>
|
198
|
198
|
</el-form-item>
|
199
|
|
-
|
|
199
|
+
|
200
|
200
|
</el-form>
|
201
|
201
|
<div slot="footer" class="dialog-footer">
|
202
|
202
|
<el-button @click="newVisible=false">取 消</el-button>
|
|
@@ -250,7 +250,7 @@
|
250
|
250
|
<el-table-column
|
251
|
251
|
align="center"
|
252
|
252
|
label="是否排班">
|
253
|
|
- <template slot-scope="scope">
|
|
253
|
+ <template slot-scope="scope">
|
254
|
254
|
<el-radio-group v-model="scope.row.is_sort" @change="changeRadio(scope.row)">
|
255
|
255
|
<el-radio :label="1">是</el-radio>
|
256
|
256
|
<el-radio :label="0">否</el-radio>
|
|
@@ -289,7 +289,7 @@
|
289
|
289
|
<span v-if="scope.row.user_title == 10">副主任护师</span>
|
290
|
290
|
<span v-if="scope.row.user_title == 11">主任护师</span>
|
291
|
291
|
<span v-if="scope.row.user_title == 12">运营专员</span>
|
292
|
|
- <span v-if="scope.row.user_title == 13">运营主管</span>
|
|
292
|
+ <span v-if="scope.row.user_title == 13">运营主管</span>
|
293
|
293
|
</template>
|
294
|
294
|
</el-table-column>
|
295
|
295
|
<el-table-column
|
|
@@ -302,7 +302,7 @@
|
302
|
302
|
<el-table-column
|
303
|
303
|
align="center"
|
304
|
304
|
label="是否排班">
|
305
|
|
- <template slot-scope="scope">
|
|
305
|
+ <template slot-scope="scope">
|
306
|
306
|
<el-radio-group v-model="scope.row.is_sort" @change="changeRadio(scope.row)">
|
307
|
307
|
<el-radio :label="1">是</el-radio>
|
308
|
308
|
<el-radio :label="0">否</el-radio>
|
|
@@ -378,7 +378,7 @@ export default {
|
378
|
378
|
copyWeek:"",
|
379
|
379
|
},
|
380
|
380
|
rules: {
|
381
|
|
- copyWeek: [{ required: true, message: "请选择复制时间段", trigger: "blur" }],
|
|
381
|
+ copyWeek: [{ required: true, message: "请选择复制时间段", trigger: "blur" }],
|
382
|
382
|
},
|
383
|
383
|
timeNow:0,
|
384
|
384
|
arrZero:[],
|
|
@@ -472,7 +472,7 @@ export default {
|
472
|
472
|
}
|
473
|
473
|
this.schedulelist = schedulelist
|
474
|
474
|
}
|
475
|
|
- })
|
|
475
|
+ })
|
476
|
476
|
},
|
477
|
477
|
hangdleClick(val,index,num){
|
478
|
478
|
// console.log("val",val)
|
|
@@ -541,7 +541,7 @@ export default {
|
541
|
541
|
schedule_date:this.getTimestamp(this.schedule_date)
|
542
|
542
|
}
|
543
|
543
|
// console.log("params",params)
|
544
|
|
-
|
|
544
|
+
|
545
|
545
|
addSchedule(params).then(response=>{
|
546
|
546
|
if(response.data.state == 1){
|
547
|
547
|
var schedule = response.data.data.schedule
|
|
@@ -551,36 +551,36 @@ export default {
|
551
|
551
|
}
|
552
|
552
|
})
|
553
|
553
|
},
|
554
|
|
- formatDate(date){
|
555
|
|
- var year = date.getFullYear()+'.'
|
|
554
|
+ formatDate(date){
|
|
555
|
+ var year = date.getFullYear()+'.'
|
556
|
556
|
var month = (date.getMonth()+1)+'.';
|
557
|
557
|
var day = date.getDate();
|
558
|
558
|
return year+month+day
|
559
|
|
- },
|
560
|
|
- formatDateTwo(date){
|
561
|
|
- var year = date.getFullYear()+'.'
|
|
559
|
+ },
|
|
560
|
+ formatDateTwo(date){
|
|
561
|
+ var year = date.getFullYear()+'.'
|
562
|
562
|
var month = (date.getMonth()+1)+'.';
|
563
|
563
|
var day = date.getDate();
|
564
|
564
|
return year+month+day
|
565
|
|
- },
|
566
|
|
- addDate(date,n){
|
567
|
|
- date.setDate(date.getDate()+n);
|
|
565
|
+ },
|
|
566
|
+ addDate(date,n){
|
|
567
|
+ date.setDate(date.getDate()+n);
|
568
|
568
|
return date;
|
569
|
|
- },
|
|
569
|
+ },
|
570
|
570
|
//
|
571
|
|
- setDate(date){
|
|
571
|
+ setDate(date){
|
572
|
572
|
var week = date.getDay()-1;
|
573
|
573
|
date = this.addDate(date,week*-1);
|
574
|
574
|
this.currentFirstDate = new Date(date);
|
575
|
575
|
this.currentDate = new Date(date)
|
576
|
|
- for(var i = 0;i<this.clen; i++){
|
|
576
|
+ for(var i = 0;i<this.clen; i++){
|
577
|
577
|
this.weekDayArr.push(this.formatDate(i==0 ? date : this.addDate(date,1)))
|
578
|
|
- }
|
|
578
|
+ }
|
579
|
579
|
},
|
580
|
|
- //上一周
|
|
580
|
+ //上一周
|
581
|
581
|
lastclick(){
|
582
|
582
|
this.weekDayArr=[]
|
583
|
|
- this.setDate(this.addDate(this.currentFirstDate,-7));
|
|
583
|
+ this.setDate(this.addDate(this.currentFirstDate,-7));
|
584
|
584
|
if (this.weekNum == 1) {
|
585
|
585
|
let year = this.nowYear - 1
|
586
|
586
|
let month = 12
|
|
@@ -592,8 +592,8 @@ export default {
|
592
|
592
|
this.getNextWeekList()
|
593
|
593
|
},
|
594
|
594
|
//下一周
|
595
|
|
- nextclick(){
|
596
|
|
- this.weekDayArr=[]
|
|
595
|
+ nextclick(){
|
|
596
|
+ this.weekDayArr=[]
|
597
|
597
|
this.setDate(this.addDate(this.currentFirstDate,7));
|
598
|
598
|
this.weekNum = this.weekNum + 1
|
599
|
599
|
if (this.weekNum == 53) {
|
|
@@ -607,16 +607,16 @@ export default {
|
607
|
607
|
},
|
608
|
608
|
|
609
|
609
|
getYearWeek(year,month,date){
|
610
|
|
- /*
|
611
|
|
- dateNow是当前日期
|
612
|
|
- dateFirst是当年第一天
|
613
|
|
- dataNumber是当前日期是今年第多少天
|
614
|
|
- 用dataNumber + 当前年的第一天的周差距的和在除以7就是本年第几周
|
615
|
|
- */
|
|
610
|
+ /*
|
|
611
|
+ dateNow是当前日期
|
|
612
|
+ dateFirst是当年第一天
|
|
613
|
+ dataNumber是当前日期是今年第多少天
|
|
614
|
+ 用dataNumber + 当前年的第一天的周差距的和在除以7就是本年第几周
|
|
615
|
+ */
|
616
|
616
|
let dateNow = new Date(year, parseInt(month) - 1, date);
|
617
|
617
|
let dateFirst = new Date(year, 0, 1);
|
618
|
618
|
let dataNumber = Math.round((dateNow.valueOf() - dateFirst.valueOf()) / 86400000);
|
619
|
|
- return Math.ceil((dataNumber + ((dateFirst.getDay() + 1) - 1)) / 7);
|
|
619
|
+ return Math.ceil((dataNumber + ((dateFirst.getDay() + 1) - 1)) / 7);
|
620
|
620
|
},
|
621
|
621
|
getTimestamp(time) { //把时间日期转成时间戳
|
622
|
622
|
return (new Date(time)).getTime() / 1000
|
|
@@ -636,7 +636,7 @@ export default {
|
636
|
636
|
}
|
637
|
637
|
getStaffScheduleList(params).then(response=>{
|
638
|
638
|
if(response.data.state == 1){
|
639
|
|
- var staffList = response.data.data.staffList
|
|
639
|
+ var staffList = response.data.data.staffList
|
640
|
640
|
// console.log("获取所有排班",staffList)
|
641
|
641
|
var sevenStr = ""
|
642
|
642
|
var oneStr = ""
|
|
@@ -652,18 +652,18 @@ export default {
|
652
|
652
|
this.arrFour = []
|
653
|
653
|
this.arrFive = []
|
654
|
654
|
this.arrSix = []
|
655
|
|
-
|
|
655
|
+
|
656
|
656
|
for(let i=0;i<staffList.length;i++){
|
657
|
657
|
if(staffList[i].schedule_week == 0){
|
658
|
658
|
staffList[i].class_index = 0
|
659
|
659
|
var arr = []
|
660
|
|
- this.arrZero.push(staffList[i].class_name)
|
|
660
|
+ this.arrZero.push(staffList[i].class_name)
|
661
|
661
|
for(let i=0;i<this.arrZero.length;i++){
|
662
|
662
|
if(this.arrZero[i]!=''){
|
663
|
663
|
arr.push(this.arrZero[i])
|
664
|
664
|
}
|
665
|
665
|
}
|
666
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
666
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
667
|
667
|
if (name in allNames) {
|
668
|
668
|
allNames[name]++;
|
669
|
669
|
}
|
|
@@ -690,7 +690,7 @@ export default {
|
690
|
690
|
arr.push(this.arrOne[i])
|
691
|
691
|
}
|
692
|
692
|
}
|
693
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
693
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
694
|
694
|
if (name in allNames) {
|
695
|
695
|
allNames[name]++;
|
696
|
696
|
}
|
|
@@ -717,7 +717,7 @@ export default {
|
717
|
717
|
arr.push(this.arrTwo[i])
|
718
|
718
|
}
|
719
|
719
|
}
|
720
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
720
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
721
|
721
|
if (name in allNames) {
|
722
|
722
|
allNames[name]++;
|
723
|
723
|
}
|
|
@@ -744,7 +744,7 @@ export default {
|
744
|
744
|
arr.push(this.arrThree[i])
|
745
|
745
|
}
|
746
|
746
|
}
|
747
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
747
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
748
|
748
|
if (name in allNames) {
|
749
|
749
|
allNames[name]++;
|
750
|
750
|
}
|
|
@@ -771,7 +771,7 @@ export default {
|
771
|
771
|
arr.push(this.arrFour[i])
|
772
|
772
|
}
|
773
|
773
|
}
|
774
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
774
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
775
|
775
|
if (name in allNames) {
|
776
|
776
|
allNames[name]++;
|
777
|
777
|
}
|
|
@@ -799,7 +799,7 @@ export default {
|
799
|
799
|
arr.push(this.arrFive[i])
|
800
|
800
|
}
|
801
|
801
|
}
|
802
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
802
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
803
|
803
|
if (name in allNames) {
|
804
|
804
|
allNames[name]++;
|
805
|
805
|
}
|
|
@@ -826,7 +826,7 @@ export default {
|
826
|
826
|
arr.push(this.arrSix[i])
|
827
|
827
|
}
|
828
|
828
|
}
|
829
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
829
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
830
|
830
|
if (name in allNames) {
|
831
|
831
|
allNames[name]++;
|
832
|
832
|
}
|
|
@@ -869,13 +869,13 @@ export default {
|
869
|
869
|
this.doctorlist.sort(this.compare('admin_user_id'))
|
870
|
870
|
this.doctorlist.forEach((item, index) => {
|
871
|
871
|
if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
|
872
|
|
-
|
|
872
|
+
|
873
|
873
|
}else{
|
874
|
874
|
arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
|
875
|
875
|
}
|
876
|
876
|
})
|
877
|
877
|
arr.sort(this.compare('user_type'))
|
878
|
|
-
|
|
878
|
+
|
879
|
879
|
let arr2 = []
|
880
|
880
|
arr2.push({class_name:oneStr,schedule_week:1})
|
881
|
881
|
arr2.push({class_name:twoStr,schedule_week:2})
|
|
@@ -891,8 +891,8 @@ export default {
|
891
|
891
|
obj.list = arr2
|
892
|
892
|
arr.push(obj)
|
893
|
893
|
this.tableData = arr
|
894
|
|
-
|
895
|
|
-
|
|
894
|
+
|
|
895
|
+
|
896
|
896
|
}
|
897
|
897
|
})
|
898
|
898
|
},
|
|
@@ -909,12 +909,12 @@ export default {
|
909
|
909
|
}
|
910
|
910
|
})
|
911
|
911
|
}
|
912
|
|
-
|
|
912
|
+
|
913
|
913
|
}
|
914
|
914
|
})
|
915
|
915
|
return newClass
|
916
|
916
|
}
|
917
|
|
-
|
|
917
|
+
|
918
|
918
|
},
|
919
|
919
|
getClassAttributes(name,index){
|
920
|
920
|
if(name != undefined){
|
|
@@ -928,19 +928,19 @@ export default {
|
928
|
928
|
}
|
929
|
929
|
})
|
930
|
930
|
}
|
931
|
|
-
|
|
931
|
+
|
932
|
932
|
}
|
933
|
933
|
})
|
934
|
934
|
return newClass
|
935
|
935
|
}
|
936
|
|
-
|
|
936
|
+
|
937
|
937
|
},
|
938
|
938
|
|
939
|
|
- unique(arr) {
|
|
939
|
+ unique(arr) {
|
940
|
940
|
const res = new Map();
|
941
|
941
|
return arr.filter((arr) => !res.has(arr.admin_user_id) && res.set(arr.admin_user_id, 1))
|
942
|
942
|
},
|
943
|
|
-
|
|
943
|
+
|
944
|
944
|
//获取上一周下一周的排班数据
|
945
|
945
|
getNextWeekList(){
|
946
|
946
|
const params = {
|
|
@@ -975,7 +975,7 @@ export default {
|
975
|
975
|
arr.push(this.arrZero[i])
|
976
|
976
|
}
|
977
|
977
|
}
|
978
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
978
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
979
|
979
|
if (name in allNames) {
|
980
|
980
|
allNames[name]++;
|
981
|
981
|
}
|
|
@@ -1002,7 +1002,7 @@ export default {
|
1002
|
1002
|
arr.push(this.arrOne[i])
|
1003
|
1003
|
}
|
1004
|
1004
|
}
|
1005
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
1005
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
1006
|
1006
|
if (name in allNames) {
|
1007
|
1007
|
allNames[name]++;
|
1008
|
1008
|
}
|
|
@@ -1029,7 +1029,7 @@ export default {
|
1029
|
1029
|
arr.push(this.arrTwo[i])
|
1030
|
1030
|
}
|
1031
|
1031
|
}
|
1032
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
1032
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
1033
|
1033
|
if (name in allNames) {
|
1034
|
1034
|
allNames[name]++;
|
1035
|
1035
|
}
|
|
@@ -1056,7 +1056,7 @@ export default {
|
1056
|
1056
|
arr.push(this.arrThree[i])
|
1057
|
1057
|
}
|
1058
|
1058
|
}
|
1059
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
1059
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
1060
|
1060
|
if (name in allNames) {
|
1061
|
1061
|
allNames[name]++;
|
1062
|
1062
|
}
|
|
@@ -1083,7 +1083,7 @@ export default {
|
1083
|
1083
|
arr.push(this.arrFour[i])
|
1084
|
1084
|
}
|
1085
|
1085
|
}
|
1086
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
1086
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
1087
|
1087
|
if (name in allNames) {
|
1088
|
1088
|
allNames[name]++;
|
1089
|
1089
|
}
|
|
@@ -1111,7 +1111,7 @@ export default {
|
1111
|
1111
|
arr.push(this.arrFive[i])
|
1112
|
1112
|
}
|
1113
|
1113
|
}
|
1114
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
1114
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
1115
|
1115
|
if (name in allNames) {
|
1116
|
1116
|
allNames[name]++;
|
1117
|
1117
|
}
|
|
@@ -1138,7 +1138,7 @@ export default {
|
1138
|
1138
|
arr.push(this.arrSix[i])
|
1139
|
1139
|
}
|
1140
|
1140
|
}
|
1141
|
|
- var countedNames = arr.reduce(function (allNames, name) {
|
|
1141
|
+ var countedNames = arr.reduce(function (allNames, name) {
|
1142
|
1142
|
if (name in allNames) {
|
1143
|
1143
|
allNames[name]++;
|
1144
|
1144
|
}
|
|
@@ -1180,7 +1180,7 @@ export default {
|
1180
|
1180
|
this.doctorlist.sort(this.compare('admin_user_id'))
|
1181
|
1181
|
this.doctorlist.forEach((item, index) => {
|
1182
|
1182
|
if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
|
1183
|
|
-
|
|
1183
|
+
|
1184
|
1184
|
}else{
|
1185
|
1185
|
arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
|
1186
|
1186
|
// console.log("arr",arr)
|
|
@@ -1210,13 +1210,13 @@ export default {
|
1210
|
1210
|
const params = {
|
1211
|
1211
|
start_time:this.getTimestamp(this.weekDayArr[0]),
|
1212
|
1212
|
end_time:this.getTimestamp(this.weekDayArr[6]),
|
1213
|
|
- doctor_id:id
|
|
1213
|
+ doctor_id:id
|
1214
|
1214
|
}
|
1215
|
1215
|
getScheduleByDoctorId(params).then(response=>{
|
1216
|
1216
|
if(response.data.state == 1){
|
1217
|
1217
|
var staffList = response.data.data.staffList
|
1218
|
1218
|
// console.log("staffList",staffList)
|
1219
|
|
-
|
|
1219
|
+
|
1220
|
1220
|
let tempArr = [], newArr = []
|
1221
|
1221
|
for (let i = 0; i < staffList.length; i++) {
|
1222
|
1222
|
if (tempArr.indexOf(staffList[i].user_name) === -1) {
|
|
@@ -1242,7 +1242,7 @@ export default {
|
1242
|
1242
|
this.doctorlist.sort(this.compare('admin_user_id'))
|
1243
|
1243
|
this.doctorlist.forEach((item, index) => {
|
1244
|
1244
|
if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
|
1245
|
|
-
|
|
1245
|
+
|
1246
|
1246
|
}else{
|
1247
|
1247
|
arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: [],user_type:item.user_type})
|
1248
|
1248
|
// console.log("arr",arr)
|
|
@@ -1263,7 +1263,7 @@ export default {
|
1263
|
1263
|
})
|
1264
|
1264
|
newDoctor.map((item, index) => {
|
1265
|
1265
|
if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
|
1266
|
|
-
|
|
1266
|
+
|
1267
|
1267
|
}else{
|
1268
|
1268
|
arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
|
1269
|
1269
|
// console.log("arr",arr)
|
|
@@ -1283,7 +1283,7 @@ export default {
|
1283
|
1283
|
})
|
1284
|
1284
|
newDoctor.map((item, index) => {
|
1285
|
1285
|
if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
|
1286
|
|
-
|
|
1286
|
+
|
1287
|
1287
|
}else{
|
1288
|
1288
|
arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
|
1289
|
1289
|
// console.log("arr",arr)
|
|
@@ -1331,7 +1331,7 @@ export default {
|
1331
|
1331
|
this.doctorlist.sort(this.compare('admin_user_id'))
|
1332
|
1332
|
this.doctorlist.forEach((item, index) => {
|
1333
|
1333
|
if (arr[index] && item.admin_user_id == arr[index].admin_user_id) {
|
1334
|
|
-
|
|
1334
|
+
|
1335
|
1335
|
}else{
|
1336
|
1336
|
arr.splice(index, 0, {user_name: item.user_name, admin_user_id: item.admin_user_id, list: []})
|
1337
|
1337
|
// console.log("arr",arr)
|
|
@@ -1382,7 +1382,7 @@ export default {
|
1382
|
1382
|
// }else{
|
1383
|
1383
|
// this.$message.error("排班已存在")
|
1384
|
1384
|
// }
|
1385
|
|
- // })
|
|
1385
|
+ // })
|
1386
|
1386
|
},
|
1387
|
1387
|
toContinuous(){
|
1388
|
1388
|
var is_status = 0
|
|
@@ -1422,8 +1422,8 @@ export default {
|
1422
|
1422
|
}
|
1423
|
1423
|
}
|
1424
|
1424
|
var start = label.split('~')
|
1425
|
|
- var copy_startime = this.getTimestamp(start[0])
|
1426
|
|
- var copy_endtime = this.getTimestamp(start[1])
|
|
1425
|
+ var copy_startime = this.getTimestamp(start[0])
|
|
1426
|
+ var copy_endtime = this.getTimestamp(start[1])
|
1427
|
1427
|
|
1428
|
1428
|
const params = {
|
1429
|
1429
|
start_time:this.getTimestamp(this.weekDayArr[0]),
|
|
@@ -1461,7 +1461,7 @@ export default {
|
1461
|
1461
|
if (week.length == 14) {
|
1462
|
1462
|
weeks = week[4]+week[5]+week[6]+week[7]+week[8]+week[9]+week[10]+week[11]+week[12]
|
1463
|
1463
|
}
|
1464
|
|
-
|
|
1464
|
+
|
1465
|
1465
|
// console.log("week",week)
|
1466
|
1466
|
// console.log("weeks",weeks)
|
1467
|
1467
|
var weekdate = this.getTimestamp(weeks)
|
|
@@ -1478,31 +1478,31 @@ export default {
|
1478
|
1478
|
changeSort(val){
|
1479
|
1479
|
console.log('val',val)
|
1480
|
1480
|
const params = {
|
1481
|
|
- sort:parseInt(val.sort),
|
1482
|
|
- id:val.id,
|
|
1481
|
+ sort:parseInt(val.sort),
|
|
1482
|
+ id:val.id,
|
1483
|
1483
|
}
|
1484
|
1484
|
console.log("params",params)
|
1485
|
|
- SaveNurseSort(params).then(response=>{
|
1486
|
|
- if(response.data.state == 1){
|
1487
|
|
- var role = response.data.data.role
|
1488
|
|
- this.$message.success("保存成功")
|
1489
|
|
- this.getDoctorList()
|
1490
|
|
- }
|
1491
|
|
- })
|
|
1485
|
+ // SaveNurseSort(params).then(response=>{
|
|
1486
|
+ // if(response.data.state == 1){
|
|
1487
|
+ // var role = response.data.data.role
|
|
1488
|
+ // this.$message.success("保存成功")
|
|
1489
|
+ // this.getDoctorList()
|
|
1490
|
+ // }
|
|
1491
|
+ // })
|
1492
|
1492
|
},
|
1493
|
1493
|
changeRadio(val){
|
1494
|
1494
|
console.log("val",val)
|
1495
|
1495
|
const params = {
|
1496
|
1496
|
id:val.id,
|
1497
|
|
- is_sort:val.is_sort,
|
|
1497
|
+ is_sort:val.is_sort,
|
1498
|
1498
|
}
|
1499
|
|
- SaveIsSchedule(params).then(response=>{
|
1500
|
|
- if(response.data.state == 1){
|
1501
|
|
- var role = response.data.data.role
|
1502
|
|
- this.$message.success("保存成功")
|
1503
|
|
- this.getDoctorList()
|
1504
|
|
- }
|
1505
|
|
- })
|
|
1499
|
+ // SaveIsSchedule(params).then(response=>{
|
|
1500
|
+ // if(response.data.state == 1){
|
|
1501
|
+ // var role = response.data.data.role
|
|
1502
|
+ // this.$message.success("保存成功")
|
|
1503
|
+ // this.getDoctorList()
|
|
1504
|
+ // }
|
|
1505
|
+ // })
|
1506
|
1506
|
}
|
1507
|
1507
|
},
|
1508
|
1508
|
created(){
|
|
@@ -1530,19 +1530,19 @@ export default {
|
1530
|
1530
|
let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
|
1531
|
1531
|
this.timeOptions.push({value:i,label:stt})
|
1532
|
1532
|
}else{
|
1533
|
|
-
|
|
1533
|
+
|
1534
|
1534
|
newNum++
|
1535
|
1535
|
let str = this.weekList[i][0] + '~' + this.weekList[i][6] + '(' + newNum + ')'
|
1536
|
|
- this.typeOptions.push({value:i,label:str})
|
|
1536
|
+ this.typeOptions.push({value:i,label:str})
|
1537
|
1537
|
let stt = this.weekList[i][0] +"~"+this.weekList[i][6]
|
1538
|
|
- this.timeOptions.push({value:i,label:stt})
|
|
1538
|
+ this.timeOptions.push({value:i,label:stt})
|
1539
|
1539
|
}
|
1540
|
|
-
|
|
1540
|
+
|
1541
|
1541
|
}
|
1542
|
1542
|
var now = moment().locale('zh-cn').format('YYYY-MM-DD 00:00:00')
|
1543
|
1543
|
this.timeNow = this.getTimestamp(now)
|
1544
|
|
-
|
1545
|
|
-
|
|
1544
|
+
|
|
1545
|
+
|
1546
|
1546
|
}
|
1547
|
1547
|
}
|
1548
|
1548
|
</script>
|
|
@@ -1567,7 +1567,7 @@ export default {
|
1567
|
1567
|
background-color: rgb(245, 247, 250);
|
1568
|
1568
|
color: rgb(96, 98, 102);
|
1569
|
1569
|
font-weight:bold;
|
1570
|
|
-
|
|
1570
|
+
|
1571
|
1571
|
}
|
1572
|
1572
|
.classMain{
|
1573
|
1573
|
height: 400px;
|