Browse Source

fix:附加数据功能编辑弹窗样式修改

xiebeibei 3 years ago
parent
commit
2358c123e8
2 changed files with 5 additions and 9 deletions
  1. 2 6
      src/views/equipment/addDataDialog.vue
  2. 3 3
      src/views/equipment/addDataTable.vue

+ 2 - 6
src/views/equipment/addDataDialog.vue

@@ -567,9 +567,9 @@
              this.systemCode=this.$parent.smsxt;
              this.floor= this.$parent.floorInfo.gname;
             this.$nextTick(()=>{
-                this.height =window.innerHeight-200;
+                this.height =window.innerHeight-205;
                 window.addEventListener('resize',()=>{
-                    this.height = window.innerHeight-200;
+                    this.height = window.innerHeight-205;
                 })
            })
         },
@@ -824,8 +824,6 @@
                         obj.accessCount = this.addDataTableData[index+3].accessCount;
                         data.push(obj)
                     }
-
-
                 })
                 postParams.data = data
                 addDataSaveWeakCurrent({postParams}).then(res=>{
@@ -845,7 +843,6 @@
             },
             //保存
             handelSave(){
-
                 let flag = false;
                 if(this.systemName=='弱电系统'){
                     this.addDataTableData.length &&  this.addDataTableData.map(item=>{
@@ -861,7 +858,6 @@
                         this.visibleDisabled = true;
                         this.checkDataFunR();
                     }
-
                 }
                 if(this.systemName=='消防系统'){
 

+ 3 - 3
src/views/equipment/addDataTable.vue

@@ -177,7 +177,7 @@
                         for(let i=0;i<4;i++){
                             var newnode = document.createElement("tr");
                             if(i==0){
-                                newnode.innerHTML = "<td class='cell' style='font-size: 12px!important;background: #E5EEF6!important;'>合计</td>" +
+                                newnode.innerHTML = "<td class='cell' style='font-size: 12px!important;background: #E5EEF6!important;font-weight: 500!important;'>合计</td>" +
                                     "<td class='cell cellbg'>监控系统</td>" + `<td class='cell'>${this.totalCount.monitorTotalCount||''}</td>`;
                             }
                             if(i==1){
@@ -205,8 +205,8 @@
                         var lastLine = document.getElementsByClassName("el-table__footer")[0]
                             .children[1];
                         lastLine.innerHTML = '';
-                        var newnode = document.createElement("tr");
-                        newnode.innerHTML = "<td class='cell' colSpan='3' style='font-size: 12px!important;background: #E5EEF6!important;'>合计</td>" +
+                        let newnode = document.createElement("tr");
+                        newnode.innerHTML = "<td class='cell' colSpan='3' style='font-size: 12px!important;background: #E5EEF6!important;font-weight: 500!important;'>合计</td>" +
                             `<td class='cell cellbg'>${this.totalCount.smokeTotalCount||''}</td>`
                             + `<td class='cell'>${this.totalCount.warmTotalCount||''}</td>`
                             + `<td class='cell'>${this.totalCount.handNewTotalCount||''}</td>`