浏览代码

chore(graph): 暂时隐藏画布 AI 研判入口

- 新增 insightEntryEnabled=false 开关,研判抽屉与全部逻辑保留
- 需要恢复时把开关改回 true 即可,无需修改模板
cc 1 月之前
父节点
当前提交
7703961597
共有 1 个文件被更改,包括 13 次插入 和 1 次删除
  1. 13 1
      ai-electron/frontend/src/graph/views/g6Editor/index.vue

+ 13 - 1
ai-electron/frontend/src/graph/views/g6Editor/index.vue

@@ -153,7 +153,12 @@
                 >
                   设置分析条件
                 </Button>
-                <Button v-if="showInsightEntry" type="primary" class="entity-palette__action" @click="openInsight">
+                <Button
+                  v-if="insightEntryEnabled && showInsightEntry"
+                  type="primary"
+                  class="entity-palette__action"
+                  @click="openInsight"
+                >
                   <Icon icon="i-mdi:auto-fix" :size="14" />
                   <span>AI 研判</span>
                 </Button>
@@ -1359,6 +1364,13 @@
   /** 当前案件 ID(研判会话按案件隔离) */
   const insightCaseId = computed(() => (caseStore.getCaseInfo?.id ? String(caseStore.getCaseInfo.id) : ''));
   const insightOpen = ref(false);
+  /**
+   * 画布「AI 研判」入口开关(暂时隐藏)。
+   *
+   * <p>研判抽屉、上下文快照和全部研判逻辑都保留,只是入口按钮不展示;
+   * 需要恢复时把这里改回 {@code true} 即可,不需要动模板。
+   */
+  const insightEntryEnabled = false;
 
   /**
    * 画布数据版本号。