(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