28169 1 vuosi sitten
vanhempi
commit
669d8fa376
1 muutettua tiedostoa jossa 24 lisäystä ja 24 poistoa
  1. 24 24
      src/xt_pages/workforce/components/editTableData.vue

+ 24 - 24
src/xt_pages/workforce/components/editTableData.vue Näytä tiedosto

@@ -5084,30 +5084,30 @@ export default {
5084 5084
                 type: "success",
5085 5085
                 message: "修改成功!",
5086 5086
               });
5087
-              // var that = this;
5088
-              // var schedule = response.data.data.schedule;
5089
-              // this.msDialogVisible = false
5090
-              // this.scheduleZone.forEach(function (zone, index) {
5091
-              //   if (
5092
-              //       zone.zone_id == schedule.partition_id &&
5093
-              //       zone.jihao_id == schedule.bed_id
5094
-              //   ) {
5095
-              //     var weekPath = that.weekPath(
5096
-              //         schedule.schedule_week,
5097
-              //         schedule.schedule_type
5098
-              //     );
5099
-              //     if (weekPath.length == 2) {
5100
-              //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
5101
-              //       that.scheduleZone[index][weekPathKey].dialysis_machine_name =
5102
-              //           schedule.dialysis_machine_name;
5103
-              //       that.scheduleZone[index][weekPathKey].mode_id =
5104
-              //           schedule.mode_id;
5105
-              //       that.scheduleZone[index][weekPathKey].mode_name = typeof that.modeOptions[schedule.mode_id] === "undefined"
5106
-              //               ? ""
5107
-              //               : that.modeOptions[schedule.mode_id].name;
5108
-              //     }
5109
-              //   }
5110
-              // });
5087
+              var that = this;
5088
+              var schedule = response.data.data.schedule;
5089
+              this.msDialogVisible = false
5090
+              this.scheduleZone.forEach(function (zone, index) {
5091
+                if (
5092
+                    zone.zone_id == schedule.partition_id &&
5093
+                    zone.jihao_id == schedule.bed_id
5094
+                ) {
5095
+                  var weekPath = that.weekPath(
5096
+                      schedule.schedule_week,
5097
+                      schedule.schedule_type
5098
+                  );
5099
+                  if (weekPath.length == 2) {
5100
+                    var weekPathKey = weekPath[0] + "_" + weekPath[1];
5101
+                    that.scheduleZone[index][weekPathKey].dialysis_machine_name =
5102
+                        schedule.dialysis_machine_name;
5103
+                    that.scheduleZone[index][weekPathKey].mode_id =
5104
+                        schedule.mode_id;
5105
+                    that.scheduleZone[index][weekPathKey].mode_name = typeof that.modeOptions[schedule.mode_id] === "undefined"
5106
+                            ? ""
5107
+                            : that.modeOptions[schedule.mode_id].name;
5108
+                  }
5109
+                }
5110
+              });
5111 5111
               this.msDialogVisible = false;
5112 5112
               this.getAllZones()
5113 5113