Browse Source

修改座机匹配规则

D4THYL3\long 3 years ago
parent
commit
379be7fe6f

+ 9 - 3
operationSupport/src/views/propertyManagement/inform.vue

@@ -836,12 +836,15 @@ export default {
         dimension(arr) {
             console.log('dimensiondimensiondimensiondimension', arr);
             arr.map((item, index) => {
-                debugger;
                 if (item.children) {
                     this.dimension(item.children);
-                } else if (item.type == 'room' && !this.rowDetail.treeData.includes(Number(item.value))) {
+                } else if (item.type == 'room' && item.value == 9733) {
+                    // && !this.rowDetail.treeData.includes(Number(item.value))
                     console.log('roomroomroomroom', arr);
                     arr = arr.splice(index, 1);
+                    // arr = arr.filter((item) => {
+                    //     return this.rowDetail.treeData.includes(Number(item.value));
+                    // });
                 }
             });
         },
@@ -855,8 +858,11 @@ export default {
                 .get('/sc-community/assets/tree/community/find', { buildingType: this.buildingType })
                 .then(({ status, data, msg }) => {
                     if (status === 0 && data) {
-                        this.dimension(data);
+                        let da = this.dimension(data);
                         this.houseData = data;
+                        console.log('====================================');
+                        console.log('da=', da);
+                        console.log('====================================');
                     }
                     console.log('获取房间', this.rowDetail.treeData);
                 });

+ 4 - 4
operationSupport/src/views/propertyManagement/phone.vue

@@ -74,7 +74,7 @@
                                     <el-input
                                         v-model="ruleForm.newPhone"
                                         placeholder="例如:010-26888888,13888888888"
-                                        maxlength="11"
+                                        maxlength="13"
                                         @keyup.enter.native="dialogButton('addSave')"
                                     ></el-input>
                                 </el-form-item>
@@ -217,9 +217,9 @@ export default {
             if (type == 'addSave') {
                 this.$refs['ruleForm'].validate((valid) => {
                     if (valid) {
-                        if (this.ruleForm.newManagementName && this.ruleForm.newManagementName.indexOf('中心') != -1) {
-                            return this.$message.warning('不能包含中心');
-                        }
+                        // if (this.ruleForm.newManagementName && this.ruleForm.newManagementName.indexOf('中心') != -1) {
+                        //     return this.$message.warning('不能包含中心');
+                        // }
                         let query = {
                             communityId: this.ruleForm.communityList,
                             name: this.ruleForm.newManagementName,