浏览代码

外援修改

yinbangzhong 2 年之前
父节点
当前提交
ac56b0e4d3
共有 8 个文件被更改,包括 635 次插入497 次删除
  1. 34 0
      .vscode/settings.json
  2. 134 225
      package-lock.json
  3. 10 0
      package.json
  4. 2 1
      src/config/settings.json
  5. 41 0
      src/router/routes/modules/agent.ts
  6. 45 0
      src/views/agent/resource/index.vue
  7. 361 271
      yarn.lock
  8. 8 0
      文档

+ 34 - 0
.vscode/settings.json

@@ -0,0 +1,34 @@
+{
+    "i18n-ally.localesPaths": [
+        "src/locale",
+        "src/components/message-box/locale",
+        "src/views/login/locale",
+        "src/views/authority/organization/locale",
+        "src/views/authority/resource/locale",
+        "src/views/authority/role/locale",
+        "src/views/authority/users/locale",
+        "src/views/dashboard/monitor/locale",
+        "src/views/dashboard/workplace/locale",
+        "src/views/dmx/agent/locale",
+        "src/views/dmx/IntelligentAgent/locale",
+        "src/views/dmx/model/locale",
+        "src/views/dmx/knowledgeLib/locale",
+        "src/views/dmx/setting/locale",
+        "src/views/exception/403/locale",
+        "src/views/exception/404/locale",
+        "src/views/exception/500/locale",
+        "src/views/form/group/locale",
+        "src/views/form/step/locale",
+        "src/views/list/card/locale",
+        "src/views/list/search-table/locale",
+        "src/views/profile/basic/locale",
+        "src/views/result/error/locale",
+        "src/views/result/success/locale",
+        "src/views/user/account/locale",
+        "src/views/user/info/locale",
+        "src/views/user/menu/locale",
+        "src/views/user/setting/locale",
+        "src/views/visualization/data-analysis/locale",
+        "src/views/visualization/multi-dimension-data-analysis/locale"
+    ]
+}

文件差异内容过多而无法显示
+ 134 - 225
package-lock.json


+ 10 - 0
package.json

@@ -32,20 +32,30 @@
     "@vueuse/core": "^9.3.0",
     "arco-design-pro-vue": "^2.7.3",
     "axios": "^0.24.0",
+    "d3": "^4.12.0",
     "dayjs": "^1.11.5",
+    "dimple": "github:PMSI-AlignAlytics/dimple#2.3.0",
+    "docx-preview": "^0.1.8",
     "echarts": "^5.4.0",
     "eventsource-parser": "^2.0.1",
+    "exceljs": "^4.3.0",
+    "handsontable": "^11.1.0",
+    "jquery": "^3.2.1",
     "js-base64": "^3.7.5",
     "jsencrypt": "^3.3.2",
+    "jszip": "^3.1.5",
     "lodash": "^4.17.21",
     "mitt": "^3.0.0",
     "moment": "^2.30.1",
     "nprogress": "^0.2.0",
+    "pdfjs-dist": "^2.12.313",
     "pinia": "^2.0.23",
     "pinia-plugin-persistedstate": "^3.2.1",
+    "qs": "^6.13.0",
     "query-string": "^8.0.3",
     "sass": "^1.77.8",
     "sortablejs": "^1.15.0",
+    "v-viewer": "^3.0.11",
     "vue": "^3.2.40",
     "vue-clipboard3": "^2.0.0",
     "vue-echarts": "^6.2.3",

+ 2 - 1
src/config/settings.json

@@ -13,5 +13,6 @@
   "device": "desktop",
   "tabBar": false,
   "menuFromServer": false,
-  "serverMenu": []
+  "serverMenu": [],
+  "RAGFlowUrl": "" // 如RAGFlow 部署的在其他IP地址, 需要填写此地址, 不填默认为当前项所部署的IP地址
 }

+ 41 - 0
src/router/routes/modules/agent.ts

@@ -0,0 +1,41 @@
+import { DEFAULT_LAYOUT } from '../base';
+import { AppRouteRecordRaw } from '../types';
+
+const agent: AppRouteRecordRaw = {
+  path: '/agent',
+  name: 'agent',
+  component: DEFAULT_LAYOUT,
+  meta: {
+    locale: 'Agent',
+    requiresAuth: true,
+    icon: 'icon-robot',
+    order: 3.5,
+    hideInMenu: false,
+  },
+  children: [
+    {
+      path: '/agent',
+      name: 'agent',
+      component: () => import('@/views/agent/resource/index.vue'),
+      meta: {
+        requiresAuth: true,
+        hideInMenu: true,
+        roles: ['*'],
+      },
+    },
+  ],
+  //   children:[
+  //     {
+  //         path: '/model',
+  //         name: 'model',
+  //         component: () => import('@/views/dmx/model/index.vue'),
+  //         meta: {
+  //             requiresAuth: true,
+  //             hideInMenu:true,
+  //             roles: ['*'],
+  //         },
+  //     },
+  // ]
+};
+
+export default agent;

+ 45 - 0
src/views/agent/resource/index.vue

@@ -0,0 +1,45 @@
+<template>
+  <div class="container">
+    <Breadcrumb :items="['Agent', '配置']" />
+    <div class="iframe-box">
+      <iframe :src="url" height="100%" width="100%" frameborder="0"></iframe>
+    </div>
+  </div>
+</template>
+
+<script lang="ts" setup>
+import defaultSettings from "@/config/settings.json";
+
+import { onBeforeMount, ref } from "vue";
+
+const url = ref("");
+
+onBeforeMount(() => {
+  url.value = `${
+    defaultSettings.RAGFlowUrl ? defaultSettings.RAGFlowUrl : window.location.origin
+  }/sub/RAGFlow/flow?${localStorage.Authorization}`;
+});
+</script>
+
+<script lang="ts">
+export default {
+  name: "Agent",
+};
+</script>
+
+<style scoped lang="less">
+.container {
+  padding: 0 20px 20px 20px;
+  :deep(.arco-list-content) {
+    overflow-x: hidden;
+  }
+
+  :deep(.arco-card-meta-title) {
+    font-size: 14px;
+  }
+}
+.iframe-box {
+  width: 100%;
+  height: calc(100vh - 176px);
+}
+</style>

文件差异内容过多而无法显示
+ 361 - 271
yarn.lock


+ 8 - 0
文档

@@ -0,0 +1,8 @@
+Agent 内嵌页面项目,打包流程
+
+1: 
+如果RAGFlow部署的地址, 和当前项目所部署的地址不同 那么需要
+再打包前  把src\config\settings.json下的,   RAGFlowUrl 地址修改为RAGFlow项目部署的地址, 
+例如部署的地址为  http://10.10.10.10 , 那么 RAGFlowUrl: "http://10.10.10.10",
+如果RAGFlow部署的地址和当前项目所部署的地址IP地址一样 那么RAGFlowUrl需要设置为"" (空 string)
+2: 打包(npm run build) , 获取dist 文件, 给后台部署用;

部分文件因为文件数量过多而无法显示