yq1 10 months ago
parent
commit
4dfe2204d2
1 changed files with 48 additions and 1 deletions
  1. 48 1
      src/xt_pages/medicalScheduling/index.vue

+ 48 - 1
src/xt_pages/medicalScheduling/index.vue View File

50
                         </el-table-column>
50
                         </el-table-column>
51
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
51
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
52
                             <template slot-scope="scope">
52
                             <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>
53
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
58
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
54
                                     <el-dropdown trigger="click" @command="changeSchedule">
59
                                     <el-dropdown trigger="click" @command="changeSchedule">
55
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
60
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
67
                         </el-table-column>
72
                         </el-table-column>
68
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
73
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
69
                              <template slot-scope="scope">
74
                              <template slot-scope="scope">
75
+                                <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
76
+                                  <el-button type="danger" size="mini" icon="el-icon-close" 
77
+                                    circle @click.stop=""   
78
+                                  ></el-button>
79
+                                </div>
70
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
80
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
71
                                     <el-dropdown trigger="click" @command="changeSchedule">
81
                                     <el-dropdown trigger="click" @command="changeSchedule">
72
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
82
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
84
                         </el-table-column>
94
                         </el-table-column>
85
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
95
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
86
                              <template slot-scope="scope">
96
                              <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>
101
+                                </div>
87
                                 <div @click="hangdleClick(scope.row,scope.$index,2)">
102
                                 <div @click="hangdleClick(scope.row,scope.$index,2)">
88
                                     <el-dropdown trigger="click" @command="changeSchedule">
103
                                     <el-dropdown trigger="click" @command="changeSchedule">
89
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,3) == 2' style="color:red">
104
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,3) == 2' style="color:red">
101
                         </el-table-column>
116
                         </el-table-column>
102
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
117
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
103
                              <template slot-scope="scope">
118
                              <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>
123
+                                </div>
104
                                 <div @click="hangdleClick(scope.row,scope.$index,3)">
124
                                 <div @click="hangdleClick(scope.row,scope.$index,3)">
105
                                     <el-dropdown trigger="click" @command="changeSchedule">
125
                                     <el-dropdown trigger="click" @command="changeSchedule">
106
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,4) == 2' style="color:red">
126
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,4) == 2' style="color:red">
118
                         </el-table-column>
138
                         </el-table-column>
119
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
139
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
120
                              <template slot-scope="scope">
140
                              <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>
145
+                                </div>
121
                                 <div @click="hangdleClick(scope.row,scope.$index,4)">
146
                                 <div @click="hangdleClick(scope.row,scope.$index,4)">
122
                                     <el-dropdown trigger="click" @command="changeSchedule">
147
                                     <el-dropdown trigger="click" @command="changeSchedule">
123
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,5) == 2' style="color:red">
148
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,5) == 2' style="color:red">
135
                         </el-table-column>
160
                         </el-table-column>
136
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
161
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
137
                              <template slot-scope="scope">
162
                              <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>
167
+                                </div>
138
                                 <div @click="hangdleClick(scope.row,scope.$index,5)">
168
                                 <div @click="hangdleClick(scope.row,scope.$index,5)">
139
                                     <el-dropdown trigger="click" @command="changeSchedule">
169
                                     <el-dropdown trigger="click" @command="changeSchedule">
140
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,6) == 2' style="color:red">
170
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,6) == 2' style="color:red">
152
                         </el-table-column>
182
                         </el-table-column>
153
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
183
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
154
                              <template slot-scope="scope">
184
                              <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>
189
+                                </div>
155
                                 <div @click="hangdleClick(scope.row,scope.$index,6)">
190
                                 <div @click="hangdleClick(scope.row,scope.$index,6)">
156
                                     <el-dropdown trigger="click" @command="changeSchedule">
191
                                     <el-dropdown trigger="click" @command="changeSchedule">
157
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,0) == 2' style="color:red">
192
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,0) == 2' style="color:red">
276
                                   {{scope.row.user_name}}
311
                                   {{scope.row.user_name}}
277
                               </template>
312
                               </template>
278
                              </el-table-column>
313
                              </el-table-column>
279
-                             <el-table-column align="center" prop="date" label="职称"width="180">
314
+                             <el-table-column align="center" prop="date" label="职称" width="180">
280
                                 <template slot-scope="scope">
315
                                 <template slot-scope="scope">
281
                                     <span v-if="scope.row.user_title == 1">医士</span>
316
                                     <span v-if="scope.row.user_title == 1">医士</span>
282
                                     <span v-if="scope.row.user_title == 2">医师</span>
317
                                     <span v-if="scope.row.user_title == 2">医师</span>
1734
                         data.push(...newNurse)
1769
                         data.push(...newNurse)
1735
                         data.push(obj)
1770
                         data.push(obj)
1736
                         this.tableData = data
1771
                         this.tableData = data
1772
+                        console.log('cccccc',this.tableData);
1737
                     }
1773
                     }
1738
 
1774
 
1739
             }
1775
             }
2086
     max-height:96%;
2122
     max-height:96%;
2087
     overflow-y: auto;
2123
     overflow-y: auto;
2088
 }
2124
 }
2125
+.del_table_btn {
2126
+    position: absolute;
2127
+    right: 0px;
2128
+    top: -3px;
2129
+    // visibility: hidden;
2130
+  .el-button {
2131
+    width: 15px;
2132
+    height: 15px;
2133
+    padding: 0px;
2134
+  }
2135
+}
2089
 
2136
 
2090
 </style>
2137
 </style>