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/api/dictionary/dictionary.js b/src/api/dictionary/dictionary.js index cb2aaec8..35748423 100644 --- a/src/api/dictionary/dictionary.js +++ b/src/api/dictionary/dictionary.js @@ -51,4 +51,10 @@ export function batchAddOrUpdateFrontInternationalization(params) { data: params }) } - +// 获取当前版本 +export function getCurrentPublishInfo() { + return request({ + url: `/PublishLog/getCurrentPublishInfo`, + method: 'get' + }) +} diff --git a/src/main.js b/src/main.js index 638ad4af..fda19646 100644 --- a/src/main.js +++ b/src/main.js @@ -3,7 +3,7 @@ import Vue from 'vue' import 'normalize.css/normalize.css' // A modern alternative to CSS resets import ElementUI, { MessageBox } from 'element-ui' -import { getBasicDataAllSelect, getFrontInternationalizationList } from '@/api/dictionary/dictionary' +import { getBasicDataAllSelect, getFrontInternationalizationList, getCurrentPublishInfo } from '@/api/dictionary/dictionary' import { sendMFAEmail } from "@/api/user.js"; import { resetReadingRestTime } from '@/api/trials/reading' // import 'element-ui/lib/theme-chalk/index.css' @@ -186,6 +186,9 @@ async function VueInit() { zhMessages[v.Code] = v.ValueCN enMessages[v.Code] = v.Value }) + // 获取版本信息 + let PublishInfo = await getCurrentPublishInfo(); + Vue.prototype.$version = PublishInfo.Result; // 获取检查部位 Vue.prototype.$getBodyPart = (id) => { return new Promise(async (resolve, reject) => { diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 7584ccc6..4578d267 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -167,7 +167,7 @@ {{ $t("login:title:system_title") }}

{{ $t("login:title:system") }}

-

V1.5.1.001

+

V{{ $version.Version }}

Copyright © {{ new Date().getFullYear() }} 上海展影医疗科技有限公司 版权所有 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 @@ > + + 删除 - -

+