|
@@ -438,7 +438,7 @@ export default {
|
|
|
this.ruleForm.housingType =
|
|
|
this.housingType.roomNumber + ':' + this.housingType.officeNumber + ':' + this.housingType.guardNumber;
|
|
|
let url = '/czc-community/assets/house/add';
|
|
|
- if (!this.isAdd) {
|
|
|
+ if (this.params.command == "edit") {
|
|
|
url = '/czc-community/assets/house/update';
|
|
|
}
|
|
|
this.$http
|
|
@@ -542,7 +542,8 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.housingManagement();
|
|
|
- if (!!this.params.row.id) {
|
|
|
+ debugger
|
|
|
+ if (this.params.row != undefined || !!this.params.row.id) {
|
|
|
this.getDetails(this.params.row.id);
|
|
|
}
|
|
|
}
|