getCompiled()->isFresh($_smarty_tpl, array (
'version' => '5.3.1',
'unifunc' => 'content_6753ed438e4e56_67817610',
'has_nocache_code' => false,
'file_dependency' =>
array (
'9a88c8c55d2f320f2e37d1cda8bd58a111c37a14' =>
array (
0 => 'gembox/draw/detail.tpl',
1 => 1733550922,
2 => 'file',
),
),
'includes' =>
array (
'file:gembox/layout/head.tpl' => 1,
'file:gembox/layout/foot.tpl' => 1,
),
))) {
function content_6753ed438e4e56_67817610 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = '/private/var/www/wwwroot/crc.loc/resources/views/tabler/gembox/draw';
$_smarty_tpl->renderSubTemplate('file:gembox/layout/head.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
?>
>
$(document).ready(function() {
// 初始化时显示选中的表格
updateTable();
// 当 radio 按钮变化时调用 updateTable 函数
$('input[name="options"]').change(function() {
updateTable();
});
function updateTable() {
const selectedValue = $('input[name="options"]:checked').val();
$("[name=optionTable]").hide();
$("#"+selectedValue).show();
}
$("[action=done]").click(function(){
if (confirm("已完成?")) {
$.ajax({
type: "POST",
url: "/gembox/draw/done",
data: {
id:$(this).attr('action-id')
},
success: function() {
if (response.status == 1) {
alert('成功');
document.location.href = document.location.href;
} else {
alert(response)
}
}
});
}
});
$('[action=back]').click(function() {
dialog({
content: '',
cancelValue: '取消',
cancel: function() {
// 取消时的操作
},
okValue: '确定',
ok: function() {
// 获取用户输入的内容
var userInput = $('#userInput').val();
// 发送 POST 请求
$.post('/gembox/draw/back', {
memo: userInput,
id:getValue('id');?>
,
siteCode:"getValue('siteCode');?>
"
}, function(response) {
// 处理服务器响应
if (response.status == 1) {
alert('成功');
document.location.href = document.location.href;
} else {
alert(response)
}
}).fail(function(response) {
// 处理请求失败
alert('失败');
});
}
}).showModal();
});
});
>
renderSubTemplate('file:gembox/layout/foot.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), (int) 0, $_smarty_current_dir);
}
}