kz-ui-base 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/lims/utils/constant.js +4 -2
- package/api/qms/commonQms.js +4 -4
- package/common/src/api/common/common.js +4 -4
- package/common/src/components/base/dialog/editDialog.vue +383 -383
- package/common/src/plugins/index.js +3 -6
- package/common/src/utils/cache/bdCacheOld.js +211 -0
- package/common/src/utils/cache/eamCache.js +4 -6
- package/common/src/utils/cache/fdCacheOld.js +464 -0
- package/common/src/utils/cache/smCacheOld.js +35 -0
- package/common/src/utils/cache/tmCacheOld.js +44 -0
- package/kztool/css/0.1e7abc31.css +1 -0
- package/kztool/kztool.common.0.js +23035 -4174
- package/kztool/kztool.common.1.js +1 -1
- package/kztool/kztool.common.10.js +8 -8
- package/kztool/kztool.common.11.js +9 -1
- package/kztool/kztool.common.12.js +1 -1
- package/kztool/kztool.common.13.js +2 -2
- package/kztool/kztool.common.14.js +1 -1
- package/kztool/kztool.common.15.js +1 -1
- package/kztool/kztool.common.16.js +1 -1
- package/kztool/kztool.common.17.js +1 -1
- package/kztool/kztool.common.18.js +21 -1
- package/kztool/kztool.common.19.js +15 -3
- package/kztool/kztool.common.20.js +1 -1
- package/kztool/kztool.common.21.js +1 -1
- package/kztool/kztool.common.22.js +1 -1
- package/kztool/kztool.common.24.js +1 -1
- package/kztool/kztool.common.25.js +1 -1
- package/kztool/kztool.common.3.js +56 -5
- package/kztool/kztool.common.4.js +9 -1
- package/kztool/kztool.common.6.js +315 -78
- package/kztool/kztool.common.8.js +330 -85
- package/kztool/kztool.common.9.js +35 -27
- package/kztool/kztool.common.js +30802 -8788
- package/kztool/kztool.umd.0.js +23035 -4174
- package/kztool/kztool.umd.1.js +1 -1
- package/kztool/kztool.umd.10.js +8 -8
- package/kztool/kztool.umd.11.js +9 -1
- package/kztool/kztool.umd.12.js +1 -1
- package/kztool/kztool.umd.13.js +2 -2
- package/kztool/kztool.umd.14.js +1 -1
- package/kztool/kztool.umd.15.js +1 -1
- package/kztool/kztool.umd.16.js +1 -1
- package/kztool/kztool.umd.17.js +1 -1
- package/kztool/kztool.umd.18.js +21 -1
- package/kztool/kztool.umd.19.js +15 -3
- package/kztool/kztool.umd.20.js +1 -1
- package/kztool/kztool.umd.21.js +1 -1
- package/kztool/kztool.umd.22.js +1 -1
- package/kztool/kztool.umd.24.js +1 -1
- package/kztool/kztool.umd.25.js +1 -1
- package/kztool/kztool.umd.3.js +56 -5
- package/kztool/kztool.umd.4.js +9 -1
- package/kztool/kztool.umd.6.js +315 -78
- package/kztool/kztool.umd.8.js +330 -85
- package/kztool/kztool.umd.9.js +35 -27
- package/kztool/kztool.umd.js +30802 -8788
- package/kztool/kztool.umd.min.0.js +122 -110
- package/kztool/kztool.umd.min.11.js +1 -1
- package/kztool/kztool.umd.min.18.js +1 -1
- package/kztool/kztool.umd.min.19.js +1 -1
- package/kztool/kztool.umd.min.3.js +2 -2
- package/kztool/kztool.umd.min.4.js +1 -1
- package/kztool/kztool.umd.min.6.js +1 -1
- package/kztool/kztool.umd.min.8.js +1 -1
- package/kztool/kztool.umd.min.9.js +1 -1
- package/kztool/kztool.umd.min.js +434 -138
- package/package.json +1 -1
- package/kztool/css/0.c354e903.css +0 -1
|
@@ -196,5 +196,7 @@ export const SPLIT_FLAG = {
|
|
|
196
196
|
};
|
|
197
197
|
|
|
198
198
|
export const DICT_VALUE = localStorage.getItem('dict') ? JSON.parse(localStorage.getItem('dict')) : {}
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
export const PERSONNEL = localStorage.getItem('user') ? JSON.parse(localStorage.getItem('user')) : []
|
|
200
|
+
// let PERSONNEL = [];
|
|
201
|
+
// localforage.getItem("user").then(user => { PERSONNEL = user || []; }).catch(err => { console.error(err); });
|
|
202
|
+
// export { PERSONNEL };
|
package/api/qms/commonQms.js
CHANGED
|
@@ -267,8 +267,8 @@ export function getDictLabelByValue(dictType, value) {
|
|
|
267
267
|
return null;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
export
|
|
271
|
-
var cache =
|
|
270
|
+
export function getNickNameByUserId(value) {
|
|
271
|
+
var cache = that.$cache.local.getJSON("user");
|
|
272
272
|
if (!cache) return value;
|
|
273
273
|
for (var item of cache) {
|
|
274
274
|
if (item.userId == value) {
|
|
@@ -278,8 +278,8 @@ export async function getNickNameByUserId(value) {
|
|
|
278
278
|
return value;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
export
|
|
282
|
-
var cache =
|
|
281
|
+
export function getNameByDeptId(value) {
|
|
282
|
+
var cache = that.$cache.local.getJSON("dept");
|
|
283
283
|
if (!cache) return value;
|
|
284
284
|
for (var item of cache) {
|
|
285
285
|
if (item.deptId == value) {
|
|
@@ -234,8 +234,8 @@ export function convertDict(entity, prop, dict) {
|
|
|
234
234
|
entity[prop + "Label"] = getDictLabelByValue(dict, entity[prop]);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
export
|
|
238
|
-
var cache =
|
|
237
|
+
export function getNickNameByUserId(value) {
|
|
238
|
+
var cache = that.$cache.local.getJSON("user");
|
|
239
239
|
if (!cache) return value;
|
|
240
240
|
for (var item of cache) {
|
|
241
241
|
if (item.userId == value) {
|
|
@@ -245,8 +245,8 @@ export async function getNickNameByUserId(value) {
|
|
|
245
245
|
return value;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
export
|
|
249
|
-
var cache =
|
|
248
|
+
export function getNameByDeptId(value) {
|
|
249
|
+
var cache = that.$cache.local.getJSON("dept");
|
|
250
250
|
if (!cache) return value;
|
|
251
251
|
for (var item of cache) {
|
|
252
252
|
if (item.deptId == value) {
|