main
kgdxpr 1 year ago
parent 1c3a24e16f
commit cad1c84484

@ -162,6 +162,10 @@
<button type="button" class="layui-btn layui-btn-sm" title="导出原始Excel" lay-event="export">
<i class="iconfont icon-daochu"></i>
</button>
{{# } else { }}
<button type="button" class="layui-btn layui-btn-sm" title="预览" lay-event="preview">
<i class="layui-icon layui-icon-eye"></i>
</button>
{{# } }}
<button type="button" class="layui-btn layui-btn-sm layui-btn-danger" title="删除" lay-event="del">
@ -282,6 +286,8 @@
window.exportStruct(obj);
} else if (obj.event === 'exportHz') {
window.exportHz(obj);
} else if (obj.event === 'preview') {
window.preview(obj);
}
});
@ -430,11 +436,24 @@
});
}
window.preview = function (obj) {
window.localStorage.setItem('form_json', obj.data.form_json);
layer.open({
type: 2,
title: '预览',
offset: 'r',
anim: 'slideLeft',
area: ['1000px', '100%'],
shade: 0.1,
shadeClose: true,
content: "../form/preview.html"
});
}
window.export = function (obj) {
openDownloadDialog("/QingLong/Excel/" + obj.data.upload_excel_filename, obj.data.job_name + ".xlsx");
}
window.exportHz = function (obj) {
window.location = "/QingLong/collect/getSummaryExcel?job_id=" + obj.data.job_id;
}

Loading…
Cancel
Save