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

解决ts类型报错

上级 e422242f
......@@ -318,7 +318,7 @@ import moment from 'moment';
let _context: any = { [appde]: keys.join(';') }
const response: any = await this.service.delete(this.activeItem, { ...this.context, ..._context }, arg, this.showBusyIndicator);
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);
resolve(response);
} else {
......@@ -329,7 +329,7 @@ import moment from 'moment';
}
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') + '?',
}).then(() => {
_remove();
......
......@@ -373,7 +373,7 @@
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);
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();
resolve(response);
} else {
......@@ -383,7 +383,7 @@
}
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') + '?',
}).then(() => {
_remove();
......
......@@ -381,7 +381,7 @@
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);
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();
resolve(response);
} else {
......@@ -391,7 +391,7 @@
}
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') + '?',
}).then(() => {
_remove();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册