zsysview 0.0.73 → 0.0.75
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/README.md +8 -1
- package/dist/{backup-C-8XxUeg.js → backup-SyEdCAp8.js} +1 -1
- package/dist/{change_password-Cf9KZh5r.js → change_password-Bsy5UWk5.js} +1 -1
- package/dist/{department-BLvPB0Ab.js → department-CTz6Zl77.js} +1 -2
- package/dist/{desktop-Dq-laqzI.js → desktop-BsAtnaiZ.js} +1 -1
- package/dist/{index-DoL8e_A7.js → index-CNHm-GYX.js} +474 -408
- package/dist/{log-C_eq9bz-.js → log-DZExn208.js} +1 -1
- package/dist/{login-BSJMr2hP.js → login-BfwfNRPM.js} +1 -1
- package/dist/{main-BFfEI8GX.js → main-CMvGJ6Aj.js} +1 -1
- package/dist/{notification-3Dfu-bx3.js → notification-UendN1qv.js} +1 -1
- package/dist/{position-CooCxhxs.js → position-03gjZhem.js} +1 -2
- package/dist/{role-CdVnR2bR.js → role-DiAoYqmc.js} +1 -2
- package/dist/{self-BcLSubtZ.js → self-ZQc6_V-v.js} +1 -1
- package/dist/{systemsetting-_UBbOz8c.js → systemsetting-C_yScRNg.js} +1 -1
- package/dist/{user-GBXDre5q.js → user-Mt_WHbHv.js} +1 -2
- package/dist/zsysview.es.d.ts +65 -30
- package/dist/zsysview.es.js +9 -6
- package/package.json +1 -1
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-Cqb4mbmJ.js +0 -70
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, reactive, computed, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import { H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$2, k as _sfc_main$3 } from "./index-
|
|
2
|
+
import { H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$2, k as _sfc_main$3 } from "./index-CNHm-GYX.js";
|
|
3
3
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "log_setting",
|
|
5
5
|
setup(__props, { expose: __expose }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, createVNode, withCtx, withKeys, createTextVNode, createElementVNode, toDisplayString, inject } from "vue";
|
|
2
|
-
import { e as useRouter,
|
|
2
|
+
import { e as useRouter, p as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-CNHm-GYX.js";
|
|
3
3
|
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
class: "bg",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, resolveDynamicComponent, toDisplayString, createElementBlock, Fragment, renderList, markRaw, inject, reactive, onMounted, ref, unref, createTextVNode, watch } from "vue";
|
|
2
|
-
import { b as bell_default, u as user_default, o as office_building_default, a as avatar_default, r as reading_default, c as copy_document_default, d as operation_default, s as setting_default, H as HttpApiV1, _ as _export_sfc, e as useRouter, f as formatPreciseOralTime, g as arrow_down_default, h as useTokenStore, Z as ZSYSMessage } from "./index-
|
|
2
|
+
import { b as bell_default, u as user_default, o as office_building_default, a as avatar_default, r as reading_default, c as copy_document_default, d as operation_default, s as setting_default, H as HttpApiV1, _ as _export_sfc, e as useRouter, f as formatPreciseOralTime, g as arrow_down_default, h as useTokenStore, Z as ZSYSMessage } from "./index-CNHm-GYX.js";
|
|
3
3
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "userMenuItem",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, computed, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2 } from "./index-
|
|
2
|
+
import { H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2 } from "./index-CNHm-GYX.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "notification",
|
|
5
5
|
setup(__props) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, createElementBlock, Fragment, unref } from "vue";
|
|
2
|
-
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, i as _sfc_main$2, k as _sfc_main$3 } from "./index-
|
|
3
|
-
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-Cqb4mbmJ.js";
|
|
2
|
+
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, i as _sfc_main$2, k as _sfc_main$3, m as _sfc_main$4 } from "./index-CNHm-GYX.js";
|
|
4
3
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
5
4
|
__name: "position_edit_dialog",
|
|
6
5
|
props: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, createElementBlock, Fragment, unref } from "vue";
|
|
2
|
-
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc, i as _sfc_main$2, k as _sfc_main$3 } from "./index-
|
|
3
|
-
import { _ as _sfc_main$4 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-Cqb4mbmJ.js";
|
|
2
|
+
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc, i as _sfc_main$2, k as _sfc_main$3, m as _sfc_main$4 } from "./index-CNHm-GYX.js";
|
|
4
3
|
const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
5
4
|
__name: "role_edit_dialog",
|
|
6
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import { H as HttpApiV1, i as _sfc_main$1 } from "./index-
|
|
2
|
+
import { H as HttpApiV1, i as _sfc_main$1 } from "./index-CNHm-GYX.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "self",
|
|
5
5
|
setup(__props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
-
import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-
|
|
2
|
+
import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-CNHm-GYX.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px" } }, _hoisted_2 = ["src"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "systemsetting",
|
|
5
5
|
setup(__props) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createCommentVNode, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createTextVNode, computed, unref } from "vue";
|
|
2
|
-
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$3, k as _sfc_main$4 } from "./index-
|
|
2
|
+
import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$3, k as _sfc_main$4, m as _sfc_main$5 } from "./index-CNHm-GYX.js";
|
|
3
3
|
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
|
-
import { _ as _sfc_main$5 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-Cqb4mbmJ.js";
|
|
5
4
|
const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
6
5
|
key: 0,
|
|
7
6
|
style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" }
|
package/dist/zsysview.es.d.ts
CHANGED
|
@@ -3,9 +3,12 @@ import { ComponentOptionsMixin } from 'vue';
|
|
|
3
3
|
import { ComponentProvideOptions } from 'vue';
|
|
4
4
|
import { DefineComponent } from 'vue';
|
|
5
5
|
import { ExtractPropTypes } from 'vue';
|
|
6
|
+
import { Handler } from 'mitt';
|
|
7
|
+
import { PropType } from 'vue';
|
|
6
8
|
import { PublicProps } from 'vue';
|
|
7
9
|
import { Router } from 'vue-router';
|
|
8
10
|
import { RouteRecordRaw } from 'vue-router';
|
|
11
|
+
import { WildcardHandler } from 'mitt';
|
|
9
12
|
|
|
10
13
|
declare const __VLS_component: DefineComponent<ExtractPropTypes< {
|
|
11
14
|
config: {
|
|
@@ -53,6 +56,13 @@ export declare const addFrameRouters: (rs: RouteRecordRaw[]) => void;
|
|
|
53
56
|
|
|
54
57
|
export declare const breadcrumb: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
55
58
|
|
|
59
|
+
declare type Events = {
|
|
60
|
+
'aud': {
|
|
61
|
+
module: string;
|
|
62
|
+
id: bigint;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
|
|
56
66
|
declare interface ExportColumn {
|
|
57
67
|
ColumnTitle: string;
|
|
58
68
|
ColumnName: string;
|
|
@@ -104,36 +114,6 @@ export declare class httpapi {
|
|
|
104
114
|
static url_export_detail: string;
|
|
105
115
|
static url_export_file: string;
|
|
106
116
|
static url_system_publish: string;
|
|
107
|
-
static url_desktop: string;
|
|
108
|
-
static url_desktop_config_detail: string;
|
|
109
|
-
static url_desktop_config_save: string;
|
|
110
|
-
static url_chart_weekly: string;
|
|
111
|
-
static url_chart_all: string;
|
|
112
|
-
static url_chart_last: string;
|
|
113
|
-
static url_event_list: string;
|
|
114
|
-
static url_event_detail: string;
|
|
115
|
-
static url_event_file: string;
|
|
116
|
-
static url_event_dispose: string;
|
|
117
|
-
static url_rule_list: string;
|
|
118
|
-
static url_rule_save: string;
|
|
119
|
-
static url_rule_del: string;
|
|
120
|
-
static url_rule_detail: string;
|
|
121
|
-
static url_time_list: string;
|
|
122
|
-
static url_time_save: string;
|
|
123
|
-
static url_time_del: string;
|
|
124
|
-
static url_time_detail: string;
|
|
125
|
-
static url_area_save: string;
|
|
126
|
-
static url_area_list: string;
|
|
127
|
-
static url_area_del: string;
|
|
128
|
-
static url_area_detail: string;
|
|
129
|
-
static url_equipment_save: string;
|
|
130
|
-
static url_equipment_list: string;
|
|
131
|
-
static url_equipment_detail: string;
|
|
132
|
-
static url_equipment_del: string;
|
|
133
|
-
static url_channel_save: string;
|
|
134
|
-
static url_channel_list: string;
|
|
135
|
-
static url_channel_detail: string;
|
|
136
|
-
static url_channel_del: string;
|
|
137
117
|
static GetFullApiUrl(api: string): string;
|
|
138
118
|
static Post(url: string, obj: object): Promise<HttpApiReturnData>;
|
|
139
119
|
}
|
|
@@ -171,8 +151,63 @@ declare interface SqlQueryParam {
|
|
|
171
151
|
value?: number | string | null | unknown;
|
|
172
152
|
}
|
|
173
153
|
|
|
154
|
+
export declare const zsys_delbutton: DefineComponent<ExtractPropTypes< {
|
|
155
|
+
id: {
|
|
156
|
+
type: PropType<bigint>;
|
|
157
|
+
required: true;
|
|
158
|
+
};
|
|
159
|
+
api_url: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
required: true;
|
|
162
|
+
};
|
|
163
|
+
module: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
168
|
+
id: {
|
|
169
|
+
type: PropType<bigint>;
|
|
170
|
+
required: true;
|
|
171
|
+
};
|
|
172
|
+
api_url: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
required: true;
|
|
175
|
+
};
|
|
176
|
+
module: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
}>> & Readonly<{}>, {
|
|
181
|
+
module: string;
|
|
182
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
183
|
+
|
|
174
184
|
export declare const zsysapp: App<Element>;
|
|
175
185
|
|
|
186
|
+
export declare const zsysEventBus: () => {
|
|
187
|
+
emit: {
|
|
188
|
+
<Key extends "aud">(type: Key, event: Events[Key]): void;
|
|
189
|
+
<Key extends "aud">(type: undefined extends Events[Key] ? Key : never): void;
|
|
190
|
+
};
|
|
191
|
+
on: {
|
|
192
|
+
<Key extends "aud">(type: Key, handler: Handler<Events[Key]>): void;
|
|
193
|
+
(type: "*", handler: WildcardHandler<Events>): void;
|
|
194
|
+
};
|
|
195
|
+
off: {
|
|
196
|
+
<Key extends "aud">(type: Key, handler?: Handler<Events[Key]> | undefined): void;
|
|
197
|
+
(type: "*", handler: WildcardHandler<Events>): void;
|
|
198
|
+
};
|
|
199
|
+
once: <T extends keyof Events>(event: T, handler: (payload: Events[T]) => void) => void;
|
|
200
|
+
clearAll: () => void;
|
|
201
|
+
};
|
|
202
|
+
|
|
176
203
|
export declare const zsyslist: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
177
204
|
|
|
205
|
+
export declare class ZSYSMessage {
|
|
206
|
+
static show(msgType: "success" | "warning" | "info" | "error" | undefined, msg: string): void;
|
|
207
|
+
static ShowInfo(msg: string): void;
|
|
208
|
+
static ShowSuccess(msg: string): void;
|
|
209
|
+
static ShowError(msg: string): void;
|
|
210
|
+
install: (app: App) => App<any>;
|
|
211
|
+
}
|
|
212
|
+
|
|
178
213
|
export { }
|
package/dist/zsysview.es.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { x, v,
|
|
1
|
+
import { y, Z, x, v, i, j, f, H, t, z, m, q, k } from "./index-CNHm-GYX.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
y as HttpApiReturnData,
|
|
4
|
+
Z as ZSYSMessage,
|
|
5
|
+
x as addFrameRouter,
|
|
6
|
+
v as addFrameRouters,
|
|
6
7
|
i as breadcrumb,
|
|
7
8
|
j as formatDateTime,
|
|
8
9
|
f as formatPreciseOralTime,
|
|
9
10
|
H as httpapi,
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
t as router,
|
|
12
|
+
z as zsysEventBus,
|
|
13
|
+
m as zsys_delbutton,
|
|
14
|
+
q as zsysapp,
|
|
12
15
|
k as zsyslist
|
|
13
16
|
};
|
package/package.json
CHANGED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, withCtx, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { z as zsysEventBus, H as HttpApiV1, Z as ZSYSMessage } from "./index-DoL8e_A7.js";
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "zsys_delbutton",
|
|
5
|
-
props: {
|
|
6
|
-
id: { type: BigInt, required: !0 },
|
|
7
|
-
api_url: { type: String, required: !0 },
|
|
8
|
-
module: { type: String, default: "all" }
|
|
9
|
-
// closeOnClickModal: { type: Boolean, default: true }
|
|
10
|
-
},
|
|
11
|
-
setup(__props) {
|
|
12
|
-
const eventBus = zsysEventBus(), view = reactive({
|
|
13
|
-
loading: !1
|
|
14
|
-
}), props = __props, confirm = async () => {
|
|
15
|
-
view.loading = !0;
|
|
16
|
-
try {
|
|
17
|
-
(await HttpApiV1.Post(props.api_url, { id: props.id })).IsSuccess ? (view.loading = !1, ZSYSMessage.ShowSuccess("删除成功"), console.log("aud", props.module), console.log(props.module), eventBus.emit("aud", { module: props.module, id: props.id })) : ZSYSMessage.ShowError("删除失败");
|
|
18
|
-
} catch {
|
|
19
|
-
}
|
|
20
|
-
view.loading = !1;
|
|
21
|
-
};
|
|
22
|
-
return (_ctx, _cache) => {
|
|
23
|
-
const _component_el_link = resolveComponent("el-link"), _component_el_popconfirm = resolveComponent("el-popconfirm"), _component_el_popover = resolveComponent("el-popover");
|
|
24
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
25
|
-
view.loading ? createCommentVNode("", !0) : (openBlock(), createBlock(_component_el_popconfirm, {
|
|
26
|
-
key: 0,
|
|
27
|
-
onConfirm: confirm,
|
|
28
|
-
title: "确认要删除吗?",
|
|
29
|
-
"confirm-button-text": "删除",
|
|
30
|
-
"cancel-button-text": "取消",
|
|
31
|
-
"confirm-button-type": "danger"
|
|
32
|
-
}, {
|
|
33
|
-
reference: withCtx(() => [
|
|
34
|
-
createVNode(_component_el_link, { type: "primary" }, {
|
|
35
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
36
|
-
createTextVNode("删除", -1)
|
|
37
|
-
])]),
|
|
38
|
-
_: 1
|
|
39
|
-
})
|
|
40
|
-
]),
|
|
41
|
-
_: 1
|
|
42
|
-
})),
|
|
43
|
-
view.loading ? (openBlock(), createBlock(_component_el_popover, {
|
|
44
|
-
key: 1,
|
|
45
|
-
visible: view.loading,
|
|
46
|
-
width: 40,
|
|
47
|
-
placement: "top",
|
|
48
|
-
content: "正在删除"
|
|
49
|
-
}, {
|
|
50
|
-
reference: withCtx(() => [
|
|
51
|
-
createVNode(_component_el_link, {
|
|
52
|
-
type: "primary",
|
|
53
|
-
style: { "margin-left": "6px" },
|
|
54
|
-
disabled: ""
|
|
55
|
-
}, {
|
|
56
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
57
|
-
createTextVNode("删除", -1)
|
|
58
|
-
])]),
|
|
59
|
-
_: 1
|
|
60
|
-
})
|
|
61
|
-
]),
|
|
62
|
-
_: 1
|
|
63
|
-
}, 8, ["visible"])) : createCommentVNode("", !0)
|
|
64
|
-
], 64);
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
export {
|
|
69
|
-
_sfc_main as _
|
|
70
|
-
};
|