diff --git a/src/api/system/commonlang.js b/src/api/system/commonlang.js
index 28b5b34..d1e6628 100644
--- a/src/api/system/commonlang.js
+++ b/src/api/system/commonlang.js
@@ -8,7 +8,7 @@ export function listCommonLang(query) {
return request({
url: 'system/CommonLang/list',
method: 'get',
- params: query,
+ params: query
})
}
/**
@@ -18,7 +18,7 @@ export function listCommonLang(query) {
export function listLangByLocale(locale) {
return request({
url: 'system/CommonLang/list/' + locale,
- method: 'get',
+ method: 'get'
})
}
@@ -30,7 +30,7 @@ export function addCommonLang(data) {
return request({
url: 'system/CommonLang',
method: 'post',
- data: data,
+ data: data
})
}
@@ -42,7 +42,7 @@ export function updateCommonLang(data) {
return request({
url: 'system/CommonLang',
method: 'PUT',
- data: data,
+ data: data
})
}
@@ -67,7 +67,6 @@ export function getCommonLangByKey(key) {
})
}
-
/**
* 删除多语言配置
* @param {主键} pid
@@ -79,6 +78,18 @@ export function delCommonLang(pid) {
})
}
+/**
+ * 删除多语言配置
+ * @param {key} langkey
+ */
+export function delCommonLangByKey(langkey) {
+ return request({
+ url: 'system/CommonLang/ByKey',
+ method: 'delete',
+ params: { langkey }
+ })
+}
+
// 导出多语言配置
export function exportCommonLang(query) {
return request({
@@ -86,4 +97,4 @@ export function exportCommonLang(query) {
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
index 08d9f1d..719ff71 100644
--- a/src/views/system/commonLang/index.vue
+++ b/src/views/system/commonLang/index.vue
@@ -58,6 +58,23 @@
{{ $t('btn.delete') }}
+
+
+
+ {{ $t('btn.import') }}
+
+
+
+
+
+
+
+
+
+
{{ $t('btn.export') }}
@@ -115,19 +132,14 @@
{{ $t('btn.edit') }}
-
+
+ {{ $t('btn.delete') }}
+
-
+
@@ -174,8 +186,17 @@