From e2a0ea3a333e46b22152d1e90356db4d2cda5f66 Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Mon, 29 Sep 2025 14:03:18 +0800 Subject: [PATCH] feat(ai): 新增阿里云百炼知识库工具类 - 添加 KnowledgeBaseUtil 工具类,封装阿里云百炼知识库操作 - 实现文件上传、知识库创建与更新等核心功能 - 支持文件MD5计算、分类管理、索引任务提交与状态查询 - 集成阿里云百炼SDK依赖,版本为2.5.0 - 提供完整的知识库初始化与文件更新流程示例 - 添加文件解析状态轮询与错误处理机制 - 支持知识库中文档的追加导入与旧文档删除功能 --- src/main/resources/templates/febs/views/modules/clothesType/patternList.html | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/clothesType/patternList.html b/src/main/resources/templates/febs/views/modules/clothesType/patternList.html index 5134a83..f210610 100644 --- a/src/main/resources/templates/febs/views/modules/clothesType/patternList.html +++ b/src/main/resources/templates/febs/views/modules/clothesType/patternList.html @@ -1,4 +1,4 @@ -<div class="layui-fluid layui-anim febs-anim" id="febs-pattern" lay-title="图案管理"> +<div class="layui-fluid layui-anim febs-anim" id="febs-pattern" lay-title="正面图案管理"> <div class="layui-row febs-container"> <div class="layui-col-md12"> <div class="layui-card"> @@ -52,16 +52,16 @@ <script type="text/html" id="patternOption"> <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="patternInfo:view" lay-event="patternInfoEvent">编辑</button> </script> -<script type="text/html" id="patternTypeOption"> - {{# - var type = { - 1: {title: '文字', color: 'green'}, - 2: {title: '图案', color: 'blue'}, - 3: {title: '文字和图案', color: 'red'}, - }[d.type]; - }} - <span class="layui-badge febs-bg-{{type.color}}">{{ type.title }}</span> -</script> +<!--<script type="text/html" id="patternTypeOption">--> +<!-- {{#--> +<!-- var type = {--> +<!-- 1: {title: '文字', color: 'green'},--> +<!-- 2: {title: '图案', color: 'blue'},--> +<!-- 3: {title: '文字和图案', color: 'red'},--> +<!-- }[d.type];--> +<!-- }}--> +<!-- <span class="layui-badge febs-bg-{{type.color}}">{{ type.title }}</span>--> +<!--</script>--> <!-- 表格操作栏 end --> @@ -156,7 +156,7 @@ {field: 'code', title: '编码', minWidth: 150,align:'center'}, {field: 'orderNum', title: '序号', minWidth: 100,align:'center'}, {field: 'price', title: '价格', minWidth: 150,align:'center'}, - {title: '图案类型', templet: '#patternTypeOption', minWidth: 150,align:'center'}, + // {title: '图案类型', templet: '#patternTypeOption', minWidth: 150,align:'center'}, {field: 'image',title: '小图标', templet: function (d) { return '<a lay-event="seePatternImage">' + -- Gitblit v1.9.1