diff --git a/src/utils/feedback.ts b/src/utils/feedback.ts index 3452224..ea16a3d 100644 --- a/src/utils/feedback.ts +++ b/src/utils/feedback.ts @@ -19,15 +19,25 @@ export class Feedback { } // 错误消息 msgError(msg: string) { - ElMessage.error(msg) + ElMessage.error({ + message: msg, + type: 'error', + duration: 5000 + }) } // 成功消息 msgSuccess(msg: string) { - ElMessage.success(msg) + ElMessage.success({ + message: msg, + type: 'success' + }) } // 警告消息 msgWarning(msg: string) { - ElMessage.warning(msg) + ElMessage.warning({ + message: msg, + type: 'warning' + }) } // 弹出提示 alert(msg: string) { diff --git a/src/views/system/Police.vue b/src/views/system/Police.vue index 3624f7e..7cbc047 100644 --- a/src/views/system/Police.vue +++ b/src/views/system/Police.vue @@ -78,7 +78,7 @@
-
+
新增警员 + + + + + 导入警员 + + + 数字督察警员权限导入模板
@@ -445,6 +476,8 @@ \ No newline at end of file