Hwt 2 jaren geleden
bovenliggende
commit
1c66c5d6f9

+ 0 - 12
operationSupport/src/views/assetManagement/housingManagement/add.vue

@@ -466,7 +466,6 @@ export default {
     //查询楼栋下拉列表
     buildingNameList () {
       this.buildingList = [];
-
       this.$http
         .post('/czc-community/assets/building/list/building', { communityId: this.ruleForm.communityId })
         .then(({ data, status, msg }) => {
@@ -476,14 +475,11 @@ export default {
         });
     },
     unitNameList () {
-
       this.unitList = [];
       this.resunitList = [];
       this.$http.get('/czc-community/assets/building/house/find', { id: this.ruleForm.buildingId }).then((res) => {
-
         if (res.status == 0) {
           if (res.data.buildingUnitList.length != 0) {
-
             for (let i = 0; i < res.data.buildingUnitList.length; i++) {
               if (res.data.buildingUnitList[i].unitName != null && res.data.buildingUnitList[i].unitName != '') {
                 this.resunitList.push(res.data.buildingUnitList[i])
@@ -496,27 +492,20 @@ export default {
     },
 
     unitChoice (e) {
-
       this.floorNumberList = [];
-
       this.unitList.map((item) => {
         this.floorNumberList.push(item.unitFloorList[0].floorNumber);
       });
-
       this.floorNumberList = Array.from(new Set(this.floorNumberList))
     },
 
     getDetails (id) {
       this.$http.get('/czc-community/assets/house/find/' + id, {}).then((res) => {
         if (res.status == 0) {
-
           this.ruleForm = res.data;
-
-
           // this.ruleForm.buildingId = res.data.buildingId;
           console.log('this.ruleForm', this.ruleForm);
           if (!!this.ruleForm.housingType) {
-
             var housingTypes = this.ruleForm.housingType.split(':');
             this.housingType.roomNumber = housingTypes[0];
             this.housingType.officeNumber = housingTypes[1];
@@ -542,7 +531,6 @@ export default {
   },
   created () {
     this.housingManagement();
-    debugger
     if (this.params.row != undefined || !!this.params.row.id) {
       this.getDetails(this.params.row.id);
     }

+ 1 - 4
operationSupport/src/views/assetManagement/housingManagement/index.vue

@@ -251,7 +251,7 @@ export default {
     addCommand (command) {
       if (command === 'add') {
         // this.addOrEdit('todo');
-        this.lookDetails(command);
+        this.lookDetails(command, '');
       }
       if (command === 'template') {
         this.__exportExcel('/czc-community/excel/download/template', { importType: 'HOUSE' });
@@ -259,7 +259,6 @@ export default {
       }
     },
     lookDetails (command, row) {
-
       new Promise((resolve) => {
         this.$store.dispatch('addPopup', {
           url: '/assetManagement/housingManagement/add.vue',
@@ -301,7 +300,6 @@ export default {
       } else {
         title = `您确定要删除“${communityName}${buildingName}${unitName}${roomNumber}”号房间`;
       }
-
       this.$msgBox(title)
         .then(() => {
           this.$http
@@ -373,7 +371,6 @@ export default {
     this.mixins_query = {
       buildingType: 1
     };
-
     this.communityNameList();
     this.mixins_search('search');
   }