xyvcard-settle 0.0.51 → 0.0.53
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/index-B8QmvLNr.mjs +313 -0
- package/dist/{index-Ds4E1nsC.mjs → index-DTjubk-_.mjs} +1 -1
- package/dist/{index-IYVODwmA.mjs → index-Dg9k1LtW.mjs} +79 -79
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +62 -62
- package/dist/index copy-BMOSe9EZ.mjs +0 -287
- package/dist/index-C2M_dK36.mjs +0 -313
- package/dist/qrcode-success-RhATc5cS.mjs +0 -5
package/package.json
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "xyvcard-settle",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"module": "dist/index.mjs",
|
|
6
|
-
"types": "dts/src/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"dts/src"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"dev": "vite --host",
|
|
13
|
-
"build": "vite build && pnpm build:dts",
|
|
14
|
-
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
-
"preview": "vite preview",
|
|
16
|
-
"build-only": "vite build",
|
|
17
|
-
"type-check": "vue-tsc --build --force",
|
|
18
|
-
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
-
"format": "prettier --write src/"
|
|
20
|
-
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"axios": "^1.9.0",
|
|
23
|
-
"element-plus": "^2.9.10",
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"xyvcard-agent": "0.0.49",
|
|
32
|
-
"xyvcard-
|
|
33
|
-
"xyvcard-
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@eslint/js": "^9.14.0",
|
|
37
|
-
"@tsconfig/node20": "^20.1.2",
|
|
38
|
-
"@types/node": "^20.11.10",
|
|
39
|
-
"@vitejs/plugin-vue": "^5.0.3",
|
|
40
|
-
"@vue/tsconfig": "^0.5.1",
|
|
41
|
-
"eslint": "^9.14.0",
|
|
42
|
-
"eslint-plugin-vue": "^9.30.0",
|
|
43
|
-
"globals": "^15.12.0",
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"typescript
|
|
49
|
-
"
|
|
50
|
-
"unplugin-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
},
|
|
55
|
-
"dependencies": {
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "xyvcard-settle",
|
|
3
|
+
"version": "0.0.53",
|
|
4
|
+
"private": false,
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
|
+
"types": "dts/src/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"dts/src"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite --host",
|
|
13
|
+
"build": "vite build && pnpm build:dts",
|
|
14
|
+
"build:dts": "vue-tsc --declaration --emitDeclarationOnly",
|
|
15
|
+
"preview": "vite preview",
|
|
16
|
+
"build-only": "vite build",
|
|
17
|
+
"type-check": "vue-tsc --build --force",
|
|
18
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
|
19
|
+
"format": "prettier --write src/"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"axios": "^1.9.0",
|
|
23
|
+
"element-plus": "^2.9.10",
|
|
24
|
+
"jmash-core": "^0.1.4",
|
|
25
|
+
"jmash-dict": "^0.1.1",
|
|
26
|
+
"jmash-rbac": "^0.1.1",
|
|
27
|
+
"pinia": "^2.3.1",
|
|
28
|
+
"vue": "^3.5.13",
|
|
29
|
+
"vue-i18n": "^9.14.4",
|
|
30
|
+
"vue-router": "^4.5.1",
|
|
31
|
+
"xyvcard-agent": "0.0.49",
|
|
32
|
+
"xyvcard-insts": "0.0.40",
|
|
33
|
+
"xyvcard-merchant": "0.0.57"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@eslint/js": "^9.14.0",
|
|
37
|
+
"@tsconfig/node20": "^20.1.2",
|
|
38
|
+
"@types/node": "^20.11.10",
|
|
39
|
+
"@vitejs/plugin-vue": "^5.0.3",
|
|
40
|
+
"@vue/tsconfig": "^0.5.1",
|
|
41
|
+
"eslint": "^9.14.0",
|
|
42
|
+
"eslint-plugin-vue": "^9.30.0",
|
|
43
|
+
"globals": "^15.12.0",
|
|
44
|
+
"moment": "^2.30.1",
|
|
45
|
+
"npm-run-all2": "^6.1.1",
|
|
46
|
+
"prettier": "^3.0.3",
|
|
47
|
+
"sass": "^1.72.0",
|
|
48
|
+
"typescript": "~5.3.0",
|
|
49
|
+
"typescript-eslint": "^8.13.0",
|
|
50
|
+
"unplugin-auto-import": "^0.17.5",
|
|
51
|
+
"unplugin-vue-components": "^0.26.0",
|
|
52
|
+
"vite": "^5.0.11",
|
|
53
|
+
"vue-tsc": "^2.1.10"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@vueuse/core": "^10.9.0",
|
|
57
|
+
"echarts": "^5.5.1",
|
|
58
|
+
"file-saver": "^2.0.5",
|
|
59
|
+
"nprogress": "^0.2.0",
|
|
60
|
+
"qs": "^6.12.0"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -1,287 +0,0 @@
|
|
|
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
|
-
};
|