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 @@ + + + +