部分页面国际化配置
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
667631be5d
commit
5d5370de88
|
@ -38,7 +38,7 @@
|
|||
"moment": "^2.27.0",
|
||||
"node-polyfill-webpack-plugin": "^2.0.1",
|
||||
"node-sass": "^4.14.1",
|
||||
"normalize.css": "7.0.0",
|
||||
"normalize.css": "^8.0.1",
|
||||
"nprogress": "0.2.0",
|
||||
"path-to-regexp": "2.4.0",
|
||||
"pdfobject": "^2.2.8",
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<div class="login-body">
|
||||
<div class="login-l">
|
||||
<div class="login-logo">
|
||||
<img v-if="language === 'zh' && hospital.HospitalLogoPath"
|
||||
:src="OSSclientConfig.basePath + hospital.HospitalLogoPath" crossOrigin="anonymous" alt="" />
|
||||
<!-- <img v-if="language === 'zh' && hospital.HospitalLogoPath" -->
|
||||
<img v-if="hospital.HospitalLogoPath" :src="OSSclientConfig.basePath + hospital.HospitalLogoPath"
|
||||
crossOrigin="anonymous" alt="" />
|
||||
<!-- <img v-else src="@/assets/zzlogo3.png" alt="" /> -->
|
||||
</div>
|
||||
<div class="login-image">
|
||||
|
@ -88,7 +89,7 @@
|
|||
<span> | </span>
|
||||
<span>{{ $t('login:copyright:title:support') }}{{ config.company }}</span>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-else class="login-footer">
|
||||
<span>{{ $t('login:copyright:title:construct')
|
||||
}}{{ hospital.HospitalName }}</span>
|
||||
<span> | </span>
|
||||
|
@ -189,20 +190,20 @@ export default {
|
|||
this.location = this.$route.query.location
|
||||
zzSessionStorage.setItem('loginType', this.loginType)
|
||||
localStorage.setItem('location', this.location)
|
||||
// if (process.env.VUE_APP_OSS_CONFIG_REGION === "oss-us-west-1") {
|
||||
// this.$i18n.locale = "en";
|
||||
// this.setLanguage("en");
|
||||
// this.$updateDictionary();
|
||||
// } else {
|
||||
// if (this.location === "USA") {
|
||||
// this.$i18n.locale = "en";
|
||||
// this.setLanguage("en");
|
||||
// this.$updateDictionary();
|
||||
// } else {
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
// }
|
||||
if (process.env.NODE_ENV === "usa") {
|
||||
this.$i18n.locale = "en";
|
||||
this.setLanguage("en");
|
||||
this.$updateDictionary();
|
||||
} else {
|
||||
// if (this.location === "USA") {
|
||||
// this.$i18n.locale = "en";
|
||||
// this.setLanguage("en");
|
||||
// this.$updateDictionary();
|
||||
// } else {
|
||||
this.$i18n.locale = 'zh'
|
||||
this.setLanguage('zh')
|
||||
this.$updateDictionary()
|
||||
}
|
||||
// }
|
||||
if (this.$route.query.token) {
|
||||
this.TJUserLoginInfo(this.$route.query.token)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
:model="submitMessage"
|
||||
class="demo-form-inline"
|
||||
:rules="rules"
|
||||
label-width="130px"
|
||||
:label-width="isEN?'200px':'130px'"
|
||||
>
|
||||
<div>
|
||||
<!--项目-->
|
||||
|
@ -264,6 +264,9 @@ export default {
|
|||
if (PatientList.length <= 0) return false;
|
||||
return PatientList;
|
||||
},
|
||||
isEN(){
|
||||
return this.$i18n.locale !== 'zh'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTrialList();
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
<el-date-picker
|
||||
v-model="dateValue"
|
||||
type="datetimerange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
range-separator="-"
|
||||
:start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
||||
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
>
|
||||
</el-date-picker>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
width: 80px;
|
||||
width: 130px;
|
||||
"
|
||||
>
|
||||
{{ $t("trials:trials-list:table:sponsor") }}
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
</el-form-item>
|
||||
<!-- 最新接收时间 -->
|
||||
<el-form-item :label="$t('trials:inspection:table:latestReceiveTime')">
|
||||
<el-date-picker v-model="dateValue" type="datetimerange" range-separator="至" start-placeholder="开始日期"
|
||||
end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" clearable>
|
||||
<el-date-picker v-model="dateValue" type="datetimerange" range-separator="-" :start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
||||
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')" :default-time="['00:00:00', '23:59:59']" clearable>
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<template>
|
||||
<div class="trials-navbar" style="position: relative">
|
||||
<div class="leftMenu">
|
||||
<img v-if="language === 'zh' && hospital.HospitalLogoPath"
|
||||
<!-- <img v-if="language === 'zh' && hospital.HospitalLogoPath" -->
|
||||
<img v-if="hospital.HospitalLogoPath"
|
||||
:src="OSSclientConfig.basePath + hospital.HospitalLogoPath" crossOrigin="anonymous" alt=""
|
||||
style="min-width: 170px;" />
|
||||
<div v-else style="width: 170px;"></div>
|
||||
|
|
|
@ -66,18 +66,18 @@
|
|||
<template slot-scope="scope">
|
||||
<i v-if="!scope.row.AuthorizationEncrypt" class="el-icon-warning-outline"
|
||||
:title="$t('trials:trials-list:tipMessage:tipOne')" style="color: red; font-size: 20px"></i>
|
||||
<i v-if="
|
||||
scope.row.AuthorizationEncrypt &&
|
||||
scope.row.AuthorizationDate &&
|
||||
!trialExpired(scope.row.AuthorizationDate, 15)
|
||||
" class="el-icon-warning-outline" :title="$t('trials:trials-list:tipMessage:tipTwo')"
|
||||
style="color: #e6a23c; font-size: 20px"></i>
|
||||
<i v-if="
|
||||
<i v-else-if="
|
||||
scope.row.AuthorizationEncrypt &&
|
||||
scope.row.AuthorizationDate &&
|
||||
!trialExpired(scope.row.AuthorizationDate)
|
||||
" class="el-icon-warning-outline" :title="$t('trials:trials-list:tipMessage:tipThree')"
|
||||
style="color: red; font-size: 20px"></i>
|
||||
<i v-else-if="
|
||||
scope.row.AuthorizationEncrypt &&
|
||||
scope.row.AuthorizationDate &&
|
||||
!trialExpired(scope.row.AuthorizationDate, 15)
|
||||
" class="el-icon-warning-outline" :title="$t('trials:trials-list:tipMessage:tipTwo')"
|
||||
style="color: #e6a23c; font-size: 20px"></i>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="trialType" :label="$t('trials:trials-list:form:trialType')" show-overflow-tooltip>
|
||||
|
|
|
@ -124,9 +124,9 @@
|
|||
<el-date-picker
|
||||
v-model="dateValue"
|
||||
type="datetimerange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
range-separator="-"
|
||||
:start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
||||
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
clearable
|
||||
>
|
||||
|
|
|
@ -65,9 +65,9 @@
|
|||
<el-date-picker
|
||||
v-model="dateValue"
|
||||
type="datetimerange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
range-separator="-"
|
||||
:start-placeholder="$t('trials:uploadClinicalData:table:beginDate')"
|
||||
:end-placeholder="$t('trials:uploadClinicalData:table:endDate')"
|
||||
:default-time="['00:00:00', '23:59:59']"
|
||||
>
|
||||
</el-date-picker>
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
v-hasPermi="['trials:trials-list:activate']"
|
||||
>
|
||||
<el-descriptions :column="2" border style="width: 1200px">
|
||||
<p slot="title">项目授权信息</p>
|
||||
<p slot="title">{{$t('trials:trials-list:activate:title')}}</p>
|
||||
<!--单位名称-->
|
||||
<el-descriptions-item
|
||||
:label="$t('trials:trials-list:activate:organizationName')"
|
||||
|
|
Loading…
Reference in New Issue