删除所有console.log输出,优化评查结果的表格的显示,添加新的页码获取逻辑

This commit is contained in:
2025-06-02 18:55:00 +08:00
parent 820baa5b22
commit b02978508d
71 changed files with 862 additions and 572 deletions
+6 -6
View File
@@ -354,7 +354,7 @@
filterSelects.forEach(select => {
select.addEventListener('change', function() {
// 这里可以根据选择的值进行筛选,实际应用中可以通过AJAX请求后端接口
console.log('筛选条件变更:', select.value);
// console.log('筛选条件变更:', select.value);
});
});
@@ -364,7 +364,7 @@
if (searchBtn) {
searchBtn.addEventListener('click', function() {
// 这里可以根据输入的关键词进行搜索,实际应用中可以通过AJAX请求后端接口
console.log('搜索关键词:', searchInput.value);
// console.log('搜索关键词:', searchInput.value);
});
}
@@ -377,7 +377,7 @@
// 给当前点击的页码添加active状态
this.classList.add('ant-pagination-item-active');
// 这里可以根据页码加载不同页的数据,实际应用中可以通过AJAX请求后端接口
console.log('切换到页码:', this.textContent);
// console.log('切换到页码:', this.textContent);
});
});
@@ -391,7 +391,7 @@
const row = this.closest('tr');
const id = row.children[0].textContent;
// 编辑操作,可以跳转到编辑页面或打开编辑模态框
console.log('编辑评查点:', id);
// console.log('编辑评查点:', id);
window.location.href = `新增评查点.html?id=${id}&mode=edit`;
});
});
@@ -402,7 +402,7 @@
const id = row.children[0].textContent;
const name = row.children[1].textContent;
// 复制操作
console.log('复制评查点:', id, name);
// console.log('复制评查点:', id, name);
// 在实际应用中,这里可以弹出确认对话框,然后进行复制操作
alert(`确认复制评查点: ${name}?`);
});
@@ -414,7 +414,7 @@
const id = row.children[0].textContent;
const name = row.children[1].textContent;
// 删除操作
console.log('删除评查点:', id, name);
// console.log('删除评查点:', id, name);
// 在实际应用中,这里可以弹出确认对话框,然后进行删除操作
if (confirm(`确认删除评查点: ${name}?`)) {
// 执行删除操作,实际应用中可以通过AJAX请求后端接口