Browse Source

优化了一些东西 让不报错了

dev-数据对比
dai 3 years ago
parent
commit
fed29fd2c3
  1. 5
      src/views/modules/shujuduibi/canji.vue

5
src/views/modules/shujuduibi/canji.vue

@ -118,8 +118,9 @@ export default {
{ field: "监护人", keyName: "guardian", type: "text" },
];
return arr.map((item) => {
let val = info[item.keyName] || "--";
let resiVal = info.resiInfo[item.keyName] || "--";
let val = (info && info[item.keyName]) || "--";
let resiVal =
(info && info.resiInfo && info.resiInfo[item.keyName]) || "--";
return {
resiInfo: item.field + ":" + resiVal,

Loading…
Cancel
Save