|
@@ -91,7 +91,7 @@ export default {
|
|
|
left: [
|
|
|
{
|
|
|
lable: '所属社区',
|
|
|
- prop: 'communityId'
|
|
|
+ prop: 'communityName'
|
|
|
},
|
|
|
{
|
|
|
lable: '单元',
|
|
@@ -127,7 +127,7 @@ export default {
|
|
|
],
|
|
|
right: [
|
|
|
{
|
|
|
- lable: '楼宇名称',
|
|
|
+ lable: '楼栋名称',
|
|
|
prop: 'buildingName'
|
|
|
},
|
|
|
{
|
|
@@ -170,8 +170,8 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- lable: '',
|
|
|
- prop: ''
|
|
|
+ lable: '备注',
|
|
|
+ prop: 'remarks'
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -205,7 +205,11 @@ export default {
|
|
|
right: [
|
|
|
{
|
|
|
lable: '类型',
|
|
|
- prop: 'householdType'
|
|
|
+ prop: 'householdType',
|
|
|
+ const: true,
|
|
|
+ format(val) {
|
|
|
+ return '业主';
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
lable: '人员编号',
|
|
@@ -303,27 +307,34 @@ export default {
|
|
|
this.tabsIndex = index;
|
|
|
},
|
|
|
close() {
|
|
|
- let activeRout = this.$route;
|
|
|
let tagsList = this.$store.getters['getTagsList'];
|
|
|
- tagsList.forEach((item, index) => {
|
|
|
- if (item.title == activeRout.meta.title || item.path == activeRout.path) {
|
|
|
- tagsList.splice(index, 1);
|
|
|
- history.go(-1);
|
|
|
- return true;
|
|
|
- }
|
|
|
- });
|
|
|
+ let activeRout = this.$route;
|
|
|
+ if (tagsList.length > 1) {
|
|
|
+ tagsList.forEach((item, index) => {
|
|
|
+ if (item.title == activeRout.meta.title || item.path == activeRout.path) {
|
|
|
+ tagsList.splice(index, 1);
|
|
|
+ this.$router.push({
|
|
|
+ path: tagsList[index - 1].path
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/'
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
getDetails() {
|
|
|
this.$http
|
|
|
- .get('/sc-community/assets/house/find/' + this.id)
|
|
|
- .then(({ data, status, msg }) => {
|
|
|
- if (0 === status) {
|
|
|
- this.detailsData = data;
|
|
|
- if (!!data.residentId) {
|
|
|
- this.getHouse(data.residentId);
|
|
|
+ .get('/sc-community/assets/house/find/house?houseId=' + this.id)
|
|
|
+ .then((res) => {
|
|
|
+ if (!!res) {
|
|
|
+ this.detailsData = res;
|
|
|
+ if (!!res.residentId) {
|
|
|
+ this.getHouse(res.residentId);
|
|
|
}
|
|
|
} else {
|
|
|
- this.$message.error(msg);
|
|
|
+ this.$message.error('系统繁忙,请稍后重试');
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {});
|