Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
commit
d69d8802cd
53
src/App.vue
53
src/App.vue
|
@ -29,7 +29,7 @@
|
||||||
direction="rtl"
|
direction="rtl"
|
||||||
size="80%"
|
size="80%"
|
||||||
>
|
>
|
||||||
<div style="width: 620px">
|
<div style="width: 800px">
|
||||||
<el-form
|
<el-form
|
||||||
label-width="100px"
|
label-width="100px"
|
||||||
@submit.native.prevent
|
@submit.native.prevent
|
||||||
|
@ -219,29 +219,34 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.$confirm('确定修改当前页面国际化内容?').then(() => {
|
this.$confirm('确定修改当前页面国际化内容?')
|
||||||
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
.then(() => {
|
||||||
async (res) => {
|
batchAddOrUpdateFrontInternationalization(this.tableData).then(
|
||||||
var zhMessages = {},
|
async (res) => {
|
||||||
enMessages = {}
|
var zhMessages = {},
|
||||||
var Internationalization = await getFrontInternationalizationList()
|
enMessages = {}
|
||||||
Vue.prototype.$tl = Internationalization.Result
|
var Internationalization =
|
||||||
this.tableData.forEach((v) => {
|
await getFrontInternationalizationList()
|
||||||
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
Vue.prototype.$tl = Internationalization.Result
|
||||||
// enMessages[v.Description + '_' + v.Code] = v.Value
|
this.tableData.forEach((v) => {
|
||||||
zhMessages[v.Code] = v.ValueCN
|
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN
|
||||||
enMessages[v.Code] = v.Value
|
// enMessages[v.Description + '_' + v.Code] = v.Value
|
||||||
})
|
zhMessages[v.Code] = v.ValueCN
|
||||||
i18n.mergeLocaleMessage('zh', zhMessages)
|
enMessages[v.Code] = v.Value
|
||||||
i18n.mergeLocaleMessage('en', enMessages)
|
})
|
||||||
this.drawer = false
|
i18n.mergeLocaleMessage('zh', zhMessages)
|
||||||
this.$message.success('国际化修改成功')
|
i18n.mergeLocaleMessage('en', enMessages)
|
||||||
if (this.il8nExternal) {
|
this.drawer = false
|
||||||
this.$EventBus.$emit('il8nUpdate')
|
this.$message.success('国际化修改成功')
|
||||||
|
if (this.il8nExternal) {
|
||||||
|
this.$EventBus.$emit('il8nUpdate')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
)
|
||||||
)
|
})
|
||||||
})
|
.catch((err) => {
|
||||||
|
console.log(err)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
openI18n(ARRAY) {
|
openI18n(ARRAY) {
|
||||||
this.tableData = []
|
this.tableData = []
|
||||||
|
@ -268,6 +273,7 @@ export default {
|
||||||
ValueCN: item.ValueCN,
|
ValueCN: item.ValueCN,
|
||||||
State: item.State,
|
State: item.State,
|
||||||
Version: item.Version,
|
Version: item.Version,
|
||||||
|
InternationalizationType: item.InternationalizationType,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.tableData = Object.assign([], tableData)
|
this.tableData = Object.assign([], tableData)
|
||||||
|
@ -300,6 +306,7 @@ export default {
|
||||||
ValueCN: null,
|
ValueCN: null,
|
||||||
State: 0,
|
State: 0,
|
||||||
Version: this.$version.Version,
|
Version: this.$version.Version,
|
||||||
|
InternationalizationType: 0,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -33,7 +33,7 @@ export default {
|
||||||
let browserType = this.getExplore();
|
let browserType = this.getExplore();
|
||||||
let type = browserType.split(": ")[0];
|
let type = browserType.split(": ")[0];
|
||||||
let No = browserType.split(": ")[1].split(".")[0];
|
let No = browserType.split(": ")[1].split(".")[0];
|
||||||
console.log(type, No);
|
// console.log(type, No);
|
||||||
if (type !== "Chrome" && type !== "Edge") {
|
if (type !== "Chrome" && type !== "Edge") {
|
||||||
this.tip = this.$t("browser:tip:changeBorwser");
|
this.tip = this.$t("browser:tip:changeBorwser");
|
||||||
return (this.visible = true);
|
return (this.visible = true);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
v-for="(item,index) of siteOptions"
|
v-for="(item,index) of siteOptions"
|
||||||
:key="index"
|
:key="index"
|
||||||
:label="item.TrialSiteCode"
|
:label="item.TrialSiteCode"
|
||||||
:value="item.SiteId"
|
:value="item.TrialSiteId"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
@ -4,6 +4,7 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')
|
||||||
const WebpackAliyunOss = require('webpack-aliyun-oss')
|
const WebpackAliyunOss = require('webpack-aliyun-oss')
|
||||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
||||||
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
|
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
|
||||||
|
const CopyPlugin = require('copy-webpack-plugin')
|
||||||
// const TerserWebpackPlugin = require('terser-webpack-plugin')
|
// const TerserWebpackPlugin = require('terser-webpack-plugin')
|
||||||
const { resolve } = require('path')
|
const { resolve } = require('path')
|
||||||
const webpack = require('webpack')
|
const webpack = require('webpack')
|
||||||
|
@ -11,7 +12,7 @@ const defaultSettings = require('./src/settings.js')
|
||||||
const moment = require('moment')
|
const moment = require('moment')
|
||||||
var distDate = moment(new Date()).format('YYYY-MM-DD')
|
var distDate = moment(new Date()).format('YYYY-MM-DD')
|
||||||
const name = process.env.NODE_ENV === 'usa' ? 'LILI' : defaultSettings.title || 'IRCIS' // page title
|
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
|
// eslint-disable-next-line no-undef
|
||||||
module.exports = defineConfig({
|
module.exports = defineConfig({
|
||||||
// lintOnSave: false,
|
// lintOnSave: false,
|
||||||
|
@ -83,8 +84,20 @@ module.exports = defineConfig({
|
||||||
asyncWebAssembly: true
|
asyncWebAssembly: true
|
||||||
},
|
},
|
||||||
plugins: [
|
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({
|
: new WebpackAliyunOss({
|
||||||
from: ['./dist/**'],
|
from: ['./dist/**'],
|
||||||
dist: process.env.VUE_APP_OSS_PATH + distDate,
|
dist: process.env.VUE_APP_OSS_PATH + distDate,
|
||||||
|
@ -171,7 +184,7 @@ module.exports = defineConfig({
|
||||||
// 生成文件的最大体积
|
// 生成文件的最大体积
|
||||||
maxAssetSize: 3000000000,
|
maxAssetSize: 3000000000,
|
||||||
// 只给出js的性能提示
|
// 只给出js的性能提示
|
||||||
assetFilter: function(assetFileName) {
|
assetFilter: function (assetFileName) {
|
||||||
return assetFileName.endsWith('.js')
|
return assetFileName.endsWith('.js')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue