From 2a97deaa6deb2b5e94b2edba33a3e885cab4892b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 十二月 2025 17:11:21 +0800
Subject: [PATCH] 1.海川开心-设备保养添加定时任务 2.海川开心-销售管理、采购管理展示字段修改
---
src/store/modules/dict.js | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/store/modules/dict.js b/src/store/modules/dict.js
index 7e62a67..af1a3fa 100644
--- a/src/store/modules/dict.js
+++ b/src/store/modules/dict.js
@@ -8,16 +8,16 @@
// 鑾峰彇瀛楀吀
getDict(_key) {
if (_key == null && _key == "") {
- return null;
+ return null
}
try {
for (let i = 0; i < this.dict.length; i++) {
if (this.dict[i].key == _key) {
- return this.dict[i].value;
+ return this.dict[i].value
}
}
} catch (e) {
- return null;
+ return null
}
},
// 璁剧疆瀛楀吀
@@ -26,27 +26,27 @@
this.dict.push({
key: _key,
value: value
- });
+ })
}
},
// 鍒犻櫎瀛楀吀
removeDict(_key) {
- var bln = false;
+ var bln = false
try {
for (let i = 0; i < this.dict.length; i++) {
if (this.dict[i].key == _key) {
- this.dict.splice(i, 1);
- return true;
+ this.dict.splice(i, 1)
+ return true
}
}
} catch (e) {
- bln = false;
+ bln = false
}
- return bln;
+ return bln
},
// 娓呯┖瀛楀吀
cleanDict() {
- this.dict = new Array();
+ this.dict = new Array()
},
// 鍒濆瀛楀吀
initDict() {
--
Gitblit v1.9.3