|
@@ -335,19 +335,22 @@ export default {
|
335
|
335
|
this.intake_arr = getDataConfig("hemodialysis", "intake");
|
336
|
336
|
this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
337
|
337
|
var arr = [];
|
338
|
|
- var precaution = this.accepts.precaution.split(",");
|
339
|
|
- console.log("precaution", precaution);
|
340
|
|
- console.log("hhh", this.precaution_arr);
|
341
|
|
- for (let i = 0; i < precaution.length; i++) {
|
342
|
|
- for (let j = 0; j < this.precaution_arr.length; j++) {
|
343
|
|
- if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
|
344
|
|
- console.log("aaaa");
|
345
|
|
- arr.push(this.precaution_arr[j].name);
|
|
338
|
+
|
|
339
|
+ if(this.accepts.precaution){
|
|
340
|
+ var precaution = this.accepts.precaution.split(",");
|
|
341
|
+ // console.log("precaution", precaution);
|
|
342
|
+ // console.log("hhh", this.precaution_arr);
|
|
343
|
+ for (let i = 0; i < precaution.length; i++) {
|
|
344
|
+ for (let j = 0; j < this.precaution_arr.length; j++) {
|
|
345
|
+ if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
|
|
346
|
+ // console.log("aaaa");
|
|
347
|
+ arr.push(this.precaution_arr[j].name);
|
|
348
|
+ }
|
346
|
349
|
}
|
347
|
350
|
}
|
|
351
|
+ this.precautionTwo = arr;
|
|
352
|
+ // console.log("arr", arr);
|
348
|
353
|
}
|
349
|
|
- this.precautionTwo = arr;
|
350
|
|
- console.log("arr", arr);
|
351
|
354
|
|
352
|
355
|
if (this.accepts == null || this.accepts.id == "") {
|
353
|
356
|
let ParamsQuery = {};
|