From bd65157f1baceb3a7440db02f380441d55f13af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Fri, 6 May 2022 22:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=9A=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/commonlang.js | 78 ++++++ src/views/system/commonLang/index.vue | 389 ++++++++++++++++++++++++++ 2 files changed, 467 insertions(+) create mode 100644 src/api/system/commonlang.js create mode 100644 src/views/system/commonLang/index.vue diff --git a/src/api/system/commonlang.js b/src/api/system/commonlang.js new file mode 100644 index 0000000..d7c99b4 --- /dev/null +++ b/src/api/system/commonlang.js @@ -0,0 +1,78 @@ +import request from '@/utils/request' + +/** + * 多语言配置分页查询 + * @param {查询条件} data + */ +export function listCommonLang(query) { + return request({ + url: 'system/CommonLang/list', + method: 'get', + params: query, + }) +} +/** + * 多语言配置查询 + * @param {查询条件} data + */ +export function listLangByLocale(locale) { + return request({ + url: 'system/CommonLang/list/' + locale, + method: 'get', + }) +} + +/** + * 新增多语言配置 + * @param data + */ +export function addCommonLang(data) { + return request({ + url: 'system/CommonLang', + method: 'post', + data: data, + }) +} + +/** + * 修改多语言配置 + * @param data + */ +export function updateCommonLang(data) { + return request({ + url: 'system/CommonLang', + method: 'PUT', + data: data, + }) +} + +/** + * 获取多语言配置详情 + * @param {Id} + */ +export function getCommonLang(id) { + return request({ + url: 'system/CommonLang/' + id, + method: 'get' + }) +} + +/** + * 删除多语言配置 + * @param {主键} pid + */ +export function delCommonLang(pid) { + return request({ + url: 'system/CommonLang/' + pid, + method: 'delete' + }) +} + +// 导出多语言配置 +export function exportCommonLang(query) { + return request({ + url: 'system/CommonLang/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/system/commonLang/index.vue b/src/views/system/commonLang/index.vue new file mode 100644 index 0000000..e1a5034 --- /dev/null +++ b/src/views/system/commonLang/index.vue @@ -0,0 +1,389 @@ + + + +