From e53371cbab6d3a11a14cff369e749e058cca2f4f Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Sat, 26 Sep 2026 13:32:49 +0800 Subject: [PATCH] feat: document --- ui/src/api/types/tool.ts | 1 + ui/src/assets/iconfont.js | 2 +- .../global/mk-status-label/index.vue | 20 ++++----- ui/src/constants/CONSTANT_README.md | 3 ++ ui/src/constants/document.ts | 7 +++ .../views/knowledge-detail/document/index.vue | 45 ++++++++++++++----- .../system/resource-management/tool/index.vue | 2 +- .../ExecutionDetailDrawer.vue | 8 +++- .../ExecutionRecordDrawer.vue | 43 ++++++++++-------- .../execution-details/BaseHeader.vue | 7 ++- 10 files changed, 91 insertions(+), 47 deletions(-) create mode 100644 ui/src/constants/document.ts diff --git a/ui/src/api/types/tool.ts b/ui/src/api/types/tool.ts index cd50521d59b..c44e0a6edcc 100644 --- a/ui/src/api/types/tool.ts +++ b/ui/src/api/types/tool.ts @@ -210,4 +210,5 @@ export interface ToolExecutionRecord extends ToolExecutionRecordDetail { source_icon?: string | null trigger_type?: import('./trigger').TriggerType | null create_time: string + workspace_name?: string } diff --git a/ui/src/assets/iconfont.js b/ui/src/assets/iconfont.js index 1f847b76358..0ce468f0183 100644 --- a/ui/src/assets/iconfont.js +++ b/ui/src/assets/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_5200172='',(h=>{var a=(l=(l=document.getElementsByTagName("script"))[l.length-1]).getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var o,v,t,i,c,d=function(a,l){l.parentNode.insertBefore(a,l)};if(a&&!h.__iconfont__svg__cssinject__){h.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}o=function(){var a,l=document.createElement("div");l.innerHTML=h._iconfont_svg_string_5200172,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(a=document.body).firstChild?d(l,a.firstChild):a.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(v=function(){document.removeEventListener("DOMContentLoaded",v,!1),o()},document.addEventListener("DOMContentLoaded",v,!1)):document.attachEvent&&(t=o,i=h.document,c=!1,m(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,e())})}function e(){c||(c=!0,t())}function m(){try{i.documentElement.doScroll("left")}catch(a){return void setTimeout(m,50)}e()}})(window); \ No newline at end of file +window._iconfont_svg_string_5200172='',(h=>{var a=(l=(l=document.getElementsByTagName("script"))[l.length-1]).getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var o,v,t,i,c,d=function(a,l){l.parentNode.insertBefore(a,l)};if(a&&!h.__iconfont__svg__cssinject__){h.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}o=function(){var a,l=document.createElement("div");l.innerHTML=h._iconfont_svg_string_5200172,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(a=document.body).firstChild?d(l,a.firstChild):a.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(o,0):(v=function(){document.removeEventListener("DOMContentLoaded",v,!1),o()},document.addEventListener("DOMContentLoaded",v,!1)):document.attachEvent&&(t=o,i=h.document,c=!1,m(),i.onreadystatechange=function(){"complete"==i.readyState&&(i.onreadystatechange=null,e())})}function e(){c||(c=!0,t())}function m(){try{i.documentElement.doScroll("left")}catch(a){return void setTimeout(m,50)}e()}})(window); \ No newline at end of file diff --git a/ui/src/components/global/mk-status-label/index.vue b/ui/src/components/global/mk-status-label/index.vue index f703c116761..571f48c4067 100644 --- a/ui/src/components/global/mk-status-label/index.vue +++ b/ui/src/components/global/mk-status-label/index.vue @@ -1,9 +1,8 @@