|
|
@ -14,10 +14,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
<table class="layui-table" lay-filter="idTest" id="idTest"></table>
|
|
|
|
<table class="layui-table" lay-filter="idTest" id="idTest"></table>
|
|
|
|
<script type="text/html" id="barDemo">
|
|
|
|
<script type="text/html" id="barDemo">
|
|
|
|
{{#if(d.filled){ }}
|
|
|
|
{{#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="modify">修改</a>
|
|
|
|
{{#}else{ }}
|
|
|
|
{{#}else{ }}
|
|
|
|
<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>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
@ -37,20 +39,22 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
, cols: [[
|
|
|
|
, cols: [[
|
|
|
|
{field: '', title: '序号', align: 'center', type: 'numbers', fixed: true, width: '5%'}
|
|
|
|
{field: '', title: '序号', align: 'center', type: 'numbers', fixed: true, width: '5%'}
|
|
|
|
, {field: 'json', title: '内容', align: 'center'}
|
|
|
|
, {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)
|
|
|
|
|
|
|
|
return '未填写'
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
return '已填写'
|
|
|
|
|
|
|
|
}}
|
|
|
|
, {fixed: 'right', title: '操作', toolbar: '#barDemo', align: 'center', width: 480}
|
|
|
|
, {fixed: 'right', title: '操作', toolbar: '#barDemo', align: 'center', width: 480}
|
|
|
|
]]
|
|
|
|
]]
|
|
|
|
, page: false
|
|
|
|
, page: false
|
|
|
|
, height: 'full'
|
|
|
|
, height: 'full'
|
|
|
|
, done: function (res) {
|
|
|
|
|
|
|
|
$("[data-field='json']").children().each(function () {
|
|
|
|
|
|
|
|
if ($(this).text() == "[]") {
|
|
|
|
|
|
|
|
$(this).text("未填写");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$(this).text("已填写");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
table.on('tool(idTest)', function (obj) {
|
|
|
|
table.on('tool(idTest)', function (obj) {
|
|
|
|
var data = obj.data;
|
|
|
|
var data = obj.data;
|
|
|
|