提交 be2d0ecc 编写于 作者: KK's avatar KK

解决ts类型报错

上级 e422242f
...@@ -318,7 +318,7 @@ import moment from 'moment'; ...@@ -318,7 +318,7 @@ import moment from 'moment';
let _context: any = { [appde]: keys.join(';') } let _context: any = { [appde]: keys.join(';') }
const response: any = await this.service.delete(this.activeItem, { ...this.context, ..._context }, arg, this.showBusyIndicator); const response: any = await this.service.delete(this.activeItem, { ...this.context, ..._context }, arg, this.showBusyIndicator);
if (response && response.status === 200) { if (response && response.status === 200) {
this.$notice.success(this.$t('app.message.deleteSccess')); this.$notice.success((this.$t('app.message.deleteSccess') as string));
this.formatData(this.currentDate); this.formatData(this.currentDate);
resolve(response); resolve(response);
} else { } else {
...@@ -329,7 +329,7 @@ import moment from 'moment'; ...@@ -329,7 +329,7 @@ import moment from 'moment';
} }
this.$dialog.confirm({ this.$dialog.confirm({
title: this.$t('app.message.warning'), title: (this.$t('app.message.warning') as string),
message: this.$t('app.message.confirmToDelete') + infoStr +','+ this.$t('app.message.unrecoverable') + '?', message: this.$t('app.message.confirmToDelete') + infoStr +','+ this.$t('app.message.unrecoverable') + '?',
}).then(() => { }).then(() => {
_remove(); _remove();
......
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
let _context: any = { ${appde.getCodeName()?lower_case}: keys.join(';') } let _context: any = { ${appde.getCodeName()?lower_case}: keys.join(';') }
const response: any = await this.service.delete(this.removeAction, Object.assign({}, this.context, _context), arg, this.showBusyIndicator); const response: any = await this.service.delete(this.removeAction, Object.assign({}, this.context, _context), arg, this.showBusyIndicator);
if (response && response.status === 200) { if (response && response.status === 200) {
this.$notice.success(this.$t('app.message.deleteSccess')); this.$notice.success((this.$t('app.message.deleteSccess') as string));
this.load(); this.load();
resolve(response); resolve(response);
} else { } else {
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
} }
this.$dialog.confirm({ this.$dialog.confirm({
title: this.$t('app.message.warning'), title: (this.$t('app.message.warning') as string),
message: this.$t('app.message.confirmToDelete') + infoStr +','+ this.$t('app.message.unrecoverable') + '?', message: this.$t('app.message.confirmToDelete') + infoStr +','+ this.$t('app.message.unrecoverable') + '?',
}).then(() => { }).then(() => {
_remove(); _remove();
......
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
let _context: any = { ${appde.getCodeName()?lower_case}: keys.join(';') } let _context: any = { ${appde.getCodeName()?lower_case}: keys.join(';') }
const response: any = await this.service.delete(this.removeAction, Object.assign({}, this.context, _context), arg, this.showBusyIndicator); const response: any = await this.service.delete(this.removeAction, Object.assign({}, this.context, _context), arg, this.showBusyIndicator);
if (response && response.status === 200) { if (response && response.status === 200) {
this.$notice.success(this.$t('app.message.deleteSccess')); this.$notice.success((this.$t('app.message.deleteSccess') as string));
this.load(); this.load();
resolve(response); resolve(response);
} else { } else {
...@@ -391,7 +391,7 @@ ...@@ -391,7 +391,7 @@
} }
this.$dialog.confirm({ this.$dialog.confirm({
title: this.$t('app.message.warning'), title: (this.$t('app.message.warning') as string),
message: this.$t('app.message.confirmToDelete') + infoStr +','+ this.$t('app.message.unrecoverable') + '?', message: this.$t('app.message.confirmToDelete') + infoStr +','+ this.$t('app.message.unrecoverable') + '?',
}).then(() => { }).then(() => {
_remove(); _remove();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册