From 195a076a37432c87a19bc8a87bf6f08710485ef8 Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Mon, 19 Aug 2024 19:02:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E8=BF=9B=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/layout/index.vue | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/admin/src/layout/index.vue b/admin/src/layout/index.vue index 8b5b0c37..aa2725a5 100644 --- a/admin/src/layout/index.vue +++ b/admin/src/layout/index.vue @@ -92,14 +92,40 @@ export default { message: '你有('+res.data.order_write_off+')个核销订单' }); } + if(res && res.data.follow_message > 0) { + this.$notify({ + // res.data.follow_order_id + title: '跟进提醒', + duration: 50000, + dangerouslyUseHTMLString: true, + message: '你有('+res.data.follow_message+')个跟进提醒', + onClick: this.followDetail(res.orderId) + }); + } }).catch(err=>{ console.log(err) }) - },30000); + },3000); }, methods: { handleClickOutside() { this.$store.dispatch('app/closeSideBar', { withoutAnimation: false }) + }, + followDetail(orderId) { + + },onInfo(item) { + this.value = null; + this.next_follow = null; + this.$set(item, "next_follow", null); + this.item = item; + this.active = "follow"; + this.$axios + .get("/admin/order/info", { params: { id: item.id } }) + .then((res) => { + this.item = res.data; + this.dialogVisible = true; + }) + .catch((err) => {}); } } }