Newer
Older
KaiFengPC / src / utils / ElMessageBox.js
@zhangdeliang zhangdeliang on 20 May 814 bytes 项目初始化
/*
 * @Author: liyingjing ll47991367@qq.com
 * @Date: 2023-06-25 16:21:27
 * @LastEditors: liyingjing ll47991367@qq.com
 * @LastEditTime: 2023-06-29 16:24:49
 * @FilePath: \ProductEngineering\src\utils\ElMessageBox.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { ElMessageBox, ElMessage } from "element-plus";
export default  function emgBox(id,siteAlarmWarningInfoDelM,msg){ 
    ElMessageBox.confirm(msg, {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        siteAlarmWarningInfoDelM(id);
        ElMessage({
          type: "success",
          message: '操作成功',
        });
      });
}