|
@@ -699,6 +699,9 @@ export default {
|
|
|
},
|
|
|
// 根据区域代码获取区域名称
|
|
|
buildRefAreaName(curRow) {
|
|
|
+ if (!this.treeAreaOptions) {
|
|
|
+ return '未知区域'; // 或者返回一个默认值
|
|
|
+ }
|
|
|
const area = this.treeAreaOptions.find(a => a.id === curRow.areaCode);
|
|
|
const areaName = area ? area.label : '未知区域';
|
|
|
|