|
@@ -74,7 +74,16 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="房产名称" align="center" prop="housing" />
|
|
|
<el-table-column label="房产面积" align="center" prop="acreage" />
|
|
|
- <el-table-column label="房产类型" align="center" prop="type" />
|
|
|
+ <el-table-column label="房产类型" align="center" prop="type">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{options[scope.row.type].label}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="所属单位" align="center" prop="appOrg">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{findLabelByValue(treeList, scope.row.appOrg ? scope.row.appOrg : null)}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="施工时间" align="center" prop="constructionTime" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ parseTime(scope.row.constructionTime) }}</span>
|
|
@@ -383,6 +392,19 @@ export default {
|
|
|
this.$modal.msgSuccess("导入成功");
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ findLabelByValue(list, appOrg) {
|
|
|
+ for (const item of list) {
|
|
|
+ if (item.appOrg == null) return "无";
|
|
|
+ if (item.appOrg === appOrg) {
|
|
|
+ return item.appName;
|
|
|
+ }
|
|
|
+ if (item.children) {
|
|
|
+ const result = this.findLabelByValue(item.children, appOrg);
|
|
|
+ if (result) return result;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return "无";
|
|
|
}
|
|
|
}
|
|
|
};
|