删除所有console.log输出,优化评查结果的表格的显示,添加新的页码获取逻辑
This commit is contained in:
+19
-19
@@ -825,23 +825,23 @@
|
||||
});
|
||||
|
||||
// 调试代码 - 确保页面加载后检查所有自定义提示词容器
|
||||
console.log("页面加载完成,检查自定义提示词容器");
|
||||
// console.log("页面加载完成,检查自定义提示词容器");
|
||||
const customPromptContainers = [
|
||||
document.getElementById('llm-custom-prompt-container'),
|
||||
document.getElementById('multimodal-custom-prompt-container')
|
||||
];
|
||||
|
||||
customPromptContainers.forEach((container, index) => {
|
||||
console.log(`容器 ${index + 1} 状态:`, container ? container.style.display : '未找到元素');
|
||||
// console.log(`容器 ${index + 1} 状态:`, container ? container.style.display : '未找到元素');
|
||||
});
|
||||
|
||||
// 确保提示词类型切换正常工作
|
||||
console.log("设置提示词类型切换事件");
|
||||
// console.log("设置提示词类型切换事件");
|
||||
|
||||
// 直接绑定事件到单选按钮
|
||||
document.querySelectorAll('input[name="llm-prompt-type"]').forEach(radio => {
|
||||
radio.addEventListener('change', function() {
|
||||
console.log("大模型提示词类型变更:", this.value);
|
||||
// console.log("大模型提示词类型变更:", this.value);
|
||||
const customContainer = document.getElementById('llm-custom-prompt-container');
|
||||
const systemInfo = document.getElementById('llm-system-prompt-info');
|
||||
|
||||
@@ -857,7 +857,7 @@
|
||||
|
||||
document.querySelectorAll('input[name="multimodal-prompt-type"]').forEach(radio => {
|
||||
radio.addEventListener('change', function() {
|
||||
console.log("多模态提示词类型变更:", this.value);
|
||||
// console.log("多模态提示词类型变更:", this.value);
|
||||
const customContainer = document.getElementById('multimodal-custom-prompt-container');
|
||||
const systemInfo = document.getElementById('multimodal-system-prompt-info');
|
||||
|
||||
@@ -873,12 +873,12 @@
|
||||
|
||||
// 页面加载完成后,确保自定义提示词容器状态正确
|
||||
function initPromptContainers() {
|
||||
console.log("初始化提示词容器状态");
|
||||
// console.log("初始化提示词容器状态");
|
||||
|
||||
// 大模型抽取
|
||||
const llmPromptType = document.querySelector('input[name="llm-prompt-type"]:checked');
|
||||
if (llmPromptType) {
|
||||
console.log("当前大模型提示词类型:", llmPromptType.value);
|
||||
// console.log("当前大模型提示词类型:", llmPromptType.value);
|
||||
if (llmPromptType.value === 'custom') {
|
||||
document.getElementById('llm-custom-prompt-container').style.display = 'block';
|
||||
document.getElementById('llm-system-prompt-info').style.display = 'none';
|
||||
@@ -888,7 +888,7 @@
|
||||
// 多模态抽取
|
||||
const multimodalPromptType = document.querySelector('input[name="multimodal-prompt-type"]:checked');
|
||||
if (multimodalPromptType) {
|
||||
console.log("当前多模态提示词类型:", multimodalPromptType.value);
|
||||
// console.log("当前多模态提示词类型:", multimodalPromptType.value);
|
||||
if (multimodalPromptType.value === 'custom') {
|
||||
document.getElementById('multimodal-custom-prompt-container').style.display = 'block';
|
||||
document.getElementById('multimodal-system-prompt-info').style.display = 'none';
|
||||
@@ -1182,23 +1182,23 @@
|
||||
});
|
||||
|
||||
// 调试代码 - 确保页面加载后检查所有自定义提示词容器
|
||||
console.log("页面加载完成,检查自定义提示词容器");
|
||||
// console.log("页面加载完成,检查自定义提示词容器");
|
||||
const customPromptContainers = [
|
||||
document.getElementById('llm-custom-prompt-container'),
|
||||
document.getElementById('multimodal-custom-prompt-container')
|
||||
];
|
||||
|
||||
customPromptContainers.forEach((container, index) => {
|
||||
console.log(`容器 ${index + 1} 状态:`, container ? container.style.display : '未找到元素');
|
||||
// console.log(`容器 ${index + 1} 状态:`, container ? container.style.display : '未找到元素');
|
||||
});
|
||||
|
||||
// 确保提示词类型切换正常工作
|
||||
console.log("设置提示词类型切换事件");
|
||||
// console.log("设置提示词类型切换事件");
|
||||
|
||||
// 直接绑定事件到单选按钮
|
||||
document.querySelectorAll('input[name="llm-prompt-type"]').forEach(radio => {
|
||||
radio.addEventListener('change', function() {
|
||||
console.log("大模型提示词类型变更:", this.value);
|
||||
// console.log("大模型提示词类型变更:", this.value);
|
||||
const customContainer = document.getElementById('llm-custom-prompt-container');
|
||||
const systemInfo = document.getElementById('llm-system-prompt-info');
|
||||
|
||||
@@ -1214,7 +1214,7 @@
|
||||
|
||||
document.querySelectorAll('input[name="multimodal-prompt-type"]').forEach(radio => {
|
||||
radio.addEventListener('change', function() {
|
||||
console.log("多模态提示词类型变更:", this.value);
|
||||
// console.log("多模态提示词类型变更:", this.value);
|
||||
const customContainer = document.getElementById('multimodal-custom-prompt-container');
|
||||
const systemInfo = document.getElementById('multimodal-system-prompt-info');
|
||||
|
||||
@@ -1230,12 +1230,12 @@
|
||||
|
||||
// 页面加载完成后,确保自定义提示词容器状态正确
|
||||
function initPromptContainers() {
|
||||
console.log("初始化提示词容器状态");
|
||||
// console.log("初始化提示词容器状态");
|
||||
|
||||
// 大模型抽取
|
||||
const llmPromptType = document.querySelector('input[name="llm-prompt-type"]:checked');
|
||||
if (llmPromptType) {
|
||||
console.log("当前大模型提示词类型:", llmPromptType.value);
|
||||
// console.log("当前大模型提示词类型:", llmPromptType.value);
|
||||
if (llmPromptType.value === 'custom') {
|
||||
document.getElementById('llm-custom-prompt-container').style.display = 'block';
|
||||
document.getElementById('llm-system-prompt-info').style.display = 'none';
|
||||
@@ -1245,7 +1245,7 @@
|
||||
// 多模态抽取
|
||||
const multimodalPromptType = document.querySelector('input[name="multimodal-prompt-type"]:checked');
|
||||
if (multimodalPromptType) {
|
||||
console.log("当前多模态提示词类型:", multimodalPromptType.value);
|
||||
// console.log("当前多模态提示词类型:", multimodalPromptType.value);
|
||||
if (multimodalPromptType.value === 'custom') {
|
||||
document.getElementById('multimodal-custom-prompt-container').style.display = 'block';
|
||||
document.getElementById('multimodal-system-prompt-info').style.display = 'none';
|
||||
@@ -2011,7 +2011,7 @@ function checkRule(data) {
|
||||
const addConditionBtn = container.querySelector('.add-condition-btn');
|
||||
if (addConditionBtn) {
|
||||
addConditionBtn.addEventListener('click', function() {
|
||||
console.log('添加条件按钮被点击');
|
||||
// console.log('添加条件按钮被点击');
|
||||
|
||||
const conditionsContainer = container.querySelector('.conditions-container');
|
||||
if (!conditionsContainer) {
|
||||
@@ -2059,7 +2059,7 @@ function checkRule(data) {
|
||||
});
|
||||
}
|
||||
|
||||
console.log('已添加新的条件行');
|
||||
// console.log('已添加新的条件行');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -2127,7 +2127,7 @@ function checkRule(data) {
|
||||
highlightedCode.textContent = codeEditor.value;
|
||||
try {
|
||||
hljs.highlightElement(highlightedCode);
|
||||
console.log('代码块已高亮', index);
|
||||
// console.log('代码块已高亮', index);
|
||||
} catch (e) {
|
||||
console.error('代码高亮失败:', e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user