@*超链接action展示*@
<script type="text/html" id="ShowAction">
{{# if(d.DealStatus == 100 || d.DealStatus == 2){ }}
<a href="javascript:void(0);" onclick="Save('{{d.ID}}')" class="layui-table-link">Save</a>
<span>/</span>
<a href="javascript:void(0);" onclick="Delete('{{d.ID}}')" class="layui-table-link">Delete</a>
{{# } else if(d.DealStatus == 0) { }}
<span>Saved</span>
{{# } else if(d.DealStatus == 1) { }}
<a href="javascript:void(0);" onclick="Restore('{{d.ID}}')" class="layui-table-link">Restore File</a>
{{# } }}
</script>

 

 

 

//清理文件(保存)
function Save(id) {
layer.confirm('You sure attach to Incident?', {
btn: ['Yes', 'Cancel']
}, function (index, layero) {
UpdateCleaned(parseInt(id), 0);
}, function (index) {
$(Id).prop("checked", false);
});

}