mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-10 03:16:49 +08:00
feat(risk_history): 添加导航项详情功能并优化评论显示- 在 StateManager 中新增 navItem 属性,用于存储当前选中的导航项信息- 在 getDetail 方法中更新 navItem 属性,以便在详情页面使用- 在弹出评论对话框时,自动填充已有的评论内容- 移除了一些不必要的空行,优化了代码格式
This commit is contained in:
@@ -701,6 +701,7 @@
|
||||
var StateManager = {
|
||||
navList: [], // 侧边列表
|
||||
navCheckRecord: {},
|
||||
navItem:{},
|
||||
resultId: '',
|
||||
isLike: 0,
|
||||
taCode: Utils.getQueryParam('taCode') || 'C123504032025600027' // 默认值作为后备
|
||||
@@ -940,6 +941,7 @@
|
||||
// 获取详情
|
||||
getDetail: function(navItem) {
|
||||
var actions = document.getElementById('actions');
|
||||
StateManager.navItem = navItem;
|
||||
actions.style.display = '';
|
||||
if(navItem.checkStatus === 2){
|
||||
// 从URL获取taCode
|
||||
@@ -1226,7 +1228,6 @@
|
||||
var noPadding = Utils.getQueryParam('noPT');
|
||||
ping.onclick = function() {
|
||||
DialogHandler.showDialog();
|
||||
|
||||
var error = document.getElementById('error-msg')
|
||||
error.innerHTML = ''
|
||||
|
||||
@@ -1234,7 +1235,7 @@
|
||||
var saveBtn = document.getElementById('saveBtn')
|
||||
|
||||
commentText.removeAttribute('disabled')
|
||||
|
||||
commentText.value = StateManager.navItem.commentContent
|
||||
saveBtn.style.display = ''
|
||||
if(noNav || noPadding){
|
||||
commentText.setAttribute('disabled',true)
|
||||
|
||||
Reference in New Issue
Block a user