|
@@ -42,7 +42,11 @@
|
42
|
42
|
</div>
|
43
|
43
|
<div class="schedulingTable" style="display:flex;justify-content: space-between;">
|
44
|
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
|
50
|
<el-table-column prop="name" label="医护姓名" style="width:16%" align="center">
|
47
|
51
|
<template slot-scope="scope">
|
48
|
52
|
<span>{{scope.row.user_name}}</span>
|
|
@@ -50,13 +54,15 @@
|
50
|
54
|
</el-table-column>
|
51
|
55
|
<el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
|
52
|
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
|
63
|
</div>
|
58
|
64
|
<div @click="hangdleClick(scope.row,scope.$index,0)">
|
59
|
|
- <el-dropdown trigger="click" @command="changeSchedule">
|
|
65
|
+ <el-dropdown trigger="click" @command="changeSchedule" >
|
60
|
66
|
<span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
|
61
|
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
|
68
|
</span>
|
|
@@ -72,11 +78,14 @@
|
72
|
78
|
</el-table-column>
|
73
|
79
|
<el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
|
74
|
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
|
83
|
<el-button type="danger" size="mini" icon="el-icon-close"
|
77
|
84
|
circle @click.stop=""
|
78
|
85
|
></el-button>
|
79
|
86
|
</div>
|
|
87
|
+ </div>
|
|
88
|
+
|
80
|
89
|
<div @click="hangdleClick(scope.row,scope.$index,1)">
|
81
|
90
|
<el-dropdown trigger="click" @command="changeSchedule">
|
82
|
91
|
<span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
|
|
@@ -94,10 +103,12 @@
|
94
|
103
|
</el-table-column>
|
95
|
104
|
<el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
|
96
|
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
|
112
|
</div>
|
102
|
113
|
<div @click="hangdleClick(scope.row,scope.$index,2)">
|
103
|
114
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
@@ -116,10 +127,12 @@
|
116
|
127
|
</el-table-column>
|
117
|
128
|
<el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
|
118
|
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
|
136
|
</div>
|
124
|
137
|
<div @click="hangdleClick(scope.row,scope.$index,3)">
|
125
|
138
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
@@ -138,10 +151,12 @@
|
138
|
151
|
</el-table-column>
|
139
|
152
|
<el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
|
140
|
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
|
160
|
</div>
|
146
|
161
|
<div @click="hangdleClick(scope.row,scope.$index,4)">
|
147
|
162
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
@@ -160,10 +175,12 @@
|
160
|
175
|
</el-table-column>
|
161
|
176
|
<el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
|
162
|
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
|
184
|
</div>
|
168
|
185
|
<div @click="hangdleClick(scope.row,scope.$index,5)">
|
169
|
186
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
@@ -182,10 +199,12 @@
|
182
|
199
|
</el-table-column>
|
183
|
200
|
<el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
|
184
|
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
|
208
|
</div>
|
190
|
209
|
<div @click="hangdleClick(scope.row,scope.$index,6)">
|
191
|
210
|
<el-dropdown trigger="click" @command="changeSchedule">
|
|
@@ -446,7 +465,9 @@ export default {
|
446
|
465
|
nurseTableData:[],
|
447
|
466
|
doctorTableData:[],
|
448
|
467
|
exportDialogVisible:false,
|
449
|
|
- month_time:""
|
|
468
|
+ month_time:"",
|
|
469
|
+ name:'',
|
|
470
|
+ column_lie:''
|
450
|
471
|
}
|
451
|
472
|
},
|
452
|
473
|
methods:{
|
|
@@ -2029,7 +2050,14 @@ export default {
|
2029
|
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
|
2062
|
created(){
|
2035
|
2063
|
//获取医护人员
|
|
@@ -2122,7 +2150,7 @@ export default {
|
2122
|
2150
|
max-height:96%;
|
2123
|
2151
|
overflow-y: auto;
|
2124
|
2152
|
}
|
2125
|
|
-.del_table_btn {
|
|
2153
|
+.del_table_btns {
|
2126
|
2154
|
position: absolute;
|
2127
|
2155
|
right: 0px;
|
2128
|
2156
|
top: -3px;
|