中标公示报告
总项目数
diff --git a/public/index.html b/public/index.html
index e015cb9..3c00456 100644
--- a/public/index.html
+++ b/public/index.html
@@ -6,136 +6,365 @@
公告抓取与分析工具
@@ -169,11 +398,12 @@
城市 |
提示词 |
状态 |
+
浏览器 |
操作 |
- | 加载中... |
+ | 加载中... |
@@ -304,6 +534,11 @@
启用
+
+
+
@@ -346,7 +581,7 @@
document.getElementById('taskSummary').textContent = `共 ${tasksList.length} 个任务,${enabled} 个启用`;
if (tasksList.length === 0) {
- tbody.innerHTML = '
| 暂无任务,点击「新增任务」添加 |
';
+ tbody.innerHTML = '| 暂无任务,点击「新增任务」添加 |
';
return;
}
@@ -355,6 +590,7 @@
${t.city || '-'} |
${t.prompt || '-'} |
${t.enabled ? '启用' : '禁用'} |
+ ${t.useBrowser === true ? '打开' : (t.useBrowser === false ? '关闭' : '继承全局')} |
@@ -367,11 +603,15 @@
function openTaskModal(id) {
const item = id ? tasksList.find(t => t.id === id) : null;
+ const globalUseBrowser = document.getElementById('cfgUseBrowser').value === 'true';
document.getElementById('taskModalTitle').textContent = item ? '编辑任务' : '新增任务';
document.getElementById('taskEditId').value = item ? item.id : '';
document.getElementById('taskCity').value = item ? item.city : '';
document.getElementById('taskPrompt').value = item ? item.prompt : '';
document.getElementById('taskEnabled').checked = item ? item.enabled : true;
+ document.getElementById('taskUseBrowser').checked = item
+ ? (typeof item.useBrowser === 'boolean' ? item.useBrowser : globalUseBrowser)
+ : globalUseBrowser;
document.getElementById('taskModal').classList.add('show');
}
@@ -386,6 +626,7 @@
city: document.getElementById('taskCity').value.trim(),
prompt: document.getElementById('taskPrompt').value.trim(),
enabled: document.getElementById('taskEnabled').checked,
+ useBrowser: document.getElementById('taskUseBrowser').checked,
};
try {
const url = id ? `/api/tasks/${id}` : '/api/tasks';
@@ -736,6 +977,7 @@
// ===== 初始化 =====
loadTasks();
+ loadSettings();
|