|
@@ -236,7 +236,7 @@ export default {
|
236
|
236
|
this.getAllZones()
|
237
|
237
|
this.modeOptions = this.$store.getters.treatment_mode;
|
238
|
238
|
this.partition_id = this.$route.query.partition_id
|
239
|
|
- this.getSolutionSchedule()
|
|
239
|
+ // this.getSolutionSchedule()
|
240
|
240
|
},
|
241
|
241
|
methods:{
|
242
|
242
|
getAllZones(){
|
|
@@ -255,7 +255,13 @@ export default {
|
255
|
255
|
this.getPatientSheduleCount()
|
256
|
256
|
}
|
257
|
257
|
})
|
258
|
|
- },
|
|
258
|
+ }, compare(p) { //这是比较函数
|
|
259
|
+ return function (m, n) {
|
|
260
|
+ var a = m[p];
|
|
261
|
+ var b = n[p];
|
|
262
|
+ return a - b; //升序
|
|
263
|
+ }
|
|
264
|
+ },
|
259
|
265
|
getWeekPanels() {
|
260
|
266
|
this.scheduleZone = []
|
261
|
267
|
var partionStr = this.partition_id
|
|
@@ -279,6 +285,7 @@ export default {
|
279
|
285
|
this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
|
280
|
286
|
var that = this
|
281
|
287
|
if (partitions.length > 0) {
|
|
288
|
+
|
282
|
289
|
partitions.forEach(function(partition) {
|
283
|
290
|
if (partition.jihaos.length == 0) {
|
284
|
291
|
return false
|
|
@@ -292,7 +299,8 @@ export default {
|
292
|
299
|
zone_type: partition.type,
|
293
|
300
|
cut: jihao.number,
|
294
|
301
|
jihao_id: jihao.id,
|
295
|
|
- Mon_M: {
|
|
302
|
+ sort:jihao.sort,
|
|
303
|
+ Mon_M: {
|
296
|
304
|
schedule_id: 0,
|
297
|
305
|
mode_id: 0,
|
298
|
306
|
mode_name: '',
|
|
@@ -509,7 +517,9 @@ export default {
|
509
|
517
|
})
|
510
|
518
|
})
|
511
|
519
|
}
|
512
|
|
- this.getSchedules()
|
|
520
|
+ this.scheduleZone.sort(this.compare('sort'))
|
|
521
|
+
|
|
522
|
+ this.getSchedules()
|
513
|
523
|
})
|
514
|
524
|
},
|
515
|
525
|
getSchedules() {
|
|
@@ -915,7 +925,6 @@ export default {
|
915
|
925
|
console.log("newArr222222222",newArr)
|
916
|
926
|
that.scheduleZone.push(...newArr)
|
917
|
927
|
console.log('总数据77777777777',that.scheduleZone)
|
918
|
|
-
|
919
|
928
|
} else {
|
920
|
929
|
this.$message.error("网络错误");
|
921
|
930
|
return false;
|