diff --git a/web/src/SourceWizard.tsx b/web/src/SourceWizard.tsx
index 0daaa90..039b1f2 100644
--- a/web/src/SourceWizard.tsx
+++ b/web/src/SourceWizard.tsx
@@ -135,10 +135,6 @@ export function SourceWizard({
数据源
-
- 一个入口添加:{kinds.map((item) => item.title).join(' / ')}。对内/对外不在这里配置,去「来源与目录」标注。
- 单篇钉钉文档或表格把链接发给我,我用 dws 直接导入。
-
')
+ expect(html).not.toContain('PP 导入')
+ expect(html).not.toContain('去掉来源')
expect(html).toContain('端点与凭据')
// PP 来源的卡片操作照旧:改刷新周期、启停、看修订历史。
for (const kept of ['查看修订历史', '保存并启用调度', '停用来源', '自动刷新周期']) expect(html).toContain(kept)
@@ -571,8 +569,9 @@ describe('SystemSettingsView 数据源配置的默认清单', () => {
// 文档工程师看不到添加向导与「去掉来源」:两者都是管理员动作。
const engineer = view('engineer')
expect(engineer).not.toContain('+ 添加数据源')
- expect(engineer).not.toContain('去掉来源')
- expect(engineer).toContain('PP 导入')
+ expect(engineer).not.toContain('去掉来源')
+ // PP 与钉钉共用同一张清单:工程师看得到卡,只是没有添加与归档。
+ expect(engineer).toContain('PP资料下载中心')
})
})
describe('ppSourceConnections(数据源配置的清单规则)', () => {
diff --git a/web/src/SystemSettings.tsx b/web/src/SystemSettings.tsx
index 542ecb9..2e38a22 100644
--- a/web/src/SystemSettings.tsx
+++ b/web/src/SystemSettings.tsx
@@ -165,27 +165,8 @@ function SourceSettingsCard({
const [showHistory, setShowHistory] = useState(false)
const [history, setHistory] = useState
(null)
const [pendingDisable, setPendingDisable] = useState(false)
- // 「去掉来源」= 归档下架:先弹确认,再调后端(后端会再校验一次管理员权限)。
- const [pendingArchive, setPendingArchive] = useState(false)
const scheduled = connection.source_type !== 'manual'
- // 归档下架:来源从列表、目录、调度与扫描里消失,但数据不删;重新登记同一来源即复活。
- const archive = async () => {
- setBusy(true)
- setFailure(null)
- setMessage(null)
- try {
- await archiveSourceConnection(connection.id)
- setMessage(`「${connection.name}」已归档下架:列表、来源与目录、计划刷新里都不再出现,数据保留可恢复。`)
- setPendingArchive(false)
- onSourcesChanged()
- } catch (cause) {
- setFailure(cause instanceof Error ? cause.message : '去掉来源失败')
- } finally {
- setBusy(false)
- }
- }
-
const submit = async (nextEnabled: boolean) => {
setBusy(true)
setMessage(null)
@@ -288,11 +269,6 @@ function SourceSettingsCard({
- {isAdmin ? (
-
- ) : null}
{message ? (
@@ -346,26 +322,6 @@ function SourceSettingsCard({
) : null}
- {pendingArchive ? (
-
@@ -483,29 +434,8 @@ export function SystemSettingsView({
))}
-
- 文档工程师可调整:来源调度周期、刷新间隔、停滞判断
- 管理员设置已锁定:端点、凭据、映射、生产开关
-
-
- 设置服务已启用
-
- 当前活动版本 · 启用人 {settings.updated_by} · 启用时间{' '}
- {settings.activated_at ? new Date(settings.activated_at).toLocaleString('zh-CN') : '待激活'}
- ;新设置先验证,再原子切换。
-
-
{section === 'sources' ? (
-
-
-
数据源配置
-
- 一个入口添加:钉钉知识库 / 钉盘 用当前钉钉账号列出可加入的空间,
- 单篇文档或表格把链接发给我用 dws 导入。对内/对外不在这里配置,去「来源与目录」标注。
-
-
-
{identity?.role === 'admin' ? (
item.name)}
@@ -514,15 +444,6 @@ export function SystemSettingsView({
/>
) : null}
-
-
-
PP 导入
-
- 公开只读的 PP 资料下载中心。这里的「去掉来源」是归档下架:从列表、来源与目录、计划刷新里摘掉,
- 但目录快照与发布记录不删,随时可恢复。
-
-
-
{ppConnections.length ? (
{ppConnections.map((connection) => (