|
@@ -1184,18 +1184,30 @@ export default {
|
1184
|
1184
|
}
|
1185
|
1185
|
}
|
1186
|
1186
|
}
|
|
1187
|
+
|
1187
|
1188
|
arr2 = arr
|
1188
|
1189
|
}
|
|
1190
|
+ console.log('机构ID', this.$store.getters.user.template_info.org_id)
|
|
1191
|
+ if (this.$store.getters.user.template_info.org_id == 10346) {
|
|
1192
|
+ console.log('进来23323223233223')
|
|
1193
|
+ arr2.map(item => {
|
|
1194
|
+ item.scheduals.map(it => {
|
|
1195
|
+ it.sort = parseInt(it.device_number.sort)
|
|
1196
|
+ })
|
|
1197
|
+ })
|
|
1198
|
+ arr2.map(item => {
|
|
1199
|
+ item.scheduals.sort(this.compareOne('sort'))
|
|
1200
|
+ })
|
|
1201
|
+ }
|
|
1202
|
+ console.log('机构ID', this.$store.getters.user.template_info.org_id)
|
1189
|
1203
|
console.log('this.zone_selected', this.zone_selected)
|
1190
|
|
- console.log('arr2', arr2)
|
|
1204
|
+ console.log('热爱生活', arr2)
|
1191
|
1205
|
let arr3 = []
|
1192
|
1206
|
if (this.zone_selected == 0) {
|
1193
|
1207
|
arr3 = JSON.parse(JSON.stringify(arr2))
|
1194
|
1208
|
} else {
|
1195
|
1209
|
let arr = JSON.parse(JSON.stringify(arr2))
|
1196
|
|
- console.log('灭国2332332323', arr)
|
1197
|
|
- console.log('this.zone_options[this.zone_selected].text', this.zone_options[this.zone_selected].text)
|
1198
|
|
- console.log('this.zone_options[this.zone_selected].zone_name', this.zone_options[this.zone_selected].zone_name)
|
|
1210
|
+
|
1199
|
1211
|
for (let i = 0; i < arr.length; i++) {
|
1200
|
1212
|
if (this.zone_options[this.zone_selected].zone_name != arr[i].zone_name) {
|
1201
|
1213
|
// 删除元素后改变i的值
|
|
@@ -1231,10 +1243,17 @@ export default {
|
1231
|
1243
|
})
|
1232
|
1244
|
arr4[0].scheduals.map(item => {
|
1233
|
1245
|
item.created_time = item.assessment_before_dislysis.created_time
|
|
1246
|
+ item.sort = item.device_number.sort
|
1234
|
1247
|
})
|
1235
|
|
- arr4[0].scheduals.sort(this.compare('created_time'))
|
|
1248
|
+ if (this.$store.getters.user.template_info.org_id != 10346) {
|
|
1249
|
+ arr4[0].scheduals.sort(this.compare('created_time'))
|
|
1250
|
+ }
|
|
1251
|
+
|
|
1252
|
+ if (this.$store.getters.user.template_info.org_id == 10346) {
|
|
1253
|
+ arr4[0].scheduals.sort(this.compareOne('sort'))
|
|
1254
|
+ }
|
1236
|
1255
|
this.allPatient = arr4
|
1237
|
|
- // console.log('arr4', arr4)
|
|
1256
|
+ console.log('arr4', arr4)
|
1238
|
1257
|
} else {
|
1239
|
1258
|
this.allPatient = arr4
|
1240
|
1259
|
}
|
|
@@ -1405,8 +1424,15 @@ export default {
|
1405
|
1424
|
})
|
1406
|
1425
|
arr4[0].scheduals.map(item => {
|
1407
|
1426
|
item.created_time = item.assessment_before_dislysis.created_time
|
|
1427
|
+ item.sort = item.device_number.sort
|
1408
|
1428
|
})
|
1409
|
|
- arr4[0].scheduals.sort(this.compare('created_time'))
|
|
1429
|
+ if (this.$store.getters.user.template_info.org_id != 10346) {
|
|
1430
|
+ arr4[0].scheduals.sort(this.compare('created_time'))
|
|
1431
|
+ }
|
|
1432
|
+
|
|
1433
|
+ if (this.$store.getters.user.template_info.org_id == 10346) {
|
|
1434
|
+ arr4[0].scheduals.sort(this.compareOne('sort'))
|
|
1435
|
+ }
|
1410
|
1436
|
this.allPatient = arr4
|
1411
|
1437
|
console.log('arr4', arr4)
|
1412
|
1438
|
} else {
|
|
@@ -1432,6 +1458,13 @@ export default {
|
1432
|
1458
|
return value2 - value1
|
1433
|
1459
|
}
|
1434
|
1460
|
},
|
|
1461
|
+ compareOne (property) {
|
|
1462
|
+ return function (a, b) {
|
|
1463
|
+ var value1 = a[property]
|
|
1464
|
+ var value2 = b[property]
|
|
1465
|
+ return value1 - value2
|
|
1466
|
+ }
|
|
1467
|
+ },
|
1435
|
1468
|
searchVal (searchValue) {
|
1436
|
1469
|
var search_keyword = searchValue
|
1437
|
1470
|
if (searchValue.length > 0) {
|
|
@@ -1540,10 +1573,18 @@ export default {
|
1540
|
1573
|
})
|
1541
|
1574
|
arr4[0].scheduals.map(item => {
|
1542
|
1575
|
item.created_time = item.assessment_before_dislysis.created_time
|
|
1576
|
+ item.sort = item.device_number.sort
|
1543
|
1577
|
})
|
1544
|
|
- arr4[0].scheduals.sort(this.compare('created_time'))
|
|
1578
|
+
|
|
1579
|
+ if (this.$store.getters.user.template_info.org_id != 10346) {
|
|
1580
|
+ arr4[0].scheduals.sort(this.compare('created_time'))
|
|
1581
|
+ }
|
|
1582
|
+
|
|
1583
|
+ if (this.$store.getters.user.template_info.org_id == 10346) {
|
|
1584
|
+ arr4[0].scheduals.sort(this.compareOne('sort'))
|
|
1585
|
+ }
|
1545
|
1586
|
this.allPatient = arr4
|
1546
|
|
- // console.log('arr4', arr4)
|
|
1587
|
+ console.log('arr4', arr4)
|
1547
|
1588
|
} else {
|
1548
|
1589
|
this.allPatient = arr4
|
1549
|
1590
|
}
|