Sfoglia il codice sorgente

广告 门禁联动

Shannon_mu 3 anni fa
parent
commit
adbb3890c6

+ 1 - 1
accessControlSystem/src/views/trafficRecord/accessRecord/index.vue

@@ -6,7 +6,7 @@
             </div>
             <div class="leftBottom">
                 <div class="title">门禁机列表</div>
-                <list-organ @doorGuid="doorGuid"></list-organ>
+                <list-organ @doorGuid="doorGuid" :currentOrganId='currentId'></list-organ>
             </div>
         </div>
         <div class="content-right">

+ 7 - 10
accessControlSystem/src/views/trafficRecord/accessRecord/popups/listOrganTree.vue

@@ -21,7 +21,7 @@
 
 <script>
 export default {
-    props: ['buildingType'],
+    props: ['buildingType', 'currentOrganId'],
     data() {
         return {
             filterText: '',
@@ -35,17 +35,16 @@ export default {
     watch: {
         filterText(val) {
             this.$refs.tree.filter(val);
+        },
+        currentOrganId(va) {
+            this.getOrgTreeList({ communityId: va.communityId, buildingId: va.buildingId, unitName: va.unitName });
         }
     },
     methods: {
-        getOrgTreeList() {
-            this.$http.get('/sc-gate-web/gate/list').then(({ status, data, msg }) => {
+        getOrgTreeList(row) {
+            this.$http.get('/sc-gate-web/gate/list', row).then(({ status, data, msg }) => {
                 if (status === 0 && data) {
                     this.organList = data;
-                    // this.$nextTick().then(() => {
-                    //     const firstNode = document.querySelector('.el-tree-node');
-                    //     firstNode.click();
-                    // });
                 }
             });
         },
@@ -57,9 +56,7 @@ export default {
             this.$emit('doorGuid', e);
         }
     },
-    created() {
-        this.getOrgTreeList();
-    }
+    created() {}
 };
 </script>
 

+ 1 - 1
operationSupport/src/views/communityoperation/advertisingManagement/setpPage/add.vue

@@ -109,7 +109,7 @@ export default {
             }
         },
         beforeAvatarUpload(file) {
-            const isJPG = ['image/jpg', 'image/png'].includes(file.type);
+            const isJPG = ['image/jpeg', 'image/jpg','image/png'].includes(file.type);
             const isLt2M = file.size / 1024 / 1024 < 2;
             if (!isJPG) {
                 this.$message.error('上传图片只能是 JPG,PNG 格式!');

+ 1 - 1
operationSupport/src/views/communityoperation/advertisingManagement/setpPage/details.vue

@@ -59,7 +59,7 @@ export default {
         line-height: rem(30);
         margin-bottom: rem(25);
         .label {
-            width: rem(80);
+            min-width: rem(80);
         }
         .text {
             .el-image {