yahee-components 0.0.40 → 0.0.41
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/annex-upload/annex-upload.vue.js +154 -69
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/api/tool.js +1 -1
- package/es/complex-search/complex-search.vue.js +294 -240
- package/es/complex-search/complex-search.vue2.js +2 -130
- package/es/complex-search/index.js +5 -5
- package/es/copy/copy.vue.js +55 -39
- package/es/copy/copy.vue2.js +2 -34
- package/es/copy/index.js +3 -3
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +204 -158
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +211 -193
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/image-upload/image-upload.vue.js +113 -76
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input.vue.js +38 -17
- package/es/input/input.vue2.js +2 -33
- package/es/left-condition/index.js +5 -5
- package/es/left-condition/left-condition-sub.vue.js +86 -55
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +209 -91
- package/es/left-condition/left-condition.vue2.js +2 -152
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +77 -19
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -69
- package/es/operation-log/operation-log-content.vue.js +88 -78
- package/es/operation-log/operation-log-content.vue2.js +2 -35
- package/es/operation-log/operation-log-dialog.vue.js +68 -57
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -132
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +222 -183
- package/es/operation-log/operation-log.vue2.js +2 -133
- 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/es/_virtual/_plugin-vue_export-helper.js +0 -9
|
@@ -1,71 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import N from "../left-condition/left-condition.vue.js";
|
|
3
|
-
import { storage as s } from "../utils/storage.js";
|
|
4
|
-
const C = /* @__PURE__ */ c({
|
|
5
|
-
name: "YaheeLeftConditionEnum",
|
|
6
|
-
__name: "left-condition-enum",
|
|
7
|
-
props: {
|
|
8
|
-
selectList: {
|
|
9
|
-
type: Array,
|
|
10
|
-
default: () => []
|
|
11
|
-
},
|
|
12
|
-
countList: {
|
|
13
|
-
type: Array,
|
|
14
|
-
required: !1
|
|
15
|
-
},
|
|
16
|
-
enumEntity: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: ""
|
|
19
|
-
},
|
|
20
|
-
filterKey: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
totalCount: {
|
|
25
|
-
type: Number,
|
|
26
|
-
required: !1
|
|
27
|
-
},
|
|
28
|
-
noNeedRefreshNumFilterName: {
|
|
29
|
-
type: String,
|
|
30
|
-
required: !1
|
|
31
|
-
},
|
|
32
|
-
allIsCheckbox: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
required: !1
|
|
35
|
-
},
|
|
36
|
-
allIsEmpty: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
required: !1
|
|
39
|
-
},
|
|
40
|
-
translateUserId: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
required: !1
|
|
43
|
-
},
|
|
44
|
-
initFilters: {
|
|
45
|
-
type: Function,
|
|
46
|
-
required: !0
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
50
|
-
setup(a, { expose: u, emit: m }) {
|
|
51
|
-
u();
|
|
52
|
-
const e = a, i = m, t = d(e.selectList), f = (r) => {
|
|
53
|
-
i("filterChange", r);
|
|
54
|
-
}, p = () => {
|
|
55
|
-
i("setNoNeedRefreshNumFilterName", e.filterKey);
|
|
56
|
-
};
|
|
57
|
-
y(() => {
|
|
58
|
-
const r = `filter-key-${e.enumEntity}`, l = s.getWithExpireTime(r);
|
|
59
|
-
l ? t.value = l : (console.log(e.enumEntity), e.initFilters(e.enumEntity).then((n) => {
|
|
60
|
-
t.value = n.data, s.setWithExpireTime(r, t.value, 1200 * 1e3), console.log(n);
|
|
61
|
-
}).catch((n) => {
|
|
62
|
-
console.log(n);
|
|
63
|
-
}));
|
|
64
|
-
});
|
|
65
|
-
const o = { props: e, emit: i, options: t, filterChange: f, setNoNeedRefreshNumFilterName: p, BaseComponent: N };
|
|
66
|
-
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
67
|
-
}
|
|
68
|
-
});
|
|
1
|
+
import f from "./left-condition-enum.vue.js";
|
|
69
2
|
export {
|
|
70
|
-
|
|
3
|
+
f as default
|
|
71
4
|
};
|
|
@@ -1,90 +1,100 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as h, computed as d, createElementBlock as i, openBlock as n, createElementVNode as e, normalizeClass as u, toDisplayString as s, createVNode as f, unref as o, withCtx as m } from "vue";
|
|
2
|
+
import c from "../packages/components/hooks/useImgPath.js";
|
|
3
|
+
import { ElImage as N, ElIcon as g } from "element-plus";
|
|
4
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/image.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/image-viewer.scss";
|
|
7
|
+
import { Document as k } from "@element-plus/icons-vue";
|
|
8
|
+
const v = { key: 0 }, x = {
|
|
5
9
|
key: 1,
|
|
6
10
|
class: "d-flex ai-end"
|
|
7
|
-
},
|
|
11
|
+
}, y = ["src"], T = ["href"], b = {
|
|
8
12
|
key: 2,
|
|
9
13
|
class: "d-flex ai-end"
|
|
10
|
-
},
|
|
14
|
+
}, w = ["src"], W = ["href"], B = {
|
|
11
15
|
key: 3,
|
|
12
16
|
class: "d-flex ai-end"
|
|
13
|
-
},
|
|
17
|
+
}, C = ["src"], E = ["href"], z = {
|
|
14
18
|
key: 4,
|
|
15
19
|
class: "d-flex ai-end"
|
|
16
|
-
},
|
|
20
|
+
}, I = ["src"], j = ["href"], D = {
|
|
17
21
|
key: 5,
|
|
18
22
|
class: "d-flex ai-end"
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
t("
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
23
|
+
}, H = ["href"], L = ["innerHTML"], J = /* @__PURE__ */ h({
|
|
24
|
+
__name: "operation-log-content",
|
|
25
|
+
props: {
|
|
26
|
+
info: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default: () => {
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
id: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 0
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(t) {
|
|
37
|
+
const l = t, a = d(() => l.info.Notes.replace(/\n/g, "<br/>")), r = d(() => l.info.Notes.includes("http") ? l.info.Title.split(".")[0] : l.info.Title);
|
|
38
|
+
return (M, V) => (n(), i("div", null, [
|
|
39
|
+
e("div", {
|
|
40
|
+
class: u(["fontsize-15 paddingB10 text-color-primary", t.id == t.info.CreatedBy ? "d-flex" : ""])
|
|
41
|
+
}, s(r.value), 3),
|
|
42
|
+
t.info.Notes.includes(".jpg") && t.info.Notes.startsWith("http") ? (n(), i("div", v, [
|
|
43
|
+
f(o(N), {
|
|
44
|
+
class: "img",
|
|
45
|
+
src: t.info.Notes,
|
|
46
|
+
"preview-src-list": [t.info.Notes]
|
|
47
|
+
}, null, 8, ["src", "preview-src-list"])
|
|
48
|
+
])) : t.info.Notes.includes(".word") && t.info.Notes.startsWith("http") ? (n(), i("div", x, [
|
|
49
|
+
e("img", {
|
|
50
|
+
src: o(c)("file-word.png")
|
|
51
|
+
}, null, 8, y),
|
|
52
|
+
e("a", {
|
|
53
|
+
href: t.info.Notes,
|
|
54
|
+
target: "_blank"
|
|
55
|
+
}, s(t.info.Title), 9, T)
|
|
56
|
+
])) : t.info.Notes.includes(".pdf") && t.info.Notes.startsWith("http") ? (n(), i("div", b, [
|
|
57
|
+
e("img", {
|
|
58
|
+
src: o(c)("pdf.png")
|
|
59
|
+
}, null, 8, w),
|
|
60
|
+
e("a", {
|
|
61
|
+
href: t.info.Notes,
|
|
62
|
+
target: "_blank"
|
|
63
|
+
}, s(t.info.Title), 9, W)
|
|
64
|
+
])) : t.info.Notes.includes(".ppt") && t.info.Notes.startsWith("http") ? (n(), i("div", B, [
|
|
65
|
+
e("img", {
|
|
66
|
+
src: o(c)("ppt.png")
|
|
67
|
+
}, null, 8, C),
|
|
68
|
+
e("a", {
|
|
69
|
+
href: t.info.Notes,
|
|
70
|
+
target: "_blank"
|
|
71
|
+
}, s(t.info.Title), 9, E)
|
|
72
|
+
])) : t.info.Notes.includes(".xls") && t.info.Notes.startsWith("http") ? (n(), i("div", z, [
|
|
73
|
+
e("img", {
|
|
74
|
+
src: o(c)("excel.png")
|
|
75
|
+
}, null, 8, I),
|
|
76
|
+
e("a", {
|
|
77
|
+
href: t.info.Notes,
|
|
78
|
+
target: "_blank"
|
|
79
|
+
}, s(t.info.Title), 9, j)
|
|
80
|
+
])) : t.info.Notes.includes("http") ? (n(), i("div", D, [
|
|
81
|
+
f(o(g), { size: "40" }, {
|
|
82
|
+
default: m(() => [
|
|
83
|
+
f(o(k))
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}),
|
|
87
|
+
e("a", {
|
|
88
|
+
href: t.info.Notes,
|
|
89
|
+
target: "_blank"
|
|
90
|
+
}, s(t.info.Title), 9, H)
|
|
91
|
+
])) : (n(), i("div", {
|
|
92
|
+
key: 6,
|
|
93
|
+
innerHTML: a.value
|
|
94
|
+
}, null, 8, L))
|
|
95
|
+
]));
|
|
96
|
+
}
|
|
97
|
+
});
|
|
88
98
|
export {
|
|
89
|
-
|
|
99
|
+
J as default
|
|
90
100
|
};
|
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import m from "../packages/components/hooks/useImgPath.js";
|
|
3
|
-
import { ElImage as s, ElIcon as l } from "element-plus";
|
|
4
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
-
import "element-plus/theme-chalk/src/image.scss";
|
|
6
|
-
import "element-plus/theme-chalk/src/image-viewer.scss";
|
|
7
|
-
import { Document as a } from "@element-plus/icons-vue";
|
|
8
|
-
const E = /* @__PURE__ */ u({
|
|
9
|
-
__name: "operation-log-content",
|
|
10
|
-
props: {
|
|
11
|
-
info: {
|
|
12
|
-
type: Object,
|
|
13
|
-
default: () => {
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
id: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: 0
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(o, { expose: n }) {
|
|
22
|
-
n();
|
|
23
|
-
const e = o, i = r(() => e.info.Notes.replace(/\n/g, "<br/>")), p = r(() => e.info.Notes.includes("http") ? e.info.Title.split(".")[0] : e.info.Title), t = { props: e, notes: i, title: p, get useImagePath() {
|
|
24
|
-
return m;
|
|
25
|
-
}, get ElIcon() {
|
|
26
|
-
return l;
|
|
27
|
-
}, get ElImage() {
|
|
28
|
-
return s;
|
|
29
|
-
}, get Document() {
|
|
30
|
-
return a;
|
|
31
|
-
} };
|
|
32
|
-
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
1
|
+
import f from "./operation-log-content.vue.js";
|
|
35
2
|
export {
|
|
36
|
-
|
|
3
|
+
f as default
|
|
37
4
|
};
|
|
@@ -1,59 +1,70 @@
|
|
|
1
|
-
import n from "
|
|
2
|
-
import {
|
|
3
|
-
import f from "
|
|
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
|
-
|
|
1
|
+
import { defineComponent as u, createBlock as g, openBlock as h, unref as e, withCtx as t, createElementVNode as n, toDisplayString as l, createVNode as c, createTextVNode as r } from "vue";
|
|
2
|
+
import { M2 as a } from "../utils/translate.js";
|
|
3
|
+
import { ElDialog as V, ElButton as f } from "element-plus";
|
|
4
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/dialog.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/overlay.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
8
|
+
const _ = ["href"], y = { class: "dialog-footer" }, E = /* @__PURE__ */ u({
|
|
9
|
+
__name: "operation-log-dialog",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
docInfo: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => {
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue", "confirmUpload"],
|
|
22
|
+
setup(o, { emit: m }) {
|
|
23
|
+
const p = o, i = m, d = () => {
|
|
24
|
+
i("update:modelValue", !1);
|
|
25
|
+
}, s = () => {
|
|
26
|
+
i("confirmUpload", p.docInfo);
|
|
27
|
+
};
|
|
28
|
+
return (k, x) => (h(), g(e(V), {
|
|
29
|
+
"model-value": o.modelValue,
|
|
30
|
+
width: "600px",
|
|
31
|
+
title: e(a)("上传文件"),
|
|
32
|
+
draggable: "",
|
|
33
|
+
"close-on-click-modal": !1,
|
|
34
|
+
onClose: d
|
|
35
|
+
}, {
|
|
36
|
+
footer: t(() => [
|
|
37
|
+
n("div", y, [
|
|
38
|
+
c(e(f), {
|
|
39
|
+
type: "primary",
|
|
40
|
+
plain: "",
|
|
41
|
+
onClick: s
|
|
42
|
+
}, {
|
|
43
|
+
default: t(() => [
|
|
44
|
+
r(l(e(a)("确认")), 1)
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
}),
|
|
48
|
+
c(e(f), {
|
|
49
|
+
type: "default",
|
|
50
|
+
onClick: d
|
|
51
|
+
}, {
|
|
52
|
+
default: t(() => [
|
|
53
|
+
r(l(e(a)("取消")), 1)
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
})
|
|
57
|
+
])
|
|
58
|
+
]),
|
|
59
|
+
default: t(() => [
|
|
60
|
+
n("a", {
|
|
61
|
+
href: o.docInfo.fileUrl
|
|
62
|
+
}, l(o.docInfo.fileName), 9, _)
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 8, ["model-value", "title"]));
|
|
66
|
+
}
|
|
67
|
+
});
|
|
57
68
|
export {
|
|
58
|
-
|
|
69
|
+
E as default
|
|
59
70
|
};
|
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { M2 as p } from "../utils/translate.js";
|
|
3
|
-
import { ElButton as i, ElDialog as m } from "element-plus";
|
|
4
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
5
|
-
import "element-plus/theme-chalk/src/dialog.scss";
|
|
6
|
-
import "element-plus/theme-chalk/src/overlay.scss";
|
|
7
|
-
import "element-plus/theme-chalk/src/button.scss";
|
|
8
|
-
const U = /* @__PURE__ */ a({
|
|
9
|
-
__name: "operation-log-dialog",
|
|
10
|
-
props: {
|
|
11
|
-
modelValue: {
|
|
12
|
-
type: Boolean,
|
|
13
|
-
default: !1
|
|
14
|
-
},
|
|
15
|
-
docInfo: {
|
|
16
|
-
type: Object,
|
|
17
|
-
default: () => {
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:modelValue", "confirmUpload"],
|
|
22
|
-
setup(r, { expose: l, emit: n }) {
|
|
23
|
-
l();
|
|
24
|
-
const e = r, o = n, t = { props: e, emits: o, closeDialog: () => {
|
|
25
|
-
o("update:modelValue", !1);
|
|
26
|
-
}, confirmUpload: () => {
|
|
27
|
-
o("confirmUpload", e.docInfo);
|
|
28
|
-
}, get M2() {
|
|
29
|
-
return p;
|
|
30
|
-
}, get ElDialog() {
|
|
31
|
-
return m;
|
|
32
|
-
}, get ElButton() {
|
|
33
|
-
return i;
|
|
34
|
-
} };
|
|
35
|
-
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
1
|
+
import f from "./operation-log-dialog.vue.js";
|
|
38
2
|
export {
|
|
39
|
-
|
|
3
|
+
f as default
|
|
40
4
|
};
|