main
kgdxpr 1 year ago
parent 9741a4212b
commit 03c7ef2a11

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

@ -4727,9 +4727,14 @@ layui.config({ base: './ayq/modules/' }).define(["layer", 'flow', "laytpl", "ele
});
});
$(document).on('keydown', 'input', function(e) {
if (e.which == 13) {
e.preventDefault();
}
});
$("#formSave").on('click', function () {
if (options.data.length > 0) {
console.log(JSON.stringify(options.data));
if (options.data.length > 0) {
window.localStorage.setItem('form_json', JSON.stringify(options.data));
layer.open({
type: 2,

@ -104,7 +104,6 @@ layui.define(['layer'], function (exports) {
fieldTypes: [{ text: '文本', value: "1" }
, { text: '数值', value: '2' }
, { text: '小数', value: '3' }
, { text: '日期', value: '4' }
],
expressions: [{ text: '默认', value: "" }
, { text: '数字', value: 'number' }

@ -104,7 +104,6 @@ layui.define(['layer'], function (exports) {
fieldTypes: [{ text: '文本', value: "1" }
, { text: '数值', value: '2' }
, { text: '小数', value: '3' }
, { text: '日期', value: '4' }
],
expressions: [{ text: '默认', value: "" }
, { text: '数字', value: 'number' }

@ -252,13 +252,12 @@
$('#uploader-list-' + res.data[i].input_id).append(
'<div id="' + res.data[i].file_id + '" class="file-iteme">' +
'<a href="/QingLong/Excel/' + res.data[i].file_id + '.' + res.data[i].suffix + '" target="_blank"><img style="width: 100px;height: 100px;" src=/QingLong/Excel/' + res.data[i].file_id + '.' + res.data[i].suffix + '></a>' +
// '<a href="javascript:void(0)" onclick="testabc()"><img style="width: 100px;height: 100px;" src=/QingLong/Excel/' + res.data[i].file_id + '.' + res.data[i].suffix + '></a>' +
'</div>'
);
}
}
}
}
});
@ -266,7 +265,21 @@
window.location = '/QingLong/collect/getFormJobFile?file_id=' + file_id;
}
window.testabc = function (image_id) {
layer.photos({
photos: {
"title": "Photos Demo",
"start": 0,
"data": [
{
"alt": "layer",
"pid": 1,
"src": "/QingLong/Excel/" + image_id + ".jpg",
}
]
}
});
}
//监听提交
form.on('submit(demo1)', function (data) {
@ -363,7 +376,7 @@
function getSubmitData() {
var data = $('#testdemo').form[0].serialize();
var data = $('#testdemo').form[0].serialize();
return data;
}

Loading…
Cancel
Save