闫增涛
2025-06-12 e2952ba4b6a392047ddbc3542465a81413c64eb9
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
import { defineStore } from "pinia";
import { ref } from "vue";
 
export const curStoreInfo = defineStore("storeInfo", () => {
  const storeInfo = ref({});
  const setStoreInfo = (info: any) => {
    storeInfo.value = info;
  };
  const channelInfo = ref({});
  const setChannelInfo = (info: any) => {
    channelInfo.value = info;
  };
  const channelList = ref([]);
  const setChannelList = (info: any) => {
    channelList.value = info;
  };
  const curTab = ref("model");
  const setCurTab = (info: any) => {
    curTab.value = info;
  };
 
  const OrgInfo = ref({});
  const setOrgInfo = (info: any) => {
    OrgInfo.value = info;
  };
  const departmentInfo = ref({});
  const setDepartmentInfo = (info: any) => {
    departmentInfo.value = info;
  };
  const curSelectRole = ref({});
  const setCurSelectRole = (info: any) => {
    curSelectRole.value = info;
  };
  const testReportChannel = ref({});
  const setTestReportChannel = (info: any) => {
    testReportChannel.value = info;
  };
  return {
    storeInfo,
    setStoreInfo,
    channelInfo,
    setChannelInfo,
    channelList,
    setChannelList,
    curTab,
    setCurTab,
    OrgInfo,
    setOrgInfo,
    departmentInfo,
    setDepartmentInfo,
    curSelectRole,
    setCurSelectRole,
    testReportChannel,
    setTestReportChannel,
  };
});