提交 34832126 编写于 作者: U unknown

修复编译提示的问题,修改设计元素列表双击打开为单击打开

上级 cfb60d1f
......@@ -532,29 +532,34 @@ MWF.xApplication.query.TableDesigner.Table = new Class({
if (!e) e = this.node;
this.designer.actions.listTable(this.designer.application.id, function (json) {
var bulidStr = "";
var draftStr = "";
debugger;
json.data.each(function(table){
if( table.status === "build" ){
bulidStr += "<div style='line-height: 24px;padding-left: 10px;'>" + table.name + "</div>";
}else{
draftStr += "<div style='line-height: 24px;padding-left: 10px;'>" + table.name + "</div>";
}
}.bind(this));
var html = "";
if( bulidStr ){
var h1 = MWF.APPDTBD.LP.buildCurrentAppInfor;
var h2 = "<div style='min-height: 70px; max-height: 150px; width: 400px; overflow:auto; font-size: 12px;'>"+bulidStr+"</div>";
html += h1.replace("{buildlist}", h2);
}
if( draftStr ){
var h3 = MWF.APPDTBD.LP.unbuildCurrentAppInfor;
var h4 = "<div style='min-height: 70px; max-height: 150pxpx; width: 400px; overflow:auto; font-size: 12px;'>"+draftStr+"</div>";
html += h3.replace("{draftList}", h4);
if( json.data.length === 0 ){
this.designer.notice(this.designer.lp.buildNoTableError, "info", this.node, {"x": "left", "y": "bottom"});
return;
}else{
var bulidStr = "";
var draftStr = "";
debugger;
json.data.each(function(table){
if( table.status === "build" ){
bulidStr += "<div style='line-height: 24px;padding-left: 10px;'>" + table.name + "</div>";
}else{
draftStr += "<div style='line-height: 24px;padding-left: 10px;'>" + table.name + "</div>";
}
}.bind(this));
if( bulidStr ){
var h1 = MWF.APPDTBD.LP.buildCurrentAppInfor;
var h2 = "<div style='min-height: 70px; max-height: 150px; width: 400px; overflow:auto; font-size: 12px;'>"+bulidStr+"</div>";
html += h1.replace("{buildlist}", h2);
}
if( draftStr ){
var h3 = MWF.APPDTBD.LP.unbuildCurrentAppInfor;
var h4 = "<div style='min-height: 70px; max-height: 150pxpx; width: 400px; overflow:auto; font-size: 12px;'>"+draftStr+"</div>";
html += h3.replace("{draftList}", h4);
}
html += MWF.APPDTBD.LP.buildCurrentAppQuection;
}
html += MWF.APPDTBD.LP.buildCurrentAppQuection;
this.designer.confirm("warn", e, MWF.APPDTBD.LP.buildCurrentAppTitle, {
"html": html
......
......@@ -66,6 +66,7 @@ MWF.xApplication.query.TableDesigner.LP = {
"tableExplodeInfo": "By default, up to 2000 rows can be exported. Are you sure you want to export?",
"tableExplode_success": "Export successful",
"buildNoTableError": "The current application has no data table, no need to compile.",
"buildCurrentAppTitle": "Build current application data table",
"buildCurrentAppInfor": "The following data tables will be built:</br>{buildlist}",
"unbuildCurrentAppInfor": "The following data tables are not compiled or uncompiled:</br>{draftList}",
......
......@@ -66,6 +66,7 @@ MWF.xApplication.query.TableDesigner.LP = {
"tableExplodeInfo": "默认最多导出2000行。确认是否导出?",
"tableExplode_success": "导出成功",
"buildNoTableError": "当前应用还没有数据表,不需要编译。",
"buildCurrentAppTitle": "编译当前应用数据表",
"buildCurrentAppInfor": "下列数据表将被编译:</br>{buildlist}",
"unbuildCurrentAppInfor": "下列数据表不编译或取消编译:</br>{draftList}",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册