|
@@ -1021,8 +1021,6 @@ export default {
|
1021
|
1021
|
}
|
1022
|
1022
|
})
|
1023
|
1023
|
newDoctor.sort(this.compare('sort'))
|
1024
|
|
-
|
1025
|
|
-
|
1026
|
1024
|
let arr2 = []
|
1027
|
1025
|
|
1028
|
1026
|
arr2.push({class_name:oneStr,schedule_week:1})
|
|
@@ -1040,15 +1038,30 @@ export default {
|
1040
|
1038
|
arr2.push(obj)
|
1041
|
1039
|
|
1042
|
1040
|
let data = []
|
1043
|
|
-
|
|
1041
|
+ let data2 = []
|
1044
|
1042
|
data.push(...newNurse)
|
1045
|
1043
|
data.push(...newDoctor)
|
1046
|
1044
|
data.push(obj)
|
1047
|
1045
|
console.log("data2o2oo2o2o2o22o",data)
|
1048
|
|
-
|
|
1046
|
+ // if(this.typeValue!=0){
|
|
1047
|
+ // console.log("医生",this.typeValue)
|
|
1048
|
+ // for(let i in data){
|
|
1049
|
+ // if(data[i].user_type == this.typeValue){
|
|
1050
|
+ // data2.push(data[i])
|
|
1051
|
+ // }
|
|
1052
|
+ // }
|
|
1053
|
+ // data2.push(obj)
|
|
1054
|
+ // this.tableData = data2
|
|
1055
|
+ // }else{
|
|
1056
|
+ // console.log("护士",this.typeValue)
|
|
1057
|
+ // data.push(obj)
|
|
1058
|
+ // this.tableData = data
|
|
1059
|
+ // }
|
|
1060
|
+
|
|
1061
|
+
|
1049
|
1062
|
// this.tableData = this.distinct(data)
|
1050
|
1063
|
this.tableData = data
|
1051
|
|
-
|
|
1064
|
+
|
1052
|
1065
|
|
1053
|
1066
|
}
|
1054
|
1067
|
})
|
|
@@ -2018,6 +2031,8 @@ export default {
|
2018
|
2031
|
}
|
2019
|
2032
|
},
|
2020
|
2033
|
tableCellStyle (row, rowIndex, column) {
|
|
2034
|
+ // console.log('3333',row);
|
|
2035
|
+
|
2021
|
2036
|
var week = (row.column.label).split('');
|
2022
|
2037
|
var weeks = 0
|
2023
|
2038
|
if (week.length == 13) {
|
|
@@ -2026,6 +2041,9 @@ export default {
|
2026
|
2041
|
if (week.length == 14) {
|
2027
|
2042
|
weeks = week[4]+week[5]+week[6]+week[7]+week[8]+week[9]+week[10]+week[11]+week[12]
|
2028
|
2043
|
}
|
|
2044
|
+ if (week.length == 15) {
|
|
2045
|
+ weeks = week[4]+week[5]+week[6]+week[7]+week[8]+week[9]+week[10]+week[11]+week[12]+week[13]
|
|
2046
|
+ }
|
2029
|
2047
|
var weekdate = this.getTimestamp(weeks)
|
2030
|
2048
|
if(weekdate < this.timeNow){
|
2031
|
2049
|
return 'background-color:#e5e5e5;'
|
|
@@ -2072,7 +2090,7 @@ export default {
|
2072
|
2090
|
|
2073
|
2091
|
},
|
2074
|
2092
|
|
2075
|
|
- getTimestamp(time) { //把时间日期转成时间戳
|
|
2093
|
+ getTimestamp(time) { //把时间日期转成时间戳
|
2076
|
2094
|
return (new Date(time)).getTime() / 1000
|
2077
|
2095
|
},
|
2078
|
2096
|
exportList(){
|
|
@@ -2130,7 +2148,6 @@ export default {
|
2130
|
2148
|
})
|
2131
|
2149
|
},
|
2132
|
2150
|
|
2133
|
|
-
|
2134
|
2151
|
hoverMouse(row,column, cell, event){
|
2135
|
2152
|
this.name=row.user_name
|
2136
|
2153
|
this.column_lie= column.label.split('\n')[0]
|