yahee-components 0.0.12 → 0.0.14
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/api/tool.js +10 -11
- package/es/comprehensive-search/comprehensive-search.vue.js +153 -122
- package/es/drop-down-condition/drop-down-condition.vue.js +42 -41
- package/es/left-condition/left-condition.vue.js +118 -116
- package/es/left-condition/style/index.css +2 -3
- package/es/left-condition-enum/left-condition-enum.vue.js +18 -14
- package/es/left-condition-enum/style/index.css +10 -0
- package/es/operation-log/operation-log-form.vue.js +179 -5
- package/es/operation-log/operation-log-form.vue2.js +2 -179
- package/es/operation-log/operation-log.vue.js +30 -30
- package/es/packages/components/api/server.js +26 -13
- package/es/packages/components/api/tool.js +9 -10
- package/es/style.css +12 -2
- package/lib/left-condition/style/index.css +2 -3
- package/lib/left-condition-enum/style/index.css +10 -0
- package/lib/style.css +12 -2
- package/package.json +1 -1
- package/types/src/comprehensive-search/comprehensive-search.vue.d.ts +19 -10
- package/types/src/drop-down-condition/drop-down-condition.vue.d.ts +2 -0
- package/types/src/drop-down-condition/index.d.ts +2 -0
- package/types/src/left-condition/index.d.ts +1 -1
- package/types/src/left-condition/left-condition.vue.d.ts +1 -1
- package/types/src/left-condition-enum/index.d.ts +10 -1
- package/types/src/left-condition-enum/left-condition-enum.vue.d.ts +10 -1
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/types/src/comprehensive-search/index.d.ts +0 -36
- package/types/src/installs.d.ts +0 -535
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as ue, toRefs as se, ref as m, computed as oe, watch as re, onMounted as ie, resolveComponent as I, openBlock as y, createElementBlock as L, createVNode as h, withCtx as T, unref as o, createElementVNode as ce, normalizeStyle as fe, toDisplayString as K, Fragment as de, renderList as me, createBlock as ve, createTextVNode as A, createCommentVNode as pe, nextTick as q } from "vue";
|
|
2
2
|
import l from "../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js";
|
|
3
3
|
import ge from "./left-condition-sub.vue.js";
|
|
4
4
|
import { stylesUtils as ye } from "../utils/style.js";
|
|
5
|
-
import { M2 as
|
|
6
|
-
const he = {
|
|
5
|
+
import { M2 as z } from "../utils/translate.js";
|
|
6
|
+
const he = { class: "yahee-left-condition" }, Ne = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "el-button custom-button el-button--small",
|
|
9
9
|
style: { "margin-left": "5px", display: "inline-flex" }
|
|
10
|
-
},
|
|
10
|
+
}, _e = /* @__PURE__ */ ue({
|
|
11
11
|
name: "YaheeLeftCondition",
|
|
12
12
|
__name: "left-condition",
|
|
13
13
|
props: {
|
|
@@ -31,28 +31,28 @@ const he = {
|
|
|
31
31
|
defaultValues: { default: () => [] }
|
|
32
32
|
},
|
|
33
33
|
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
multiSelectList:
|
|
37
|
-
displayRangeInput:
|
|
38
|
-
selectList:
|
|
39
|
-
hasNum:
|
|
40
|
-
allIsEmpty:
|
|
41
|
-
translateUserId:
|
|
42
|
-
label:
|
|
34
|
+
setup(J, { expose: O, emit: Y }) {
|
|
35
|
+
const j = J, {
|
|
36
|
+
multiSelectList: F,
|
|
37
|
+
displayRangeInput: N,
|
|
38
|
+
selectList: k,
|
|
39
|
+
hasNum: G,
|
|
40
|
+
allIsEmpty: H,
|
|
41
|
+
translateUserId: Q,
|
|
42
|
+
label: W,
|
|
43
43
|
filterKey: v,
|
|
44
44
|
rangeStartKey: r,
|
|
45
45
|
rangeEndKey: i,
|
|
46
|
-
noNeedRefreshNumFilterName:
|
|
47
|
-
defaultValues:
|
|
48
|
-
totalCount:
|
|
49
|
-
countList:
|
|
50
|
-
} =
|
|
51
|
-
console.log("left condition notifyParent start"),
|
|
46
|
+
noNeedRefreshNumFilterName: M,
|
|
47
|
+
defaultValues: $,
|
|
48
|
+
totalCount: S,
|
|
49
|
+
countList: V
|
|
50
|
+
} = se(j), b = Y, C = m(S.value), c = m(), f = m(), w = m(V.value), n = /* @__PURE__ */ new Map(), d = m(!1), _ = m([]), p = () => {
|
|
51
|
+
console.log("left condition notifyParent start"), q(() => {
|
|
52
52
|
var s, g;
|
|
53
|
-
const e =
|
|
53
|
+
const e = E(), t = te();
|
|
54
54
|
if (l.isEmpty(e) && l.isEmpty(t)) {
|
|
55
|
-
|
|
55
|
+
B();
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
const a = [
|
|
@@ -61,43 +61,43 @@ const he = {
|
|
|
61
61
|
checkedValues: l.map(e, (u) => u.value)
|
|
62
62
|
}
|
|
63
63
|
];
|
|
64
|
-
|
|
64
|
+
N.value && (a.push({
|
|
65
65
|
filterKey: r.value,
|
|
66
66
|
checkedValues: [(s = n.get(r.value)) == null ? void 0 : s.value]
|
|
67
67
|
}), a.push({
|
|
68
68
|
filterKey: i.value,
|
|
69
69
|
checkedValues: [(g = n.get(i.value)) == null ? void 0 : g.value]
|
|
70
|
-
})),
|
|
70
|
+
})), b("filterChange", a), console.log(
|
|
71
71
|
`left condition notifyParent nextTick after emit, filterKey: ${v.value}, checkedValues: ${JSON.stringify(l.map(e, (u) => u.value))}`
|
|
72
72
|
);
|
|
73
73
|
});
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
},
|
|
74
|
+
}, X = () => {
|
|
75
|
+
b("setNoNeedRefreshNumFilterName");
|
|
76
|
+
}, U = () => {
|
|
77
77
|
R(), x({ label: r.value, selected: !0, value: c.value }), x({ label: i.value, selected: !0, value: f.value });
|
|
78
|
-
},
|
|
78
|
+
}, Z = () => {
|
|
79
79
|
const e = n.get(r.value);
|
|
80
|
-
l.isEmpty(e) && !c.value || l.get(e, "value") === c.value || (
|
|
81
|
-
},
|
|
80
|
+
l.isEmpty(e) && !c.value || l.get(e, "value") === c.value || (U(), p());
|
|
81
|
+
}, ee = () => {
|
|
82
82
|
const e = n.get(i.value);
|
|
83
|
-
l.isEmpty(e) && !f.value || l.get(e, "value") === f.value || (
|
|
83
|
+
l.isEmpty(e) && !f.value || l.get(e, "value") === f.value || (U(), p());
|
|
84
84
|
};
|
|
85
85
|
function x(e) {
|
|
86
86
|
console.log(`left condition setSelectedStatusMap start, item: ${JSON.stringify(e)}`), n.set(e.label, {
|
|
87
87
|
selected: e.selected,
|
|
88
88
|
value: e.value
|
|
89
|
-
}), d.value = l.eq(
|
|
89
|
+
}), d.value = l.eq(E().length, k.value.length);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return l.includes(
|
|
91
|
+
function P(e) {
|
|
92
|
+
return l.includes(F.value, e.value);
|
|
93
93
|
}
|
|
94
94
|
function R() {
|
|
95
|
-
const e = l.map(
|
|
96
|
-
n.clear(), l.forEach(
|
|
95
|
+
const e = l.map(E(), (t) => t.value);
|
|
96
|
+
n.clear(), l.forEach(_.value, (t) => {
|
|
97
97
|
l.includes(e, t.getValue().value) && t.resetValue();
|
|
98
98
|
}), d.value = !1;
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const E = () => {
|
|
101
101
|
const e = l.filter(
|
|
102
102
|
Array.from(n.values()),
|
|
103
103
|
(t) => t.selected
|
|
@@ -106,109 +106,111 @@ const he = {
|
|
|
106
106
|
const a = Array.from(n.keys()).find((s) => n.get(s) === t);
|
|
107
107
|
return ![r.value, i.value].includes(a);
|
|
108
108
|
});
|
|
109
|
-
},
|
|
109
|
+
}, te = () => l.filter(Array.from(n.values()), (e) => {
|
|
110
110
|
const t = Array.from(n.keys()).find((a) => n.get(a) === e);
|
|
111
111
|
return [r.value, i.value].includes(t);
|
|
112
|
-
}),
|
|
112
|
+
}), le = () => {
|
|
113
113
|
d.value = !1;
|
|
114
|
-
},
|
|
114
|
+
}, ae = oe(() => l.sortBy(k.value, (e) => P(e))), D = () => {
|
|
115
115
|
c.value = void 0, f.value = void 0, n.delete(r.value), n.delete(i.value);
|
|
116
116
|
};
|
|
117
|
-
function
|
|
118
|
-
R(),
|
|
117
|
+
function B() {
|
|
118
|
+
R(), q(() => {
|
|
119
119
|
d.value = !0;
|
|
120
|
-
const e =
|
|
121
|
-
|
|
120
|
+
const e = k.value.filter((a) => !P(a)), t = l.map(e, (a) => a.value);
|
|
121
|
+
b("filterChange", [
|
|
122
122
|
{
|
|
123
123
|
filterKey: v.value,
|
|
124
|
-
checkedValues:
|
|
124
|
+
checkedValues: H.value ? [] : t
|
|
125
125
|
}
|
|
126
126
|
]);
|
|
127
|
-
}),
|
|
127
|
+
}), N.value && D();
|
|
128
128
|
}
|
|
129
|
-
return
|
|
130
|
-
[() =>
|
|
129
|
+
return re(
|
|
130
|
+
[() => S.value, () => V.value],
|
|
131
131
|
([e, t], [a, s]) => {
|
|
132
|
-
console.log(e, t), console.log(a, s), (!
|
|
132
|
+
console.log(e, t), console.log(a, s), (!M.value || !l.eq(M.value, v.value)) && (C.value = S.value, w.value = V.value);
|
|
133
133
|
}
|
|
134
|
-
),
|
|
135
|
-
clickAllSelected:
|
|
136
|
-
}),
|
|
137
|
-
if (l.isEmpty(
|
|
134
|
+
), O({
|
|
135
|
+
clickAllSelected: B
|
|
136
|
+
}), ie(() => {
|
|
137
|
+
if (l.isEmpty($.value)) {
|
|
138
138
|
d.value = !0;
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
141
|
l.filter(
|
|
142
|
-
|
|
143
|
-
(e) => l.includes(
|
|
142
|
+
_.value,
|
|
143
|
+
(e) => l.includes($.value, e.getValue().value)
|
|
144
144
|
).forEach((e) => {
|
|
145
145
|
e.setCurrentValue(!0), e.setCheckboxValue(!0);
|
|
146
146
|
}), p();
|
|
147
147
|
}), (e, t) => {
|
|
148
|
-
const a =
|
|
149
|
-
return y(),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
148
|
+
const a = I("el-input-number"), s = I("el-form-item"), g = I("el-form");
|
|
149
|
+
return y(), L("div", he, [
|
|
150
|
+
h(g, null, {
|
|
151
|
+
default: T(() => [
|
|
152
|
+
h(s, { label: o(W) }, {
|
|
153
|
+
default: T(() => [
|
|
154
|
+
ce("span", {
|
|
155
|
+
class: "el-button custom-button el-button--small",
|
|
156
|
+
style: fe(o(ye).getBackgroundColor(d.value)),
|
|
157
|
+
onClick: B
|
|
158
|
+
}, K(C.value ? `${o(z)("全部")}(${C.value})` : o(z)("全部")), 5),
|
|
159
|
+
(y(!0), L(de, null, me(ae.value, (u, ne) => (y(), ve(ge, {
|
|
160
|
+
key: ne,
|
|
161
|
+
ref_for: !0,
|
|
162
|
+
ref_key: "itemRefs",
|
|
163
|
+
ref: _,
|
|
164
|
+
"all-is-checkbox": e.allIsCheckbox,
|
|
165
|
+
"multi-select-list": o(F),
|
|
166
|
+
"translate-user-id": o(Q),
|
|
167
|
+
"count-list": w.value,
|
|
168
|
+
item: u,
|
|
169
|
+
"has-num": o(G),
|
|
170
|
+
onResetAllCheckedValue: R,
|
|
171
|
+
onSetSelectedStatusMap: x,
|
|
172
|
+
onResetRange: D,
|
|
173
|
+
onSetNoNeedRefreshNumFilterName: X,
|
|
174
|
+
onNotifyParent: p,
|
|
175
|
+
onResetIsSelectAll: le
|
|
176
|
+
}, null, 8, ["all-is-checkbox", "multi-select-list", "translate-user-id", "count-list", "item", "has-num"]))), 128)),
|
|
177
|
+
o(N) ? (y(), L("div", Ne, [
|
|
178
|
+
A(K(e.rangeLabel) + " ", 1),
|
|
179
|
+
h(a, {
|
|
180
|
+
modelValue: c.value,
|
|
181
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => c.value = u),
|
|
182
|
+
style: { "margin-left": "2px", width: "60px", height: "22px" },
|
|
183
|
+
precision: 2,
|
|
184
|
+
step: 0.01,
|
|
185
|
+
min: 1,
|
|
186
|
+
max: 100,
|
|
187
|
+
controls: !1,
|
|
188
|
+
onBlur: Z
|
|
189
|
+
}, null, 8, ["modelValue"]),
|
|
190
|
+
A(" % " + K(e.rangeDelimiter) + " ", 1),
|
|
191
|
+
h(a, {
|
|
192
|
+
modelValue: f.value,
|
|
193
|
+
"onUpdate:modelValue": t[1] || (t[1] = (u) => f.value = u),
|
|
194
|
+
style: { width: "60px", height: "22px" },
|
|
195
|
+
precision: 2,
|
|
196
|
+
step: 0.01,
|
|
197
|
+
size: "small",
|
|
198
|
+
max: 100,
|
|
199
|
+
controls: !1,
|
|
200
|
+
onChange: ee
|
|
201
|
+
}, null, 8, ["modelValue"]),
|
|
202
|
+
t[2] || (t[2] = A(" % "))
|
|
203
|
+
])) : pe("", !0)
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["label"])
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
})
|
|
210
|
+
]);
|
|
209
211
|
};
|
|
210
212
|
}
|
|
211
213
|
});
|
|
212
214
|
export {
|
|
213
|
-
|
|
215
|
+
_e as default
|
|
214
216
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
.yahee-left-condition .custom-button + .custom-button {
|
|
2
2
|
margin-left: 5px;
|
|
3
3
|
margin-bottom: 5px;
|
|
4
4
|
position: relative;
|
|
5
5
|
top: 2px;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
:deep(.custom-button) {
|
|
7
|
+
.yahee-left-condition .custom-button {
|
|
9
8
|
padding: 1px 4px;
|
|
10
9
|
height: 22px;
|
|
11
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, ref as c, onMounted as d, openBlock as y, createBlock as N } from "vue";
|
|
2
2
|
import h from "../left-condition/left-condition.vue.js";
|
|
3
|
-
import { Get as p } from "../api/server.js";
|
|
4
3
|
import { storage as o } from "../utils/storage.js";
|
|
4
|
+
import { Get as p } from "../packages/components/api/server.js";
|
|
5
5
|
const E = /* @__PURE__ */ f({
|
|
6
6
|
name: "YaheeLeftConditionEnum",
|
|
7
7
|
__name: "left-condition-enum",
|
|
@@ -10,6 +10,10 @@ const E = /* @__PURE__ */ f({
|
|
|
10
10
|
type: Array,
|
|
11
11
|
default: () => []
|
|
12
12
|
},
|
|
13
|
+
baseUrl: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
13
17
|
countList: {
|
|
14
18
|
type: Array,
|
|
15
19
|
required: !1
|
|
@@ -45,20 +49,20 @@ const E = /* @__PURE__ */ f({
|
|
|
45
49
|
},
|
|
46
50
|
emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
|
|
47
51
|
setup(e, { emit: s }) {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
+
const t = e, i = s, r = c(t.selectList), u = (l) => {
|
|
53
|
+
i("filterChange", l);
|
|
54
|
+
}, m = () => {
|
|
55
|
+
i("setNoNeedRefreshNumFilterName", t.filterKey);
|
|
52
56
|
};
|
|
53
57
|
return d(() => {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}).catch((
|
|
58
|
-
console.log(
|
|
58
|
+
const l = `filter-key-${t.enumEntity}`, n = o.getWithExpireTime(l);
|
|
59
|
+
n ? r.value = n : p(`${t.baseUrl}/${t.enumEntity}`).then((a) => {
|
|
60
|
+
r.value = a.data, o.setWithExpireTime(l, r.value, 1200 * 1e3);
|
|
61
|
+
}).catch((a) => {
|
|
62
|
+
console.log(a);
|
|
59
63
|
});
|
|
60
|
-
}), (
|
|
61
|
-
"select-list":
|
|
64
|
+
}), (l, n) => (y(), N(h, {
|
|
65
|
+
"select-list": r.value,
|
|
62
66
|
"count-list": e.countList,
|
|
63
67
|
"total-count": e.totalCount,
|
|
64
68
|
"filter-key": e.filterKey,
|
|
@@ -66,8 +70,8 @@ const E = /* @__PURE__ */ f({
|
|
|
66
70
|
"all-is-checkbox": e.allIsCheckbox,
|
|
67
71
|
"translate-user-id": e.translateUserId,
|
|
68
72
|
"all-is-empty": e.allIsEmpty,
|
|
69
|
-
onFilterChange:
|
|
70
|
-
onSetNoNeedRefreshNumFilterName:
|
|
73
|
+
onFilterChange: u,
|
|
74
|
+
onSetNoNeedRefreshNumFilterName: m
|
|
71
75
|
}, null, 8, ["select-list", "count-list", "total-count", "filter-key", "no-need-refresh-num-filter-name", "all-is-checkbox", "translate-user-id", "all-is-empty"]));
|
|
72
76
|
}
|
|
73
77
|
});
|
|
@@ -1,7 +1,181 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { defineComponent as k, reactive as v, ref as B, onMounted as x, openBlock as u, createBlock as c, unref as t, withCtx as n, createVNode as r, createElementBlock as T, Fragment as E, renderList as M, createTextVNode as f, toDisplayString as g } from "vue";
|
|
2
|
+
import { ElForm as Y, ElFormItem as i, ElDatePicker as b, ElSelect as N, ElOption as _, ElInput as S, 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 U } from "@element-plus/icons-vue";
|
|
16
|
+
import { getGlobalNotesUsers as F } from "../packages/components/api/log/index.js";
|
|
17
|
+
import { M2 as o } from "../utils/translate.js";
|
|
18
|
+
const Z = /* @__PURE__ */ k({
|
|
19
|
+
__name: "operation-log-form",
|
|
20
|
+
props: {
|
|
21
|
+
projectId: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: ""
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["filterChange"],
|
|
27
|
+
setup(C, { emit: D }) {
|
|
28
|
+
const y = C, m = v({
|
|
29
|
+
timeValue: [],
|
|
30
|
+
CreatedBy: "",
|
|
31
|
+
Notes: "",
|
|
32
|
+
search: "",
|
|
33
|
+
Mark: null
|
|
34
|
+
}), p = B(), h = [
|
|
35
|
+
{
|
|
36
|
+
text: o("最近三天"),
|
|
37
|
+
value: () => {
|
|
38
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
39
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 3), [e, l];
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
text: o("最近一周"),
|
|
44
|
+
value: () => {
|
|
45
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
46
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 7), [e, l];
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
text: o("最近十五天"),
|
|
51
|
+
value: () => {
|
|
52
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
53
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 15), [e, l];
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
text: o("最近一个月"),
|
|
58
|
+
value: () => {
|
|
59
|
+
const l = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
60
|
+
return e.setTime(e.getTime() - 3600 * 1e3 * 24 * 30), [e, l];
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
], V = () => {
|
|
64
|
+
const l = new FormData();
|
|
65
|
+
l.append(
|
|
66
|
+
"filter",
|
|
67
|
+
JSON.stringify({ BusinessKey: y.projectId, BusinessName: "PRODUCT_DEV" })
|
|
68
|
+
), F(l).then((e) => {
|
|
69
|
+
p.value = e;
|
|
70
|
+
});
|
|
71
|
+
}, w = D, s = (l) => {
|
|
72
|
+
m.Mark = l, w("filterChange", m);
|
|
73
|
+
};
|
|
74
|
+
return x(() => {
|
|
75
|
+
V();
|
|
76
|
+
}), (l, e) => (u(), c(t(Y), {
|
|
77
|
+
model: m,
|
|
78
|
+
inline: !0,
|
|
79
|
+
"label-width": "auto",
|
|
80
|
+
size: "small"
|
|
81
|
+
}, {
|
|
82
|
+
default: n(() => [
|
|
83
|
+
r(t(i), null, {
|
|
84
|
+
default: n(() => [
|
|
85
|
+
r(t(b), {
|
|
86
|
+
modelValue: m.timeValue,
|
|
87
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => m.timeValue = a),
|
|
88
|
+
type: "daterange",
|
|
89
|
+
format: "YYYY-MM-DD",
|
|
90
|
+
"value-format": "YYYY-MM-DD",
|
|
91
|
+
"unlink-panels": "",
|
|
92
|
+
"range-separator": t(o)("至"),
|
|
93
|
+
"start-placeholder": t(o)("开始日期"),
|
|
94
|
+
"end-placeholder": t(o)("结束日期"),
|
|
95
|
+
shortcuts: h,
|
|
96
|
+
size: "small",
|
|
97
|
+
clearable: "",
|
|
98
|
+
onChange: s
|
|
99
|
+
}, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}),
|
|
103
|
+
r(t(i), null, {
|
|
104
|
+
default: n(() => [
|
|
105
|
+
r(t(N), {
|
|
106
|
+
modelValue: m.CreatedBy,
|
|
107
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => m.CreatedBy = a),
|
|
108
|
+
placeholder: t(o)("请选择创建人"),
|
|
109
|
+
style: { width: "120px" },
|
|
110
|
+
size: "small",
|
|
111
|
+
clearable: "",
|
|
112
|
+
onChange: s
|
|
113
|
+
}, {
|
|
114
|
+
default: n(() => [
|
|
115
|
+
(u(!0), T(E, null, M(p.value, (a) => (u(), c(t(_), {
|
|
116
|
+
key: a.CreatedBy,
|
|
117
|
+
label: a.CreatedName,
|
|
118
|
+
value: a.CreatedBy
|
|
119
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["modelValue", "placeholder"])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}),
|
|
126
|
+
r(t(i), null, {
|
|
127
|
+
default: n(() => [
|
|
128
|
+
r(t(S), {
|
|
129
|
+
modelValue: m.search,
|
|
130
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => m.search = a),
|
|
131
|
+
placeholder: t(o)("综合搜索"),
|
|
132
|
+
clearable: "",
|
|
133
|
+
style: { width: "160px" }
|
|
134
|
+
}, {
|
|
135
|
+
append: n(() => [
|
|
136
|
+
r(t(d), {
|
|
137
|
+
icon: t(U),
|
|
138
|
+
onClick: s
|
|
139
|
+
}, null, 8, ["icon"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["modelValue", "placeholder"])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}),
|
|
146
|
+
r(t(i), null, {
|
|
147
|
+
default: n(() => [
|
|
148
|
+
r(t(d), {
|
|
149
|
+
type: "primary",
|
|
150
|
+
onClick: e[3] || (e[3] = (a) => s(null))
|
|
151
|
+
}, {
|
|
152
|
+
default: n(() => [
|
|
153
|
+
f(g(t(o)("搜索全部")), 1)
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
r(t(i), null, {
|
|
161
|
+
default: n(() => [
|
|
162
|
+
r(t(d), {
|
|
163
|
+
type: "primary",
|
|
164
|
+
onClick: e[4] || (e[4] = (a) => s("Check"))
|
|
165
|
+
}, {
|
|
166
|
+
default: n(() => [
|
|
167
|
+
f(g(t(o)("审核节点备注")), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["model"]));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
5
179
|
export {
|
|
6
|
-
|
|
180
|
+
Z as default
|
|
7
181
|
};
|