yq1 10 个月前
父节点
当前提交
4dfe2204d2
共有 1 个文件被更改,包括 48 次插入1 次删除
  1. 48 1
      src/xt_pages/medicalScheduling/index.vue

+ 48 - 1
src/xt_pages/medicalScheduling/index.vue 查看文件

@@ -50,6 +50,11 @@
50 50
                         </el-table-column>
51 51
                         <el-table-column :label="'周一\n(' + weekDayArr[0] + ')'" style="width:200px" align="center">
52 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 58
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
54 59
                                     <el-dropdown trigger="click" @command="changeSchedule">
55 60
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,1) == 2' style="color:red">
@@ -67,6 +72,11 @@
67 72
                         </el-table-column>
68 73
                         <el-table-column prop="name" :label="'周二\n(' + weekDayArr[1] + ')'" style="width:14%" align="center">
69 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 80
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
71 81
                                     <el-dropdown trigger="click" @command="changeSchedule">
72 82
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
@@ -84,6 +94,11 @@
84 94
                         </el-table-column>
85 95
                         <el-table-column prop="name" :label="'周三\n(' + weekDayArr[2] + ')'" style="width:14%" align="center">
86 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 102
                                 <div @click="hangdleClick(scope.row,scope.$index,2)">
88 103
                                     <el-dropdown trigger="click" @command="changeSchedule">
89 104
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,3) == 2' style="color:red">
@@ -101,6 +116,11 @@
101 116
                         </el-table-column>
102 117
                         <el-table-column prop="name" :label="'周四\n(' + weekDayArr[3] + ')'" style="width:14%" align="center">
103 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 124
                                 <div @click="hangdleClick(scope.row,scope.$index,3)">
105 125
                                     <el-dropdown trigger="click" @command="changeSchedule">
106 126
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,4) == 2' style="color:red">
@@ -118,6 +138,11 @@
118 138
                         </el-table-column>
119 139
                         <el-table-column prop="name" :label="'周五\n(' + weekDayArr[4] + ')'" style="width:14%" align="center">
120 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 146
                                 <div @click="hangdleClick(scope.row,scope.$index,4)">
122 147
                                     <el-dropdown trigger="click" @command="changeSchedule">
123 148
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,5) == 2' style="color:red">
@@ -135,6 +160,11 @@
135 160
                         </el-table-column>
136 161
                         <el-table-column prop="name" :label="'周六\n(' + weekDayArr[5] + ')'" style="width:14%" align="center">
137 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 168
                                 <div @click="hangdleClick(scope.row,scope.$index,5)">
139 169
                                     <el-dropdown trigger="click" @command="changeSchedule">
140 170
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,6) == 2' style="color:red">
@@ -152,6 +182,11 @@
152 182
                         </el-table-column>
153 183
                         <el-table-column prop="name" :label="'周日\n(' + weekDayArr[6] + ')'" style="width:14%" align="center">
154 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 190
                                 <div @click="hangdleClick(scope.row,scope.$index,6)">
156 191
                                     <el-dropdown trigger="click" @command="changeSchedule">
157 192
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,0) == 2' style="color:red">
@@ -276,7 +311,7 @@
276 311
                                   {{scope.row.user_name}}
277 312
                               </template>
278 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 315
                                 <template slot-scope="scope">
281 316
                                     <span v-if="scope.row.user_title == 1">医士</span>
282 317
                                     <span v-if="scope.row.user_title == 2">医师</span>
@@ -1734,6 +1769,7 @@ export default {
1734 1769
                         data.push(...newNurse)
1735 1770
                         data.push(obj)
1736 1771
                         this.tableData = data
1772
+                        console.log('cccccc',this.tableData);
1737 1773
                     }
1738 1774
 
1739 1775
             }
@@ -2086,5 +2122,16 @@ export default {
2086 2122
     max-height:96%;
2087 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 2137
 </style>