zsysview 0.0.35 → 0.0.37
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/{backup-DynLMXdm.js → backup-DYT6WOhb.js} +4 -4
- package/dist/{breadcrumb.vue_vue_type_script_setup_true_lang-TTLDMjMD.js → breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js} +1 -1
- package/dist/{change_password-BneyLtuI.js → change_password-C1TSXbkT.js} +4 -4
- package/dist/{department-CbHAuLje.js → department-Cy3bZi0Z.js} +15 -11
- package/dist/{desktop-eknEWppu.js → desktop-D8NO-31I.js} +1 -1
- package/dist/{http_api_v1-EUs_f9lQ.js → http_api_v1-BOkofMrH.js} +3 -16
- package/dist/{index-BO349G9H.js → index-D0WjiJFA.js} +86 -148
- package/dist/{log-YY2eN32S.js → log-BNz3HXTx.js} +5 -5
- package/dist/{login-DeeHxCNb.js → login-CRBF4af6.js} +19 -16
- package/dist/main-D1Qc1usP.js +447 -0
- package/dist/{message-CpFOrVMc.js → message-CxCkznRZ.js} +1 -1
- package/dist/notification-CFdEb99z.js +82 -0
- package/dist/{position-BsoCgmh_.js → position-BsXmxfyE.js} +6 -6
- package/dist/{role-CnLFQOSX.js → role-DfMFK4Sf.js} +6 -6
- package/dist/{self-6xdRjh6a.js → self-Twg1O-V2.js} +2 -2
- package/dist/systemsetting-DY_aaCMb.js +170 -0
- package/dist/{user-DPtBnZLN.js → user-BNfLS3hP.js} +7 -7
- package/dist/{zsys_delbutton.vue_vue_type_script_setup_true_lang-xh5_jCEI.js → zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js} +2 -2
- package/dist/zsys_time-BE4ImI0m.js +22 -0
- package/dist/{zsyslist.vue_vue_type_script_setup_true_lang-Di1hHbqk.js → zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js} +3 -3
- package/dist/zsysview.css +1 -1
- package/dist/zsysview.es.js +4 -2
- package/docs//345/205/250/345/261/200/345/217/230/351/207/217.md +5 -3
- package/package.json +1 -1
- package/dist/main-D9VmwlaL.js +0 -289
- package/dist/sys-BZgBUI3k.js +0 -30
- package/dist/zsys_time-4KclnYJN.js +0 -17
- /package/dist/{vite.svg → vite1.svg} +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
|
|
3
|
+
import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
5
|
+
const _hoisted_1 = { style: { padding: "0px 20px" } }, _hoisted_2 = ["src"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "systemsetting",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const imageUrl = ref("/public/img/logo_1001.png"), tab = ref("base"), form = reactive({
|
|
9
|
+
auto: !0,
|
|
10
|
+
plan: "Everyday",
|
|
11
|
+
hour: "01",
|
|
12
|
+
minute: "00",
|
|
13
|
+
path: "",
|
|
14
|
+
keep: "keep20",
|
|
15
|
+
use_ftp: !1,
|
|
16
|
+
f_host: "",
|
|
17
|
+
f_port: 21,
|
|
18
|
+
f_u: "",
|
|
19
|
+
f_p: "",
|
|
20
|
+
f_path: "",
|
|
21
|
+
f_tls: !0
|
|
22
|
+
});
|
|
23
|
+
async function saveConfig() {
|
|
24
|
+
try {
|
|
25
|
+
let data = {
|
|
26
|
+
auto: form.auto ? 1 : 0,
|
|
27
|
+
plan: form.plan,
|
|
28
|
+
hour: form.hour,
|
|
29
|
+
minute: form.minute,
|
|
30
|
+
path: form.path,
|
|
31
|
+
keep: form.keep,
|
|
32
|
+
use_ftp: form.use_ftp ? 1 : 0,
|
|
33
|
+
f_host: form.f_host,
|
|
34
|
+
f_port: form.f_port,
|
|
35
|
+
f_u: form.f_u,
|
|
36
|
+
f_p: form.f_p,
|
|
37
|
+
f_path: form.f_path,
|
|
38
|
+
f_tls: form.f_tls ? 1 : 0
|
|
39
|
+
}, res = await HttpApiV1.Post(HttpApiV1.url_backup_config_save, data);
|
|
40
|
+
res.IsSuccess ? ZSYSMessage.ShowSuccess("保存成功") : ZSYSMessage.ShowError(res.message);
|
|
41
|
+
} catch (e) {
|
|
42
|
+
console.log(e), ZSYSMessage.ShowError("保存配置失败");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return (_ctx, _cache) => {
|
|
46
|
+
const _component_el_input = resolveComponent("el-input"), _component_el_text = resolveComponent("el-text"), _component_el_space = resolveComponent("el-space"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_upload = resolveComponent("el-upload"), _component_el_button = resolveComponent("el-button"), _component_el_form = resolveComponent("el-form"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
|
|
47
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
48
|
+
createVNode(_sfc_main$1),
|
|
49
|
+
createElementVNode("div", _hoisted_1, [
|
|
50
|
+
createVNode(_component_el_tabs, {
|
|
51
|
+
modelValue: tab.value,
|
|
52
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tab.value = $event)
|
|
53
|
+
}, {
|
|
54
|
+
default: withCtx(() => [
|
|
55
|
+
createVNode(_component_el_tab_pane, {
|
|
56
|
+
label: "基础",
|
|
57
|
+
name: "base"
|
|
58
|
+
}, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(_component_el_form, {
|
|
61
|
+
"label-width": "100px",
|
|
62
|
+
style: { "margin-top": "10px" }
|
|
63
|
+
}, {
|
|
64
|
+
default: withCtx(() => [
|
|
65
|
+
createVNode(_component_el_form_item, { label: "系统名称" }, {
|
|
66
|
+
default: withCtx(() => [
|
|
67
|
+
createVNode(_component_el_space, {
|
|
68
|
+
direction: "vertical",
|
|
69
|
+
size: 2,
|
|
70
|
+
alignment: "stretch"
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createVNode(_component_el_input, { style: { width: "300px" } }),
|
|
74
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
75
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
76
|
+
createTextVNode("如果您使用的是路径设置到第二个硬盘/U盘", -1)
|
|
77
|
+
])]),
|
|
78
|
+
_: 1
|
|
79
|
+
})
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
})
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}),
|
|
86
|
+
createVNode(_component_el_form_item, { label: "系统LOGO" }, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(_component_el_space, {
|
|
89
|
+
direction: "vertical",
|
|
90
|
+
size: 2,
|
|
91
|
+
alignment: "stretch"
|
|
92
|
+
}, {
|
|
93
|
+
default: withCtx(() => [
|
|
94
|
+
createVNode(_component_el_upload, {
|
|
95
|
+
class: "avatar-uploader",
|
|
96
|
+
action: "https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15",
|
|
97
|
+
"show-file-list": !1
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
createElementVNode("img", {
|
|
101
|
+
src: imageUrl.value,
|
|
102
|
+
class: "avatar"
|
|
103
|
+
}, null, 8, _hoisted_2)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}),
|
|
107
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
108
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
109
|
+
createTextVNode("如果您使用的是路径设置到第二个硬盘/U盘", -1)
|
|
110
|
+
])]),
|
|
111
|
+
_: 1
|
|
112
|
+
})
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}),
|
|
119
|
+
createVNode(_component_el_form_item, { label: "ICP备案" }, {
|
|
120
|
+
default: withCtx(() => [
|
|
121
|
+
createVNode(_component_el_space, {
|
|
122
|
+
direction: "vertical",
|
|
123
|
+
size: 2,
|
|
124
|
+
alignment: "stretch"
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(() => [
|
|
127
|
+
createVNode(_component_el_input, { style: { width: "300px" } }),
|
|
128
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
129
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
130
|
+
createTextVNode("如果您使用的是路径设置到第二个硬盘/U盘", -1)
|
|
131
|
+
])]),
|
|
132
|
+
_: 1
|
|
133
|
+
})
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}),
|
|
140
|
+
createVNode(_component_el_form_item, null, {
|
|
141
|
+
default: withCtx(() => [
|
|
142
|
+
createVNode(_component_el_button, {
|
|
143
|
+
type: "primary",
|
|
144
|
+
onClick: saveConfig
|
|
145
|
+
}, {
|
|
146
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
147
|
+
createTextVNode("应用设置", -1)
|
|
148
|
+
])]),
|
|
149
|
+
_: 1
|
|
150
|
+
})
|
|
151
|
+
]),
|
|
152
|
+
_: 1
|
|
153
|
+
})
|
|
154
|
+
]),
|
|
155
|
+
_: 1
|
|
156
|
+
})
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
})
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}, 8, ["modelValue"])
|
|
163
|
+
])
|
|
164
|
+
], 64);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
export {
|
|
169
|
+
_sfc_main as default
|
|
170
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
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 { _ as _sfc_main$3 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as _sfc_main$4 } from "./zsyslist.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
5
|
-
import { Z as ZSYSMessage } from "./message-
|
|
6
|
-
import {
|
|
2
|
+
import { _ as _sfc_main$3 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-nfrW6-5D.js";
|
|
3
|
+
import { _ as _sfc_main$4 } from "./zsyslist.vue_vue_type_script_setup_true_lang-Bwtl9i35.js";
|
|
4
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
|
|
6
|
+
import { h as useMagicKeys, w as whenever } from "./index-D0WjiJFA.js";
|
|
7
7
|
import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
|
|
8
8
|
import { h } from "./index.es-DrN1BLo5.js";
|
|
9
|
-
import { _ as _sfc_main$5 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import {
|
|
9
|
+
import { _ as _sfc_main$5 } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-CdVC6Qlu.js";
|
|
10
|
+
import { a as formatDateTime } from "./zsys_time-BE4ImI0m.js";
|
|
11
11
|
const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createBlock, createCommentVNode, withCtx, createVNode, createTextVNode } from "vue";
|
|
2
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
3
|
-
import { Z as ZSYSMessage } from "./message-
|
|
2
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
3
|
+
import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
|
|
4
4
|
import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "zsys_delbutton",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function formatDateTime(date) {
|
|
2
|
+
if (date == "0001-01-01T00:00:00Z")
|
|
3
|
+
return "";
|
|
4
|
+
const d = new Date(date);
|
|
5
|
+
return isNaN(d.getTime()) ? "" : [
|
|
6
|
+
d.getFullYear(),
|
|
7
|
+
(d.getMonth() + 1).toString().padStart(2, "0"),
|
|
8
|
+
d.getDate().toString().padStart(2, "0")
|
|
9
|
+
].join("-") + " " + [
|
|
10
|
+
d.getHours().toString().padStart(2, "0"),
|
|
11
|
+
d.getMinutes().toString().padStart(2, "0"),
|
|
12
|
+
d.getSeconds().toString().padStart(2, "0")
|
|
13
|
+
].join(":");
|
|
14
|
+
}
|
|
15
|
+
const formatPreciseOralTime = (timestamp) => {
|
|
16
|
+
const date = new Date(timestamp), diffInMs = (/* @__PURE__ */ new Date()).getTime() - date.getTime(), seconds = Math.floor(diffInMs / 1e3), minutes = Math.floor(seconds / 60), hours = Math.floor(minutes / 60), days = Math.floor(hours / 24);
|
|
17
|
+
return days > 0 ? days === 1 ? "昨天" : days === 2 ? "前天" : days < 7 ? `${days}天前` : days < 30 ? `${Math.floor(days / 7)}周前` : days < 365 ? `${Math.floor(days / 30)}个月前` : `${Math.floor(days / 365)}年前` : hours > 0 ? `${hours}小时前` : minutes > 0 ? `${minutes}分钟前` : "刚刚";
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
formatDateTime as a,
|
|
21
|
+
formatPreciseOralTime as f
|
|
22
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, reactive, watch, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createBlock, toDisplayString, withCtx, createTextVNode, createVNode, Fragment, renderList, unref, ref, withDirectives, withModifiers, vShow, renderSlot, withKeys, onMounted, onUnmounted, resolveDirective } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { H as HttpApiV1 } from "./http_api_v1-
|
|
4
|
-
import { Z as ZSYSMessage } from "./message-
|
|
2
|
+
import { h as useMagicKeys, w as whenever, _ as _export_sfc, i as refresh_default, j as search_default } from "./index-D0WjiJFA.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-BOkofMrH.js";
|
|
4
|
+
import { Z as ZSYSMessage } from "./message-CxCkznRZ.js";
|
|
5
5
|
import { z as zsysEventBus } from "./zsys_eventBus-NYpVNvQ4.js";
|
|
6
6
|
const _hoisted_1$1 = { style: { "padding-left": "20px", "padding-right": "20px", "padding-top": "6px" } }, _hoisted_2 = {
|
|
7
7
|
key: 0,
|