From b2c76aa2c75bf2c75db530ad722d32b3533acca5 Mon Sep 17 00:00:00 2001 From: hyx Date: Mon, 29 May 2023 13:00:28 +0800 Subject: [PATCH] =?UTF-8?q?CN-1016=20=20=E7=9F=A5=E8=AF=86=E5=BA=93?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=8D=A1=E7=89=87=E5=92=8Ctable=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/config.js | 7 +- .../views/setting/knowledgeBase.scss | 78 +++- .../setting/KnowledgeBaseTableForRow.vue | 73 ++-- .../setting/knowledgeBaseTableForCard.vue | 53 ++- src/mixins/data-list.js | 30 +- src/mixins/table.js | 17 + src/utils/api.js | 4 +- src/utils/constants.js | 91 ++++- src/utils/http.js | 15 + src/views/setting/KnowledgeBase.vue | 93 ++++- src/views/setting/KnowledgeBaseForm.vue | 341 ++++++++++++------ src/views/setting/KnowledgeFilter.vue | 268 ++++++++++---- 12 files changed, 779 insertions(+), 291 deletions(-) diff --git a/public/config.js b/public/config.js index 3d59b49f..88758d4d 100644 --- a/public/config.js +++ b/public/config.js @@ -1,4 +1,5 @@ var BASE_CONFIG = { - baseUrl: 'http://192.168.44.54:8090/', - version: '2.0.2021.05.11.19.43' -} + baseUrl: 'http://192.168.44.54:8091/', + version: '23.06', + apiVersion:'v1' +} \ No newline at end of file diff --git a/src/assets/css/components/views/setting/knowledgeBase.scss b/src/assets/css/components/views/setting/knowledgeBase.scss index d5f3d62f..8d607570 100644 --- a/src/assets/css/components/views/setting/knowledgeBase.scss +++ b/src/assets/css/components/views/setting/knowledgeBase.scss @@ -95,8 +95,29 @@ } } .filter__body { - padding: 0 0 0 20px; - + padding: 3px 0 0 20px; + .el-tree { + font-size:14px; + color: #353636; + font-weight: 400; + .el-tree-node { + .el-tree-node__content { + margin-bottom: 2px; + .custom-tree-node { + flex: 1; + display: flex; + align-items: center; + justify-content: space-between; + padding-right: 20px; + font-size: 14px; + font-weight: 400; + .count-tree-node { + color: #717171; + } + } + } + } + } .el-checkbox-group { display: flex; flex-direction: column; @@ -113,6 +134,15 @@ border-radius: 2px; } } + .el-checkbox__input.is-indeterminate .el-checkbox__inner { + border-color: #38ACD2; + background: #38ACD2; + border-radius: 2px; + } + .el-checkbox__input.is-indeterminate .el-checkbox__inner:before { + background: #FFFFFF; + border-radius: 1px; + } .el-checkbox__input.is-checked { .el-checkbox__inner { border-color: #38ACD2; @@ -526,16 +556,34 @@ padding-right:16px; padding-bottom:20px; .card-type { - height:20px; - width: fit-content; - padding-left:11px; - padding-right:11px; - background: rgba(56,172,210,0.10); - box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02); - border-radius: 10px; - font-size: 12px; - color: #046ECA; - font-weight: 400; + display:flex; + flex-direction:row; + .card-category { + font-size: 12px; + line-height: 16px; + color: #38ACD2; + font-weight: 400; + border: 1px solid rgba(56,172,210,1); + height:20px; + width: fit-content; + padding-left:11px; + padding-right:11px; + box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02); + border-radius: 10px; + margin-right:4px; + } + .card-source { + height:20px; + width: fit-content; + padding-left:11px; + padding-right:11px; + background: rgba(56,172,210,0.10); + box-shadow: 0 2px 4px 0 rgba(51,51,51,0.02); + border-radius: 10px; + font-size: 12px; + color: #046ECA; + font-weight: 400; + } } .card-enable { } @@ -576,6 +624,12 @@ padding-left: 20px; overflow: auto; + .enable-form__mt { + .el-form { + margin-top:6px; + } + } + .el-steps { margin-left: 10px; diff --git a/src/components/table/setting/KnowledgeBaseTableForRow.vue b/src/components/table/setting/KnowledgeBaseTableForRow.vue index 1c544124..569131dd 100644 --- a/src/components/table/setting/KnowledgeBaseTableForRow.vue +++ b/src/components/table/setting/KnowledgeBaseTableForRow.vue @@ -33,21 +33,24 @@