nxd-plugin 1.7.59 → 1.7.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nxd-plugin",
3
- "version": "1.7.59",
3
+ "version": "1.7.61",
4
4
  "main": "dist/nxd-plugin.mjs",
5
5
  "module": "dist/nxd-plugin.mjs",
6
6
  "types": "dist/src/index.d.ts",
@@ -1,183 +0,0 @@
1
- import { n as e, r as t } from "./component-AqiMonitor-BUy1MSaP.mjs";
2
- import { n } from "./component-LithiumBatteryMiningArea-DfRcsCeD.mjs";
3
- import { ElButton as r, ElForm as i, ElFormItem as a, ElIcon as o, ElInput as s } from "element-plus/es";
4
- import { Fragment as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, onMounted as p, openBlock as m, reactive as h, ref as g, renderList as _, unref as v, withCtx as y, withKeys as b } from "vue";
5
- import { Lock as x, Platform as S, User as C } from "@element-plus/icons-vue";
6
- import "element-plus/es/components/button/style/css";
7
- import { ElMessage as w } from "element-plus";
8
- import "element-plus/es/components/icon/style/css";
9
- import "element-plus/es/components/form/style/css";
10
- import "element-plus/es/components/form-item/style/css";
11
- import "element-plus/es/components/input/style/css";
12
- import "element-plus/es/components/message/style/css";
13
- //#region src/components/YCLoginNew/YCLoginNew.vue?vue&type=script&setup=true&lang.ts
14
- var T = { class: "YCLoginNew" }, E = { class: "particles" }, D = { class: "login-container" }, O = { class: "login-wrapper" }, k = { class: "login-box" }, A = { class: "login-header" }, j = { class: "header-icon" }, M = { class: "input-icon-box" }, N = { class: "input-icon-box" }, P = /* @__PURE__ */ e(/* @__PURE__ */ f({
15
- __name: "YCLoginNew",
16
- props: {
17
- appKey: {
18
- type: String,
19
- default: ""
20
- },
21
- appSalt: {
22
- type: String,
23
- default: ""
24
- },
25
- baseHttp: {
26
- type: String,
27
- default: ""
28
- },
29
- ids: {
30
- type: Object,
31
- default: () => ({})
32
- }
33
- },
34
- setup(e, { emit: f }) {
35
- let P = e, F = f, I = g(), L = g(!1), R = h({
36
- username: "",
37
- password: ""
38
- }), z = {
39
- username: [{
40
- required: !0,
41
- message: "请输入手机号",
42
- trigger: "blur"
43
- }],
44
- password: [{
45
- required: !0,
46
- message: "请输入密码",
47
- trigger: "blur"
48
- }]
49
- };
50
- p(() => {
51
- B();
52
- });
53
- let B = async () => {}, V = () => {
54
- I.value && I.value.validate(async (e) => {
55
- if (e) {
56
- L.value = !0;
57
- let e = {
58
- name: R.username,
59
- pwd: R.password
60
- }, r = (await t({
61
- appKey: P.appKey,
62
- appSalt: P.appSalt,
63
- id: P.ids.data.id,
64
- variables: { str: n.encode(JSON.stringify(e)) },
65
- baseHttp: P.baseHttp,
66
- reqType: P.ids.data.reqType,
67
- isFormData: P.ids.data.isFormData
68
- })).data.result.output;
69
- if (L.value = !1, !r || r.length === 0) {
70
- w({
71
- message: "账号或密码错误",
72
- type: "error",
73
- zIndex: 6e3,
74
- duration: 1500
75
- });
76
- return;
77
- }
78
- w({
79
- message: "登录成功!",
80
- type: "success",
81
- zIndex: 6e3,
82
- duration: 1500
83
- }), window.localStorage.setItem("user", JSON.stringify(r)), window.localStorage.setItem("uName", n.encode(R.username)), window.localStorage.setItem("uPwd", n.encode(R.password)), setTimeout(() => {
84
- r.length > 1 ? F("toPage", "/home") : F("toPage", r[0].web_page);
85
- }, 1e3);
86
- }
87
- });
88
- };
89
- return (e, t) => {
90
- let n = o, f = s, p = a, h = r, g = i;
91
- return m(), l("div", T, [
92
- t[11] ||= u("div", { class: "glow-bg" }, null, -1),
93
- t[12] ||= u("div", { class: "glow-bg-2" }, null, -1),
94
- u("div", E, [(m(), l(c, null, _(20, (e) => u("div", {
95
- class: "particle",
96
- key: e
97
- })), 64))]),
98
- u("div", D, [
99
- t[9] ||= u("div", { class: "page-header" }, [u("h1", {
100
- class: "main-title",
101
- "data-text": "宜春市气象服务平台"
102
- }, "宜春市气象服务平台"), u("p", { class: "sub-title" }, "专业气象服务 · 守护您的生产与生活")], -1),
103
- t[10] ||= u("div", { class: "divider-line" }, null, -1),
104
- u("div", O, [
105
- t[5] ||= u("div", { class: "corner top-left" }, null, -1),
106
- t[6] ||= u("div", { class: "corner top-right" }, null, -1),
107
- t[7] ||= u("div", { class: "corner bottom-left" }, null, -1),
108
- t[8] ||= u("div", { class: "corner bottom-right" }, null, -1),
109
- u("div", k, [u("div", A, [
110
- u("div", j, [d(n, { size: 32 }, {
111
- default: y(() => [d(v(S))]),
112
- _: 1
113
- })]),
114
- t[2] ||= u("h2", { class: "title" }, "系统登录", -1),
115
- t[3] ||= u("p", { class: "en-title" }, "SYSTEM LOGIN", -1)
116
- ]), d(g, {
117
- model: R,
118
- rules: z,
119
- ref_key: "loginFormRef",
120
- ref: I,
121
- onKeyup: b(V, ["enter"]),
122
- class: "login-form"
123
- }, {
124
- default: y(() => [
125
- d(p, { prop: "username" }, {
126
- default: y(() => [d(f, {
127
- modelValue: R.username,
128
- "onUpdate:modelValue": t[0] ||= (e) => R.username = e,
129
- placeholder: "请输入手机号",
130
- clearable: "",
131
- size: "large",
132
- class: "custom-input"
133
- }, {
134
- prefix: y(() => [u("div", M, [d(n, null, {
135
- default: y(() => [d(v(C))]),
136
- _: 1
137
- })])]),
138
- _: 1
139
- }, 8, ["modelValue"])]),
140
- _: 1
141
- }),
142
- d(p, { prop: "password" }, {
143
- default: y(() => [d(f, {
144
- modelValue: R.password,
145
- "onUpdate:modelValue": t[1] ||= (e) => R.password = e,
146
- type: "password",
147
- placeholder: "请输入密码",
148
- "show-password": "",
149
- size: "large",
150
- class: "custom-input"
151
- }, {
152
- prefix: y(() => [u("div", N, [d(n, null, {
153
- default: y(() => [d(v(x))]),
154
- _: 1
155
- })])]),
156
- _: 1
157
- }, 8, ["modelValue"])]),
158
- _: 1
159
- }),
160
- d(p, { class: "btn-item" }, {
161
- default: y(() => [d(h, {
162
- class: "login-btn",
163
- type: "primary",
164
- onClick: V,
165
- loading: L.value,
166
- size: "large"
167
- }, {
168
- default: y(() => [...t[4] ||= [u("span", { class: "btn-text" }, "登 录", -1), u("div", { class: "btn-glow" }, null, -1)]]),
169
- _: 1
170
- }, 8, ["loading"])]),
171
- _: 1
172
- })
173
- ]),
174
- _: 1
175
- }, 8, ["model"])])
176
- ])
177
- ])
178
- ]);
179
- };
180
- }
181
- }), [["__scopeId", "data-v-92080b7a"]]);
182
- //#endregion
183
- export { P as t };