main
kgdxpr 2 years ago
parent c1c34eebc9
commit 283d4b455f

@ -36,11 +36,11 @@
// $(document).attr("title", "查看");
var data = { "url": _url };
var data = { "url": _url };
var pdfTpl = pdfScript.innerHTML,
pdfView = document.getElementById('pdfView');
laytpl(pdfTpl).render(data, function (html) {
laytpl(pdfTpl).render(data, function (html) {
pdfView.innerHTML = html;
});

@ -28,7 +28,7 @@
span {
cursor: pointer;
}
td img {
@ -54,20 +54,21 @@
<div class="layui-form-item">
<label class="layui-form-label" style="width: auto !important;">任务格式:</label>
<div class="layui-input-block" style="margin-left: 90px !important;">
<span style="font-weight:normal" id="form_radio">
<span style="font-weight:normal" id="form_radio">
<input type="radio" name="formType" value="1" checked><img src="../imgs/form.png" title="表单"
style="width: 50px;margin-left: -22px;margin-right: 29px;">
<span style="position: absolute;top: 55px;left: 49px;">
表单
</span>
<span style="position: absolute;top: 55px;left: 49px;">
表单
</span>
</span>
<span style="font-weight:normal" id="excel_radio">
<input type="radio" name="formType" value="2" style="margin-left: 130px;"><img
src="../imgs/excel.png" title="EXCEL" style="width: 50px;margin-left: -22px;" id="excel">
<span style="position: absolute;top: 55px;left: 156px;">
Excel
</span>
src="../imgs/excel.png" title="EXCEL" style="width: 50px;margin-left: -22px;"
id="excel">
<span style="position: absolute;top: 55px;left: 156px;">
Excel
</span>
</span>
</div>
</div>
@ -94,8 +95,8 @@
localStorage.removeItem('target_type_id');
form.on('radio(targetId)', function (data) {
if (data.value == 2) {
form.on('radio(targetId)', function (data) {
if (data.value == 2) {
$('#excel_radio').hide();
$('input[name="formType"][value="1"]').prop('checked', true);
layui.form.render('radio');
@ -111,7 +112,7 @@
parent.openFormCreatePage();
} else {
parent.openExcelCreatePage();
}
}
return false;
});

@ -27,7 +27,6 @@
查询
</button>
</div>
</div>
</div>
</div>
@ -39,7 +38,7 @@
{{#if (d.job_type == 1) { }}
<img src="../imgs/form.png" title="表单" style="max-width: 16px;margin-top: -4px;">
{{# } else { }}
<img src="../imgs/excel.png" title="EXCEL模板" style="max-width: 16px;margin-top: -4px;">
<img src="../imgs/excel.png" title="Excel" style="max-width: 16px;margin-top: -4px;">
{{# } }}
{{d.job_name}}
{{#if (d.jiezhi == true) { }}

@ -39,7 +39,7 @@
{{#if (d.job_type == 1) { }}
<img src="../imgs/form.png" title="表单" style="max-width: 16px;margin-top: -4px;">
{{# } else { }}
<img src="../imgs/excel.png" title="EXCEL模板" style="max-width: 16px;margin-top: -4px;">
<img src="../imgs/excel.png" title="Excel" style="max-width: 16px;margin-top: -4px;">
{{# } }}
{{d.job_name}}
{{#if (d.jiezhi == true) { }}

Loading…
Cancel
Save