diff --git a/vue-fastapi-backend/.env.dev b/vue-fastapi-backend/.env.dev index 54276fc..9dd107e 100644 --- a/vue-fastapi-backend/.env.dev +++ b/vue-fastapi-backend/.env.dev @@ -4,7 +4,7 @@ APP_ENV = 'dev' # 应用名称 APP_NAME = 'RuoYi-FastAPI' # 应用代理路径 -APP_ROOT_PATH = '/dev-api' +APP_ROOT_PATH = '/default-api' # 应用主机 APP_HOST = '127.0.0.1' # 应用端口 @@ -33,20 +33,20 @@ JWT_REDIS_EXPIRE_MINUTES = 30 # 数据库类型,可选的有'mysql'、'postgresql',默认为'mysql' DB_TYPE = 'mysql' # 数据库主机 -# DB_HOST = '192.168.0.3' -DB_HOST = '127.0.0.1' +DB_HOST = '192.168.0.3' +#DB_HOST = '47.113.147.166' # 数据库端口 DB_PORT = 3306 # 数据库用户名 -# DB_USERNAME = 'admin' -DB_USERNAME = 'root' +DB_USERNAME = 'admin' +#DB_USERNAME = 'dbf' # 数据库密码 -# DB_PASSWORD = '123456' -DB_PASSWORD = 'root' +DB_PASSWORD = '123456' +#DB_PASSWORD = '1q2w3e4r' # 数据库名称 -# DB_DATABASE = 'vue_faseapi' -DB_DATABASE = 'ruoyi-fastapi' +DB_DATABASE = 'vue_faseapi' +#DB_DATABASE = 'vfa_test_0115' # 是否开启sqlalchemy日志 DB_ECHO = true @@ -61,8 +61,8 @@ DB_POOL_TIMEOUT = 30 # -------- Redis配置 -------- # Redis主机 -# REDIS_HOST = '192.168.0.3' -REDIS_HOST = '127.0.0.1' +REDIS_HOST = '192.168.0.3' +#REDIS_HOST = '127.0.0.1' # Redis端口 REDIS_PORT = 6379 @@ -76,11 +76,14 @@ REDIS_DATABASE = 2 # -------- minio配置 -------- # minio主机 -MINIO_ADDRESS = '192.168.0.3:9000' +MINIO_ADDRESS = '47.121.207.11:9000' +# MINIO_ADDRESS = '192.168.0.3:9000' # minio用户 -MINIO_ADMIN = 'admin' +MINIO_ADMIN = 'WFpLqkCgjoQNsnu6t7FO' +# MINIO_ADMIN = 'admin' # minio密码 -MINIO_PASSWORD = 'admin123' +MINIO_PASSWORD = 'gPRViF52Or5Fyvr0PCZHuIxZGfrTpNynajMiEjBZ' +# MINIO_PASSWORD = 'admin123' # 访问dolphinscheduler的接口地址 -DS_SERVER_URL= http://47.121.207.11:12345 \ No newline at end of file +DS_SERVER_URL= http://localhost:12345 \ No newline at end of file diff --git a/vue-fastapi-frontend/.env.development b/vue-fastapi-frontend/.env.development index 883af42..c8d69d2 100644 --- a/vue-fastapi-frontend/.env.development +++ b/vue-fastapi-frontend/.env.development @@ -5,4 +5,4 @@ VITE_APP_TITLE = 大模型管理系统 VITE_APP_ENV = 'development' # vfadmin管理系统/开发环境 -VITE_APP_BASE_API = '/dev-api' +VITE_APP_BASE_API = '/default-api' diff --git a/vue-fastapi-frontend/.env.production b/vue-fastapi-frontend/.env.production index e3c59e1..8483265 100644 --- a/vue-fastapi-frontend/.env.production +++ b/vue-fastapi-frontend/.env.production @@ -5,7 +5,7 @@ VITE_APP_TITLE = 大模型管理系统 VITE_APP_ENV = 'production' # vfadmin管理系统/生产环境 -VITE_APP_BASE_API = '/prod-api' +VITE_APP_BASE_API = '/default-api' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip \ No newline at end of file diff --git a/vue-fastapi-frontend/.env.staging b/vue-fastapi-frontend/.env.staging index 701c891..ab1cb86 100644 --- a/vue-fastapi-frontend/.env.staging +++ b/vue-fastapi-frontend/.env.staging @@ -5,7 +5,7 @@ VITE_APP_TITLE = 大模型管理系统 VITE_APP_ENV = 'staging' # vfadmin管理系统/生产环境 -VITE_APP_BASE_API = '/stage-api' +VITE_APP_BASE_API = '/default-api' # 是否在打包时开启压缩,支持 gzip 和 brotli VITE_BUILD_COMPRESS = gzip \ No newline at end of file diff --git a/vue-fastapi-frontend/package.json b/vue-fastapi-frontend/package.json index e981d5b..99c3f78 100644 --- a/vue-fastapi-frontend/package.json +++ b/vue-fastapi-frontend/package.json @@ -19,6 +19,11 @@ "@ant-design/icons-vue": "^7.0.1", "@antv/g2plot": "^2.4.31", "@antv/g6": "^4.8.24", + "@antv/x6": "^2.18.1", + "@antv/x6-plugin-clipboard": "^2.1.6", + "@antv/x6-plugin-keyboard": "^2.2.3", + "@antv/x6-plugin-selection": "^2.2.2", + "@antv/x6-plugin-stencil": "^2.1.5", "@element-plus/icons-vue": "2.3.1", "@vueup/vue-quill": "1.2.0", "@vueuse/core": "10.11.0", diff --git a/vue-fastapi-frontend/src/api/flow/flow.js b/vue-fastapi-frontend/src/api/flow/flow.js index 5249b41..77bb46c 100644 --- a/vue-fastapi-frontend/src/api/flow/flow.js +++ b/vue-fastapi-frontend/src/api/flow/flow.js @@ -9,6 +9,14 @@ export function getApprovalList(data) { }) } +export function getflowList(data) { + return request({ + url: '/default-api/approval/list', + method: 'get', + params: {module:data} + }) +} + export function getWaitingFlowCount() { return request({ url: '/default-api/approval/waitingTotal', diff --git a/vue-fastapi-frontend/src/layout/components/AppMain.vue b/vue-fastapi-frontend/src/layout/components/AppMain.vue index 40412f5..664240d 100644 --- a/vue-fastapi-frontend/src/layout/components/AppMain.vue +++ b/vue-fastapi-frontend/src/layout/components/AppMain.vue @@ -76,10 +76,11 @@ function closeChatDiv(){ \ No newline at end of file