Explorar o código

Merge branch 'master' of http://173.18.12.196:3000/front/self-constructing_graph

cynthia-qin hai 1 mes
pai
achega
4eb3739dd8

+ 1 - 1
.env.development

@@ -1,2 +1,2 @@
 NODE_ENV = development
-VITE_API_URL = http://173.18.12.205:8005
+VITE_API_URL = http://192.18.1.235:8000

+ 2 - 2
src/components/CreateKBFileDialog.vue

@@ -269,7 +269,7 @@ const beforeRemove = (uploadFile, uploadFiles) => {
 
 <style lang="less" scoped>
 .add-kb-file-dialog {
-  /deep/ .el-dialog {
+  :deep(.el-dialog) {
     label {
       margin: 20px 0px 10px;
       display: block;
@@ -290,7 +290,7 @@ const beforeRemove = (uploadFile, uploadFiles) => {
     }
   }
 
-  /deep/ .el-form {
+  :deep(.el-form) {
     .input-box {
       &:focus {
         outline: none;

+ 3 - 2
src/components/EditKBDialog.vue

@@ -67,14 +67,15 @@ const updateKB = async (formData) => {
 
 <style lang="less" scoped>
 .edit-kb-dialog {
-  /deep/ .el-dialog {
+  ::v-deep .el-dialog {
     label {
       margin: 20px 0px 10px;
       display: block;
     }
   }
 
-  /deep/ .el-form {
+  ::v-deep .el-form {
+
     .el-textarea__inner,
     .el-input__wrapper {
       background-color: #F1F3F6;

+ 2 - 2
src/components/EditKBFileDialog.vue

@@ -119,7 +119,7 @@ function updateInputBox(e, index, key, valueType = 'string') {
 
 <style lang="less" scoped>
 .add-kb-file-dialog {
-  /deep/ .el-dialog {
+  ::v-deep .el-dialog {
     label {
       margin: 20px 0px 10px;
       display: block;
@@ -140,7 +140,7 @@ function updateInputBox(e, index, key, valueType = 'string') {
     }
   }
 
-  /deep/ .el-form {
+  ::v-deep .el-form {
     .input-box {
       &:focus {
         outline: none;

+ 1 - 1
src/components/LayoutHeader.vue

@@ -134,7 +134,7 @@ onBeforeUnmount(() => {
       border: none;
     }
 
-    /deep/ .el-menu {
+    ::v-deep .el-menu {
       .el-menu-item {
         font-size: 20px;
       }

+ 3 - 3
src/dialogs/OCRDialog.vue

@@ -693,7 +693,7 @@ onMounted(() => {
       // overflow: auto;
       padding-right: 10px;
 
-      /deep/ .el-scrollbar {
+      ::v-deep .el-scrollbar {
         .el-table__header-wrapper {
           position: sticky;
           top: 0;
@@ -768,7 +768,7 @@ onMounted(() => {
     background: white;
     display: inline-block;
 
-    /deep/ .el-input__wrapper {
+    ::v-deep .el-input__wrapper {
       background-color: #EFF1F5;
       border-radius: 10px;
     }
@@ -784,7 +784,7 @@ onMounted(() => {
     display: flex;
     padding: 0px 5px;
 
-    /deep/.el-pagination {
+    ::v-deep.el-pagination {
       background-color: #fff;
       // justify-content: end;
       margin-left: auto;

+ 2 - 2
src/views/KMPlatform/Home/Home.vue

@@ -92,10 +92,10 @@ watchEffect(() => {
 
 function handleModuleClick(path: string) {
   if (/^https?/g.test(path)) {
-    // path = 'http://localhost:8081/home.html'
+    path = 'http://localhost:8081/home.html'
     const newWindow = window.open(path, '_blank');
     timer = setInterval(() => {
-      newWindow?.postMessage({ type: 'login', username: getSessionVar("full_name") }, "*")
+      newWindow?.postMessage({ type: 'login', username: getSessionVar("full_name"), userId: getSessionVar("user_id") }, "*")
     }, 1000)
   } else {
     router.push({ path: path })

+ 8 - 8
src/views/KMPlatform/KGBuilder/ETM/EntityTypeManagement.vue

@@ -60,7 +60,7 @@ function handleNewlyAdd() {
   // margin: 5px;
   background: white;
 
-  /deep/ .el-input__wrapper {
+  ::v-deep .el-input__wrapper {
     background-color: #EFF1F5;
     border-radius: 10px;
   }
@@ -99,19 +99,19 @@ function handleNewlyAdd() {
   footer {}
 
 
-  .elTable /deep/ .el-table__header-wrapper table,
-  .elTable /deep/ .el-table__body-wrapper table {
+  .elTable ::v-deep .el-table__header-wrapper table,
+  .elTable ::v-deep .el-table__body-wrapper table {
     width: 100% !important;
   }
 
-  .elTable /deep/ .el-table__body,
-  .elTable /deep/ .el-table__footer,
-  .elTable /deep/ .el-table__header {
+  .elTable ::v-deep .el-table__body,
+  .elTable ::v-deep .el-table__footer,
+  .elTable ::v-deep .el-table__header {
     table-layout: auto;
   }
 
-  .elTable /deep/ .el-table__empty-block,
-  .elTable /deep/ .el-table__body {
+  .elTable ::v-deep .el-table__empty-block,
+  .elTable ::v-deep .el-table__body {
     width: 100% !important;
   }
 }

+ 13 - 13
src/views/KMPlatform/KnowledgeBase/KBM/KnowledgeBaseManagement.vue

@@ -382,7 +382,7 @@ onMounted(() => {
     margin: 5px;
     background: white;
 
-    /deep/ .el-input__wrapper {
+    :deep(.el-input__wrapper) {
       background-color: @bgColor;
       border-radius: 30px;
     }
@@ -397,11 +397,11 @@ onMounted(() => {
     padding: 5px 20px;
     background-color: #fff;
 
-    /deep/ .el-radio-button__inner {
+    :deep(.el-radio-button__inner) {
       padding: 5px 30px;
     }
 
-    /deep/ .el-radio-button {
+    :deep(.el-radio-button) {
       &:first-child {
         .el-radio-button__inner {
           border-radius: 10px 0px 0px 10px;
@@ -581,23 +581,23 @@ onMounted(() => {
         width: 100%;
       }
 
-      .elTable /deep/ .el-table__header-wrapper table,
-      .elTable /deep/ .el-table__body-wrapper table {
+      .elTable :deep(.el-table__header-wrapper) table,
+      .elTable :deep(.el-table__body-wrapper) table {
         width: 100% !important;
       }
 
-      .elTable /deep/ .el-table__body,
-      .elTable /deep/ .el-table__footer,
-      .elTable /deep/ .el-table__header {
+      .elTable :deep(.el-table__body),
+      .elTable :deep(.el-table__footer),
+      .elTable :deep(.el-table__header) {
         table-layout: auto;
       }
 
-      .elTable /deep/ .el-table__empty-block,
-      .elTable /deep/ .el-table__body {
+      .elTable :deep(.el-table__empty-block),
+      .elTable :deep(.el-table__body) {
         width: 100% !important;
       }
 
-      /deep/.el-table__inner-wrapper {
+      :deep(.el-table__inner-wrapper) {
         .el-table__header-wrapper {
           .el-table__cell {
             background-color: #F2F5F9;
@@ -607,7 +607,7 @@ onMounted(() => {
         }
       }
 
-      /deep/.el-table__body {
+      :deep(.el-table__body) {
         .list-name {
           display: flex;
           align-items: center;
@@ -672,7 +672,7 @@ onMounted(() => {
     display: flex;
     padding: 0px 20px;
 
-    /deep/.el-pagination {
+    :deep(.el-pagination) {
       background-color: #fff;
       // justify-content: end;
       margin-left: auto;

+ 24 - 19
src/views/KMPlatform/KnowledgeBase/KM/KnowledgeManagement.vue

@@ -47,7 +47,7 @@
             <el-table-column prop="creator" label="上传人" />
             <el-table-column prop="created_at" label="上传时间" width="170" />
             <el-table-column prop="" label="状态">
-              <template #default="{ row }">
+              <template #default="{ row, $index }">
                 <div style="display:flex; align-items: center;gap: 10px;">
                   <span v-if="row.status">
                     <i class="circle" type="success"></i>
@@ -200,6 +200,7 @@ function handleBatchEditFiles() {
   const selectionRows = fileTableRef.getSelectionRows()
   if (selectionRows.length == 0) return;
   handleEditFile(toRaw(selectionRows))
+  fileTableRef.clearSelection()
 }
 
 function handleEditFile(data) {
@@ -314,7 +315,7 @@ onMounted(() => {
     background: white;
     display: inline-block;
 
-    /deep/ .el-input__wrapper {
+    :deep(.el-input__wrapper) {
       background-color: @bgColor;
       border-radius: 10px;
     }
@@ -444,24 +445,7 @@ onMounted(() => {
           margin: 0px;
         }
 
-        .el-switch {
-          &:is(.is-checked) {
-            .el-switch__core {
-              background-color: #155AEF;
-            }
-          }
-
-          .el-switch__core {
-            border-radius: 5px;
-            width: 35px;
-            min-width: 0px;
-            // background-color: #155AEF;
-          }
 
-          .el-switch__action {
-            border-radius: 3px;
-          }
-        }
       }
     }
   }
@@ -479,5 +463,26 @@ onMounted(() => {
     }
 
   }
+
+  .switch {
+    :deep(.el-switch) {
+      &:is(.is-checked) {
+        .el-switch__core {
+          background-color: #155AEF;
+        }
+      }
+
+      .el-switch__core {
+        border-radius: 5px;
+        width: 35px;
+        min-width: 0px;
+        // background-color: #155AEF;
+      }
+
+      .el-switch__action {
+        border-radius: 3px;
+      }
+    }
+  }
 }
 </style>