yq1 před 1 rokem
rodič
revize
9c504ad19d

+ 172 - 157
src/xt_pages/workforce/appointment.vue Zobrazit soubor

@@ -90,169 +90,184 @@
90 90
         <!-- <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button> -->
91 91
       </div>
92 92
     </div>
93
-    <div class="app-container">
94
-      <div style="right:30px;position:absolute;z-index:99">
95
-        <span>导出周次:</span>
96
-        <el-date-picker
97
-            v-model="weekTime"
98
-            type="week"
99
-            format="yyyy 第 WW 周"
100
-            placeholder="选择周"
101
-            :picker-options="{'firstDayOfWeek': 1}"
102
-            @change="changeWeek"
103
-        >
104
-        </el-date-picker>
105
-      </div>
106
-      <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="handleClick">
107
-        <el-tab-pane name="historyWeek">
108
-          <span slot="label"><i class="el-icon-date"></i> 历史周期 ({{ theWeek.historyWeek }}) </span>
109
-        </el-tab-pane>
110
-        <el-tab-pane name="lastWeek">
111
-          <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
112
-        </el-tab-pane>
113
-        <el-tab-pane name="thisWeek">
114
-          <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
115
-        </el-tab-pane>
116
-        <el-tab-pane name="nextWeek">
117
-          <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
118
-        </el-tab-pane>
119
-        <el-tab-pane name="nextTwoWeek">
120
-          <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
121
-        </el-tab-pane>
122
-      </el-tabs>
123
-      <div v-if="!is_edit">
124
-        <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
125
-                    :schedule-zone-row-prop="scheduleZoneRow"
126
-                    :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
127
-                    @event2="changeSchedule"  @event3="changeWeekDay"  @guanliu_show="guanliu" @mode_name="touximoshi" v-show="showtableOne"  @event6="changeScheduleType">
128
-        </table-data>
129
-        <!-- @event6="changeScheduleType" -->
130
-      </div>
131
-      <!-- 编辑 -->
132
-       <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
133
-          :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
134
-          title="" @event1="changePartition"@event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
135
-          <div  style="position: relative;height: 50px">
136
-            <div style="position: fixed;height: 50px;width: 97%;background: #fff;z-index: 100;padding: 5px;">
137
-              <div style="position: relative;">
138
-                <!-- style="position: fixed;" class="position"-->
139
-                  <div style="display: inline-block;">
140
-                    <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
141
-                      <el-tab-pane name="beforeWeek">
142
-                        <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
143
-                      </el-tab-pane>
144
-                      <el-tab-pane name="lastWeek">
145
-                        <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
146
-                      </el-tab-pane>
147
-                      <el-tab-pane name="thisWeek">
148
-                        <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
149
-                      </el-tab-pane>
150
-                      <el-tab-pane name="nextWeek">
151
-                        <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
152
-                      </el-tab-pane>
153
-                      <el-tab-pane name="nextTwoWeek">
154
-                        <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
155
-                      </el-tab-pane>
156
-                    </el-tabs>
157
-                  </div>
158
-                  <div style="display: inline-block;float: right;">
159
-                    <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
160
-                    <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
161
-                    <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
162
-                      导出排班
163
-                    </el-button>
164
-                    <el-button
165
-                        @click="generateLog()"
166
-                        class="filter-item"
167
-                        type="primary"
168
-                        v-if="is_edit"
169
-                        size="small"
170
-                    >下载日志
171
-                    </el-button>
172
-                    <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
173
-                    </el-button>
174
-                    <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
175
-                    <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
176
-                    <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
177
-                    <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
178
-                  </div>
93
+    <div>
94
+      
95
+      <div class="app-container" style="padding: 0 20px 20px 20px;">
96
+        <div>
97
+          <div style="position: relative;height: 57px">
98
+            <div style="position: fixed;width: 80%;z-index: 100;background: #fff;">
99
+              <div>
100
+                <div style="display: inline-block;">
101
+                  <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="handleClick">
102
+                    <el-tab-pane name="historyWeek">
103
+                      <span slot="label"><i class="el-icon-date"></i> 历史周期 ({{ theWeek.historyWeek }}) </span>
104
+                    </el-tab-pane>
105
+                    <el-tab-pane name="lastWeek">
106
+                      <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
107
+                    </el-tab-pane>
108
+                    <el-tab-pane name="thisWeek">
109
+                      <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
110
+                    </el-tab-pane>
111
+                    <el-tab-pane name="nextWeek">
112
+                      <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
113
+                    </el-tab-pane>
114
+                    <el-tab-pane name="nextTwoWeek">
115
+                      <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
116
+                    </el-tab-pane>
117
+                  </el-tabs>
118
+                </div>
119
+                <div style="display: inline-block;float:right;z-index:99">
120
+                  <span>导出周次:</span>
121
+                  <el-date-picker
122
+                      v-model="weekTime"
123
+                      type="week"
124
+                      format="yyyy 第 WW 周"
125
+                      placeholder="选择周"
126
+                      :picker-options="{'firstDayOfWeek': 1}"
127
+                      @change="changeWeek"
128
+                  >
129
+                  </el-date-picker>
130
+                </div>
179 131
               </div>
