Commit e7853639 authored by 莫林毅's avatar 莫林毅

修改弹出框样式

parent baacc4b1
...@@ -263,11 +263,14 @@ ...@@ -263,11 +263,14 @@
function lookParm(dataModelId,dataModelTitle){ function lookParm(dataModelId,dataModelTitle){
$.dialog({ $.dialog({
title:"数据模型标题:"+dataModelTitle, title:"数据模型标题:"+dataModelTitle,
content:"<div id='paramList'>"+ /*content:"<div id='paramList'>"+
"<div class='col-xs-12'><div class='panel panel-default'><div class='panel-heading'>参数列表</div><div class='panel-body'> <table class='table table-hover table-striped' width='300'> <thead> <tr> <th width='15%'>参数ID号</th> <th width='35%'>参数名</th><th width='35%'>参数编码</th> <th width='20%'>参数值</th> <th width='25%'>参数类型</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div>"+ "<div class='col-xs-12'><div class='panel panel-default'><div class='panel-heading'>参数列表</div><div class='panel-body'> <table class='table table-hover table-striped' width='500'> <thead class='col-md-12'> <tr class='row mx-0'> <th width='40%'>参数ID号</th> <th width='35%'>参数名</th><th width='35%'>参数编码</th> <th width='20%'>参数值</th> <th width='25%'>参数类型</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div>"+
"</div>", "</div>",*/
content:"<div id='paramList'>"+
"<div class='col-xs-12'><div class='panel panel-default'><div class='panel-heading'>参数列表</div><div class='panel-body'> <table class='table table-striped text-center ' > <thead class='col-md-15'> <tr class='row mx-0'> <th class='col-3 text-center'>参数ID号</th> <th class='col-3 text-center'>参数名</th><th class='col-3 text-center'>参数编码</th> <th class='col-3 text-center'>参数值</th> <th class='col-3 text-center'>参数类型</th> </tr> </thead> <tbody class='col-md-15'> </tbody> </table> </div> </div> </div>"+
"</div>",
lock:true, lock:true,
width:800, width:700,
initialize:function(){ initialize:function(){
$.ajax({ $.ajax({
type : 'GET', type : 'GET',
...@@ -289,11 +292,11 @@ ...@@ -289,11 +292,11 @@
if(data[i].parameterValue=="undefined" || data[i].parameterValue==null || data[i].parameterValue==""){ if(data[i].parameterValue=="undefined" || data[i].parameterValue==null || data[i].parameterValue==""){
data[i].parameterValue=""; data[i].parameterValue="";
} }
paramTbody.append($("<tr></tr>").append("<td>"+data[i].parameterId+"</td>") paramTbody.append($("<tr class='row mx-0'></tr>").append("<td class='col-3'>"+data[i].parameterId+"</td>")
.append("<td>"+data[i].parameterCode+"</td>") .append("<td class='col-3'>"+data[i].parameterCode+"</td>")
.append("<td>"+data[i].parameterName+"</td>") .append("<td class='col-3'>"+data[i].parameterName+"</td>")
.append("<td>"+data[i].parameterValue+"</td>") .append("<td class='col-3'>"+data[i].parameterValue+"</td>")
.append("<td>"+data[i].parameterDataType+"</td>")); .append("<td class='col-3'>"+data[i].parameterDataType+"</td>"));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment