From 3a7caf4344d5911a3ee68d232e53887d6cc2ff6b Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 15 一月 2025 15:41:25 +0800
Subject: [PATCH] 测试完成
---
src/components/Assistant/index.vue | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/components/Assistant/index.vue b/src/components/Assistant/index.vue
index a77428a..80e9bd5 100644
--- a/src/components/Assistant/index.vue
+++ b/src/components/Assistant/index.vue
@@ -42,7 +42,7 @@
<div
v-for="(item, index) in powerList"
:key="index"
- @click.stop="activeHandle(index)"
+ @click.stop="activeHandle(index,item.url)"
>
<div
:class="activeIndex == index ? 'active power-item' : 'power-item'"
@@ -105,22 +105,27 @@
powerList: [
{
path: require("@/assets/images/huanzheliebiao.png"),
+ url:'/patient/patient/',
label: "鎮h��",
},
{
path: require("@/assets/images/fwwu.png"),
- label: "鏈嶅姟",
+ url:'/followvisit/tasklist/',
+ label: "浠诲姟",
},
{
path: require("@/assets/images/duanxinjilu.png"),
+ url:'',
label: "鐭俊",
},
{
path: require("@/assets/images/dianhua.png"),
+ url:'',
label: "鐢佃瘽",
},
{
path: require("@/assets/images/zxlt.png"),
+ url:'',
label: "鍦ㄧ嚎鑱婂ぉ",
},
],
@@ -137,8 +142,8 @@
// 鑾峰彇鍏冪礌浣嶇疆灞炴��
this.floatDragDom = this.floatDrag.getBoundingClientRect();
// 璁剧疆鍒濆浣嶇疆
- // this.left = this.clientWidth - this.floatDragDom.width - this.distanceRight;
- this.right = 0;
+ this.left = this.clientWidth - this.floatDragDom.width - this.distanceRight;
+ // this.right = 0;
this.top =
this.clientHeight - this.floatDragDom.height - this.distanceBottom;
this.initDraggable();
@@ -164,9 +169,12 @@
console.log("鏄惁灞曞紑", this.flag);
},
// 鐐瑰嚮鍝釜power
- activeHandle(index) {
+ activeHandle(index,url) {
//鎶婃垜浠嚜瀹氫箟鐨勪笅鏍囪祴鍊�
this.activeIndex = index;
+ this.$router.push({
+ path: url,
+ })
console.log("HHHH", index);
},
// 鑾峰彇瑕佹敼鍙樺緱鏍峰紡灞炴��
--
Gitblit v1.9.3