xyvcard-settle 0.0.40 → 0.0.42
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/dist/{history-CKm40RN0.mjs → history-Bjxjxy_1.mjs} +1 -1
- package/dist/{history-Uv5wF8tp.mjs → history-CyGeajMX.mjs} +1 -1
- package/dist/history.vue_vue_type_script_setup_true_lang-DzyW9ohx.mjs +378 -0
- package/dist/{history.vue_vue_type_script_setup_true_lang-BlBHinps.mjs → history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs} +111 -127
- package/dist/index copy-BMOSe9EZ.mjs +287 -0
- package/dist/{index-GI8dQtIV.mjs → index-BA1OfmNb.mjs} +1 -1
- package/dist/{index-Ce1JIAp_.mjs → index-BMj5XmMX.mjs} +266 -282
- package/dist/{index-DISA5kjA.mjs → index-BpcmzxBU.mjs} +55 -53
- package/dist/{index-QIqV4ldo.mjs → index-C-A0Y3EK.mjs} +143 -159
- package/dist/index-C6Tt7EGW.mjs +726 -0
- package/dist/index-CGyzqfPx.mjs +541 -0
- package/dist/index-Csk-TNBj.mjs +313 -0
- package/dist/index-Doq8ZiUn.mjs +136 -0
- package/dist/{index-BAU8_bL5.mjs → index-DsTHP6ez.mjs} +66 -64
- package/dist/{index-BXr-5-X_.mjs → index-I-KFULpq.mjs} +426 -423
- package/dist/{index-BF180-Dc.mjs → index-vIbGxvHd.mjs} +2 -2
- package/dist/index-x556wvD_.mjs +588 -0
- package/dist/index.mjs +1 -1
- package/dist/pay-BK10dbR-.mjs +121 -0
- package/dist/payPal-C5Hhq3pQ.mjs +118 -0
- package/dist/qrcode-success-RhATc5cS.mjs +5 -0
- package/dist/style.css +1 -1
- package/dist/{today-BBWMuUFc.mjs → today-DYd5N03E.mjs} +1 -1
- package/dist/{today.vue_vue_type_script_setup_true_lang-CmzDkIbs.mjs → today.vue_vue_type_script_setup_true_lang-D2JX696c.mjs} +8 -8
- package/dts/src/utils/timePlugin.d.ts +1 -0
- package/dts/src/views/payment/instsLogin/index copy.vue.d.ts +2 -0
- package/package.json +62 -62
- package/dist/history.vue_vue_type_script_setup_true_lang-Dj7A2_XH.mjs +0 -457
- package/dist/index-BOYpCJFd.mjs +0 -756
- package/dist/index-BS-eL0Z5.mjs +0 -238
- package/dist/index-CAOauGAU.mjs +0 -605
- package/dist/index-Che5xN0z.mjs +0 -603
- package/dist/index-Cqpx7sK8.mjs +0 -134
- package/dist/pay-ddopuD-7.mjs +0 -98
- package/dist/payPal-Bp_Ivr7P.mjs +0 -110
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useUserStore as
|
|
4
|
-
import { channelApi as
|
|
5
|
-
import { tokenExt as
|
|
6
|
-
import { D
|
|
7
|
-
import {
|
|
8
|
-
class
|
|
1
|
+
import { defineComponent as q, getCurrentInstance as x, ref as b, onActivated as G, resolveComponent as s, createElementBlock as g, openBlock as i, createVNode as a, withCtx as l, withKeys as w, unref as o, Fragment as J, renderList as O, createBlock as C, withDirectives as W, vShow as X, createTextVNode as _, toDisplayString as f, createCommentVNode as Z, isRef as I } from "vue";
|
|
2
|
+
import { useI18n as ee } from "vue-i18n";
|
|
3
|
+
import { useUserStore as M, clearEmpty as te, request as ae, useTableHooks as le } from "jmash-core";
|
|
4
|
+
import { channelApi as ne } from "xyvcard-merchant";
|
|
5
|
+
import { tokenExt as S } from "xyvcard-agent";
|
|
6
|
+
import { D } from "./index-V8g7-RWq.mjs";
|
|
7
|
+
import { DateRange as oe } from "xyvcard-insts";
|
|
8
|
+
class re {
|
|
9
9
|
getKey(d) {
|
|
10
10
|
return {
|
|
11
11
|
receiptId: d.receiptId
|
|
@@ -13,51 +13,34 @@ class se {
|
|
|
13
13
|
}
|
|
14
14
|
// 查询翻页信息划款信息查询-到账(历史)
|
|
15
15
|
findPage(d) {
|
|
16
|
-
const
|
|
17
|
-
return
|
|
18
|
-
url: "/v1/settle/receipt/my/page/" +
|
|
16
|
+
const h = M().user.tenant;
|
|
17
|
+
return te(d), ae({
|
|
18
|
+
url: "/v1/settle/receipt/my/page/" + h,
|
|
19
19
|
method: "get",
|
|
20
20
|
params: d
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const se = new re(), ue = { class: "app-container" }, de = { key: 0 }, ie = { key: 1 }, _e = /* @__PURE__ */ q({
|
|
25
25
|
__name: "history",
|
|
26
|
-
setup(
|
|
27
|
-
const { t: d } =
|
|
28
|
-
|
|
29
|
-
const { proxy:
|
|
30
|
-
tokenExt:
|
|
31
|
-
}),
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
setup(k) {
|
|
27
|
+
const { t: d } = ee();
|
|
28
|
+
D.instsBizDict.useValues();
|
|
29
|
+
const { proxy: h } = x(), r = b({
|
|
30
|
+
tokenExt: S.getTokenExt(M().user.tenant)
|
|
31
|
+
}), R = b([]), N = localStorage.getItem("selectMerchantId");
|
|
32
|
+
ne.myFindList({ merchantId: N }).then((n) => {
|
|
33
|
+
R.value = n.data.results;
|
|
34
34
|
});
|
|
35
|
-
const
|
|
36
|
-
function E(a) {
|
|
37
|
-
if (!a || a.length !== 2) return;
|
|
38
|
-
m.value = a;
|
|
39
|
-
const t = new Date(a[0]), b = new Date(a[1]);
|
|
40
|
-
if (t.getMonth() !== b.getMonth() || t.getFullYear() !== b.getFullYear()) {
|
|
41
|
-
m.value = [], p.$message.warning("开始时间和结束时间必须在同一个月");
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
s.value.transferMoneyDateStart = p.$moment.formatDate(
|
|
45
|
-
a[0],
|
|
46
|
-
N.RPC_FORMAT_TIME
|
|
47
|
-
), s.value.transferMoneyDateEnd = p.$moment.formatDate(
|
|
48
|
-
a[1],
|
|
49
|
-
N.RPC_FORMAT_TIME
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
const {
|
|
35
|
+
const V = b(S.getCurrentRole(M().user.tenant)), {
|
|
53
36
|
tableHooks: u,
|
|
54
|
-
multipleTableRef:
|
|
55
|
-
queryFormRef:
|
|
56
|
-
listLoading:
|
|
57
|
-
tableData:
|
|
58
|
-
total:
|
|
59
|
-
} =
|
|
60
|
-
let
|
|
37
|
+
multipleTableRef: $,
|
|
38
|
+
queryFormRef: Y,
|
|
39
|
+
listLoading: A,
|
|
40
|
+
tableData: E,
|
|
41
|
+
total: y
|
|
42
|
+
} = le(d, se, r);
|
|
43
|
+
let p = b([
|
|
61
44
|
// 序号
|
|
62
45
|
{
|
|
63
46
|
label: "settleTradeReceipt.index",
|
|
@@ -134,39 +117,38 @@ const ue = new se(), de = { class: "app-container" }, pe = { key: 0 }, ie = { ke
|
|
|
134
117
|
isColumn: !0
|
|
135
118
|
}
|
|
136
119
|
]);
|
|
137
|
-
function
|
|
138
|
-
|
|
120
|
+
function U(n) {
|
|
121
|
+
u.selectionRows.value = n;
|
|
139
122
|
}
|
|
140
|
-
function
|
|
141
|
-
u.
|
|
123
|
+
function z(n) {
|
|
124
|
+
u.handleSort(n.prop, n.order);
|
|
142
125
|
}
|
|
143
|
-
|
|
144
|
-
u.
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
n(K, {
|
|
126
|
+
return G(() => {
|
|
127
|
+
u.getList();
|
|
128
|
+
}), (n, t) => {
|
|
129
|
+
const j = s("el-input"), m = s("el-form-item"), c = s("el-col"), B = s("el-option"), L = s("el-select"), v = s("el-row"), T = s("el-button"), P = s("el-form"), F = s("jmash-column-select"), H = s("jmash-table"), K = s("jmash-pagination"), Q = s("el-card");
|
|
130
|
+
return i(), g("div", ue, [
|
|
131
|
+
a(P, {
|
|
150
132
|
ref_key: "queryFormRef",
|
|
151
|
-
ref:
|
|
152
|
-
model:
|
|
133
|
+
ref: Y,
|
|
134
|
+
model: r.value,
|
|
153
135
|
inline: !0
|
|
154
136
|
}, {
|
|
155
137
|
default: l(() => [
|
|
156
|
-
|
|
138
|
+
a(v, null, {
|
|
157
139
|
default: l(() => [
|
|
158
|
-
|
|
140
|
+
a(c, { span: 6 }, {
|
|
159
141
|
default: l(() => [
|
|
160
|
-
|
|
161
|
-
label:
|
|
142
|
+
a(m, {
|
|
143
|
+
label: n.$t("settleTradeReceipt.termNo"),
|
|
162
144
|
prop: "termNo"
|
|
163
145
|
}, {
|
|
164
146
|
default: l(() => [
|
|
165
|
-
|
|
166
|
-
modelValue:
|
|
167
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
168
|
-
placeholder:
|
|
169
|
-
onKeyup: t[1] || (t[1] =
|
|
147
|
+
a(j, {
|
|
148
|
+
modelValue: r.value.termNo,
|
|
149
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.termNo = e),
|
|
150
|
+
placeholder: n.$t("settleTradeReceipt.termNoRead"),
|
|
151
|
+
onKeyup: t[1] || (t[1] = w((e) => o(u).handleQuery(), ["enter"])),
|
|
170
152
|
class: "!w-[203px]"
|
|
171
153
|
}, null, 8, ["modelValue", "placeholder"])
|
|
172
154
|
]),
|
|
@@ -175,26 +157,26 @@ const ue = new se(), de = { class: "app-container" }, pe = { key: 0 }, ie = { ke
|
|
|
175
157
|
]),
|
|
176
158
|
_: 1
|
|
177
159
|
}),
|
|
178
|
-
|
|
160
|
+
a(c, { span: 6 }, {
|
|
179
161
|
default: l(() => [
|
|
180
|
-
|
|
181
|
-
label:
|
|
162
|
+
a(m, {
|
|
163
|
+
label: n.$t("settleTradeAnalysis.channelId"),
|
|
182
164
|
prop: "channelId"
|
|
183
165
|
}, {
|
|
184
166
|
default: l(() => [
|
|
185
|
-
|
|
186
|
-
modelValue:
|
|
187
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
188
|
-
placeholder:
|
|
189
|
-
onKeyup: t[3] || (t[3] =
|
|
167
|
+
a(L, {
|
|
168
|
+
modelValue: r.value.channelId,
|
|
169
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.channelId = e),
|
|
170
|
+
placeholder: n.$t("settleTradeAnalysis.channelIdRead"),
|
|
171
|
+
onKeyup: t[3] || (t[3] = w((e) => o(u).handleQuery(), ["enter"])),
|
|
190
172
|
class: "!w-[203px]",
|
|
191
173
|
filterable: "",
|
|
192
174
|
clearable: ""
|
|
193
175
|
}, {
|
|
194
176
|
default: l(() => [
|
|
195
|
-
(i(!0),
|
|
177
|
+
(i(!0), g(J, null, O(R.value, (e) => (i(), C(B, {
|
|
196
178
|
key: e.channelId,
|
|
197
|
-
label:
|
|
179
|
+
label: o(D).instsBizDict.getValue(e.instsId) || e.instsId,
|
|
198
180
|
value: e.channelId
|
|
199
181
|
}, null, 8, ["label", "value"]))), 128))
|
|
200
182
|
]),
|
|
@@ -206,54 +188,56 @@ const ue = new se(), de = { class: "app-container" }, pe = { key: 0 }, ie = { ke
|
|
|
206
188
|
]),
|
|
207
189
|
_: 1
|
|
208
190
|
}),
|
|
209
|
-
|
|
191
|
+
a(c, { span: 6 }, {
|
|
210
192
|
default: l(() => [
|
|
211
|
-
|
|
212
|
-
label:
|
|
213
|
-
prop: "
|
|
193
|
+
a(m, {
|
|
194
|
+
label: n.$t("settleTradeReceipt.createTime"),
|
|
195
|
+
prop: "transferMoneyDateStart"
|
|
214
196
|
}, {
|
|
215
197
|
default: l(() => [
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
"onUpdate:
|
|
219
|
-
|
|
198
|
+
a(o(oe), {
|
|
199
|
+
"start-time": r.value.transferMoneyDateStart,
|
|
200
|
+
"onUpdate:startTime": t[4] || (t[4] = (e) => r.value.transferMoneyDateStart = e),
|
|
201
|
+
"end-time": r.value.transferMoneyDateEnd,
|
|
202
|
+
"onUpdate:endTime": t[5] || (t[5] = (e) => r.value.transferMoneyDateEnd = e),
|
|
220
203
|
format: "YYYY-MM-DD",
|
|
221
204
|
"value-format": "YYYY-MM-DD",
|
|
222
205
|
"range-separator": "-",
|
|
223
|
-
"start-placeholder":
|
|
224
|
-
"end-placeholder":
|
|
225
|
-
|
|
226
|
-
style: { width: "280px" }
|
|
227
|
-
}, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
|
|
206
|
+
"start-placeholder": n.$t("settleTradeReceipt.transferMoneyDateStart"),
|
|
207
|
+
"end-placeholder": n.$t("settleTradeReceipt.transferMoneyDateEnd")
|
|
208
|
+
}, null, 8, ["start-time", "end-time", "start-placeholder", "end-placeholder"])
|
|
228
209
|
]),
|
|
229
210
|
_: 1
|
|
230
|
-
}, 8, ["label"])
|
|
211
|
+
}, 8, ["label"]),
|
|
212
|
+
W(a(m, { prop: "transferMoneyDateEnd" }, null, 512), [
|
|
213
|
+
[X, !1]
|
|
214
|
+
])
|
|
231
215
|
]),
|
|
232
216
|
_: 1
|
|
233
217
|
})
|
|
234
218
|
]),
|
|
235
219
|
_: 1
|
|
236
220
|
}),
|
|
237
|
-
|
|
221
|
+
a(v, null, {
|
|
238
222
|
default: l(() => [
|
|
239
|
-
|
|
223
|
+
a(c, { span: 24 }, {
|
|
240
224
|
default: l(() => [
|
|
241
|
-
|
|
225
|
+
a(m, { class: "search-btn" }, {
|
|
242
226
|
default: l(() => [
|
|
243
|
-
|
|
227
|
+
a(T, {
|
|
244
228
|
type: "primary",
|
|
245
|
-
onClick: t[
|
|
229
|
+
onClick: t[6] || (t[6] = (e) => o(u).handleQuery())
|
|
246
230
|
}, {
|
|
247
231
|
default: l(() => [
|
|
248
|
-
|
|
232
|
+
_(f(n.$t("common.search")), 1)
|
|
249
233
|
]),
|
|
250
234
|
_: 1
|
|
251
235
|
}),
|
|
252
|
-
|
|
253
|
-
onClick: t[
|
|
236
|
+
a(T, {
|
|
237
|
+
onClick: t[7] || (t[7] = (e) => o(u).resetQuery())
|
|
254
238
|
}, {
|
|
255
239
|
default: l(() => [
|
|
256
|
-
|
|
240
|
+
_(f(n.$t("common.reset")), 1)
|
|
257
241
|
]),
|
|
258
242
|
_: 1
|
|
259
243
|
})
|
|
@@ -269,21 +253,21 @@ const ue = new se(), de = { class: "app-container" }, pe = { key: 0 }, ie = { ke
|
|
|
269
253
|
]),
|
|
270
254
|
_: 1
|
|
271
255
|
}, 8, ["model"]),
|
|
272
|
-
|
|
256
|
+
a(Q, {
|
|
273
257
|
shadow: "never",
|
|
274
258
|
class: "table-container"
|
|
275
259
|
}, {
|
|
276
260
|
header: l(() => [
|
|
277
|
-
|
|
261
|
+
a(v, null, {
|
|
278
262
|
default: l(() => [
|
|
279
|
-
|
|
263
|
+
a(c, {
|
|
280
264
|
span: 24,
|
|
281
265
|
class: "container-float"
|
|
282
266
|
}, {
|
|
283
267
|
default: l(() => [
|
|
284
|
-
|
|
285
|
-
modelValue:
|
|
286
|
-
"onUpdate:modelValue": t[
|
|
268
|
+
a(F, {
|
|
269
|
+
modelValue: o(p),
|
|
270
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => I(p) ? p.value = e : p = e),
|
|
287
271
|
"label-name": "settle/settle-trade-receipt"
|
|
288
272
|
}, null, 8, ["modelValue"])
|
|
289
273
|
]),
|
|
@@ -294,40 +278,40 @@ const ue = new se(), de = { class: "app-container" }, pe = { key: 0 }, ie = { ke
|
|
|
294
278
|
})
|
|
295
279
|
]),
|
|
296
280
|
footer: l(() => [
|
|
297
|
-
|
|
281
|
+
o(y) > 0 ? (i(), C(K, {
|
|
298
282
|
key: 0,
|
|
299
|
-
total:
|
|
300
|
-
"onUpdate:total": t[
|
|
301
|
-
"current-page":
|
|
302
|
-
"onUpdate:currentPage": t[
|
|
303
|
-
"page-size":
|
|
304
|
-
"onUpdate:pageSize": t[
|
|
305
|
-
onPagination: t[
|
|
306
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
283
|
+
total: o(y),
|
|
284
|
+
"onUpdate:total": t[9] || (t[9] = (e) => I(y) ? y.value = e : null),
|
|
285
|
+
"current-page": r.value.curPage,
|
|
286
|
+
"onUpdate:currentPage": t[10] || (t[10] = (e) => r.value.curPage = e),
|
|
287
|
+
"page-size": r.value.pageSize,
|
|
288
|
+
"onUpdate:pageSize": t[11] || (t[11] = (e) => r.value.pageSize = e),
|
|
289
|
+
onPagination: t[12] || (t[12] = (e) => o(u).getList())
|
|
290
|
+
}, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
|
|
307
291
|
]),
|
|
308
292
|
default: l(() => [
|
|
309
|
-
|
|
293
|
+
a(H, {
|
|
310
294
|
ref_key: "multipleTableRef",
|
|
311
|
-
ref:
|
|
295
|
+
ref: $,
|
|
312
296
|
"row-key": "receiptId",
|
|
313
297
|
isSelection: !1,
|
|
314
|
-
"list-loading":
|
|
315
|
-
data:
|
|
316
|
-
"table-label":
|
|
317
|
-
onSelectionChange:
|
|
318
|
-
onSortChange:
|
|
298
|
+
"list-loading": o(A),
|
|
299
|
+
data: o(E),
|
|
300
|
+
"table-label": o(p),
|
|
301
|
+
onSelectionChange: U,
|
|
302
|
+
onSortChange: z
|
|
319
303
|
}, {
|
|
320
304
|
instsId: l((e) => [
|
|
321
|
-
|
|
305
|
+
_(f(o(D).instsBizDict.getValue(e.data.row.instsId)), 1)
|
|
322
306
|
]),
|
|
323
307
|
transferMoneyDate: l((e) => [
|
|
324
|
-
e.data.row.transferMoneyDate ? (i(),
|
|
308
|
+
e.data.row.transferMoneyDate ? (i(), g("span", de, f(o(h).$moment.formatDate(
|
|
325
309
|
new Date(e.data.row.transferMoneyDate),
|
|
326
310
|
"YYYY-MM-DD HH:mm"
|
|
327
|
-
)), 1)) : (i(),
|
|
311
|
+
)), 1)) : (i(), g("span", ie))
|
|
328
312
|
]),
|
|
329
313
|
agentCode: l((e) => [
|
|
330
|
-
|
|
314
|
+
_(f(V.value.agentAlias), 1)
|
|
331
315
|
]),
|
|
332
316
|
_: 1
|
|
333
317
|
}, 8, ["list-loading", "data", "table-label"])
|
|
@@ -339,5 +323,5 @@ const ue = new se(), de = { class: "app-container" }, pe = { key: 0 }, ie = { ke
|
|
|
339
323
|
}
|
|
340
324
|
});
|
|
341
325
|
export {
|
|
342
|
-
|
|
326
|
+
_e as _
|
|
343
327
|
};
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { defineComponent as W, ref as c, reactive as P, onMounted as X, resolveComponent as r, createElementBlock as Q, openBlock as b, createElementVNode as a, createVNode as l, withCtx as t, withDirectives as Y, normalizeStyle as Z, vShow as ee, createBlock as B, createCommentVNode as oe, Fragment as le, renderList as te, withKeys as S, withModifiers as se, createTextVNode as ne, toDisplayString as ae } from "vue";
|
|
2
|
+
import { _ as re, q as ie } from "./qrcode-success-RhATc5cS.mjs";
|
|
3
|
+
import { useRoute as ue, useRouter as ce } from "vue-router";
|
|
4
|
+
import { useI18n as de } from "vue-i18n";
|
|
5
|
+
import "element-plus";
|
|
6
|
+
import { useUserStore as pe, getCaptchaApi as me, selectDsdRoles as fe, vueMetaEnv as $, createLoginQrcode as ve, netEncrypt as _e } from "jmash-core";
|
|
7
|
+
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
+
const he = { class: "login-container" }, ye = { class: "login-top absolute top-0 flex items-center px-5 h-20 w-full" }, Ce = { class: "login-form" }, we = { class: "qrcode-container" }, Ve = ["src"], be = { class: "captcha" }, qe = /* @__PURE__ */ W({
|
|
9
|
+
__name: "index copy",
|
|
10
|
+
setup(ke) {
|
|
11
|
+
const I = ue(), R = ce(), U = pe(), q = c(!1), K = c("first"), L = c(), D = c();
|
|
12
|
+
c();
|
|
13
|
+
const { t: k } = de(), g = P([]), s = c({
|
|
14
|
+
scope: "",
|
|
15
|
+
username: "",
|
|
16
|
+
password: ""
|
|
17
|
+
}), M = P({
|
|
18
|
+
username: [
|
|
19
|
+
{
|
|
20
|
+
required: !0,
|
|
21
|
+
trigger: "blur",
|
|
22
|
+
message: k("login.username")
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
password: [
|
|
26
|
+
{
|
|
27
|
+
required: !0,
|
|
28
|
+
trigger: "blur",
|
|
29
|
+
validator: (o, e, i) => {
|
|
30
|
+
e.length < 5 ? i(new Error("The password can not be less than 5 digits")) : i();
|
|
31
|
+
},
|
|
32
|
+
message: k("login.password")
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
captchaCode: [
|
|
36
|
+
{
|
|
37
|
+
required: !0,
|
|
38
|
+
trigger: "blur",
|
|
39
|
+
message: k("login.captchaCode")
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}), A = c(!1);
|
|
43
|
+
function p() {
|
|
44
|
+
me().then(({ data: o }) => {
|
|
45
|
+
s.value.captchaKey = o.captchaId, L.value = o.base64Image, K.value === "second" && (A.value = !0);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function F() {
|
|
49
|
+
fe().then(({ data: o }) => {
|
|
50
|
+
g.length = 0, g.push(...o.roleList);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const h = c("qrCode"), O = (o) => {
|
|
54
|
+
o.props.name === "user" ? (w(), p()) : x(), h.value = o.props.name;
|
|
55
|
+
};
|
|
56
|
+
function N() {
|
|
57
|
+
m.value.ticket && U.loginByQrcode({ ticket: m.value.ticket }).then(() => {
|
|
58
|
+
w(), f.value = !1, m.value.qrcodeUrl = ie;
|
|
59
|
+
const o = I.query, e = o.redirect ?? $.APP_REDIRECT, i = Object.keys(o).reduce(
|
|
60
|
+
(d, u) => (u !== "redirect" && (d[u] = o[u]), d),
|
|
61
|
+
{}
|
|
62
|
+
);
|
|
63
|
+
R.push({ path: e, query: i });
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
const m = c({});
|
|
67
|
+
let y = setInterval(N, 3e3), C = null;
|
|
68
|
+
const f = c(!1), x = () => {
|
|
69
|
+
ve().then(({ data: o }) => {
|
|
70
|
+
m.value = o, f.value = !1, j(), y = setInterval(N, 3e3);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
h.value === "qrCode" && x();
|
|
74
|
+
const w = () => {
|
|
75
|
+
y && (clearInterval(y), y = null), C && (clearTimeout(C), C = null);
|
|
76
|
+
}, j = () => {
|
|
77
|
+
w(), C = setTimeout(() => {
|
|
78
|
+
w(), f.value = !0;
|
|
79
|
+
}, $.APP_TIMEOUT);
|
|
80
|
+
};
|
|
81
|
+
function T() {
|
|
82
|
+
var o;
|
|
83
|
+
(o = D.value) == null || o.validate((e) => {
|
|
84
|
+
e && (q.value = !0, s.value.password = _e(s.value.password), U.login(s.value).then(() => {
|
|
85
|
+
const i = I.query, d = i.redirect ?? "/", u = Object.keys(i).reduce(
|
|
86
|
+
(V, v) => (v !== "redirect" && (V[v] = i[v]), V),
|
|
87
|
+
{}
|
|
88
|
+
);
|
|
89
|
+
R.push({ path: d, query: u }), p();
|
|
90
|
+
}).catch(() => {
|
|
91
|
+
p();
|
|
92
|
+
}).finally(() => {
|
|
93
|
+
q.value = !1;
|
|
94
|
+
}));
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return X(() => {
|
|
98
|
+
p(), F();
|
|
99
|
+
}), (o, e) => {
|
|
100
|
+
const i = r("lang-select"), d = r("el-tab-pane"), u = r("svg-icon"), V = r("el-option"), v = r("el-select"), _ = r("el-form-item"), E = r("el-input"), z = r("el-image"), G = r("el-button"), H = r("el-form"), J = r("el-tabs");
|
|
101
|
+
return b(), Q("div", he, [
|
|
102
|
+
a("div", ye, [
|
|
103
|
+
e[5] || (e[5] = a("img", {
|
|
104
|
+
src: re,
|
|
105
|
+
class: "logo-img",
|
|
106
|
+
alt: ""
|
|
107
|
+
}, null, -1)),
|
|
108
|
+
e[6] || (e[6] = a("span", { class: "ml-3" }, "筋斗云管理平台", -1)),
|
|
109
|
+
l(i, { class: "ml-2 cursor-pointer language" })
|
|
110
|
+
]),
|
|
111
|
+
a("div", Ce, [
|
|
112
|
+
e[10] || (e[10] = a("div", { class: "login-title" }, "欢迎登录", -1)),
|
|
113
|
+
l(J, {
|
|
114
|
+
modelValue: h.value,
|
|
115
|
+
"onUpdate:modelValue": e[4] || (e[4] = (n) => h.value = n),
|
|
116
|
+
class: "demo-tabs",
|
|
117
|
+
onTabClick: O
|
|
118
|
+
}, {
|
|
119
|
+
default: t(() => [
|
|
120
|
+
l(d, {
|
|
121
|
+
label: "扫码登录",
|
|
122
|
+
name: "qrCode"
|
|
123
|
+
}, {
|
|
124
|
+
default: t(() => [
|
|
125
|
+
a("div", we, [
|
|
126
|
+
a("img", {
|
|
127
|
+
src: m.value.qrcodeUrl,
|
|
128
|
+
style: Z({ opacity: f.value ? 0.02 : 1 }),
|
|
129
|
+
alt: "二维码"
|
|
130
|
+
}, null, 12, Ve),
|
|
131
|
+
Y(a("div", null, [
|
|
132
|
+
e[7] || (e[7] = a("div", null, "二维码已过期", -1)),
|
|
133
|
+
a("div", { onClick: x }, "点击刷新")
|
|
134
|
+
], 512), [
|
|
135
|
+
[ee, f.value]
|
|
136
|
+
])
|
|
137
|
+
]),
|
|
138
|
+
e[8] || (e[8] = a("div", null, "微信扫一扫登录", -1))
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
}),
|
|
142
|
+
l(d, {
|
|
143
|
+
label: "账号登录",
|
|
144
|
+
name: "user"
|
|
145
|
+
}, {
|
|
146
|
+
default: t(() => [
|
|
147
|
+
l(H, {
|
|
148
|
+
ref_key: "loginFormRef",
|
|
149
|
+
ref: D,
|
|
150
|
+
model: s.value,
|
|
151
|
+
rules: M,
|
|
152
|
+
size: "large"
|
|
153
|
+
}, {
|
|
154
|
+
default: t(() => [
|
|
155
|
+
g.length > 0 ? (b(), B(_, {
|
|
156
|
+
key: 0,
|
|
157
|
+
prop: "scope",
|
|
158
|
+
class: "el-form-item__content"
|
|
159
|
+
}, {
|
|
160
|
+
default: t(() => [
|
|
161
|
+
l(v, {
|
|
162
|
+
modelValue: s.value.scope,
|
|
163
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => s.value.scope = n),
|
|
164
|
+
placeholder: o.$t("login.role")
|
|
165
|
+
}, {
|
|
166
|
+
prefix: t(() => [
|
|
167
|
+
l(u, { "icon-class": "dynamic-role" })
|
|
168
|
+
]),
|
|
169
|
+
default: t(() => [
|
|
170
|
+
(b(!0), Q(le, null, te(g, (n) => (b(), B(V, {
|
|
171
|
+
key: n.roleCode,
|
|
172
|
+
label: n.roleName,
|
|
173
|
+
value: n.roleCode
|
|
174
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}, 8, ["modelValue", "placeholder"])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})) : oe("", !0),
|
|
181
|
+
l(_, {
|
|
182
|
+
prop: "username",
|
|
183
|
+
class: "el-form-item__content"
|
|
184
|
+
}, {
|
|
185
|
+
default: t(() => [
|
|
186
|
+
l(E, {
|
|
187
|
+
ref: "username",
|
|
188
|
+
modelValue: s.value.username,
|
|
189
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => s.value.username = n),
|
|
190
|
+
placeholder: o.$t("login.username"),
|
|
191
|
+
name: "username"
|
|
192
|
+
}, {
|
|
193
|
+
prefix: t(() => [
|
|
194
|
+
l(u, { "icon-class": "user" })
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["modelValue", "placeholder"])
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
l(_, {
|
|
202
|
+
prop: "password",
|
|
203
|
+
class: "el-form-item__content"
|
|
204
|
+
}, {
|
|
205
|
+
default: t(() => [
|
|
206
|
+
l(E, {
|
|
207
|
+
modelValue: s.value.password,
|
|
208
|
+
"onUpdate:modelValue": e[2] || (e[2] = (n) => s.value.password = n),
|
|
209
|
+
type: "password",
|
|
210
|
+
placeholder: o.$t("login.password"),
|
|
211
|
+
"show-password": "",
|
|
212
|
+
onKeyup: S(T, ["enter"])
|
|
213
|
+
}, {
|
|
214
|
+
prefix: t(() => [
|
|
215
|
+
l(u, { "icon-class": "password" })
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["modelValue", "placeholder"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}),
|
|
222
|
+
l(_, {
|
|
223
|
+
prop: "captchaCode",
|
|
224
|
+
class: "el-form-item__content"
|
|
225
|
+
}, {
|
|
226
|
+
default: t(() => [
|
|
227
|
+
l(E, {
|
|
228
|
+
modelValue: s.value.captchaCode,
|
|
229
|
+
"onUpdate:modelValue": e[3] || (e[3] = (n) => s.value.captchaCode = n),
|
|
230
|
+
"auto-complete": "off",
|
|
231
|
+
placeholder: o.$t("login.captchaCode"),
|
|
232
|
+
class: "w-[60%]",
|
|
233
|
+
onKeyup: S(T, ["enter"])
|
|
234
|
+
}, {
|
|
235
|
+
prefix: t(() => [
|
|
236
|
+
l(u, { "icon-class": "captcha" })
|
|
237
|
+
]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["modelValue", "placeholder"]),
|
|
240
|
+
a("div", be, [
|
|
241
|
+
l(z, {
|
|
242
|
+
src: L.value,
|
|
243
|
+
class: "w-[130px] h-[50px] cursor-pointer",
|
|
244
|
+
onClick: p
|
|
245
|
+
}, {
|
|
246
|
+
error: t(() => e[9] || (e[9] = [
|
|
247
|
+
a("div", { class: "image-slot" }, null, -1)
|
|
248
|
+
])),
|
|
249
|
+
_: 1
|
|
250
|
+
}, 8, ["src"])
|
|
251
|
+
])
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}),
|
|
255
|
+
l(_, { class: "el-form-item__content" }, {
|
|
256
|
+
default: t(() => [
|
|
257
|
+
l(G, {
|
|
258
|
+
loading: q.value,
|
|
259
|
+
type: "primary",
|
|
260
|
+
class: "w-full",
|
|
261
|
+
onClick: se(T, ["prevent"])
|
|
262
|
+
}, {
|
|
263
|
+
default: t(() => [
|
|
264
|
+
ne(ae(o.$t("login.login")), 1)
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}, 8, ["loading"])
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
})
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["model", "rules"])
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
})
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["modelValue"])
|
|
280
|
+
])
|
|
281
|
+
]);
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
}), De = /* @__PURE__ */ ge(qe, [["__scopeId", "data-v-f472e8c6"]]);
|
|
285
|
+
export {
|
|
286
|
+
De as default
|
|
287
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, ref as p, resolveComponent as s, createElementBlock as i, openBlock as d, createElementVNode as u, createVNode as e, withCtx as n } from "vue";
|
|
2
|
-
import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as f } from "./history.vue_vue_type_script_setup_true_lang-dd7Qrf3A.mjs";
|
|
3
3
|
import { _ as b } from "./today.vue_vue_type_script_setup_true_lang-Cf3MjsXi.mjs";
|
|
4
4
|
const v = { class: "app-container" }, h = { class: "search-container" }, w = /* @__PURE__ */ r({
|
|
5
5
|
__name: "index",
|