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
|
@@ -1,185 +1,134 @@
|
|
|
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
|
-
r(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
r(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
});
|
|
1
|
+
import u from "./operation-log-form.vue2.js";
|
|
2
|
+
import { createBlock as t, openBlock as n, withCtx as r, createVNode as a, createElementBlock as i, Fragment as c, renderList as E, createTextVNode as m, toDisplayString as d } from "vue";
|
|
3
|
+
import f from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function C(h, o, F, l, g, B) {
|
|
5
|
+
return n(), t(l.ElForm, {
|
|
6
|
+
model: l.form,
|
|
7
|
+
inline: !0,
|
|
8
|
+
"label-width": "auto",
|
|
9
|
+
size: "small"
|
|
10
|
+
}, {
|
|
11
|
+
default: r(() => [
|
|
12
|
+
a(l.ElFormItem, null, {
|
|
13
|
+
default: r(() => [
|
|
14
|
+
a(l.ElDatePicker, {
|
|
15
|
+
modelValue: l.form.timeValue,
|
|
16
|
+
"onUpdate:modelValue": o[0] || (o[0] = (e) => l.form.timeValue = e),
|
|
17
|
+
type: "daterange",
|
|
18
|
+
format: "YYYY-MM-DD",
|
|
19
|
+
"value-format": "YYYY-MM-DD",
|
|
20
|
+
"unlink-panels": "",
|
|
21
|
+
"range-separator": l.M2("至"),
|
|
22
|
+
"start-placeholder": l.M2("开始日期"),
|
|
23
|
+
"end-placeholder": l.M2("结束日期"),
|
|
24
|
+
shortcuts: l.shortcuts,
|
|
25
|
+
size: "small",
|
|
26
|
+
clearable: "",
|
|
27
|
+
onChange: l.searchChange
|
|
28
|
+
}, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
/* STABLE */
|
|
32
|
+
}),
|
|
33
|
+
a(l.ElFormItem, null, {
|
|
34
|
+
default: r(() => [
|
|
35
|
+
a(l.ElSelect, {
|
|
36
|
+
modelValue: l.form.CreatedBy,
|
|
37
|
+
"onUpdate:modelValue": o[1] || (o[1] = (e) => l.form.CreatedBy = e),
|
|
38
|
+
placeholder: l.M2("请选择创建人"),
|
|
39
|
+
style: { width: "120px" },
|
|
40
|
+
size: "small",
|
|
41
|
+
clearable: "",
|
|
42
|
+
onChange: l.searchChange
|
|
43
|
+
}, {
|
|
44
|
+
default: r(() => [
|
|
45
|
+
(n(!0), i(
|
|
46
|
+
c,
|
|
47
|
+
null,
|
|
48
|
+
E(l.dataOptions, (e) => (n(), t(l.ElOption, {
|
|
49
|
+
key: e.CreatedBy,
|
|
50
|
+
label: e.CreatedName,
|
|
51
|
+
value: e.CreatedBy
|
|
52
|
+
}, null, 8, ["label", "value"]))),
|
|
53
|
+
128
|
|
54
|
+
/* KEYED_FRAGMENT */
|
|
55
|
+
))
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
/* STABLE */
|
|
59
|
+
}, 8, ["modelValue", "placeholder"])
|
|
60
|
+
]),
|
|
61
|
+
_: 1
|
|
62
|
+
/* STABLE */
|
|
63
|
+
}),
|
|
64
|
+
a(l.ElFormItem, null, {
|
|
65
|
+
default: r(() => [
|
|
66
|
+
a(l.ElInput, {
|
|
67
|
+
modelValue: l.form.search,
|
|
68
|
+
"onUpdate:modelValue": o[2] || (o[2] = (e) => l.form.search = e),
|
|
69
|
+
placeholder: l.M2("综合搜索"),
|
|
70
|
+
clearable: "",
|
|
71
|
+
style: { width: "160px" }
|
|
72
|
+
}, {
|
|
73
|
+
append: r(() => [
|
|
74
|
+
a(l.ElButton, {
|
|
75
|
+
icon: l.Search,
|
|
76
|
+
onClick: l.searchChange
|
|
77
|
+
}, null, 8, ["icon"])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
/* STABLE */
|
|
81
|
+
}, 8, ["modelValue", "placeholder"])
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
/* STABLE */
|
|
85
|
+
}),
|
|
86
|
+
a(l.ElFormItem, null, {
|
|
87
|
+
default: r(() => [
|
|
88
|
+
a(l.ElButton, {
|
|
89
|
+
type: "primary",
|
|
90
|
+
onClick: o[3] || (o[3] = (e) => l.searchChange(null))
|
|
91
|
+
}, {
|
|
92
|
+
default: r(() => [
|
|
93
|
+
m(
|
|
94
|
+
d(l.M2("搜索全部")),
|
|
95
|
+
1
|
|
96
|
+
/* TEXT */
|
|
97
|
+
)
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
/* STABLE */
|
|
101
|
+
})
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
/* STABLE */
|
|
105
|
+
}),
|
|
106
|
+
a(l.ElFormItem, null, {
|
|
107
|
+
default: r(() => [
|
|
108
|
+
a(l.ElButton, {
|
|
109
|
+
type: "primary",
|
|
110
|
+
onClick: o[4] || (o[4] = (e) => l.searchChange("Check"))
|
|
111
|
+
}, {
|
|
112
|
+
default: r(() => [
|
|
113
|
+
m(
|
|
114
|
+
d(l.M2("审核节点备注")),
|
|
115
|
+
1
|
|
116
|
+
/* TEXT */
|
|
117
|
+
)
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
/* STABLE */
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
/* STABLE */
|
|
125
|
+
})
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
/* STABLE */
|
|
129
|
+
}, 8, ["model"]);
|
|
130
|
+
}
|
|
131
|
+
const M = /* @__PURE__ */ f(u, [["render", C], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/operation-log/operation-log-form.vue"]]);
|
|
183
132
|
export {
|
|
184
|
-
|
|
133
|
+
M as default
|
|
185
134
|
};
|
|
@@ -1,4 +1,106 @@
|
|
|
1
|
-
import f from "
|
|
1
|
+
import { defineComponent as f, reactive as d, ref as E, onMounted as D } from "vue";
|
|
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
|
+
});
|
|
2
104
|
export {
|
|
3
|
-
|
|
105
|
+
A as default
|
|
4
106
|
};
|