45
chenyc
2022-07-20 88b74f25d221cfd05878341bdce5b151de37be59
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { Session } from '@/utils/storage'
 
export const meunStore =defineStore('meun',()=>{
    const meunIndex=ref(0)// 初始值
    const meunPath=ref('/scheme')
    const meuns=ref([
        {
            'value': 0,
            'text': '透析处方',
            'path': '/scheme'
        },
        {
            'value': 1,
            'text': '透前评估',
            'path': '/pingguBefore'
        },
        {
            'value': 2,
            'text': '双人核对',
            'path': '/douleCheck'
        },
        {
            'value': 3,
            'text': '监测记录',
            'path': '/monitorData'
        },
        {
            'value': 4,
            'text': '耗材出库',
            'path': '/checkOut'
        },
        {
            'value': 5,
            'text': '医嘱信息',
            'path': '/drugOrder'
        },
        {
            'value': 6,
            'text': '透后评估',
            'path': '/bodyStateAfter'
        },
        {
            'value': 7,
            'text': '治疗小结',
            'path': '/zlxj'
        },
        {
            'value': 8,
            'text': '患者信息',
            'path': '/patientInfo'
        }
    ])
    function setMeunIndex(index:number){
        console.log('设置菜单下标'+index)
        meunIndex.value=index
        meunPath.value=meuns.value[index].path
    }
    function setMeuns(Meuns:any){
        meuns.value=Meuns
    }
    return {meunIndex,meunPath,setMeunIndex,setMeuns,meuns}
})