|
|
|
|
42
|
</div>
|
42
|
</div>
|
43
|
<div class="schedulingTable" style="display:flex;justify-content: space-between;">
|
43
|
<div class="schedulingTable" style="display:flex;justify-content: space-between;">
|
44
|
<div style="width: 70%">
|
44
|
<div style="width: 70%">
|
45
|
- <el-table :data="tableData" border :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" :row-style="{ color: '#303133' }" @cell-click="clickThis" :cell-style="tableCellStyle">
|
|
|
|
|
45
|
+ <el-table :data="tableData" border
|
|
|
46
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
|
|
|
47
|
+ :row-style="{ color: '#303133' }" @cell-click="clickThis" :cell-style="tableCellStyle"
|
|
|
48
|
+ @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse">
|
|
|
49
|
+ <!-- @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse" -->
|
46
|
<el-table-column prop="name" label="医护姓名" style="width:16%" align="center">
|
50
|
<el-table-column prop="name" label="医护姓名" style="width:16%" align="center">
|
47
|
<template slot-scope="scope">
|
51
|
<template slot-scope="scope">
|
48
|
<span>{{scope.row.user_name}}</span>
|
52
|
<span>{{scope.row.user_name}}</span>
|
|
|
|
|
50
|
</el-table-column>
|
54
|
</el-table-column>
|
51
|
<el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
|
55
|
<el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
|
52
|
<template slot-scope="scope">
|
56
|
<template slot-scope="scope">
|
53
|
- <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
54
|
- <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
55
|
- circle @click.stop=""
|
|
|
56
|
- ></el-button>
|
|
|
|
|
57
|
+ <div v-if="name==scope.row.user_name&&column_lie =='周一' ? true:false">
|
|
|
58
|
+ <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true" >
|
|
|
59
|
+ <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
60
|
+ circle @click.stop=""
|
|
|
61
|
+ ></el-button>
|
|
|
62
|
+ </div>
|
57
|
</div>
|
63
|
</div>
|
58
|
<div @click="hangdleClick(scope.row,scope.$index,0)">
|
64
|
<div @click="hangdleClick(scope.row,scope.$index,0)">
|
59
|
- <el-dropdown trigger="click" @command="changeSchedule">
|
|
|
|
|
65
|
+ <el-dropdown trigger="click" @command="changeSchedule" >
|
60
|
<span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
|
66
|
<span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
|
61
|
<span>{{ getClass(scope.row.user_name,1) }}</span><i v-if="getTimestamp(weekDayArr[0])>=timeNow && scope.row.admin_user_id!=1000000?true:false" class="el-icon-arrow-down el-icon--right"></i>
|
67
|
<span>{{ getClass(scope.row.user_name,1) }}</span><i v-if="getTimestamp(weekDayArr[0])>=timeNow && scope.row.admin_user_id!=1000000?true:false" class="el-icon-arrow-down el-icon--right"></i>
|
62
|
</span>
|
68
|
</span>
|
|
|
|
|
72
|
</el-table-column>
|
78
|
</el-table-column>
|
73
|
<el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
|
79
|
<el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
|
74
|
<template slot-scope="scope">
|
80
|
<template slot-scope="scope">
|
75
|
- <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
|
|
81
|
+ <div v-if="name==scope.row.user_name&&column_lie =='周二' ? true:false">
|
|
|
82
|
+ <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
|
76
|
<el-button type="danger" size="mini" icon="el-icon-close"
|
83
|
<el-button type="danger" size="mini" icon="el-icon-close"
|
77
|
circle @click.stop=""
|
84
|
circle @click.stop=""
|
78
|
></el-button>
|
85
|
></el-button>
|
79
|
</div>
|
86
|
</div>
|
|
|
87
|
+ </div>
|
|
|
88
|
+
|
80
|
<div @click="hangdleClick(scope.row,scope.$index,1)">
|
89
|
<div @click="hangdleClick(scope.row,scope.$index,1)">
|
81
|
<el-dropdown trigger="click" @command="changeSchedule">
|
90
|
<el-dropdown trigger="click" @command="changeSchedule">
|
82
|
<span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
|
91
|
<span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
|
|
|
|
|
94
|
</el-table-column>
|
103
|
</el-table-column>
|
95
|
<el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
|
104
|
<el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
|
96
|
<template slot-scope="scope">
|
105
|
<template slot-scope="scope">
|
97
|
- <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
98
|
- <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
99
|
- circle @click.stop=""
|
|
|
100
|
- ></el-button>
|
|
|
|
|
106
|
+ <div v-if="name==scope.row.user_name&&column_lie =='周三' ? true:false">
|
|
|
107
|
+ <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
108
|
+ <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
109
|
+ circle @click.stop=""
|
|
|
110
|
+ ></el-button>
|
|
|
111
|
+ </div>
|
101
|
</div>
|
112
|
</div>
|
102
|
<div @click="hangdleClick(scope.row,scope.$index,2)">
|
113
|
<div @click="hangdleClick(scope.row,scope.$index,2)">
|
103
|
<el-dropdown trigger="click" @command="changeSchedule">
|
114
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
|
|
|
116
|
</el-table-column>
|
127
|
</el-table-column>
|
117
|
<el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
|
128
|
<el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
|
118
|
<template slot-scope="scope">
|
129
|
<template slot-scope="scope">
|
119
|
- <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
120
|
- <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
121
|
- circle @click.stop=""
|
|
|
122
|
- ></el-button>
|
|
|
|
|
130
|
+ <div v-if="name==scope.row.user_name&&column_lie =='周四' ? true:false">
|
|
|
131
|
+ <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
132
|
+ <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
133
|
+ circle @click.stop=""
|
|
|
134
|
+ ></el-button>
|
|
|
135
|
+ </div>
|
123
|
</div>
|
136
|
</div>
|
124
|
<div @click="hangdleClick(scope.row,scope.$index,3)">
|
137
|
<div @click="hangdleClick(scope.row,scope.$index,3)">
|
125
|
<el-dropdown trigger="click" @command="changeSchedule">
|
138
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
|
|
|
138
|
</el-table-column>
|
151
|
</el-table-column>
|
139
|
<el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
|
152
|
<el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
|
140
|
<template slot-scope="scope">
|
153
|
<template slot-scope="scope">
|
141
|
- <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
142
|
- <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
143
|
- circle @click.stop=""
|
|
|
144
|
- ></el-button>
|
|
|
|
|
154
|
+ <div v-if="name==scope.row.user_name&&column_lie =='周五' ? true:false">
|
|
|
155
|
+ <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
156
|
+ <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
157
|
+ circle @click.stop=""
|
|
|
158
|
+ ></el-button>
|
|
|
159
|
+ </div>
|
145
|
</div>
|
160
|
</div>
|
146
|
<div @click="hangdleClick(scope.row,scope.$index,4)">
|
161
|
<div @click="hangdleClick(scope.row,scope.$index,4)">
|
147
|
<el-dropdown trigger="click" @command="changeSchedule">
|
162
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
|
|
|
160
|
</el-table-column>
|
175
|
</el-table-column>
|
161
|
<el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
|
176
|
<el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
|
162
|
<template slot-scope="scope">
|
177
|
<template slot-scope="scope">
|
163
|
- <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
164
|
- <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
165
|
- circle @click.stop=""
|
|
|
166
|
- ></el-button>
|
|
|
|
|
178
|
+ <div v-if="name==scope.row.user_name&&column_lie =='周六' ? true:false">
|
|
|
179
|
+ <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
180
|
+ <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
181
|
+ circle @click.stop=""
|
|
|
182
|
+ ></el-button>
|
|
|
183
|
+ </div>
|
167
|
</div>
|
184
|
</div>
|
168
|
<div @click="hangdleClick(scope.row,scope.$index,5)">
|
185
|
<div @click="hangdleClick(scope.row,scope.$index,5)">
|
169
|
<el-dropdown trigger="click" @command="changeSchedule">
|
186
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
|
|
|
182
|
</el-table-column>
|
199
|
</el-table-column>
|
183
|
<el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
|
200
|
<el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
|
184
|
<template slot-scope="scope">
|
201
|
<template slot-scope="scope">
|
185
|
- <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
186
|
- <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
187
|
- circle @click.stop=""
|
|
|
188
|
- ></el-button>
|
|
|
|
|
202
|
+ <div v-if="name==scope.row.user_name&&column_lie =='周日' ? true:false">
|
|
|
203
|
+ <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
|
|
|
204
|
+ <el-button type="danger" size="mini" icon="el-icon-close"
|
|
|
205
|
+ circle @click.stop=""
|
|
|
206
|
+ ></el-button>
|
|
|
207
|
+ </div>
|
189
|
</div>
|
208
|
</div>
|
190
|
<div @click="hangdleClick(scope.row,scope.$index,6)">
|
209
|
<div @click="hangdleClick(scope.row,scope.$index,6)">
|
191
|
<el-dropdown trigger="click" @command="changeSchedule">
|
210
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
|
|
|
446
|
nurseTableData:[],
|
465
|
nurseTableData:[],
|
447
|
doctorTableData:[],
|
466
|
doctorTableData:[],
|
448
|
exportDialogVisible:false,
|
467
|
exportDialogVisible:false,
|
449
|
- month_time:""
|
|
|
|
|
468
|
+ month_time:"",
|
|
|
469
|
+ name:'',
|
|
|
470
|
+ column_lie:''
|
450
|
}
|
471
|
}
|
451
|
},
|
472
|
},
|
452
|
methods:{
|
473
|
methods:{
|
|
|
|
|
2029
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
2050
|
return jsonData.map(v => filterVal.map(j => v[j]))
|
2030
|
},
|
2051
|
},
|
2031
|
|
2052
|
|
2032
|
-
|
|
|
|
|
2053
|
+ hoverMouse(row,column, cell, event){
|
|
|
2054
|
+ this.name=row.user_name
|
|
|
2055
|
+ this.column_lie= column.label.split('\n')[0]
|
|
|
2056
|
+
|
|
|
2057
|
+ },
|
|
|
2058
|
+ leavemouse(row, column, cell, event){
|
|
|
2059
|
+ this.name=''
|
|
|
2060
|
+ }
|
2033
|
},
|
2061
|
},
|
2034
|
created(){
|
2062
|
created(){
|
2035
|
//获取医护人员
|
2063
|
//获取医护人员
|
|
|
|
|
2122
|
max-height:96%;
|
2150
|
max-height:96%;
|
2123
|
overflow-y: auto;
|
2151
|
overflow-y: auto;
|
2124
|
}
|
2152
|
}
|
2125
|
-.del_table_btn {
|
|
|
|
|
2153
|
+.del_table_btns {
|
2126
|
position: absolute;
|
2154
|
position: absolute;
|
2127
|
right: 0px;
|
2155
|
right: 0px;
|
2128
|
top: -3px;
|
2156
|
top: -3px;
|