reactor:【system 系统管理】notify/my 进一步统一代码风格
This commit is contained in:
@@ -7,7 +7,7 @@ import { ref } from 'vue';
|
||||
import { confirm, DocAlert, Page, useVbenModal } from '@vben/common-ui';
|
||||
import { downloadFileFromBlobPart, isEmpty } from '@vben/utils';
|
||||
|
||||
import { ElMessage } from 'element-plus';
|
||||
import {ElLoading, ElMessage} from 'element-plus';
|
||||
|
||||
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
import {
|
||||
@@ -60,8 +60,8 @@ function handleSend(row: SystemNotifyTemplateApi.NotifyTemplate) {
|
||||
|
||||
/** 删除站内信模板 */
|
||||
async function handleDelete(row: SystemNotifyTemplateApi.NotifyTemplate) {
|
||||
const loadingInstance = ElMessage({
|
||||
message: $t('ui.actionMessage.deleting', [row.name]),
|
||||
const loadingInstance = ElLoading.service({
|
||||
text: $t('ui.actionMessage.deleting', [row.name]),
|
||||
});
|
||||
try {
|
||||
await deleteNotifyTemplate(row.id as number);
|
||||
@@ -75,8 +75,8 @@ async function handleDelete(row: SystemNotifyTemplateApi.NotifyTemplate) {
|
||||
/** 批量删除站内信模板 */
|
||||
async function handleDeleteBatch() {
|
||||
await confirm($t('ui.actionMessage.deleteBatchConfirm'));
|
||||
const loadingInstance = ElMessage({
|
||||
message: $t('ui.actionMessage.deletingBatch'),
|
||||
const loadingInstance = ElLoading.service({
|
||||
text: $t('ui.actionMessage.deletingBatch'),
|
||||
});
|
||||
try {
|
||||
await deleteNotifyTemplateList(checkedIds.value);
|
||||
|
||||
Reference in New Issue
Block a user