Hwt há 2 anos atrás
pai
commit
b6593cffc4

+ 3 - 2
operationSupport/src/views/assetManagement/housingManagement/add.vue

@@ -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);
     }
   }

+ 2 - 0
operationSupport/src/views/assetManagement/housingManagement/index.vue

@@ -259,6 +259,7 @@ export default {
       }
     },
     lookDetails (command, row) {
+
       new Promise((resolve) => {
         this.$store.dispatch('addPopup', {
           url: '/assetManagement/housingManagement/add.vue',
@@ -266,6 +267,7 @@ export default {
           height: '500px',
           props: {
             row,
+            command,
             callback: resolve,
           },
           // showConfirmButton: true,