|
|
|
@ -15,11 +15,12 @@
|
|
|
|
|
<table class="layui-table" lay-filter="idTest" id="idTest"></table>
|
|
|
|
|
<script type="text/html" id="barDemo">
|
|
|
|
|
{{#if(d.page_finish){ }}
|
|
|
|
|
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="modify">修改</a>
|
|
|
|
|
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="view">查看Word</a>
|
|
|
|
|
<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="modify">重新填写</a>
|
|
|
|
|
{{#}else{ }}
|
|
|
|
|
{{#if(d.module_finish){ }}
|
|
|
|
|
<a class="layui-btn layui-btn-xs layui-btn" lay-event="modify">填写</a>
|
|
|
|
|
{{#} }}
|
|
|
|
|
{{#if(d.module_finish){ }}
|
|
|
|
|
<a class="layui-btn layui-btn-xs layui-btn" lay-event="modify">填写</a>
|
|
|
|
|
{{#} }}
|
|
|
|
|
{{#} }}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
@ -39,27 +40,45 @@
|
|
|
|
|
}
|
|
|
|
|
, cols: [[
|
|
|
|
|
{field: '', title: '序号', align: 'center', type: 'numbers', fixed: true, width: '5%'}
|
|
|
|
|
, {field: 'module_finish', title: '模板', align: 'center',templet:function(d){
|
|
|
|
|
if(d.module_finish== 0)
|
|
|
|
|
, {
|
|
|
|
|
field: 'module_finish', title: '模板', align: 'center', templet: function (d) {
|
|
|
|
|
if (d.module_finish == 0)
|
|
|
|
|
return '未填写'
|
|
|
|
|
else
|
|
|
|
|
return '已填写'
|
|
|
|
|
}}
|
|
|
|
|
, {field: 'page_finish', title: '内容', align: 'center',templet:function(d){
|
|
|
|
|
if(d.page_finish== 0)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
, {
|
|
|
|
|
field: 'page_finish', title: '内容', align: 'center', templet: function (d) {
|
|
|
|
|
if (d.page_finish == 0)
|
|
|
|
|
return '未填写'
|
|
|
|
|
else
|
|
|
|
|
return '已填写'
|
|
|
|
|
}}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
, {fixed: 'right', title: '操作', toolbar: '#barDemo', align: 'center', width: 480}
|
|
|
|
|
]]
|
|
|
|
|
, page: false
|
|
|
|
|
, height: 'full'
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
table.on('tool(idTest)', function (obj) {
|
|
|
|
|
var data = obj.data;
|
|
|
|
|
if (obj.event === "modify") {
|
|
|
|
|
window.location.href = "fill.html?task_id=" + task_id + "&page=" + data.page+"&module_id="+data.module_id;
|
|
|
|
|
//调用Ajax清空相关填写内容,重新填写,只清除上传的图片和文件
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
url: "/FengHuang/zjb/clearUpload",
|
|
|
|
|
data: {
|
|
|
|
|
"task_id": task_id,
|
|
|
|
|
"page": data.page
|
|
|
|
|
},
|
|
|
|
|
async: false,
|
|
|
|
|
success: function (result) {
|
|
|
|
|
window.location.href = "fill.html?task_id=" + task_id + "&page=" + data.page + "&module_id=" + data.module_id;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|