Explorar el Código

反馈第一版(1)

nn hace 8 años
padre
commit
266b471b0d
Se han modificado 2 ficheros con 16 adiciones y 1 borrados
  1. 4 0
      css/feedback.css
  2. 12 1
      js/feedback.js

+ 4 - 0
css/feedback.css

@@ -129,6 +129,7 @@ body {
     width: calc(100% - 150px);
     margin: 20px 0;
     overflow-y: scroll;
+    overflow-x: hidden;
 }
 div.informationtPermissions{
     width: 450px;
@@ -315,6 +316,9 @@ tbody td{
 .informationtInfo .tbMain .trCoupleTime{
     width: 150px;
 }
+.permissionsMembers .tbMain tr td:first-child, .AddUserMembers .tbMain tr td:first-child{
+    display: none;
+}
 .permissionsMembers .tbMain tr, .informationtAddUser .tbMain tr {
     height: 50px;
     text-align: left;

+ 12 - 1
js/feedback.js

@@ -281,6 +281,11 @@ Feedback.createInfo=function(productId){//创建项目日期分类
 }
 Feedback.getUserRow = function(h,productId,span){//创建表格下用户数据库循环数据(添加该项目用户权限)
     var row = document.createElement('tr'); 
+    var trUserId = document.createElement('td');
+    trUserId.setAttribute('class','trUserId');
+    trUserId.innerText = h.UserId;
+    row.appendChild(trUserId);
+    
     var trUserName = document.createElement('td');
     trUserName.setAttribute('class','trUserName');
     trUserName.innerText = h.UserName;
@@ -346,6 +351,12 @@ Feedback.getDataRow = function(h,i){//创建表格下的反馈数据库循环数
 } 
 Feedback.getMembersRow = function(h,i){//创建表格下的用户数据库循环数据(超级管理员管理用户信息)
     var row = document.createElement('tr'); 
+    var trUserId = document.createElement('td');
+    trUserId.setAttribute('class','trUserId');
+    trUserId.innerText = h.UserId;
+    row.appendChild(trUserId);
+
+
     var trUserName = document.createElement('td');
     trUserName.setAttribute('class','trUserName');
     trUserName.innerText = h.UserName;
@@ -426,7 +437,7 @@ Feedback.getUser=function(callback){//得到用户权限信息
 }
 Feedback.mainCoupleHeight=function(){
     var h = document.documentElement.clientHeight || document.body.clientHeight;
-    Feedback.mainCouple.style.height = h-80+"px";
+    Feedback.mainCouple.style.height = ''+(h-80)+'px'+'';
 }
 Feedback.Init=function () {
     Feedback.informationtSet = $(".informationtSet")[0]//获取管理员设置