提交 a819a3fe 编写于 作者: zhujiamin's avatar zhujiamin

多语言 组件i18n国际化支持 --fix1

上级 41afcf10
......@@ -354,7 +354,7 @@ export default class AppPicker extends Vue {
if (entityService && entityService[_interfaceName] && entityService[_interfaceName] instanceof Function) {
entityService[_interfaceName](_context, _param).then((response: any) => {
if (!response) {
this.$notify({ type: 'danger', message: this.$t("requestException") + "" })
this.$notify({ type: 'danger', message: `${this.$t("requestException")}` })
} else {
this.items = [...response.data];
}
......@@ -551,7 +551,7 @@ export default class AppPicker extends Vue {
private openRedirectView($event: any, view: any, data: any): void {
this.$http.get(view.url, data).then((response: any) => {
if (!response || response.status !== 200) {
this.$notify({ type: 'danger', message: this.$t("requestException") + "" });
this.$notify({ type: 'danger', message: `${this.$t("requestException")}` });
}
if (response.status === 401) {
return;
......@@ -603,7 +603,7 @@ export default class AppPicker extends Vue {
}
}).catch((response: any) => {
if (!response || !response.status || !response.data) {
this.$notify({ type: 'danger', message: this.$t('systemIsAbnormal') + "" });
this.$notify({ type: 'danger', message: `${this.$t('systemIsAbnormal')}` });
return;
}
if (response.status === 401) {
......@@ -622,7 +622,7 @@ export default class AppPicker extends Vue {
return;
}
if (!this.data || !this.valueitem || !this.data[this.valueitem]) {
this.$notify({ type: 'danger', message: this.$t('valueItemIsAbnormal') + "" });
this.$notify({ type: 'danger', message: `${this.$t('valueItemIsAbnormal')}` });
return;
}
// 公共参数处理
......
......@@ -130,7 +130,7 @@ export default class AppMobPicture extends Vue {
public beforeRead(file: any, detail: any): boolean {
this.dataProcess();
if (file && Array.isArray(file)) {
this.$notify({ type: 'warning', message: this.$t('one_doc') + '' });
this.$notify({ type: 'warning', message: `${this.$t('one_doc')}` });
return false;
}
return true;
......@@ -475,7 +475,7 @@ export default class AppMobPicture extends Vue {
* @memberof AppMobPicture
*/
public onError(error: any, file: any, fileList: any) {
this.$notify({ type: 'danger', message: this.$t('upload_failed') + '' });
this.$notify({ type: 'danger', message: `${this.$t('upload_failed')}` });
}
/**
......
......@@ -641,7 +641,7 @@ export default class AppMobRecorder extends Vue {
* @memberof AppMobRecorder
*/
public onError(error: any, file: any, fileList: any) {
this.$notify({ type: 'danger', message: this.$t('uploadfailed') + '' });
this.$notify({ type: 'danger', message: `${this.$t('uploadfailed')}` });
}
/**
......
......@@ -114,7 +114,7 @@ export default class Login extends Vue {
public async thirdLogin(){
let loginStatus :any = await this.thirdPartyService.login();
if(!loginStatus.issuccess){
this.$notice.error(loginStatus.message?loginStatus.message:this.$t('dingdingfailed') + '' );
this.$notice.error(loginStatus.message?loginStatus.message:`${this.$t('dingdingfailed')}` );
setTimeout(()=>{
this.thirdPartyService.close();
},1500);
......@@ -185,7 +185,7 @@ export default class Login extends Vue {
}
}).catch((error: any) => {
this.isLoadding = false;
this.$notice.error(error?error.error.message:this.$t('badlogin') + '');
this.$notice.error(error?error.error.message:`${this.$t('badlogin')}`);
});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册