|
@@ -64,6 +64,9 @@ import api from '/@/api/screen';
|
|
|
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
|
import { useSearch } from '/@/hooks/useCommon';
|
|
|
import EditForm from './edit.vue';
|
|
|
+import { useI18n } from 'vue-i18n';
|
|
|
+// 国际化
|
|
|
+const { t } = useI18n();
|
|
|
|
|
|
const editFormRef = ref();
|
|
|
|
|
@@ -140,13 +143,15 @@ const preview = async (row: any) => {
|
|
|
};
|
|
|
|
|
|
const onDel = (row: any) => {
|
|
|
- ElMessageBox.confirm(`此操作将删除大屏:“${row.projectName}”,是否继续?`, '提示', {
|
|
|
- confirmButtonText: '确认',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ t('message.configuration.designScreen.deleteScreenMessage', { name: row.projectName }),
|
|
|
+ t('message.tableI18nConfirm.deleteTitle'), {
|
|
|
+ confirmButtonText: t('message.tableI18nConfirm.confirmText'),
|
|
|
+ cancelButtonText: t('message.tableI18nConfirm.cancelText'),
|
|
|
type: 'warning',
|
|
|
}).then(async () => {
|
|
|
await api.del([row.id as string]);
|
|
|
- ElMessage.success('删除成功');
|
|
|
+ ElMessage.success(t('message.tableI18nConfirm.deleteSuccess'));
|
|
|
getList();
|
|
|
});
|
|
|
};
|