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

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

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