Merge branch 'main' of https://gitea.frp.extimaging.com/XCKJ/irc_web into main
continuous-integration/drone/push Build is failing Details

uat
caiyiling 2025-02-21 16:13:45 +08:00
commit d69d8802cd
4 changed files with 48 additions and 28 deletions

View File

@ -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,12 +219,14 @@ export default {
} }
}, },
handleSave() { handleSave() {
this.$confirm('确定修改当前页面国际化内容?').then(() => { this.$confirm('确定修改当前页面国际化内容?')
.then(() => {
batchAddOrUpdateFrontInternationalization(this.tableData).then( batchAddOrUpdateFrontInternationalization(this.tableData).then(
async (res) => { async (res) => {
var zhMessages = {}, var zhMessages = {},
enMessages = {} enMessages = {}
var Internationalization = await getFrontInternationalizationList() var Internationalization =
await getFrontInternationalizationList()
Vue.prototype.$tl = Internationalization.Result Vue.prototype.$tl = Internationalization.Result
this.tableData.forEach((v) => { this.tableData.forEach((v) => {
// zhMessages[v.Description + '_' + v.Code] = v.ValueCN // zhMessages[v.Description + '_' + v.Code] = v.ValueCN
@ -242,6 +244,9 @@ export default {
} }
) )
}) })
.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,
}) })
} }
}) })

View File

@ -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);

View File

@ -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>

View File

@ -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,7 +84,19 @@ module.exports = defineConfig({
asyncWebAssembly: true asyncWebAssembly: true
}, },
plugins: [ plugins: [
new CopyPlugin({
patterns: [
{
from: resolve(__dirname, './static'),
to: resolve(__dirname, './dist/static'),
globOptions: {
ignore: ['.*']
}
}
]
}),
// new BundleAnalyzerPlugin(),
process.env.NODE_ENV === 'development' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? function () { } process.env.NODE_ENV === 'development' || process.env.VUE_APP_OSS_CONFIG_BUCKET === 'zyypacs-usa' ? function () { }
: new WebpackAliyunOss({ : new WebpackAliyunOss({
from: ['./dist/**'], from: ['./dist/**'],