|
|
|
@ -1573,8 +1573,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
* @param {object} json 变更后的json属性
|
|
|
|
|
* @param {object} that 实例对象
|
|
|
|
|
* */
|
|
|
|
|
update: function (json, that) {
|
|
|
|
|
console.log(json);
|
|
|
|
|
update: function (json, that) {
|
|
|
|
|
var _required = json.required ? 'required' : '';
|
|
|
|
|
var $block = $('#' + json.id + ' .layui-input-block');
|
|
|
|
|
var $label = $('#' + json.id + ' .layui-form-label');
|
|
|
|
@ -2080,9 +2079,9 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
_html += '<label class="layui-form-label {0}"><span style="color:red;">{2}</span>{1}:</label>'.format(json.required ? 'layui-form-required' : '', json.label, json.required ? '*' : '');
|
|
|
|
|
_html += '<div class="layui-input-block">';
|
|
|
|
|
_html += '<div class="layui-upload">';
|
|
|
|
|
_html += '<button type="button" class="layui-btn layui-btn-normal" id="{0}">选择多文件</button> '.format(json.tag + json.id);
|
|
|
|
|
_html += '<button type="button" class="layui-btn" id="{0}">选择文件</button> '.format(json.tag + json.id);
|
|
|
|
|
_html += ' <div class="layui-upload-list" style="max-width: 1000px;"><table class="layui-table">';
|
|
|
|
|
_html += '<colgroup><col><col width="150"><col width="260"><col width="150"></colgroup>';
|
|
|
|
|
_html += '<colgroup><col><col width="100"><col width="150"><col width="100"></colgroup>';
|
|
|
|
|
_html += '<thead><tr><th>文件名</th><th>大小</th><th>上传进度</th><th>操作</th></tr></thead>';
|
|
|
|
|
_html += '<tbody id="list-{0}"></tbody></table></div>'.format(json.id);
|
|
|
|
|
_html += '<button type="button" class="layui-btn" id="listAction-{0}">开始上传</button>'.format(json.id);
|
|
|
|
@ -4708,8 +4707,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
layer.msg('导入成功');
|
|
|
|
|
});
|
|
|
|
|
//注册导出数据
|
|
|
|
|
$('.exportJson').on('click', function () {
|
|
|
|
|
console.log(JSON.stringify(options.data));
|
|
|
|
|
$('.exportJson').on('click', function () {
|
|
|
|
|
document.getElementById('generate-code-view').value = JSON.stringify(options.data, null, 4);
|
|
|
|
|
|
|
|
|
|
layer.open({
|
|
|
|
@ -4884,8 +4882,7 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
that.components[item.tag].update(item, that);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
var item = that.findJsonItem(options.data, key);
|
|
|
|
|
console.log(item);
|
|
|
|
|
var item = that.findJsonItem(options.data, key);
|
|
|
|
|
if (item === undefined) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
@ -4926,7 +4923,9 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
//获取表单区域所有值
|
|
|
|
|
// var json = form.val(that.config.formId);
|
|
|
|
|
|
|
|
|
|
var json = form.val();
|
|
|
|
|
var json = form.val();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (let key in iceEditorObjects) {
|
|
|
|
|
json[key] = iceEditorObjects[key].getHTML();
|
|
|
|
@ -5005,8 +5004,8 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
|
|
|
|
|
, options = that.config;
|
|
|
|
|
options.elem = $(options.elem);
|
|
|
|
|
options.id = options.id || options.elem.attr('id') || that.index;
|
|
|
|
|
// options.elem.html('<form class="layui-form layui-form-pane mainBox" style="height:100%;" id="{0}" lay-filter="{0}"></form>'.format(options.formId));
|
|
|
|
|
options.elem.html('<div class="layui-form-pane mainBox" id="{0}"></div>'.format(options.formId));
|
|
|
|
|
options.elem.html('<form class="layui-form layui-form-pane" style="height:100%;" id="{0}" lay-filter="{0}"></form>'.format(options.formId));
|
|
|
|
|
// options.elem.html('<div class="layui-form-pane mainBox" id="{0}"></div>'.format(options.formId));
|
|
|
|
|
that.renderViewForm();
|
|
|
|
|
} else {
|
|
|
|
|
var elem = $('#formDesignerForm');
|
|
|
|
|