|
|
@@ -67,7 +67,14 @@ |
|
|
|
_html += '<div class="lr-component-title">所占行比例</div>'; |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_proportion"></div></div>'; |
|
|
|
$html.html(_html); |
|
|
|
|
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
// 标题设置 |
|
|
|
$html.find('#lr_component_title').val(dfop.title); |
|
|
|
$html.find('#lr_component_title').on('input propertychange', function () { |
|
|
@@ -114,8 +121,9 @@ |
|
|
|
}, |
|
|
|
renderTable: function (compont, $row) { |
|
|
|
$row.find('.lr-form-item-title').remove(); |
|
|
|
$row.append("<span>" + compont.title + "<span>"); |
|
|
|
$row.css({ 'padding': '0', 'line-height': '38px', 'text-align': 'center', 'font-size': '20px', 'font-weight': 'bold', 'color': '#333' }); |
|
|
|
$row.attr('com-id', compont.id) |
|
|
|
$row.append("<div>" + compont.title + "</div>"); |
|
|
|
$row.find('div').css({ 'padding': '0', 'line-height': '38px', 'text-align': 'center', 'font-size': '20px', 'font-weight': 'bold', 'color': '#333' }); |
|
|
|
} |
|
|
|
}, |
|
|
|
html: {//文本标题 |
|
|
@@ -129,7 +137,7 @@ |
|
|
|
type: "html", |
|
|
|
proportion: '1', |
|
|
|
}; |
|
|
|
$component.html(getComponentRowHtml({ name: "富文本", text: "富文本" })); |
|
|
|
$component.html(getComponentRowHtml({ name: "富文本" , text: "富文本" })); |
|
|
|
}, |
|
|
|
property: function ($component) { |
|
|
|
var dfop = $component[0].dfop; |
|
|
@@ -142,7 +150,14 @@ |
|
|
|
_html += '<div class="lr-component-title">所占行比例</div>'; |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_proportion"></div></div>'; |
|
|
|
$html.html(_html); |
|
|
|
|
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
// 标题设置 |
|
|
|
$html.find('#lr_component_title').val(htmlDecode(dfop.title)); |
|
|
|
$html.find('#lr_component_title').on('input propertychange', function () { |
|
|
@@ -188,6 +203,7 @@ |
|
|
|
}, |
|
|
|
renderTable: function (compont, $row) { |
|
|
|
$row.find('.lr-form-item-title').remove(); |
|
|
|
$row.attr('com-id', compont.id) |
|
|
|
$row.html(htmlDecode(compont.title)); |
|
|
|
} |
|
|
|
}, |
|
|
@@ -220,6 +236,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><input id="lr_component_dfvalue" type="text" class="form-control" placeholder="无则不填"/></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('#lr_component_isHide').lrselect({ |
|
|
|
placeholder: false, |
|
|
|
data: [{ id: '0', text: '否' }, { id: '1', text: '是' }], |
|
|
@@ -286,7 +310,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><input id="lr_component_dfvalue" type="text" class="form-control" placeholder="无则不填"/></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
|
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$html.find('#lr_component_height').val(dfop.height); |
|
|
|
$html.find('#lr_component_height').on('input propertychange', function () { |
|
|
|
var value = $(this).val(); |
|
|
@@ -341,7 +372,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><input id="lr_component_dfvalue" type="text" class="form-control" placeholder="无则不填"/></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
|
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$html.find('#lr_component_height').val(dfop.height); |
|
|
|
$html.find('#lr_component_height').on('input propertychange', function () { |
|
|
|
var value = $(this).val(); |
|
|
@@ -410,6 +448,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_dfvalue"></div></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
setDatasource(dfop); |
|
|
|
}, |
|
|
|
renderTable: function (compont, $row) {//使用表单的时候渲染成table |
|
|
@@ -487,7 +533,7 @@ |
|
|
|
|
|
|
|
dataSource: '0', // 0数据字典1数据源 |
|
|
|
dataSourceId: '', |
|
|
|
itemCode: '', |
|
|
|
itemCode:'', |
|
|
|
dfvalue: '' // 默认值 |
|
|
|
}; |
|
|
|
$component.html(getComponentRowHtml({ name: $component[0].dfop.title, text: "多选项" })); |
|
|
@@ -510,6 +556,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_dfvalue"></div></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
setDatasource(dfop); |
|
|
|
}, |
|
|
|
renderTable: function (compont, $row) {//使用表单的时候渲染成table |
|
|
@@ -589,7 +643,7 @@ |
|
|
|
|
|
|
|
dataSource: '0', // 0数据字典1数据源 |
|
|
|
dataSourceId: '', |
|
|
|
itemCode: '', |
|
|
|
itemCode:'', |
|
|
|
dfvalue: '' // 默认值 |
|
|
|
}; |
|
|
|
$component.html(getComponentRowHtml({ name: $component[0].dfop.title, text: "下拉框" })); |
|
|
@@ -611,6 +665,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_dfvalue"></div></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
setDatasource(dfop); |
|
|
|
}, |
|
|
|
renderTable: function (compont, $row) {//使用表单的时候渲染成table |
|
|
@@ -686,6 +748,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_dfvalue"></div></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('#lr_component_dateformat').lrselect({ |
|
|
|
data: [{ id: '0', text: '仅日期' }, { id: '1', text: '日期和时间' }], |
|
|
|
value: 'id', |
|
|
@@ -930,9 +1000,16 @@ |
|
|
|
|
|
|
|
_html += '<div class="lr-component-title lrrelation">单位组织控件级联-上一级</div>'; |
|
|
|
_html += '<div class="lr-component-control lrrelation"><div id="lr_component_relation"></div></div>'; |
|
|
|
|
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
|
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
/*上一级联*/ |
|
|
|
var organizes = []; |
|
|
|
var $parent = $component.parent(); |
|
|
@@ -947,11 +1024,11 @@ |
|
|
|
data: organizes, |
|
|
|
value: 'id', |
|
|
|
text: 'text', |
|
|
|
select: function (item, type) { |
|
|
|
select: function (item,type) { |
|
|
|
if (!!item) { |
|
|
|
dfop.relation = item.id; |
|
|
|
} |
|
|
|
else if (type !== 'refresh') { |
|
|
|
else if (type !== 'refresh'){ |
|
|
|
dfop.relation = ''; |
|
|
|
} |
|
|
|
} |
|
|
@@ -1071,7 +1148,7 @@ |
|
|
|
url: top.$.rootUrl + '/LR_OrganizationModule/Department/GetTree', |
|
|
|
param: {} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
case "company"://公司 |
|
|
|
$compont.lrCompanySelect({}); |
|
|
@@ -1138,7 +1215,14 @@ |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_dataType"></div></div>'; |
|
|
|
|
|
|
|
$html.append(_html); |
|
|
|
|
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('#lr_component_isHide').lrselect({ |
|
|
|
placeholder: false, |
|
|
|
data: [{ id: '0', text: '否' }, { id: '1', text: '是' }], |
|
|
@@ -1155,7 +1239,7 @@ |
|
|
|
}); |
|
|
|
$('#lr_component_isHide').lrselectSet(dfop.isHide); |
|
|
|
$('#lr_component_dataType').lrselect({ |
|
|
|
data: [{ id: 'company', text: '当前公司' }, { id: 'department', text: '当前部门' }, { id: 'user', text: '当前用户' }, { id: 'time', text: '当前时间' }, { id: 'role', text: '当前角色' }], |
|
|
|
data: [{ id: 'company', text: '当前公司' }, { id: 'department', text: '当前部门' }, { id: 'user', text: '当前用户' }, { id: 'time', text: '当前时间' }], |
|
|
|
value: 'id', |
|
|
|
text: 'text', |
|
|
|
placeholder: false, |
|
|
@@ -1167,68 +1251,85 @@ |
|
|
|
renderTable: function (compont, $row) { |
|
|
|
var $compont = $('<input id="' + compont.id + '" readonly type="text" class="form-control lr-currentInfo lr-currentInfo-' + compont.dataType + '" />'); |
|
|
|
var loginInfo = learun.clientdata.get(['userinfo']); |
|
|
|
switch (compont.dataType) { |
|
|
|
case 'company': |
|
|
|
$compont[0].lrvalue = loginInfo.companyId; |
|
|
|
learun.clientdata.getAsync('company', { |
|
|
|
key: loginInfo.companyId, |
|
|
|
callback: function (_data) { |
|
|
|
if ($compont.attr('data-flag') != "1") { |
|
|
|
$compont.val(_data.name); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
break; |
|
|
|
case 'department': |
|
|
|
$compont[0].lrvalue = loginInfo.departmentId; |
|
|
|
learun.clientdata.getAsync('department', { |
|
|
|
key: loginInfo.departmentId, |
|
|
|
callback: function (_data) { |
|
|
|
if ($compont.attr('data-flag') != "1") { |
|
|
|
if (compont._userId != undefined && loginInfo.userId != compont._userId) { |
|
|
|
learun.clientdata.getAsync('user', { |
|
|
|
key: compont._userId, |
|
|
|
callback: function (_data) { |
|
|
|
switch (compont.dataType) { |
|
|
|
case 'company': |
|
|
|
$compont[0].lrvalue = _data.companyId; |
|
|
|
learun.clientdata.getAsync('company', { |
|
|
|
key: _data.companyId, |
|
|
|
callback: function (_data) { |
|
|
|
if ($compont.attr('data-flag') != "1") { |
|
|
|
$compont.val(_data.name); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
break; |
|
|
|
case 'department': |
|
|
|
$compont[0].lrvalue = _data.departmentId; |
|
|
|
learun.clientdata.getAsync('department', { |
|
|
|
key: _data.departmentId, |
|
|
|
callback: function (_data) { |
|
|
|
if ($compont.attr('data-flag') != "1") { |
|
|
|
$compont.val(_data.name); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
break; |
|
|
|
case 'user': |
|
|
|
$compont.val(_data.name); |
|
|
|
} |
|
|
|
$compont[0].lrvalue = compont._userId; |
|
|
|
break; |
|
|
|
case 'time': |
|
|
|
$compont[0].lrvalue = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'); |
|
|
|
$compont.val($compont[0].lrvalue); |
|
|
|
break; |
|
|
|
} |
|
|
|
}); |
|
|
|
break; |
|
|
|
case 'user': |
|
|
|
$compont.val(loginInfo.realName); |
|
|
|
$compont[0].lrvalue = loginInfo.userId; |
|
|
|
break; |
|
|
|
case 'role': |
|
|
|
$compont.val(loginInfo.roleName); |
|
|
|
$compont[0].lrvalue = loginInfo.roleName; |
|
|
|
break; |
|
|
|
case 'time': |
|
|
|
$compont[0].lrvalue = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'); |
|
|
|
$compont.val($compont[0].lrvalue); |
|
|
|
break; |
|
|
|
} |
|
|
|
if (compont.isHide == '1') { |
|
|
|
$row.hide(); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
else { |
|
|
|
|
|
|
|
$row.append($compont); |
|
|
|
return $compont; |
|
|
|
}, |
|
|
|
renderQuery: function (compont, $row) { |
|
|
|
var $compont = $('<div id="' + compont.id + '"></div>'); |
|
|
|
$row.append($compont); |
|
|
|
switch (compont.dataType) { |
|
|
|
case 'company': |
|
|
|
$compont[0].lrvalue = loginInfo.companyId; |
|
|
|
learun.clientdata.getAsync('company', { |
|
|
|
key: loginInfo.companyId, |
|
|
|
callback: function (_data) { |
|
|
|
if ($compont.attr('data-flag') != "1") { |
|
|
|
$compont.val(_data.name); |
|
|
|
} |
|
|
|
|
|
|
|
switch (compont.dataType) { |
|
|
|
case 'company': |
|
|
|
$compont.lrCompanySelect({ type: 'multiple' }) |
|
|
|
break; |
|
|
|
case 'department': |
|
|
|
$compont.lrDepartmentSelect(); |
|
|
|
break; |
|
|
|
case 'user': |
|
|
|
$compont.lrUserSelect({ type: '1' }) |
|
|
|
break; |
|
|
|
case 'role': |
|
|
|
$compont.lrPostSelect({ type: 'treemultiple' }); |
|
|
|
break; |
|
|
|
} |
|
|
|
}); |
|
|
|
break; |
|
|
|
case 'department': |
|
|
|
$compont[0].lrvalue = loginInfo.departmentId; |
|
|
|
learun.clientdata.getAsync('department', { |
|
|
|
key: loginInfo.departmentId, |
|
|
|
callback: function (_data) { |
|
|
|
if ($compont.attr('data-flag') != "1") { |
|
|
|
$compont.val(_data.name); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
break; |
|
|
|
case 'user': |
|
|
|
$compont.val(loginInfo.realName); |
|
|
|
$compont[0].lrvalue = loginInfo.userId; |
|
|
|
break; |
|
|
|
case 'time': |
|
|
|
$compont[0].lrvalue = learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'); |
|
|
|
$compont.val($compont[0].lrvalue); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (compont.isHide == '1') { |
|
|
|
$row.hide(); |
|
|
|
} |
|
|
@@ -1338,6 +1439,14 @@ |
|
|
|
_html += '<div class="lr-component-control" style="text-align: center;padding-top: 10px;" ><a id="lr_fieldsData_set" class="btn btn-primary btn-block">设置表格字段</a></div>'; |
|
|
|
|
|
|
|
$html.html(_html); |
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('#lr_component_table').lrselect({ |
|
|
|
data: designerDfop.dbTable, |
|
|
|
value: 'name', |
|
|
@@ -1491,7 +1600,7 @@ |
|
|
|
var $compont = $('<div id="' + compont.id + '"></div>'); |
|
|
|
$row.append($compont); |
|
|
|
compont.hideData = []; |
|
|
|
|
|
|
|
|
|
|
|
var headData = toGirdheadData(compont.fieldsData, compont.hideData, $compont); |
|
|
|
if (!!compont.preloadDb && !!compont.preloadTable) { |
|
|
|
$compont.jfGrid({ |
|
|
@@ -1526,6 +1635,10 @@ |
|
|
|
isAutoHeight: (compont.minheight == 0 ? true : false), |
|
|
|
height: compont.minheight |
|
|
|
}); |
|
|
|
if (headData.length == 0) { |
|
|
|
$compont.hide(); |
|
|
|
} |
|
|
|
//console.log(headData,'test') |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@@ -1579,7 +1692,14 @@ |
|
|
|
_html += '<div class="lr-component-title">所占行比例</div>'; |
|
|
|
_html += '<div class="lr-component-control"><div id="lr_component_proportion"></div></div>'; |
|
|
|
$html.html(_html); |
|
|
|
|
|
|
|
// 设置多语言 |
|
|
|
$html.find('.lr-component-title').each(function () { |
|
|
|
var $this = $(this); |
|
|
|
var text = $this.text(); |
|
|
|
top.learun.language.get(text, function (_text) { |
|
|
|
$this.text(_text); |
|
|
|
}); |
|
|
|
}); |
|
|
|
var _field = dfop.field; |
|
|
|
|
|
|
|
// 绑定字段 |
|
|
@@ -1628,7 +1748,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
if (!!designerDfop.dbTable && designerDfop.dbTable.length > 0) { |
|
|
|
if (!!designerDfop.dbTable && designerDfop.dbTable.length > 0) |
|
|
|
{ |
|
|
|
$('#lr_component_table').lrselectSet(dfop.table || designerDfop.dbTable[0].name); |
|
|
|
} |
|
|
|
// 标题设置 |
|
|
@@ -1695,7 +1816,7 @@ |
|
|
|
}; |
|
|
|
// 数据字典选择初始化、数据源选择初始化 |
|
|
|
function setDatasource(dfop) { |
|
|
|
$('#lr_component_dfvalue').lrselect({ |
|
|
|
$('#lr_component_dfvalue').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
select: function (item) { |
|
|
|
if (!!item) { |
|
|
@@ -1716,7 +1837,7 @@ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataItem/GetClassifyTree', |
|
|
|
type: 'tree', |
|
|
|
value: 'value', |
|
|
|
value:'value', |
|
|
|
select: function (item) { |
|
|
|
if (!!item) { |
|
|
|
if (dfop.dataSourceId != item.id) { |
|
|
@@ -1762,7 +1883,7 @@ |
|
|
|
vlist[1] = item.value; |
|
|
|
dfop.dataSourceId = String(vlist); |
|
|
|
if (vlist[2] != '') { |
|
|
|
|
|
|
|
|
|
|
|
learun.clientdata.getAllAsync('sourceData', { |
|
|
|
code: vlist[0], |
|
|
|
callback: function (dataes) { |
|
|
@@ -1816,12 +1937,12 @@ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetList', |
|
|
|
value: 'F_Code', |
|
|
|
text: 'F_Name', |
|
|
|
title: 'F_Name', |
|
|
|
title:'F_Name', |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
if (dfop.dataSourceId != '') { |
|
|
|
var vlist = dfop.dataSourceId.split(','); |
|
|
|
if (vlist.length < 3 || vlist[0] != item.F_Code) { |
|
|
|
if (vlist.length <3 || vlist[0] != item.F_Code) { |
|
|
|
vlist[1] = ''; |
|
|
|
vlist[2] = ''; |
|
|
|
dfop.dataSourceId = item.F_Code + ',,'; |
|
|
@@ -1833,7 +1954,7 @@ |
|
|
|
dfop.dfvalue = ''; |
|
|
|
} |
|
|
|
//$('#lr_component_dfvalue').lrselectRefresh({ url: '', data: [] }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取字段数据 |
|
|
|
learun.httpAsync('GET', top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataColName', { code: item.F_Code }, function (data) { |
|
|
@@ -1853,7 +1974,7 @@ |
|
|
|
data: fieldData, |
|
|
|
placeholder: false |
|
|
|
}); |
|
|
|
$('#lr_component_dataSourceId2').lrselectSet(vlist[2] || fieldData[0].value); |
|
|
|
$('#lr_component_dataSourceId2').lrselectSet(vlist[2] ||fieldData[0].value); |
|
|
|
}); |
|
|
|
} |
|
|
|
else { |
|
|
@@ -1878,7 +1999,7 @@ |
|
|
|
$('#lr_component_dataItemCode').lrselectSet(dfop.itemCode); |
|
|
|
} |
|
|
|
else { |
|
|
|
var valuelist = dfop.dataSourceId.split(','); |
|
|
|
var valuelist = dfop.dataSourceId.split(','); |
|
|
|
$('#lr_component_dataSourceId').lrselectSet(valuelist[0]); |
|
|
|
} |
|
|
|
|
|
|
@@ -2035,7 +2156,7 @@ |
|
|
|
delete pIds[item['id']]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
for (var id in pIds) { |
|
|
|
_fn(resdata, id); |
|
|
@@ -2057,7 +2178,8 @@ |
|
|
|
return resdata; |
|
|
|
} |
|
|
|
// html编码 |
|
|
|
function htmlEncode(text) { |
|
|
|
function htmlEncode(text) |
|
|
|
{ |
|
|
|
text = text || ""; |
|
|
|
text = text.replace(/%/g, "{@bai@}"); |
|
|
|
text = text.replace(/ /g, "{@kong@}"); |
|
|
|