this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: '${view.getName()}'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
return;
}
}
if(pageReset){
if(pageReset){
...
@@ -611,7 +611,7 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -611,7 +611,7 @@ import { FormItemModel } from '@/model/form-detail';
post.then((response: any) => {
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (!response.status || response.status !== 200) {
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: '${view.getName()}'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return;
return;
}
}
let _datas:any[] = [];
let _datas:any[] = [];
...
@@ -698,9 +698,9 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -698,9 +698,9 @@ import { FormItemModel } from '@/model/form-detail';
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: '${view.getName()}'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return;
return;
}
}
if(!arg){
if(!arg){
arg = {};
arg = {};
}
}
console.error("批量添加未实现");
console.error((this.$t('app.gridpage.notBatch') as string));
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: '${view.getName()}'+(this.$t('app.gridpage.notConfig.createAction') as string) });
}else{
}else{
Object.assign(item,{viewparams:this.viewparams});
Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...
@@ -1586,7 +1586,7 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -1586,7 +1586,7 @@ import { FormItemModel } from '@/model/form-detail';
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: '${view.getName()}'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{
}else{
Object.assign(item,{viewparams:this.viewparams});
Object.assign(item,{viewparams:this.viewparams});
<#if de??>
<#if de??>
...
@@ -1606,10 +1606,10 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -1606,10 +1606,10 @@ import { FormItemModel } from '@/model/form-detail';
this.$Notice.error({ title: (this.$t('app.commonWords.saveFailed') as string), desc: item.majorentityname+(this.$t('app.commonWords.saveFailed') as string)+'!' });
console.error(errorMessage[index]);
console.error(errorMessage[index]);
});
});
}
}
...
@@ -1625,7 +1625,7 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -1625,7 +1625,7 @@ import { FormItemModel } from '@/model/form-detail';
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: '${view.getName()}'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return;
return;
}
}
let _this = this;
let _this = this;
...
@@ -1634,7 +1634,7 @@ import { FormItemModel } from '@/model/form-detail';
...
@@ -1634,7 +1634,7 @@ import { FormItemModel } from '@/model/form-detail';
post.then((response: any) => {
post.then((response: any) => {
if (!response.status || response.status !== 200) {
if (!response.status || response.status !== 200) {