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