180 132
             </div>
181 133
           </div>
182
-        </edit-table-data>
183
-        <!-- 编辑上上周 -->
184
-        <beforeweekTable ref="beforeweeks" v-show="beforeshow" :week-time="activeName" :partitions-prop="partitions"
185
-                  :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone" @event3="changeWeekDay">
186
-          <div class="position">
187
-            <div>
188
-              <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
189
-                <el-tab-pane name="beforeWeek">
190
-                  <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
191
-                </el-tab-pane>
192
-                <el-tab-pane name="lastWeek">
193
-                  <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
194
-                </el-tab-pane>
195
-                <el-tab-pane name="thisWeek">
196
-                  <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
197
-                </el-tab-pane>
198
-                <el-tab-pane name="nextWeek">
199
-                  <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
200
-                </el-tab-pane>
201
-                <el-tab-pane name="nextTwoWeek">
202
-                  <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
203
-                </el-tab-pane>
204
-              </el-tabs>
205
-            </div>
206
-            <div style="display:flex;align-items:center">
207
-              <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
208
-              <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
209
-                导出排班
210
-              </el-button>
211
-              <el-button
212
-                  @click="generateLog()"
213
-                  class="filter-item"
214
-                  type="primary"
215
-                  v-if="is_edit"
216
-                  size="small"
217
-              >下载日志
218
-              </el-button>
219
-              <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
220
-              </el-button>
221
-              <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
222
-              <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
223
-              <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
224
-              <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
134
+          <div >
135
+            <div v-if="!is_edit" >
136
+              <table-data ref="tableData"  :week-time="activeName" :partitions-prop="partitions"
137
+                          :schedule-zone-row-prop="scheduleZoneRow"
138
+                          :schedule-zone-prop="scheduleZone" title="" @event1="changePartition"
139
+                          @event2="changeSchedule"  @event3="changeWeekDay"  @guanliu_show="guanliu" @mode_name="touximoshi" v-show="showtableOne"  @event6="changeScheduleType">
140
+              </table-data>
141
+              <!-- @event6="changeScheduleType" -->
225 142
             </div>
226 143
           </div>
