From e2ed556bb9331cb65daf184eed646a7295c37b51 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 22 八月 2023 18:04:40 +0800
Subject: [PATCH] dasas

---
 screen_standard/src/stores/counter.js |   42 ++++++++++++++++++++++++++++++++++--------
 1 files changed, 34 insertions(+), 8 deletions(-)

diff --git a/screen_standard/src/stores/counter.js b/screen_standard/src/stores/counter.js
index b6757ba..0dcf1b8 100644
--- a/screen_standard/src/stores/counter.js
+++ b/screen_standard/src/stores/counter.js
@@ -1,12 +1,38 @@
-import { ref, computed } from 'vue'
-import { defineStore } from 'pinia'
+import { computed } from 'vue';
+import { defineStore } from 'pinia';
 
-export const useCounterStore = defineStore('counter', () => {
-  const count = ref(0)
-  const doubleCount = computed(() => count.value * 2)
-  function increment() {
-    count.value++
+export const useCounterStore = defineStore('enterprise', {
+
+  state: () => {
+    return {
+      companyId: '8',
+      departId: '178',
+      delayNum: 0, // 寤舵湡璁″垝鏁�
+      deviceNum: 0, // 浠婃棩鐢熶骇璁惧鏁�
+      ingNum: 0, // 鎵ц涓鍒掓暟
+      prouserNum: 0, // 浠婃棩鐢熶骇浜烘暟
+      unqualifiedRate: 0 // 浠婃棩涓嶈壇鍝佺巼
+    };
+  },
+
+  actions: {
+    // 璁剧疆浼佷笟id
+    setCompanyId(companyId) {
+      this.companyId = companyId;
+      window.sessionStorage.setItem('companyId', companyId);
+    },
+    // 璁剧疆缁勭粐id
+    setDepartId(departId) {
+      this.departId = departId;
+      window.sessionStorage.setItem('departId', departId);
+    },
+    setNum(num) {
+      this.delayNum = num.delayNum
+      this.deviceNum = num.deviceNum
+      this.ingNum = num.ingNum
+      this.prouserNum = num.prouserNum
+      this.unqualifiedRate = num.unqualifiedRate
+    }
   }
 
-  return { count, doubleCount, increment }
 })

--
Gitblit v1.9.3