From ced1be74b3ccec5a600b11bad27afd2242773b31 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 27 Jun 2024 16:25:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E5=AE=B6=E5=8C=96=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E3=80=81=E8=BF=AD=E4=BB=A3=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E4=BE=9B=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/admin.js | 16 + .../system/i18n/components/BatchAddForm.vue | 235 +++++++----- src/views/system/i18n/components/I18nForm.vue | 191 +++++++--- src/views/system/i18n/index.vue | 360 ++++++++++++------ 4 files changed, 543 insertions(+), 259 deletions(-) diff --git a/src/api/admin.js b/src/api/admin.js index 361ec37f..c03b0d81 100644 --- a/src/api/admin.js +++ b/src/api/admin.js @@ -277,3 +277,19 @@ export function batchAddInternationalization(param) { data: param }) } + +// 国际化获取迭代列表 +export function getPublishVersionSelect() { + return request({ + url: `/PublishLog/getPublishVersionSelect`, + method: 'get', + }) +} +// 国际化批量更新 +export function batchUpdateInternationalInfo(data) { + return request({ + url: `/Internationalization/batchUpdateInternationalInfo`, + method: 'put', + data + }) +} diff --git a/src/views/system/i18n/components/BatchAddForm.vue b/src/views/system/i18n/components/BatchAddForm.vue index f8e89aa0..b20bc815 100644 --- a/src/views/system/i18n/components/BatchAddForm.vue +++ b/src/views/system/i18n/components/BatchAddForm.vue @@ -6,122 +6,162 @@ v-loading="loading" :model="form" size="small" + :rules="rules" > {{ item.label }} + >{{ item.label }} {{ item.label }} + >{{ item.label }} - - + + + + + + + - + - + - + - + + + + - diff --git a/src/views/system/i18n/components/I18nForm.vue b/src/views/system/i18n/components/I18nForm.vue index 68ff924d..7e8150d0 100644 --- a/src/views/system/i18n/components/I18nForm.vue +++ b/src/views/system/i18n/components/I18nForm.vue @@ -9,147 +9,216 @@ label-width="130px" size="small" > - + {{ item.label }} + >{{ item.label }} - + - + - + - + - {{ item.label }} + >{{ item.label }} + + + + + + + + + diff --git a/src/views/system/i18n/index.vue b/src/views/system/i18n/index.vue index 2606c775..5ba45484 100644 --- a/src/views/system/i18n/index.vue +++ b/src/views/system/i18n/index.vue @@ -7,11 +7,11 @@ v-model="searchData.InternationalizationType" clearable filterable - style="width:130px;" + style="width: 130px" > @@ -19,10 +19,10 @@ @@ -30,7 +30,7 @@ v-model="searchData.Code" size="small" clearable - style="width:130px;" + style="width: 130px" /> @@ -38,27 +38,55 @@ v-model="searchData.ValueCN" size="small" clearable - style="width:130px;" + style="width: 130px" /> - + + + + + + + + + 批量新增 + + 批量更新 + - + @selection-change="handleSelectionChange" + > + @@ -154,16 +210,30 @@ > + + 删除 - - +