|
@@ -7,9 +7,14 @@ require('./modal.js');
|
|
|
// const layui = require('layui-src');
|
|
|
const {api} = require('./api.js')
|
|
|
const {post,getCookie} = require('./utils.js')
|
|
|
-$(".tableWrapper").css({
|
|
|
- height:$(window).height()-180+'px'
|
|
|
-})
|
|
|
+function setTbaleInfoHei(){
|
|
|
+
|
|
|
+ $(".tableInfo").css({
|
|
|
+ height:$(window).height()-180+'px'
|
|
|
+ })
|
|
|
+}
|
|
|
+setTbaleInfoHei()
|
|
|
+
|
|
|
//判断有无某一权限
|
|
|
function hasData(data){
|
|
|
let lis = JSON.parse(getCookie("codeLis"))
|
|
@@ -81,7 +86,12 @@ function renderTab(){
|
|
|
// <td class="totalSum"></td>
|
|
|
// </tr>
|
|
|
// `
|
|
|
- $('table tbody').html(str)
|
|
|
+ $('.tableInfo table').html(str)
|
|
|
+ const tableInfoBox = $(".tableInfo").height()
|
|
|
+ const tableInfoHei = $(".tableInfo table").height()
|
|
|
+ if(tableInfoHei > tableInfoBox){
|
|
|
+ $(".tableTitle").css("paddingRight", 15+'px')
|
|
|
+ }
|
|
|
// bindInput()
|
|
|
bindModuleOpera()
|
|
|
getTotalSum()
|
|
@@ -100,6 +110,7 @@ function bindModuleOpera(){
|
|
|
}
|
|
|
function getTotalSum(){
|
|
|
let sum = 0
|
|
|
+ console.log('data', data)
|
|
|
for(let i = 0; i < data.length; i++){
|
|
|
if(data[i].score){
|
|
|
sum += Number(data[i].score)
|