diff --git a/frontend/src/api/variables.ts b/frontend/src/api/variables.ts new file mode 100644 index 00000000..41ff445b --- /dev/null +++ b/frontend/src/api/variables.ts @@ -0,0 +1,9 @@ +import { request } from '@/utils/request' + +export const variablesApi = { + save: (data: any) => request.post('/sys_variable/save', data), + listAll: () => request.post('/sys_variable/listAll'), + listPage: (pageNum: any, pageSize: any, data: any) => + request.post(`/sys_variable/listPage/${pageNum}/${pageSize}`, data), + delete: (data: any) => request.post(`/sys_variable/delete`, data), +} diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index 4c4b933a..a1c7b1aa 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -7,6 +7,23 @@ "AI Model Configuration": "AI Model Config", "Details": "Details" }, + "variables": { + "system_variables": "System Variables", + "system": "System", + "search_variables": "Search Variables", + "add_variable": "Add Variable", + "variable_name": "Variable Name", + "variable_type": "Variable Type", + "variable_value": "Variable Value", + "edit_variable": "Edit Variable", + "no_variables_yet": "No Variables Yet", + "please_enter_value": "Please Enter Value", + "date": "Date", + "start_date": "Start Date", + "end_date": "End Date", + "enter_variable_name": "Please Enter Variable Name", + "enter_variable_value": "Please Enter Variable Value" + }, "sync": { "integration": "Platform integration needs to be enabled.", "the_existing_user": "If the user already exists, overwrite the existing user.", diff --git a/frontend/src/i18n/ko-KR.json b/frontend/src/i18n/ko-KR.json index 52d890b3..0f1f6360 100644 --- a/frontend/src/i18n/ko-KR.json +++ b/frontend/src/i18n/ko-KR.json @@ -23,6 +23,23 @@ "continue_syncing": "동기화 계속", "return_to_view": "화면으로 돌아가기" }, + "variables": { + "system_variables": "시스템 변수", + "system": "체계", + "search_variables": "변수 검색", + "add_variable": "변수 추가", + "variable_name": "변수 이름", + "variable_type": "변수 유형", + "variable_value": "변수 값", + "edit_variable": "변수 편집", + "no_variables_yet": "아직 변수가 없습니다", + "please_enter_value": "값을 입력하세요", + "date": "날짜", + "start_date": "시작일", + "end_date": "종료일", + "enter_variable_name": "변수 이름을 입력하세요", + "enter_variable_value": "변수 값을 입력하세요" + }, "parameter": { "execution_details": "실행 세부 정보", "overview": "개요", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index 6171605c..e92f92b1 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -23,6 +23,23 @@ "continue_syncing": "继续同步", "return_to_view": "返回查看" }, + "variables": { + "system_variables": "系统变量", + "system": "系统", + "search_variables": "搜索变量", + "add_variable": "添加变量", + "variable_name": "变量名称", + "variable_type": "变量类型", + "variable_value": "变量值", + "edit_variable": "编辑变量", + "no_variables_yet": "暂无变量", + "please_enter_value": "请输入数值", + "date": "日期", + "start_date": "开始日期", + "end_date": "结束日期", + "enter_variable_name": "请输入变量名称", + "enter_variable_value": "请输入变量值" + }, "parameter": { "execution_details": "执行详情", "overview": "概览", diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index f7b8d38d..b1c26675 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -12,6 +12,7 @@ import Model from '@/views/system/model/Model.vue' // import Embedded from '@/views/system/embedded/index.vue' // import SetAssistant from '@/views/system/embedded/iframe.vue' import SystemEmbedded from '@/views/system/embedded/Page.vue' +import Variables from '@/views/system/variables/index.vue' import assistantTest from '@/views/system/embedded/Test.vue' import assistant from '@/views/embedded/index.vue' @@ -219,6 +220,12 @@ export const routes = [ component: Parameter, meta: { title: t('parameter.parameter_configuration') }, }, + { + path: 'variables', + name: 'variables', + component: Variables, + meta: { title: t('variables.system_variables') }, + }, { path: 'authentication', name: 'authentication', diff --git a/frontend/src/views/chat/QuickQuestion.vue b/frontend/src/views/chat/QuickQuestion.vue index 2f173b6d..5e044d90 100644 --- a/frontend/src/views/chat/QuickQuestion.vue +++ b/frontend/src/views/chat/QuickQuestion.vue @@ -149,7 +149,7 @@ const props = withDefaults( cursor: pointer; margin-left: 8px; &:hover { - color: #189e7a; + color: var(--ed-color-primary-15-d, #189e7a); background: #1f23291a; } } diff --git a/frontend/src/views/system/variables/index.vue b/frontend/src/views/system/variables/index.vue new file mode 100644 index 00000000..7c35f6e1 --- /dev/null +++ b/frontend/src/views/system/variables/index.vue @@ -0,0 +1,773 @@ + + + + + +