yahee-components 0.0.52 → 0.0.54
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/es/_virtual/_plugin-vue_export-helper.js +9 -0
- package/es/annex-upload/annex-upload.vue.js +69 -154
- package/es/annex-upload/annex-upload.vue2.js +119 -2
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +240 -312
- package/es/complex-search/complex-search.vue2.js +154 -2
- package/es/complex-search/index.js +5 -5
- package/es/copy/copy.vue.js +39 -55
- package/es/copy/copy.vue2.js +34 -2
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
- package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
- package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
- package/es/image-upload/image-upload.vue.js +76 -113
- package/es/image-upload/image-upload.vue2.js +91 -2
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +17 -38
- package/es/input/input.vue2.js +33 -2
- package/es/left-condition/index.js +5 -5
- package/es/left-condition/left-condition-sub.vue.js +55 -86
- package/es/left-condition/left-condition-sub.vue2.js +76 -2
- package/es/left-condition/left-condition.vue.js +93 -210
- package/es/left-condition/left-condition.vue2.js +153 -2
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
- package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
- package/es/operation-log/operation-log-content.vue.js +78 -92
- package/es/operation-log/operation-log-content.vue2.js +39 -2
- package/es/operation-log/operation-log-dialog.vue.js +57 -68
- package/es/operation-log/operation-log-dialog.vue2.js +38 -2
- package/es/operation-log/operation-log-form.vue.js +132 -183
- package/es/operation-log/operation-log-form.vue2.js +104 -2
- package/es/operation-log/operation-log.vue.js +186 -227
- package/es/operation-log/operation-log.vue2.js +135 -2
- package/es/packages/components/api/log-server.js +5 -5
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/utils/translate.js +19 -19
- package/package.json +1 -1
- package/types/src/installs.d.ts +3 -0
- package/types/src/left-condition/index.d.ts +3 -0
- package/types/src/left-condition/left-condition.vue.d.ts +2 -0
package/es/utils/translate.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sessionStorageProxy as
|
|
1
|
+
import { sessionStorageProxy as g, storage as l } from "./storage.js";
|
|
2
2
|
import m from "../_virtual/lodash.js";
|
|
3
3
|
import "../node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.js";
|
|
4
4
|
import { i18nType as c } from "../static/CommonObject.js";
|
|
@@ -6,24 +6,24 @@ import { Get as h } from "../api/server.js";
|
|
|
6
6
|
import y from "../node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/axios.js";
|
|
7
7
|
const $ = (e) => {
|
|
8
8
|
var i;
|
|
9
|
-
const t =
|
|
9
|
+
const t = g.get("employee") || {}, o = d(e);
|
|
10
10
|
if (o === 0) return e;
|
|
11
|
-
const
|
|
12
|
-
if (m.isEmpty(
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
15
|
-
return
|
|
11
|
+
const n = g.get(`translate${t.Language}`) || {};
|
|
12
|
+
if (m.isEmpty(n) || t.Language === "zh-CN" || !/[\u4e00-\u9fa5]/.test(e)) return e;
|
|
13
|
+
const s = n[o];
|
|
14
|
+
if (s)
|
|
15
|
+
return s;
|
|
16
16
|
{
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
17
|
+
const r = ((i = localStorage.getItem("localStorageListId")) == null ? void 0 : i.split(",")) || [];
|
|
18
|
+
if (r.includes(o.toString()))
|
|
19
19
|
return e;
|
|
20
|
-
|
|
20
|
+
r.push(o.toString()), localStorage.setItem("localStorageListId", r.join(","));
|
|
21
21
|
const p = {
|
|
22
22
|
projectId: "place-order",
|
|
23
23
|
id: o,
|
|
24
24
|
cn: e
|
|
25
|
-
},
|
|
26
|
-
return console.log(
|
|
25
|
+
}, u = "http://api-tools-test.yahee.com.cn:81/api/translation/addTranslate";
|
|
26
|
+
return console.log(u, "url"), y.post(u, p, { withCredentials: !0 }).then((f) => {
|
|
27
27
|
f.data.code;
|
|
28
28
|
}), e;
|
|
29
29
|
}
|
|
@@ -31,21 +31,21 @@ const $ = (e) => {
|
|
|
31
31
|
function d(e) {
|
|
32
32
|
let t = 0;
|
|
33
33
|
if (!e || e.length === 0) return t;
|
|
34
|
-
for (let o = 0,
|
|
34
|
+
for (let o = 0, n = e.length; o < n; o++) {
|
|
35
35
|
const a = e.charCodeAt(o);
|
|
36
36
|
t = (t << 5) - t + a, t |= 0;
|
|
37
37
|
}
|
|
38
38
|
return t;
|
|
39
39
|
}
|
|
40
40
|
function j(e, t = "") {
|
|
41
|
-
const o =
|
|
41
|
+
const o = l.get("totalEmployees");
|
|
42
42
|
if (!e || m.isEmpty(o)) return t;
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
43
|
+
const n = g.get("employee");
|
|
44
|
+
if (n.Language === c.CN) return t;
|
|
45
45
|
const a = o[e];
|
|
46
|
-
return a ?
|
|
47
|
-
const i =
|
|
48
|
-
return
|
|
46
|
+
return a ? n.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((s) => {
|
|
47
|
+
const i = l.get("totalEmployees") || {}, r = s.data[0];
|
|
48
|
+
return r ? (i[e] = r, l.setWithExpireTime("totalEmployees", i, 3600 * 1e3), n.Language === c.CN ? r.name || "" : r.enName || "") : t;
|
|
49
49
|
}), t);
|
|
50
50
|
}
|
|
51
51
|
function E(e) {
|
package/package.json
CHANGED
package/types/src/installs.d.ts
CHANGED
|
@@ -1452,6 +1452,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
|
|
|
1452
1452
|
noNeedRefreshNumFilterName?: string;
|
|
1453
1453
|
filterKey: string;
|
|
1454
1454
|
defaultValues?: Array<string | number | boolean>;
|
|
1455
|
+
showTotal?: boolean;
|
|
1455
1456
|
}, {
|
|
1456
1457
|
clickAllSelected: () => void;
|
|
1457
1458
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -1476,6 +1477,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
|
|
|
1476
1477
|
noNeedRefreshNumFilterName?: string;
|
|
1477
1478
|
filterKey: string;
|
|
1478
1479
|
defaultValues?: Array<string | number | boolean>;
|
|
1480
|
+
showTotal?: boolean;
|
|
1479
1481
|
}> & Readonly<{
|
|
1480
1482
|
onFilterChange?: (...args: any[]) => any;
|
|
1481
1483
|
onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
|
|
@@ -1496,6 +1498,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
|
|
|
1496
1498
|
staticSearch: boolean;
|
|
1497
1499
|
noNeedRefreshNumFilterName: string;
|
|
1498
1500
|
defaultValues: Array<string | number | boolean>;
|
|
1501
|
+
showTotal: boolean;
|
|
1499
1502
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1500
1503
|
itemRefs: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1501
1504
|
multiSelectList: Array<any>;
|
|
@@ -20,6 +20,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
|
|
|
20
20
|
noNeedRefreshNumFilterName?: string;
|
|
21
21
|
filterKey: string;
|
|
22
22
|
defaultValues?: Array<string | number | boolean>;
|
|
23
|
+
showTotal?: boolean;
|
|
23
24
|
}, {
|
|
24
25
|
clickAllSelected: () => void;
|
|
25
26
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
@@ -44,6 +45,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
|
|
|
44
45
|
noNeedRefreshNumFilterName?: string;
|
|
45
46
|
filterKey: string;
|
|
46
47
|
defaultValues?: Array<string | number | boolean>;
|
|
48
|
+
showTotal?: boolean;
|
|
47
49
|
}> & Readonly<{
|
|
48
50
|
onFilterChange?: (...args: any[]) => any;
|
|
49
51
|
onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
|
|
@@ -64,6 +66,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
|
|
|
64
66
|
staticSearch: boolean;
|
|
65
67
|
noNeedRefreshNumFilterName: string;
|
|
66
68
|
defaultValues: Array<string | number | boolean>;
|
|
69
|
+
showTotal: boolean;
|
|
67
70
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
68
71
|
itemRefs: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
69
72
|
multiSelectList: Array<any>;
|
|
@@ -19,6 +19,7 @@ type __VLS_Props = {
|
|
|
19
19
|
noNeedRefreshNumFilterName?: string;
|
|
20
20
|
filterKey: string;
|
|
21
21
|
defaultValues?: Array<string | number | boolean>;
|
|
22
|
+
showTotal?: boolean;
|
|
22
23
|
};
|
|
23
24
|
declare function clickAllSelected(): void;
|
|
24
25
|
declare const _default: DefineComponent<__VLS_Props, {
|
|
@@ -46,6 +47,7 @@ declare const _default: DefineComponent<__VLS_Props, {
|
|
|
46
47
|
staticSearch: boolean;
|
|
47
48
|
noNeedRefreshNumFilterName: string;
|
|
48
49
|
defaultValues: Array<string | number | boolean>;
|
|
50
|
+
showTotal: boolean;
|
|
49
51
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
50
52
|
itemRefs: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
51
53
|
multiSelectList: Array<any>;
|