227
-        </beforeweekTable>
228
-        <!-- 历史 -->
229
-        <HistoryWeekTable v-show="showtable" ref="tableDataZero"  :week-time="activeName" :partitions-prop="partitions"
230
-                  :schedule-zone-row-prop="scheduleZoneRow"
231
-                  :schedule-zone-prop="scheduleZone" title="" >
232
-          </HistoryWeekTable>
233
-      <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
234
-        <el-form :model="form" ref="form" label-width="90px" :rules="rules">
235
-          <el-form-item label="周次:">
236
-            <el-radio v-model="form.lastweek" label="1">上周排班信息</el-radio>
237
-            <el-radio v-model="form.lastweek" label="2">本周排班信息</el-radio>
238
-          </el-form-item>
239
-          <el-form-item label="复制到 : " required prop="copyWeek">
240
-            <el-select v-model="form.copyWeek" placeholder="请选择">
241
-              <el-option
242
-                  v-for="item in typeOptions"
243
-                  :key="item.value"
244
-                  :label="item.label"
245
-                  :value="item.value">
246
-              </el-option>
247
-            </el-select>
248
-          </el-form-item>
249
-
250
-        </el-form>
251
-        <div slot="footer" class="dialog-footer">
252
-          <el-button @click="newVisible=false">取 消</el-button>
253
-          <el-button  v-loading="copySchLoading" type="primary" @click="submitAction('form')">保 存</el-button>
144
+          <!-- 编辑 -->
145
+        <edit-table-data ref="edittableData"  :week-time="activeName" :partitions-prop="partitions"
146
+            :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone"
147
+            title="" @event1="changePartition"@event2="changeSchedule" v-if="is_edit" @event3="changeWeekDay">
148
+            <div  style="position: relative;height: 50px">
149
+              <div style="position: fixed;height: 50px;width: 97%;background: #fff;z-index: 100;padding: 5px;">
150
+                <div style="position: relative;">
151
+                  <!-- style="position: fixed;" class="position"-->
152
+                    <div style="display: inline-block;">
153
+                      <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
154
+                        <el-tab-pane name="beforeWeek">
155
+                          <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
156
+                        </el-tab-pane>
157
+                        <el-tab-pane name="lastWeek">
158
+                          <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
159
+                        </el-tab-pane>
160
+                        <el-tab-pane name="thisWeek">
161
+                          <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
162
+                        </el-tab-pane>
163
+                        <el-tab-pane name="nextWeek">
164
+                          <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
165
+                        </el-tab-pane>
166
+                        <el-tab-pane name="nextTwoWeek">
167
+                          <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
168
+                        </el-tab-pane>
169
+                      </el-tabs>
170
+                    </div>
171
+                    <div style="display: inline-block;float: right;">
172
+                      <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
173
+                      <!-- <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' v-if="is_edit"></schedule-upload-excel> -->
174
+                      <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
175
+                        导出排班
176
+                      </el-button>
177
+                      <el-button
178
+                          @click="generateLog()"
179
+                          class="filter-item"
180
+                          type="primary"
181
+                          v-if="is_edit"
182
+                          size="small"
183
+                      >下载日志
184
+                      </el-button>
185
+                      <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
186
+                      </el-button>
187
+                      <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
188
+                      <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
189
+                      <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
190
+                      <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
191
+                    </div>
192
+                </div>
193
+              </div>
194
+            </div>
195
+          </edit-table-data>
196
+          <!-- 编辑上上周 -->
197
+          <beforeweekTable ref="beforeweeks" v-show="beforeshow" :week-time="activeName" :partitions-prop="partitions"
198
+                    :schedule-zone-row-prop="scheduleZoneRow" :schedule-zone-prop="scheduleZone" @event3="changeWeekDay">
199
+            <div class="position">
200
+              <div>
201
+                <el-tabs v-model="activeName" :tab-position="tabPosition" ref="elTabs" @tab-click="historyclick">
202
+                  <el-tab-pane name="beforeWeek">
203
+                    <span slot="label"><i class="el-icon-date"></i> 上上周 ({{ theWeek.historyWeek }})</span>
204
+                  </el-tab-pane>
205
+                  <el-tab-pane name="lastWeek">
206
+                    <span slot="label"><i class="el-icon-date"></i> 上周 ({{ theWeek.lastWeek }})</span>
207
+                  </el-tab-pane>
208
+                  <el-tab-pane name="thisWeek">
209
+                    <span slot="label"><i class="el-icon-date"></i> 本周 ({{ theWeek.thisWeek }})</span>
210
+                  </el-tab-pane>
211
+                  <el-tab-pane name="nextWeek">
212
+                    <span slot="label"><i class="el-icon-date"></i> 下一周 ({{ theWeek.nextWeek }})</span>
213
+                  </el-tab-pane>
214
+                  <el-tab-pane name="nextTwoWeek">
215
+                    <span slot="label"><i class="el-icon-date"></i> 下下周 ({{ theWeek.nextTwoWeek }})</span>
216
+                  </el-tab-pane>
217
+                </el-tabs>
218
+              </div>
219
+              <div style="display:flex;align-items:center">
220
+                <el-button type="primary" size="small" icon="el-icon-printer" @click="printScheduleAction">打印排班</el-button>
221
+                <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
222
+                  导出排班
223
+                </el-button>
224
+                <el-button
225
+                    @click="generateLog()"
226
+                    class="filter-item"
227
+                    type="primary"
228
+                    v-if="is_edit"
229
+                    size="small"
230
+                >下载日志
231
+                </el-button>
232
+                <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
233
+                </el-button>
234
+                <el-button type="primary" size="small" @click="copySchedule" v-if="is_edit">复制排班</el-button>
235
+                <el-button type="primary" size="small" v-if="is_edit" @click="smartsch">智能排班</el-button>
236
+                <el-button type="primary" size="small" v-if="!is_edit" @click="editsch">编辑排班</el-button>
237
+                <el-button type="danger" size="small" v-if="is_edit" @click="outisedit">退出编辑</el-button>
238
+              </div>
239
+            </div>
240
+          </beforeweekTable>
241
+          <!-- 历史 -->
242
+          <HistoryWeekTable v-show="showtable" ref="tableDataZero"  :week-time="activeName" :partitions-prop="partitions"
243
+                    :schedule-zone-row-prop="scheduleZoneRow"
244
+                    :schedule-zone-prop="scheduleZone" title="" >
245
+            </HistoryWeekTable>
246
+          <el-dialog title="复制排班" width="600px" :visible.sync="newVisible">
247
+            <el-form :model="form" ref="form" label-width="90px" :rules="rules">
248
+              <el-form-item label="周次:">
249
+                <el-radio v-model="form.lastweek" label="1">上周排班信息</el-radio>
250
+                <el-radio v-model="form.lastweek" label="2">本周排班信息</el-radio>
251
+              </el-form-item>
252
+              <el-form-item label="复制到 : " required prop="copyWeek">
253
+                <el-select v-model="form.copyWeek" placeholder="请选择">
254
+                  <el-option
255
+                      v-for="item in typeOptions"
256
+                      :key="item.value"
257
+                      :label="item.label"
258
+                      :value="item.value">
259
+                  </el-option>
260
+                </el-select>
261
+              </el-form-item>
262
+
263
+            </el-form>
264
+            <div slot="footer" class="dialog-footer">
265
+              <el-button @click="newVisible=false">取 消</el-button>
266
+              <el-button  v-loading="copySchLoading" type="primary" @click="submitAction('form')">保 存</el-button>
267
+            </div>
268
+          </el-dialog>
254 269
         </div>
