yahee-components 0.0.91 → 0.0.93
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 -51
- package/es/annex-upload/annex-upload.vue2.js +2 -119
- package/es/annex-upload/index.js +3 -3
- package/es/border-wrap/border-wrap.vue.js +95 -64
- package/es/border-wrap/border-wrap.vue2.js +2 -46
- package/es/common-import/common-import.vue.js +666 -369
- package/es/common-import/common-import.vue2.js +2 -337
- package/es/common-import/index.js +3 -3
- package/es/complex-search/complex-search.vue.js +37 -36
- package/es/complex-search/complex-search.vue2.js +82 -94
- package/es/copy/copy.vue.js +55 -37
- 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 +213 -114
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +2 -125
- package/es/drop-down-condition/drop-down-condition.vue.js +215 -115
- package/es/drop-down-condition/drop-down-condition.vue2.js +2 -127
- package/es/echart-gauge/echart-gauge.vue.js +140 -12
- package/es/echart-gauge/echart-gauge.vue2.js +2 -147
- package/es/echart-gauge/index.js +3 -3
- package/es/help-tag/help-tag.vue.js +66 -0
- package/es/help-tag/help-tag.vue2.js +4 -0
- package/es/help-tag/index.js +7 -0
- package/es/help-tag/props.js +9 -0
- package/es/help-tag/style/index.css +0 -0
- package/es/image-upload/image-upload.vue.js +170 -109
- package/es/image-upload/image-upload.vue2.js +2 -91
- package/es/image-upload/index.js +3 -3
- package/es/index.js +22 -18
- 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/installs.js +10 -8
- package/es/left-condition/index.js +3 -3
- package/es/left-condition/left-condition-sub.vue.js +91 -32
- package/es/left-condition/left-condition-sub.vue2.js +2 -76
- package/es/left-condition/left-condition.vue.js +218 -70
- package/es/left-condition/left-condition.vue2.js +2 -160
- package/es/left-condition-enum/index.js +3 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +49 -20
- package/es/left-condition-enum/left-condition-enum.vue2.js +2 -40
- package/es/operation-log/operation-log-content.vue.js +92 -71
- package/es/operation-log/operation-log-content.vue2.js +2 -39
- package/es/operation-log/operation-log-dialog.vue.js +67 -45
- package/es/operation-log/operation-log-dialog.vue2.js +2 -38
- package/es/operation-log/operation-log-form.vue.js +183 -108
- package/es/operation-log/operation-log-form.vue2.js +2 -104
- package/es/operation-log/operation-log.vue.js +228 -119
- package/es/operation-log/operation-log.vue2.js +2 -135
- package/es/packages/components/api/log-server.js +6 -6
- package/es/packages/components/api/upload-server.js +1 -1
- package/es/packages/components/hooks/useEcharts.js +19 -19
- package/es/packages/components/hooks/useImg.js +8 -8
- package/es/scale-screen/index.js +4 -4
- package/es/scale-screen/scale-screen.vue.js +126 -19
- package/es/scale-screen/scale-screen.vue2.js +2 -125
- package/es/yahee-components.css +1 -1
- package/lib/help-tag/style/index.css +0 -0
- package/package.json +1 -1
- package/types/src/components.d.ts +1 -0
- package/types/src/help-tag/help-tag.d.ts +2 -0
- package/types/src/help-tag/help-tag.vue.d.ts +589 -0
- package/types/src/help-tag/index.d.ts +593 -0
- package/types/src/help-tag/props.d.ts +27 -0
- package/types/src/complex-search/complex-search.vue.d.ts +0 -3
- package/types/src/complex-search/index.d.ts +0 -7
- package/types/src/installs.d.ts +0 -2649
|
@@ -1,110 +1,185 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
1
|
+
import { defineComponent as k, reactive as v, ref as b, onMounted as B, createBlock as f, openBlock as u, unref as t, withCtx as o, createVNode as r, createElementBlock as x, Fragment as N, renderList as T, createTextVNode as g, toDisplayString as y } from "vue";
|
|
2
|
+
import { ElForm as E, ElFormItem as m, ElDatePicker as M, ElSelect as Y, ElOption as S, ElInput as _, ElButton as d } from "element-plus";
|
|
3
|
+
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
+
import "element-plus/theme-chalk/src/form.scss";
|
|
5
|
+
import "element-plus/theme-chalk/src/date-picker.scss";
|
|
6
|
+
import "element-plus/theme-chalk/src/input.scss";
|
|
7
|
+
import "element-plus/theme-chalk/src/scrollbar.scss";
|
|
8
|
+
import "element-plus/theme-chalk/src/popper.scss";
|
|
9
|
+
import "element-plus/theme-chalk/src/button.scss";
|
|
10
|
+
import "element-plus/theme-chalk/src/form-item.scss";
|
|
11
|
+
import "element-plus/theme-chalk/src/tag.scss";
|
|
12
|
+
import "element-plus/theme-chalk/src/option.scss";
|
|
13
|
+
import "element-plus/theme-chalk/src/option-group.scss";
|
|
14
|
+
import "element-plus/theme-chalk/src/select.scss";
|
|
15
|
+
import { Search as F } from "@element-plus/icons-vue";
|
|
16
|
+
import { getGlobalNotesUsers as U } from "../packages/components/api/log/index.js";
|
|
17
|
+
import { M2 as n } from "../utils/translate.js";
|
|
18
|
+
const Z = /* @__PURE__ */ k({
|
|
19
|
+
__name: "operation-log-form",
|
|
20
|
+
props: {
|
|
21
|
+
businessKey: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
businessName: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ""
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
emits: ["filterChange"],
|
|
31
|
+
setup(C, { emit: h }) {
|
|
32
|
+
const p = C, s = v({
|
|
33
|
+
timeValue: [],
|
|
34
|
+
CreatedBy: "",
|
|
35
|
+
Notes: "",
|
|
36
|
+
search: "",
|
|
37
|
+
Mark: null
|
|
38
|
+
}), c = b(), D = [
|
|
39
|
+
{
|
|
40
|
+
text: n("最近三天"),
|
|
41
|
+
value: () => {
|
|
42
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
43
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 3), [e, l];
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
text: n("最近一周"),
|
|
48
|
+
value: () => {
|
|
49
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
50
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 7), [e, l];
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
text: n("最近十五天"),
|
|
55
|
+
value: () => {
|
|
56
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
57
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 15), [e, l];
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
text: n("最近一个月"),
|
|
62
|
+
value: () => {
|
|
63
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
64
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 30), [e, l];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
], V = () => {
|
|
68
|
+
const l = new FormData();
|
|
69
|
+
l.append(
|
|
70
|
+
"filter",
|
|
71
|
+
JSON.stringify({ BusinessKey: p.businessKey, BusinessName: p.businessName })
|
|
72
|
+
), U(l).then((e) => {
|
|
73
|
+
c.value = e;
|
|
74
|
+
});
|
|
75
|
+
}, w = h, i = (l) => {
|
|
76
|
+
s.Mark = l, w("filterChange", s);
|
|
77
|
+
};
|
|
78
|
+
return B(() => {
|
|
79
|
+
V();
|
|
80
|
+
}), (l, e) => (u(), f(t(E), {
|
|
81
|
+
model: s,
|
|
82
|
+
inline: !0,
|
|
83
|
+
"label-width": "auto",
|
|
84
|
+
size: "small"
|
|
85
|
+
}, {
|
|
86
|
+
default: o(() => [
|
|
87
|
+
r(t(m), null, {
|
|
88
|
+
default: o(() => [
|
|
89
|
+
r(t(M), {
|
|
90
|
+
modelValue: s.timeValue,
|
|
91
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => s.timeValue = a),
|
|
92
|
+
type: "daterange",
|
|
93
|
+
format: "YYYY-MM-DD",
|
|
94
|
+
"value-format": "YYYY-MM-DD",
|
|
95
|
+
"unlink-panels": "",
|
|
96
|
+
"range-separator": t(n)("至"),
|
|
97
|
+
"start-placeholder": t(n)("开始日期"),
|
|
98
|
+
"end-placeholder": t(n)("结束日期"),
|
|
99
|
+
shortcuts: D,
|
|
100
|
+
size: "small",
|
|
101
|
+
clearable: "",
|
|
102
|
+
onChange: i
|
|
103
|
+
}, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
r(t(m), null, {
|
|
108
|
+
default: o(() => [
|
|
109
|
+
r(t(Y), {
|
|
110
|
+
modelValue: s.CreatedBy,
|
|
111
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => s.CreatedBy = a),
|
|
112
|
+
placeholder: t(n)("请选择创建人"),
|
|
113
|
+
style: { width: "120px" },
|
|
114
|
+
size: "small",
|
|
115
|
+
clearable: "",
|
|
116
|
+
onChange: i
|
|
117
|
+
}, {
|
|
118
|
+
default: o(() => [
|
|
119
|
+
(u(!0), x(N, null, T(c.value, (a) => (u(), f(t(S), {
|
|
120
|
+
key: a.CreatedBy,
|
|
121
|
+
label: a.CreatedName,
|
|
122
|
+
value: a.CreatedBy
|
|
123
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["modelValue", "placeholder"])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
r(t(m), null, {
|
|
131
|
+
default: o(() => [
|
|
132
|
+
r(t(_), {
|
|
133
|
+
modelValue: s.search,
|
|
134
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => s.search = a),
|
|
135
|
+
placeholder: t(n)("综合搜索"),
|
|
136
|
+
clearable: "",
|
|
137
|
+
style: { width: "160px" }
|
|
138
|
+
}, {
|
|
139
|
+
append: o(() => [
|
|
140
|
+
r(t(d), {
|
|
141
|
+
icon: t(F),
|
|
142
|
+
onClick: i
|
|
143
|
+
}, null, 8, ["icon"])
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["modelValue", "placeholder"])
|
|
147
|
+
]),
|
|
148
|
+
_: 1
|
|
149
|
+
}),
|
|
150
|
+
r(t(m), null, {
|
|
151
|
+
default: o(() => [
|
|
152
|
+
r(t(d), {
|
|
153
|
+
type: "primary",
|
|
154
|
+
onClick: e[3] || (e[3] = (a) => i(null))
|
|
155
|
+
}, {
|
|
156
|
+
default: o(() => [
|
|
157
|
+
g(y(t(n)("搜索全部")), 1)
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
})
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}),
|
|
164
|
+
r(t(m), null, {
|
|
165
|
+
default: o(() => [
|
|
166
|
+
r(t(d), {
|
|
167
|
+
type: "primary",
|
|
168
|
+
onClick: e[4] || (e[4] = (a) => i("Check"))
|
|
169
|
+
}, {
|
|
170
|
+
default: o(() => [
|
|
171
|
+
g(y(t(n)("审核节点备注")), 1)
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
})
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
})
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}, 8, ["model"]));
|
|
181
|
+
}
|
|
182
|
+
});
|
|
108
183
|
export {
|
|
109
|
-
|
|
184
|
+
Z as default
|
|
110
185
|
};
|
|
@@ -1,106 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ElOption as _, ElSelect as h, ElInput as w, ElFormItem as S, ElButton as y, ElDatePicker as T, ElForm as b } from "element-plus";
|
|
3
|
-
import "element-plus/theme-chalk/src/base.scss";
|
|
4
|
-
import "element-plus/theme-chalk/src/form.scss";
|
|
5
|
-
import "element-plus/theme-chalk/src/date-picker.scss";
|
|
6
|
-
import "element-plus/theme-chalk/src/input.scss";
|
|
7
|
-
import "element-plus/theme-chalk/src/scrollbar.scss";
|
|
8
|
-
import "element-plus/theme-chalk/src/popper.scss";
|
|
9
|
-
import "element-plus/theme-chalk/src/button.scss";
|
|
10
|
-
import "element-plus/theme-chalk/src/form-item.scss";
|
|
11
|
-
import "element-plus/theme-chalk/src/tag.scss";
|
|
12
|
-
import "element-plus/theme-chalk/src/option.scss";
|
|
13
|
-
import "element-plus/theme-chalk/src/option-group.scss";
|
|
14
|
-
import "element-plus/theme-chalk/src/select.scss";
|
|
15
|
-
import { Search as v } from "@element-plus/icons-vue";
|
|
16
|
-
import { getGlobalNotesUsers as x } from "../packages/components/api/log/index.js";
|
|
17
|
-
import { M2 as r } from "../utils/translate.js";
|
|
18
|
-
const A = /* @__PURE__ */ f({
|
|
19
|
-
__name: "operation-log-form",
|
|
20
|
-
props: {
|
|
21
|
-
businessKey: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: ""
|
|
24
|
-
},
|
|
25
|
-
businessName: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: ""
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
emits: ["filterChange"],
|
|
31
|
-
setup(u, { expose: p, emit: l }) {
|
|
32
|
-
p();
|
|
33
|
-
const n = u, o = d({
|
|
34
|
-
timeValue: [],
|
|
35
|
-
CreatedBy: "",
|
|
36
|
-
Notes: "",
|
|
37
|
-
search: "",
|
|
38
|
-
Mark: null
|
|
39
|
-
}), s = E(), c = [
|
|
40
|
-
{
|
|
41
|
-
text: r("最近三天"),
|
|
42
|
-
value: () => {
|
|
43
|
-
const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
44
|
-
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 3), [e, t];
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
text: r("最近一周"),
|
|
49
|
-
value: () => {
|
|
50
|
-
const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
51
|
-
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 7), [e, t];
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
text: r("最近十五天"),
|
|
56
|
-
value: () => {
|
|
57
|
-
const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
58
|
-
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 15), [e, t];
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
text: r("最近一个月"),
|
|
63
|
-
value: () => {
|
|
64
|
-
const t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
65
|
-
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 30), [e, t];
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
], a = () => {
|
|
69
|
-
const t = new FormData();
|
|
70
|
-
t.append(
|
|
71
|
-
"filter",
|
|
72
|
-
JSON.stringify({ BusinessKey: n.businessKey, BusinessName: n.businessName })
|
|
73
|
-
), x(t).then((e) => {
|
|
74
|
-
s.value = e;
|
|
75
|
-
});
|
|
76
|
-
}, i = l, g = (t) => {
|
|
77
|
-
o.Mark = t, i("filterChange", o);
|
|
78
|
-
};
|
|
79
|
-
D(() => {
|
|
80
|
-
a();
|
|
81
|
-
});
|
|
82
|
-
const m = { props: n, form: o, dataOptions: s, shortcuts: c, getData: a, emit: i, searchChange: g, get ElForm() {
|
|
83
|
-
return b;
|
|
84
|
-
}, get ElDatePicker() {
|
|
85
|
-
return T;
|
|
86
|
-
}, get ElButton() {
|
|
87
|
-
return y;
|
|
88
|
-
}, get ElFormItem() {
|
|
89
|
-
return S;
|
|
90
|
-
}, get ElInput() {
|
|
91
|
-
return w;
|
|
92
|
-
}, get ElSelect() {
|
|
93
|
-
return h;
|
|
94
|
-
}, get ElOption() {
|
|
95
|
-
return _;
|
|
96
|
-
}, get Search() {
|
|
97
|
-
return v;
|
|
98
|
-
}, get M2() {
|
|
99
|
-
return r;
|
|
100
|
-
} };
|
|
101
|
-
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
1
|
+
import f from "./operation-log-form.vue.js";
|
|
104
2
|
export {
|
|
105
|
-
|
|
3
|
+
f as default
|
|
106
4
|
};
|