mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-31 05:05:33 +08:00
- NginxAccessLog + NginxLogPosition Scheme 加 #[Component] 注解 - Scheme Table name 补 ul_ 前缀(curd 严格校验要求) - curd 生成 nginx 模块完整后台(controller/model/view/js) - Base/App 双层只读控制器(参照 TimerLogBase 范式) - AccessLogBase: add/edit/delete/modify 全部 error - LogPositionBase: 同上 - 视图改造: - access_log 裁剪到 8 列核心字段(time_local/method/uri/status/remote_addr/request_time/body_bytes_sent/http_user_agent) - status/request_time 自定义 badge 渲染 - toolbar 清空 + operat 仅保留详情(B 类只读页面) - log_position 全字段 + 只读化 - HTTP 验证:index 200 OK + add/edit/delete/modify 全部返回错误
22 lines
664 B
PHP
22 lines
664 B
PHP
$(function(){
|
|
// 删除数据
|
|
window.deleteData = function(id) {
|
|
layer.confirm('确定要删除这条数据吗?', {
|
|
icon: 3,
|
|
title: '提示'
|
|
}, function(index) {
|
|
$.post('{{:url("delete")}}', {id: id}, function(res) {
|
|
if (res.code == 0) {
|
|
layer.msg('删除成功', {icon: 1}, function() {
|
|
location.href = '{{:url("index")}}';
|
|
});
|
|
} else {
|
|
layer.msg(res.msg, {icon: 2});
|
|
}
|
|
}, 'json');
|
|
layer.close(index);
|
|
});
|
|
};
|
|
|
|
ua.listen();
|
|
}) |