(vue前端)对操作进行检测,通过elementui-Notify来展示并提供跳转


  1. 检测操作代码
  2. 跳出notify
  3. 展示结果
 
 
//   跳框
        const notify = this.$notify({
          type: "warning",
          dangerouslyUseHTMLString: true,
          title: "提示",
          message:
            '<p>检测到您扔有题未设定答案类型,<span style="color:#0066ff;cursor:pointer">请点击处理</span>!</p>',
          duration: 0,
        });
 
 //  抓取点击事件操作
        notify.$el.querySelector("span").onclick = () => {
          // your code
          _this.$router.push({
            path: "/data/resultProcess",
            query: { projectKey: this.project_key },
          });
          // 点击后关闭notify 不需要的话可删掉
          notify.close();
          _this.$notify({
            type: "warning",
            title: "以下为未处理项目",
            message: this.needProcessItem,
            duration: 0,
            // position:'bottom-right',
          });


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM