mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 19:48:18 +08:00
feat: 支持系统变量
This commit is contained in:
@@ -16,6 +16,7 @@ i18n_menu.datasource=datasource
|
||||
i18n_menu.user=User
|
||||
i18n_menu.org=Organization
|
||||
i18n_menu.auth=Authority
|
||||
i18n_menu.sysVariable=System Variables
|
||||
i18n_field_name_repeat=has duplicate field names:
|
||||
i18n_pid_not_eq_id=Target is error
|
||||
i18n_ds_name_exists=Name is exists
|
||||
|
||||
@@ -26,6 +26,7 @@ i18n_menu.task=\u4EFB\u52A1\u7BA1\u7406
|
||||
i18n_menu.embedded=\u5D4C\u5165\u5F0F\u7BA1\u7406
|
||||
i18n_menu.platform=\u5E73\u53F0\u5BF9\u63A5
|
||||
i18n_menu.appearance=\u5916\u89C2\u914D\u7F6E
|
||||
i18n_menu.sysVariable=\u7cfb\u7edf\u53d8\u91cf
|
||||
i18n_field_name_repeat=\u6709\u91CD\u590D\u5B57\u6BB5\u540D\uFF1A
|
||||
i18n_pid_not_eq_id=\u79FB\u52A8\u76EE\u6807\u4E0D\u80FD\u662F\u81EA\u5DF1\u6216\u5B50\u76EE\u5F55
|
||||
i18n_ds_name_exists=\u8BE5\u5206\u7EC4\u4E0B\u540D\u79F0\u91CD\u590D
|
||||
|
||||
@@ -17,6 +17,7 @@ i18n_menu.datasource=\u6578\u64DA\u6E90
|
||||
i18n_menu.user=\u7528\u6236\u7BA1\u7406
|
||||
i18n_menu.org=\u7D44\u7E54\u7BA1\u7406
|
||||
i18n_menu.auth=\u6B0A\u9650\u914D\u7F6E
|
||||
i18n_menu.sysVariable=\u7cfb\u7edf\u53d8\u91cf
|
||||
i18n_field_name_repeat=\u5177\u6709\u91CD\u8907\u7684\u6B04\u4F4D\u540D\u7A31\uFF1A
|
||||
i18n_pid_not_eq_id=\u79FB\u52D5\u76EE\u6A19\u4E0D\u80FD\u662F\u81EA\u5DF1\u6216\u5B50\u76EE\u9304
|
||||
i18n_ds_name_exists=\u8A72\u5206\u7D44\u4E0B\u540D\u7A31\u91CD\u5FA9
|
||||
|
||||
21
core/core-frontend/src/api/variable.ts
Normal file
21
core/core-frontend/src/api/variable.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export const variableCreateApi = data => request.post({ url: '/sysVariable/create', data })
|
||||
|
||||
export const variableEditApi = data => request.post({ url: '/sysVariable/edit', data })
|
||||
|
||||
export const variableDetailApi = id => request.get({ url: '/sysVariable/detail/' + id })
|
||||
|
||||
export const variableDeletelApi = id => request.get({ url: '/sysVariable/delete/' + id })
|
||||
|
||||
export const searchVariableApi = data => request.post({ url: '/sysVariable/query', data })
|
||||
|
||||
export const valueSelectedForVaribleApi = (page: number, limit: number, data) =>
|
||||
request.post({ url: `/sysVariable/value/selected/${page}/${limit}`, data })
|
||||
|
||||
export const variableValueCreateApi = data =>
|
||||
request.post({ url: '/sysVariable/value/create', data })
|
||||
|
||||
export const variableValueDeletelApi = id => request.get({ url: '/sysVariable/value/delete/' + id })
|
||||
|
||||
export const variableValueEditApi = data => request.post({ url: '/sysVariable/value/edit', data })
|
||||
@@ -2304,5 +2304,9 @@ export default {
|
||||
last_status_running: '运行中',
|
||||
last_status_fail: '失败',
|
||||
last_status_success: '成功'
|
||||
},
|
||||
variable: {
|
||||
give_up: 's',
|
||||
save_apply: '保存并应用'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user