From 8a1effedfcd5cc9c37839ef72170b1459d430599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92?= Date: Wed, 27 Aug 2025 20:36:31 +0800 Subject: [PATCH] 1 --- .env.development | 2 +- .env.production | 2 +- src/api/system/instruction.js | 11 ++++ src/router/index.js | 15 +++++ src/views/system/jd-instruction/index.vue | 77 +++++++++++++++++++++++ 5 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 src/api/system/instruction.js create mode 100644 src/views/system/jd-instruction/index.vue diff --git a/.env.development b/.env.development index 06cec22..65c718e 100644 --- a/.env.development +++ b/.env.development @@ -9,6 +9,6 @@ VUE_APP_BASE_API = '' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true -VUE_APP_BASE_API = 'http://134.175.126.60:30313' +# VUE_APP_BASE_API = 'http://134.175.126.60:30313' # VUE_APP_BASE_API = 'http://127.0.0.1:30313' port = 8888 diff --git a/.env.production b/.env.production index 6ab0034..32725fc 100644 --- a/.env.production +++ b/.env.production @@ -7,5 +7,5 @@ ENV = 'production' # Jarvis/生产环境 VUE_APP_BASE_API = '' -VUE_APP_BASE_API = 'http://134.175.126.60:30313' +# VUE_APP_BASE_API = 'http://134.175.126.60:30313' port = 8888 diff --git a/src/api/system/instruction.js b/src/api/system/instruction.js new file mode 100644 index 0000000..9c9169d --- /dev/null +++ b/src/api/system/instruction.js @@ -0,0 +1,11 @@ +import request from '@/utils/request' + +export function executeInstruction(data) { + return request({ + url: '/jarvis/instruction/execute', + method: 'post', + data + }) +} + + diff --git a/src/router/index.js b/src/router/index.js index d2fd14f..c855082 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -131,6 +131,21 @@ export const constantRoutes = [ } ] }, + { + path: '/jd-instruction', + component: Layout, + redirect: 'noredirect', + name: 'JdInstruction', + meta: { title: '京东指令台', icon: 'guide' }, + children: [ + { + path: 'index', + component: () => import('@/views/system/jd-instruction/index'), + name: 'JdInstructionIndex', + meta: { title: '指令执行', icon: 'form' } + } + ] + }, { path: '/sloworder', component: Layout, diff --git a/src/views/system/jd-instruction/index.vue b/src/views/system/jd-instruction/index.vue new file mode 100644 index 0000000..63da940 --- /dev/null +++ b/src/views/system/jd-instruction/index.vue @@ -0,0 +1,77 @@ + + + + + + +