255
-      </el-dialog>
270
+      </div>
256 271
     </div>
257 272
   </div>
258 273
 </template>

+ 103 - 91
src/xt_pages/workforce/components/tableData.vue Zobrazit soubor

@@ -1,94 +1,97 @@
1 1
 <template>
2 2
   <div id="table_data">
3
+    <div style="position: relative;height: 48px;padding-bottom:12px ">
4
+      <div style="position: fixed;z-index: 100;background: #fff;width: 80%;">
5
+        <div class="cell clearfix" v-if="weekTime == 'thisWeek' || weekTime == 'nextWeek'  || weekTime == 'nextTwoWeek' ">
6
+          <div class="select_list">
3 7
 
4
-    <div class="cell clearfix" v-if="weekTime == 'thisWeek' || weekTime == 'nextWeek'  || weekTime == 'nextTwoWeek' ">
5
-      <div class="select_list">
8
+            <span>日期:</span>
9
+            <el-select
10
+                v-model="week_type"
11
+                placeholder="请选择"
12
+                multiple
13
+              @change="changeWeekDay"
14
+              style="width: 120px;"
15
+            >
16
+              <el-option
17
+                  v-for="(item,index) in weeks"
18
+                  :key="index"
19
+                  :label="item"
20
+                  :value="item"
21
+              >
22
+              </el-option>
23
+            </el-select>
6 24
 
7
-        <span>日期:</span>
8
-        <el-select
9
-            v-model="week_type"
10
-            placeholder="请选择"
11
-            multiple
12
-           @change="changeWeekDay"
13
-           style="width: 120px;"
14
-        >
15
-          <el-option
16
-              v-for="(item,index) in weeks"
17
-              :key="index"
18
-              :label="item"
19
-              :value="item"
20
-          >
21
-          </el-option>
22
-        </el-select>
23
-
24
-        <span>分区:</span>
25
-        <el-select
26
-            v-model="partition_id"
27
-            multiple
28
-            placeholder="请选择"
29
-            @change="changePartiton"
30
-            style="width: 120px;"
31
-        >
32
-          <el-option
33
-              v-for="item in this.zones"
34
-              :key="item.id"
35
-              :label="item.name"
36
-              :value="item.id"
37
-          >
38
-          </el-option>
39
-        </el-select>
40
-
41
-        <span>班次:</span>
42
-        <el-select
43
-            v-model="scheduleType_val"
44
-            clearable
45
-            placeholder="请选择"
46
-            @change="scheduleType_change"
47
-            style="width: 120px;"
48
-        >
49
-          <!-- <el-option value=0 label="请选择"></el-option>   multiple-->
50
-          <el-option
51
-              v-for="item in this.scheduleType"
52
-              :key="item.id"
53
-              :label="item.name"
54
-              :value="item.id"
55
-          >
56
-          </el-option>
57
-        </el-select>
25
+            <span>分区:</span>
26
+            <el-select
27
+                v-model="partition_id"
28
+                multiple
29
+                placeholder="请选择"
30
+                @change="changePartiton"
31
+                style="width: 120px;"
32
+            >
33
+              <el-option
34
+                  v-for="item in this.zones"
35
+                  :key="item.id"
36
+                  :label="item.name"
37
+                  :value="item.id"
38
+              >
39
+              </el-option>
40
+            </el-select>
58 41
 
