From a2b2fd65afae496984173a90b772c81d28a992dc Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 19 Feb 2025 11:25:57 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 51 +++++++++++-------- src/views/dictionary/template/browser/tip.vue | 2 +- 2 files changed, 30 insertions(+), 23 deletions(-) diff --git a/src/App.vue b/src/App.vue index d97043f9..e8191337 100644 --- a/src/App.vue +++ b/src/App.vue @@ -219,29 +219,34 @@ export default { } }, handleSave() { - this.$confirm('确定修改当前页面国际化内容?').then(() => { - batchAddOrUpdateFrontInternationalization(this.tableData).then( - async (res) => { - var zhMessages = {}, - enMessages = {} - var Internationalization = await getFrontInternationalizationList() - Vue.prototype.$tl = Internationalization.Result - this.tableData.forEach((v) => { - // zhMessages[v.Description + '_' + v.Code] = v.ValueCN - // enMessages[v.Description + '_' + v.Code] = v.Value - zhMessages[v.Code] = v.ValueCN - enMessages[v.Code] = v.Value - }) - i18n.mergeLocaleMessage('zh', zhMessages) - i18n.mergeLocaleMessage('en', enMessages) - this.drawer = false - this.$message.success('国际化修改成功') - if (this.il8nExternal) { - this.$EventBus.$emit('il8nUpdate') + this.$confirm('确定修改当前页面国际化内容?') + .then(() => { + batchAddOrUpdateFrontInternationalization(this.tableData).then( + async (res) => { + var zhMessages = {}, + enMessages = {} + var Internationalization = + await getFrontInternationalizationList() + Vue.prototype.$tl = Internationalization.Result + this.tableData.forEach((v) => { + // zhMessages[v.Description + '_' + v.Code] = v.ValueCN + // enMessages[v.Description + '_' + v.Code] = v.Value + zhMessages[v.Code] = v.ValueCN + enMessages[v.Code] = v.Value + }) + i18n.mergeLocaleMessage('zh', zhMessages) + i18n.mergeLocaleMessage('en', enMessages) + this.drawer = false + this.$message.success('国际化修改成功') + if (this.il8nExternal) { + this.$EventBus.$emit('il8nUpdate') + } } - } - ) - }) + ) + }) + .catch((err) => { + console.log(err) + }) }, openI18n(ARRAY) { this.tableData = [] @@ -268,6 +273,7 @@ export default { ValueCN: item.ValueCN, State: item.State, Version: item.Version, + InternationalizationType: item.InternationalizationType, } }) this.tableData = Object.assign([], tableData) @@ -300,6 +306,7 @@ export default { ValueCN: null, State: 0, Version: this.$version.Version, + InternationalizationType: 0, }) } }) diff --git a/src/views/dictionary/template/browser/tip.vue b/src/views/dictionary/template/browser/tip.vue index e6907a31..5e380a6e 100644 --- a/src/views/dictionary/template/browser/tip.vue +++ b/src/views/dictionary/template/browser/tip.vue @@ -33,7 +33,7 @@ export default { let browserType = this.getExplore(); let type = browserType.split(": ")[0]; let No = browserType.split(": ")[1].split(".")[0]; - console.log(type, No); + // console.log(type, No); if (type !== "Chrome" && type !== "Edge") { this.tip = this.$t("browser:tip:changeBorwser"); return (this.visible = true); From 493b155678728bfafce806e718a8c1cfbceb7450 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 20 Feb 2025 09:40:58 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=A1=86=E6=8D=A2=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index e8191337..c1498325 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,7 +29,7 @@ direction="rtl" size="80%" > -
+
Date: Thu, 20 Feb 2025 10:07:29 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E9=87=8D=E9=98=85=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E5=88=9D=E5=A7=8B=E5=8C=96=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-panel/attachments/reReading-tracking/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/trials/trials-panel/attachments/reReading-tracking/index.vue b/src/views/trials/trials-panel/attachments/reReading-tracking/index.vue index 97604d92..99343e15 100644 --- a/src/views/trials/trials-panel/attachments/reReading-tracking/index.vue +++ b/src/views/trials/trials-panel/attachments/reReading-tracking/index.vue @@ -10,7 +10,7 @@ v-for="(item,index) of siteOptions" :key="index" :label="item.TrialSiteCode" - :value="item.SiteId" + :value="item.TrialSiteId" /> From b453eede31d7c9b1c21178ffc46097a4cc2c9ef2 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 20 Feb 2025 11:49:06 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8Cpdf=E9=A2=84=E8=A7=88=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index d82ce448..c63cc912 100644 --- a/vue.config.js +++ b/vue.config.js @@ -4,6 +4,7 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin') const WebpackAliyunOss = require('webpack-aliyun-oss') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const CssMinimizerPlugin = require('css-minimizer-webpack-plugin') +const CopyPlugin = require('copy-webpack-plugin') // const TerserWebpackPlugin = require('terser-webpack-plugin') const { resolve } = require('path') const webpack = require('webpack') @@ -11,7 +12,7 @@ const defaultSettings = require('./src/settings.js') const moment = require('moment') var distDate = moment(new Date()).format('YYYY-MM-DD') const name = process.env.NODE_ENV === 'usa' ? 'LILI' : defaultSettings.title || 'IRCIS' // page title - +const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; // eslint-disable-next-line no-undef module.exports = defineConfig({ // lintOnSave: false, @@ -83,8 +84,20 @@ module.exports = defineConfig({ asyncWebAssembly: true }, plugins: [ + new CopyPlugin({ + patterns: [ + { + from: resolve(__dirname, './static'), + to: resolve(__dirname, './dist/static'), + globOptions: { + ignore: ['.*'] + } - process.env.NODE_ENV === 'development' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? function() { } + } + ] + }), + // new BundleAnalyzerPlugin(), + process.env.NODE_ENV === 'development' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? function () { } : new WebpackAliyunOss({ from: ['./dist/**'], dist: process.env.VUE_APP_OSS_PATH + distDate, @@ -171,7 +184,7 @@ module.exports = defineConfig({ // 生成文件的最大体积 maxAssetSize: 3000000000, // 只给出js的性能提示 - assetFilter: function(assetFileName) { + assetFilter: function (assetFileName) { return assetFileName.endsWith('.js') } }