feat: 补齐风险卡责任人飞书字段展示

This commit is contained in:
2026-06-04 03:09:13 +08:00
parent b8501a680d
commit 0f989f4c95
2 changed files with 15 additions and 2 deletions

View File

@@ -249,6 +249,10 @@
<th>department</th>
<th>chapter_scope</th>
<th>risk_scope</th>
<th>feishu_user_id</th>
<th>feishu_open_id</th>
<th>feishu_name</th>
<th>notify_enabled</th>
</tr>
</thead>
<tbody>
@@ -259,9 +263,13 @@
<td>{{ item.department }}</td>
<td>{{ item.chapter_scope }}</td>
<td>{{ item.risk_scope }}</td>
<td>{{ item.feishu_user_id }}</td>
<td>{{ item.feishu_open_id }}</td>
<td>{{ item.feishu_name }}</td>
<td>{{ item.notify_enabled|yesno:"True,False" }}</td>
</tr>
{% empty %}
<tr><td colspan="5">当前无责任角色。</td></tr>
<tr><td colspan="9">当前无责任角色。</td></tr>
{% endfor %}
</tbody>
</table>

View File

@@ -706,11 +706,16 @@ def test_chat_page_shows_risk_and_notification_cards_from_conversation_summary(c
assert "总风险等级" in content
assert "high" in content
assert "注册资料负责人" in content
assert "注册事务部" in content
assert "字段冲突" in content
assert "ou_demo_1" in content
assert "on_demo_1" in content
assert "张三" in content
assert "True" in content
assert "CH1.11.5 沟通记录缺失" in content
assert "飞书通知能力卡" in content
assert "task_completed" in content
assert "sent" in content
assert "ou_demo_1" in content
def test_chat_upload_keeps_existing_conversation_binding_and_adds_documents(client, db):