59
-      </div>
60
-      <el-input
61
-          size="small"
62
-          style="width: 120px;margin-left: 20px"
63
-          class="filter-item"
64
-          v-model.trim="keywords"
65
-          placeholder="病人名称/透析号"
66
-          @keyup.enter.native='search'
67
-      />
68
-      <el-button
69
-          size="small"
70
-          class="filter-item"
71
-          type="primary"
72
-          icon="el-icon-search"
73
-          @click="search"
74
-
75
-      >搜索</el-button>
76
-      <div class="switch">
77
-        <el-switch
78
-          v-model="value1"
79
-          :active-value=true
80
-          active-text="显示透析器/灌流器"
81
-          @change="switchThis(value1)">
82
-
83
-        </el-switch>
84
-      </div>
85
-      <div class="switch">
86
-        <el-switch
87
-          v-model="modename_value"
88
-          :active-value=true
89
-          active-text="显示透析模式"
90
-          @change="switchMode(modename_value)">
91
-        </el-switch>
42
+            <span>班次:</span>
43
+            <el-select
44
+                v-model="scheduleType_val"
45
+                clearable
46
+                placeholder="请选择"
47
+                @change="scheduleType_change"
48
+                style="width: 120px;"
49
+            >
50
+              <!-- <el-option value=0 label="请选择"></el-option>   multiple-->
51
+              <el-option
52
+                  v-for="item in this.scheduleType"
53
+                  :key="item.id"
54
+                  :label="item.name"
55
+                  :value="item.id"
56
+              >
57
+              </el-option>
58
+            </el-select>
59
+
60
+          </div>
61
+          <el-input
62
+              size="small"
63
+              style="width: 120px;margin-left: 20px"
64
+              class="filter-item"
65
+              v-model.trim="keywords"
66
+              placeholder="病人名称/透析号"
67
+              @keyup.enter.native='search'
68
+          />
69
+          <el-button
70
+              size="small"
71
+              class="filter-item"
72
+              type="primary"
73
+              icon="el-icon-search"
74
+              @click="search"
75
+
76
+          >搜索</el-button>
77
+          <div class="switch">
78
+            <el-switch
79
+              v-model="value1"
80
+              :active-value=true
81
+              active-text="显示透析器/灌流器"
82
+              @change="switchThis(value1)">
83
+
84
+            </el-switch>
85
+          </div>
86
+          <div class="switch">
87
+            <el-switch
88
+              v-model="modename_value"
89
+              :active-value=true
90
+              active-text="显示透析模式"
91
+              @change="switchMode(modename_value)">
92
+            </el-switch>
93
+          </div>
94
+        </div>
92 95
       </div>
93 96
     </div>
94 97
     <!-- <el-dialog :visible.sync="searchTableVisible" width="80%" class="eldialog">
@@ -242,9 +245,8 @@
242 245
       </div>
243 246
     </el-dialog>
244 247
 
245
-    <div class="center-tab">
246
-
247
-      <el-table
248
+    <div class="center-tab" style="position: relative;height: 70vh;overflow: overlay;">
249
+      <el-table class="eltables"
248 250
         :row-style="{ color: '#303133' }"
249 251
         :header-cell-style="{
250 252
           backgroundColor: 'rgb(245, 247, 250)',
@@ -271,7 +273,7 @@
271 273
           label="分区"
272 274
           width="50"
273 275
           align="center"
274
-          fixed
276
+          
275 277
         >
276 278
         </el-table-column>
277 279
         <el-table-column
@@ -279,7 +281,7 @@
279 281
           label="机号"
280 282
           align="center"
281 283
           min-width="40"
282
-          fixed
284
+          
283 285
 
284 286
         ></el-table-column>
285 287
         <el-table-column
@@ -4312,6 +4314,16 @@ textarea{
4312 4314
     z-index: 3 !important;
4313 4315
 }
4314 4316
 }
4317
+.eltables{
4318
+  .el-table__header-wrapper{
4319
+    position: relative;
4320
+    height: 68px;
4321
+    .el-table__header{
4322
+      position: fixed;
4323
+      z-index: 100;
4324
+    }
4325
+  }
4326
+}
4315 4327
 
4316 4328
 // .el-table td .cell{
4317 4329
 //   padding: 0px 0px !important;