zsysview 0.0.25 → 0.0.27
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-DgoJ-AYS.js +519 -0
- package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-CGEOrj8x.js +43 -0
- package/dist/change_password-CfTKlKzq.js +135 -0
- package/dist/department-SWj0HA-l.js +410 -0
- package/dist/desktop-le1cI27_.js +9 -0
- package/dist/http_api_v1-d9smAbJZ.js +1008 -0
- package/dist/index-BZZm3CTh.js +6688 -0
- package/dist/{index-BaFHeDAF.js → index-DG0x9mYD.js} +105 -105
- package/dist/index.es-DrN1BLo5.js +170 -0
- package/dist/log-D-BDBVS7.js +163 -0
- package/dist/login-DUn4tmOp.js +111 -0
- package/dist/main-Bgkb3hrI.js +293 -0
- package/dist/message-CVTa4Hb1.js +26 -0
- package/dist/position-D7u-VoeU.js +311 -0
- package/dist/role-CyCsBm0V.js +405 -0
- package/dist/self-BRTR2NdM.js +102 -0
- package/dist/sys-BZgBUI3k.js +30 -0
- package/dist/user-cl8kQwmL.js +650 -0
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-Dqud3QQ4.js +72 -0
- package/dist/zsys_eventBus-CZOk9fTb.js +178 -0
- package/dist/zsys_time-4KclnYJN.js +17 -0
- package/dist/zsyslist.vue_vue_type_script_setup_true_lang-BE2Kl33t.js +466 -0
- package/dist/zsysview.es.js +1 -1
- package/package.json +1 -1
- package/dist/backup-BtlHW0BD.js +0 -519
- package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-0fY46hVF.js +0 -43
- package/dist/change_password-CFzY6W1m.js +0 -135
- package/dist/department-CTjgunsp.js +0 -410
- package/dist/desktop-DllfdF_C.js +0 -9
- package/dist/http_api_v1-CKW-eruI.js +0 -2758
- package/dist/index-1JxUipsC.js +0 -6688
- package/dist/index.es-BcGc183Q.js +0 -170
- package/dist/log-B0TFmX0G.js +0 -163
- package/dist/login-DvnQWaIX.js +0 -111
- package/dist/main-zeYv7R6E.js +0 -293
- package/dist/message-CdVUOGzt.js +0 -26
- package/dist/position-DFLhIMSw.js +0 -311
- package/dist/role-D2CDQgt8.js +0 -405
- package/dist/self-2M89YD6I.js +0 -102
- package/dist/sys-BjlP52cg.js +0 -30
- package/dist/user-Q7eKhHdo.js +0 -650
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-DDPcW53J.js +0 -72
- package/dist/zsys_eventBus-DDrk0Aw8.js +0 -178
- package/dist/zsys_time-DHEMuVgo.js +0 -17
- package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CDcUSsVO.js +0 -466
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import { defineComponent, ref, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
+
import { _ as _sfc_main$1 } from "./breadcrumb.vue_vue_type_script_setup_true_lang-CGEOrj8x.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-d9smAbJZ.js";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./zsyslist.vue_vue_type_script_setup_true_lang-BE2Kl33t.js";
|
|
5
|
+
import { Z as ZSYSMessage } from "./message-CVTa4Hb1.js";
|
|
6
|
+
const _hoisted_1 = { style: { padding: "0px 20px" } }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 0 }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "backup",
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const activeName = ref("list"), listconfig = reactive({
|
|
10
|
+
ApiUrl: HttpApiV1.url_backup_list,
|
|
11
|
+
QuickConditionsGroups: [],
|
|
12
|
+
HideBottomToolbar: !0
|
|
13
|
+
}), view = reactive({
|
|
14
|
+
edit_id: BigInt(0),
|
|
15
|
+
edit_dialog_show: !1
|
|
16
|
+
}), form = reactive({
|
|
17
|
+
auto: !0,
|
|
18
|
+
plan: "Everyday",
|
|
19
|
+
hour: "01",
|
|
20
|
+
minute: "00",
|
|
21
|
+
path: "",
|
|
22
|
+
keep: "keep20",
|
|
23
|
+
use_ftp: !1,
|
|
24
|
+
f_host: "",
|
|
25
|
+
f_port: 21,
|
|
26
|
+
f_u: "",
|
|
27
|
+
f_p: "",
|
|
28
|
+
f_path: "",
|
|
29
|
+
f_tls: !0
|
|
30
|
+
}), startBackup = async () => {
|
|
31
|
+
try {
|
|
32
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_backup_start, {});
|
|
33
|
+
res.IsSuccess ? ZSYSMessage.ShowSuccess("开始备份") : ZSYSMessage.ShowError(res.message);
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.log(e), ZSYSMessage.ShowError("启动备份失败");
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
async function saveConfig() {
|
|
39
|
+
try {
|
|
40
|
+
let data = {
|
|
41
|
+
auto: form.auto ? 1 : 0,
|
|
42
|
+
plan: form.plan,
|
|
43
|
+
hour: form.hour,
|
|
44
|
+
minute: form.minute,
|
|
45
|
+
path: form.path,
|
|
46
|
+
keep: form.keep,
|
|
47
|
+
use_ftp: form.use_ftp ? 1 : 0,
|
|
48
|
+
f_host: form.f_host,
|
|
49
|
+
f_port: form.f_port,
|
|
50
|
+
f_u: form.f_u,
|
|
51
|
+
f_p: form.f_p,
|
|
52
|
+
f_path: form.f_path,
|
|
53
|
+
f_tls: form.f_tls ? 1 : 0
|
|
54
|
+
}, res = await HttpApiV1.Post(HttpApiV1.url_backup_config_save, data);
|
|
55
|
+
res.IsSuccess ? ZSYSMessage.ShowSuccess("保存成功") : ZSYSMessage.ShowError(res.message);
|
|
56
|
+
} catch (e) {
|
|
57
|
+
console.log(e), ZSYSMessage.ShowError("保存配置失败");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async function getConfig() {
|
|
61
|
+
try {
|
|
62
|
+
let res = await HttpApiV1.Post(HttpApiV1.url_backup_config_get, {});
|
|
63
|
+
if (res.IsSuccess) {
|
|
64
|
+
let data = res.data;
|
|
65
|
+
form.auto = data.auto == 1, form.plan = data.plan, form.hour = data.hour, form.minute = data.minute, form.path = data.path, form.keep = data.keep, form.use_ftp = data.use_ftp == 1, form.f_host = data.f_host, form.f_port = data.f_port, form.f_u = data.f_u, form.f_p = data.f_p, form.f_path = data.f_path, form.f_tls = data.f_tls == 1;
|
|
66
|
+
} else
|
|
67
|
+
ZSYSMessage.ShowError("获取备份配置失败");
|
|
68
|
+
} catch (e) {
|
|
69
|
+
ZSYSMessage.ShowError("获取备份配置失败"), console.log(e);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return onMounted(() => {
|
|
73
|
+
getConfig();
|
|
74
|
+
}), (_ctx, _cache) => {
|
|
75
|
+
const _component_el_alert = resolveComponent("el-alert"), _component_el_button = resolveComponent("el-button"), _component_el_table_column = resolveComponent("el-table-column"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_switch = resolveComponent("el-switch"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_option = resolveComponent("el-option"), _component_el_select = resolveComponent("el-select"), _component_el_space = resolveComponent("el-space"), _component_el_input = resolveComponent("el-input"), _component_el_text = resolveComponent("el-text"), _component_el_divider = resolveComponent("el-divider"), _component_el_input_number = resolveComponent("el-input-number"), _component_el_form = resolveComponent("el-form"), _component_el_tabs = resolveComponent("el-tabs"), _component_department_edit_dialog = resolveComponent("department_edit_dialog");
|
|
76
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
77
|
+
createVNode(_sfc_main$1),
|
|
78
|
+
createElementVNode("div", _hoisted_1, [
|
|
79
|
+
createVNode(_component_el_tabs, {
|
|
80
|
+
modelValue: activeName.value,
|
|
81
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => activeName.value = $event)
|
|
82
|
+
}, {
|
|
83
|
+
default: withCtx(() => [
|
|
84
|
+
createVNode(_component_el_tab_pane, {
|
|
85
|
+
label: "备份记录",
|
|
86
|
+
name: "list"
|
|
87
|
+
}, {
|
|
88
|
+
default: withCtx(() => [
|
|
89
|
+
createVNode(_component_el_alert, {
|
|
90
|
+
title: "如需还原备份点,请联系技术人员。",
|
|
91
|
+
type: "info",
|
|
92
|
+
"show-icon": "",
|
|
93
|
+
closable: !1,
|
|
94
|
+
style: { width: "450px" }
|
|
95
|
+
}),
|
|
96
|
+
createVNode(_sfc_main$2, {
|
|
97
|
+
config: listconfig,
|
|
98
|
+
module: "backup",
|
|
99
|
+
style: { "margin-top": "10px" }
|
|
100
|
+
}, {
|
|
101
|
+
headermain: withCtx(() => [
|
|
102
|
+
createVNode(_component_el_button, {
|
|
103
|
+
class: "main_btn",
|
|
104
|
+
type: "primary",
|
|
105
|
+
onClick: startBackup
|
|
106
|
+
}, {
|
|
107
|
+
default: withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
108
|
+
createTextVNode("立即备份", -1)
|
|
109
|
+
])]),
|
|
110
|
+
_: 1
|
|
111
|
+
})
|
|
112
|
+
]),
|
|
113
|
+
content: withCtx(() => [
|
|
114
|
+
createVNode(_component_el_table_column, {
|
|
115
|
+
prop: "item_name",
|
|
116
|
+
label: "备份点",
|
|
117
|
+
"min-width": "240"
|
|
118
|
+
}),
|
|
119
|
+
createVNode(_component_el_table_column, {
|
|
120
|
+
prop: "size_desc",
|
|
121
|
+
label: "大小",
|
|
122
|
+
width: "200"
|
|
123
|
+
})
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["config"])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
createVNode(_component_el_tab_pane, {
|
|
131
|
+
label: "设置",
|
|
132
|
+
name: "setting"
|
|
133
|
+
}, {
|
|
134
|
+
default: withCtx(() => [
|
|
135
|
+
createVNode(_component_el_form, {
|
|
136
|
+
"label-width": "100px",
|
|
137
|
+
style: { "margin-top": "10px" }
|
|
138
|
+
}, {
|
|
139
|
+
default: withCtx(() => [
|
|
140
|
+
createVNode(_component_el_form_item, { label: "自动备份" }, {
|
|
141
|
+
default: withCtx(() => [
|
|
142
|
+
createVNode(_component_el_switch, {
|
|
143
|
+
modelValue: form.auto,
|
|
144
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.auto = $event)
|
|
145
|
+
}, null, 8, ["modelValue"])
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}),
|
|
149
|
+
form.auto ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
150
|
+
createVNode(_component_el_form_item, { label: "备份频次" }, {
|
|
151
|
+
default: withCtx(() => [
|
|
152
|
+
createVNode(_component_el_space, null, {
|
|
153
|
+
default: withCtx(() => [
|
|
154
|
+
createVNode(_component_el_select, {
|
|
155
|
+
modelValue: form.plan,
|
|
156
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.plan = $event),
|
|
157
|
+
style: { width: "150px" }
|
|
158
|
+
}, {
|
|
159
|
+
default: withCtx(() => [
|
|
160
|
+
createVNode(_component_el_option, {
|
|
161
|
+
label: "每天",
|
|
162
|
+
value: "Everyday"
|
|
163
|
+
}),
|
|
164
|
+
createVNode(_component_el_option, {
|
|
165
|
+
label: "每周一",
|
|
166
|
+
value: "Monday"
|
|
167
|
+
}),
|
|
168
|
+
createVNode(_component_el_option, {
|
|
169
|
+
label: "每月第一天",
|
|
170
|
+
value: "FirstDayOfMonth"
|
|
171
|
+
})
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["modelValue"]),
|
|
175
|
+
createVNode(_component_el_select, {
|
|
176
|
+
modelValue: form.hour,
|
|
177
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.hour = $event),
|
|
178
|
+
style: { width: "100px" }
|
|
179
|
+
}, {
|
|
180
|
+
default: withCtx(() => [
|
|
181
|
+
createVNode(_component_el_option, {
|
|
182
|
+
label: "00点",
|
|
183
|
+
value: "00"
|
|
184
|
+
}),
|
|
185
|
+
createVNode(_component_el_option, {
|
|
186
|
+
label: "01点",
|
|
187
|
+
value: "01"
|
|
188
|
+
}),
|
|
189
|
+
createVNode(_component_el_option, {
|
|
190
|
+
label: "02点",
|
|
191
|
+
value: "02"
|
|
192
|
+
}),
|
|
193
|
+
createVNode(_component_el_option, {
|
|
194
|
+
label: "03点",
|
|
195
|
+
value: "03"
|
|
196
|
+
}),
|
|
197
|
+
createVNode(_component_el_option, {
|
|
198
|
+
label: "04点",
|
|
199
|
+
value: "04"
|
|
200
|
+
}),
|
|
201
|
+
createVNode(_component_el_option, {
|
|
202
|
+
label: "05点",
|
|
203
|
+
value: "05"
|
|
204
|
+
}),
|
|
205
|
+
createVNode(_component_el_option, {
|
|
206
|
+
label: "06点",
|
|
207
|
+
value: "06"
|
|
208
|
+
}),
|
|
209
|
+
createVNode(_component_el_option, {
|
|
210
|
+
label: "07点",
|
|
211
|
+
value: "07"
|
|
212
|
+
}),
|
|
213
|
+
createVNode(_component_el_option, {
|
|
214
|
+
label: "08点",
|
|
215
|
+
value: "08"
|
|
216
|
+
}),
|
|
217
|
+
createVNode(_component_el_option, {
|
|
218
|
+
label: "09点",
|
|
219
|
+
value: "09"
|
|
220
|
+
}),
|
|
221
|
+
createVNode(_component_el_option, {
|
|
222
|
+
label: "10点",
|
|
223
|
+
value: "10"
|
|
224
|
+
}),
|
|
225
|
+
createVNode(_component_el_option, {
|
|
226
|
+
label: "11点",
|
|
227
|
+
value: "11"
|
|
228
|
+
}),
|
|
229
|
+
createVNode(_component_el_option, {
|
|
230
|
+
label: "12点",
|
|
231
|
+
value: "12"
|
|
232
|
+
}),
|
|
233
|
+
createVNode(_component_el_option, {
|
|
234
|
+
label: "13点",
|
|
235
|
+
value: "13"
|
|
236
|
+
}),
|
|
237
|
+
createVNode(_component_el_option, {
|
|
238
|
+
label: "14点",
|
|
239
|
+
value: "14"
|
|
240
|
+
}),
|
|
241
|
+
createVNode(_component_el_option, {
|
|
242
|
+
label: "15点",
|
|
243
|
+
value: "15"
|
|
244
|
+
}),
|
|
245
|
+
createVNode(_component_el_option, {
|
|
246
|
+
label: "16点",
|
|
247
|
+
value: "16"
|
|
248
|
+
}),
|
|
249
|
+
createVNode(_component_el_option, {
|
|
250
|
+
label: "17点",
|
|
251
|
+
value: "17"
|
|
252
|
+
}),
|
|
253
|
+
createVNode(_component_el_option, {
|
|
254
|
+
label: "18点",
|
|
255
|
+
value: "18"
|
|
256
|
+
}),
|
|
257
|
+
createVNode(_component_el_option, {
|
|
258
|
+
label: "19点",
|
|
259
|
+
value: "19"
|
|
260
|
+
}),
|
|
261
|
+
createVNode(_component_el_option, {
|
|
262
|
+
label: "20点",
|
|
263
|
+
value: "20"
|
|
264
|
+
}),
|
|
265
|
+
createVNode(_component_el_option, {
|
|
266
|
+
label: "21点",
|
|
267
|
+
value: "21"
|
|
268
|
+
}),
|
|
269
|
+
createVNode(_component_el_option, {
|
|
270
|
+
label: "22点",
|
|
271
|
+
value: "22"
|
|
272
|
+
}),
|
|
273
|
+
createVNode(_component_el_option, {
|
|
274
|
+
label: "23点",
|
|
275
|
+
value: "23"
|
|
276
|
+
})
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
279
|
+
}, 8, ["modelValue"]),
|
|
280
|
+
createVNode(_component_el_select, {
|
|
281
|
+
modelValue: form.minute,
|
|
282
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.minute = $event),
|
|
283
|
+
style: { width: "100px" }
|
|
284
|
+
}, {
|
|
285
|
+
default: withCtx(() => [
|
|
286
|
+
createVNode(_component_el_option, {
|
|
287
|
+
label: "00分",
|
|
288
|
+
value: "00"
|
|
289
|
+
}),
|
|
290
|
+
createVNode(_component_el_option, {
|
|
291
|
+
label: "15分",
|
|
292
|
+
value: "15"
|
|
293
|
+
}),
|
|
294
|
+
createVNode(_component_el_option, {
|
|
295
|
+
label: "30分",
|
|
296
|
+
value: "30"
|
|
297
|
+
}),
|
|
298
|
+
createVNode(_component_el_option, {
|
|
299
|
+
label: "45分",
|
|
300
|
+
value: "45"
|
|
301
|
+
})
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
}, 8, ["modelValue"])
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
})
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
}),
|
|
311
|
+
createVNode(_component_el_form_item, { label: "备份路径" }, {
|
|
312
|
+
default: withCtx(() => [
|
|
313
|
+
createVNode(_component_el_space, {
|
|
314
|
+
direction: "vertical",
|
|
315
|
+
size: 2,
|
|
316
|
+
alignment: "stretch"
|
|
317
|
+
}, {
|
|
318
|
+
default: withCtx(() => [
|
|
319
|
+
createVNode(_component_el_input, { style: { width: "500px" } }),
|
|
320
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
321
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
322
|
+
createTextVNode("如果您使用的是物理主机,并且不具备磁盘阵列功能,强烈建议备份路径设置到第二个硬盘/U盘", -1)
|
|
323
|
+
])]),
|
|
324
|
+
_: 1
|
|
325
|
+
})
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
})
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}),
|
|
332
|
+
createVNode(_component_el_form_item, { label: "保存选项" }, {
|
|
333
|
+
default: withCtx(() => [
|
|
334
|
+
createVNode(_component_el_select, {
|
|
335
|
+
modelValue: form.keep,
|
|
336
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.keep = $event),
|
|
337
|
+
style: { width: "200px" }
|
|
338
|
+
}, {
|
|
339
|
+
default: withCtx(() => [
|
|
340
|
+
createVNode(_component_el_option, {
|
|
341
|
+
label: "保留最近20个备份",
|
|
342
|
+
value: "lastkeep20"
|
|
343
|
+
}),
|
|
344
|
+
createVNode(_component_el_option, {
|
|
345
|
+
label: "保留最近10个备份",
|
|
346
|
+
value: "lastkeep10"
|
|
347
|
+
})
|
|
348
|
+
]),
|
|
349
|
+
_: 1
|
|
350
|
+
}, 8, ["modelValue"])
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
}),
|
|
354
|
+
createVNode(_component_el_divider, {
|
|
355
|
+
"content-position": "left",
|
|
356
|
+
style: { width: "400px" }
|
|
357
|
+
}, {
|
|
358
|
+
default: withCtx(() => [..._cache[16] || (_cache[16] = [
|
|
359
|
+
createTextVNode("上传FTP", -1)
|
|
360
|
+
])]),
|
|
361
|
+
_: 1
|
|
362
|
+
}),
|
|
363
|
+
createVNode(_component_el_form_item, { label: "启用/关闭" }, {
|
|
364
|
+
default: withCtx(() => [
|
|
365
|
+
createVNode(_component_el_switch, {
|
|
366
|
+
modelValue: form.use_ftp,
|
|
367
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.use_ftp = $event)
|
|
368
|
+
}, null, 8, ["modelValue"]),
|
|
369
|
+
createVNode(_component_el_text, {
|
|
370
|
+
type: "info",
|
|
371
|
+
style: { "margin-left": "10px" }
|
|
372
|
+
}, {
|
|
373
|
+
default: withCtx(() => [..._cache[17] || (_cache[17] = [
|
|
374
|
+
createTextVNode("上传FTP可以解决本机备份空间不足的问题", -1)
|
|
375
|
+
])]),
|
|
376
|
+
_: 1
|
|
377
|
+
})
|
|
378
|
+
]),
|
|
379
|
+
_: 1
|
|
380
|
+
}),
|
|
381
|
+
form.use_ftp ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
382
|
+
createVNode(_component_el_form_item, { label: "FTP主机地址" }, {
|
|
383
|
+
default: withCtx(() => [
|
|
384
|
+
createVNode(_component_el_space, null, {
|
|
385
|
+
default: withCtx(() => [
|
|
386
|
+
createVNode(_component_el_input, {
|
|
387
|
+
modelValue: form.f_host,
|
|
388
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.f_host = $event),
|
|
389
|
+
style: { width: "300px" }
|
|
390
|
+
}, null, 8, ["modelValue"]),
|
|
391
|
+
createVNode(_component_el_text, null, {
|
|
392
|
+
default: withCtx(() => [..._cache[18] || (_cache[18] = [
|
|
393
|
+
createTextVNode("端口", -1)
|
|
394
|
+
])]),
|
|
395
|
+
_: 1
|
|
396
|
+
}),
|
|
397
|
+
createVNode(_component_el_input_number, {
|
|
398
|
+
modelValue: form.f_port,
|
|
399
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.f_port = $event),
|
|
400
|
+
min: 1,
|
|
401
|
+
max: 65535,
|
|
402
|
+
"value-on-clear": 21,
|
|
403
|
+
style: { width: "120px" },
|
|
404
|
+
"controls-position": "right"
|
|
405
|
+
}, null, 8, ["modelValue"])
|
|
406
|
+
]),
|
|
407
|
+
_: 1
|
|
408
|
+
})
|
|
409
|
+
]),
|
|
410
|
+
_: 1
|
|
411
|
+
}),
|
|
412
|
+
createVNode(_component_el_form_item, { label: "FTP用户" }, {
|
|
413
|
+
default: withCtx(() => [
|
|
414
|
+
createVNode(_component_el_input, {
|
|
415
|
+
modelValue: form.f_u,
|
|
416
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.f_u = $event),
|
|
417
|
+
style: { width: "200px" }
|
|
418
|
+
}, null, 8, ["modelValue"])
|
|
419
|
+
]),
|
|
420
|
+
_: 1
|
|
421
|
+
}),
|
|
422
|
+
createVNode(_component_el_form_item, { label: "FTP密码" }, {
|
|
423
|
+
default: withCtx(() => [
|
|
424
|
+
createVNode(_component_el_space, {
|
|
425
|
+
direction: "vertical",
|
|
426
|
+
size: 2,
|
|
427
|
+
alignment: "stretch"
|
|
428
|
+
}, {
|
|
429
|
+
default: withCtx(() => [
|
|
430
|
+
createVNode(_component_el_input, {
|
|
431
|
+
modelValue: form.f_p,
|
|
432
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.f_p = $event),
|
|
433
|
+
type: "password",
|
|
434
|
+
style: { width: "200px" }
|
|
435
|
+
}, null, 8, ["modelValue"]),
|
|
436
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
437
|
+
default: withCtx(() => [..._cache[19] || (_cache[19] = [
|
|
438
|
+
createTextVNode("这里不显示保存的密码,要修改时才输入", -1)
|
|
439
|
+
])]),
|
|
440
|
+
_: 1
|
|
441
|
+
})
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
})
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}),
|
|
448
|
+
createVNode(_component_el_form_item, { label: "FTP目录名" }, {
|
|
449
|
+
default: withCtx(() => [
|
|
450
|
+
createVNode(_component_el_space, {
|
|
451
|
+
direction: "vertical",
|
|
452
|
+
size: 2,
|
|
453
|
+
alignment: "stretch"
|
|
454
|
+
}, {
|
|
455
|
+
default: withCtx(() => [
|
|
456
|
+
createVNode(_component_el_input, {
|
|
457
|
+
modelValue: form.f_path,
|
|
458
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.f_path = $event),
|
|
459
|
+
style: { width: "200px" }
|
|
460
|
+
}, null, 8, ["modelValue"]),
|
|
461
|
+
createVNode(_component_el_text, { type: "info" }, {
|
|
462
|
+
default: withCtx(() => [..._cache[20] || (_cache[20] = [
|
|
463
|
+
createTextVNode("多台机器备份到同一个FTP时可按目录名区分", -1)
|
|
464
|
+
])]),
|
|
465
|
+
_: 1
|
|
466
|
+
})
|
|
467
|
+
]),
|
|
468
|
+
_: 1
|
|
469
|
+
})
|
|
470
|
+
]),
|
|
471
|
+
_: 1
|
|
472
|
+
}),
|
|
473
|
+
createVNode(_component_el_form_item, { label: "TLS" }, {
|
|
474
|
+
default: withCtx(() => [
|
|
475
|
+
createVNode(_component_el_switch, {
|
|
476
|
+
modelValue: form.f_tls,
|
|
477
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.f_tls = $event)
|
|
478
|
+
}, null, 8, ["modelValue"])
|
|
479
|
+
]),
|
|
480
|
+
_: 1
|
|
481
|
+
})
|
|
482
|
+
])) : createCommentVNode("", !0)
|
|
483
|
+
])) : createCommentVNode("", !0),
|
|
484
|
+
createVNode(_component_el_form_item, null, {
|
|
485
|
+
default: withCtx(() => [
|
|
486
|
+
createVNode(_component_el_button, {
|
|
487
|
+
type: "primary",
|
|
488
|
+
onClick: saveConfig
|
|
489
|
+
}, {
|
|
490
|
+
default: withCtx(() => [..._cache[21] || (_cache[21] = [
|
|
491
|
+
createTextVNode("应用设置", -1)
|
|
492
|
+
])]),
|
|
493
|
+
_: 1
|
|
494
|
+
})
|
|
495
|
+
]),
|
|
496
|
+
_: 1
|
|
497
|
+
})
|
|
498
|
+
]),
|
|
499
|
+
_: 1
|
|
500
|
+
})
|
|
501
|
+
]),
|
|
502
|
+
_: 1
|
|
503
|
+
})
|
|
504
|
+
]),
|
|
505
|
+
_: 1
|
|
506
|
+
}, 8, ["modelValue"])
|
|
507
|
+
]),
|
|
508
|
+
createVNode(_component_department_edit_dialog, {
|
|
509
|
+
id: view.edit_id,
|
|
510
|
+
modelValue: view.edit_dialog_show,
|
|
511
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => view.edit_dialog_show = $event)
|
|
512
|
+
}, null, 8, ["id", "modelValue"])
|
|
513
|
+
], 64);
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
export {
|
|
518
|
+
_sfc_main as default
|
|
519
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, resolveComponent, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
import { m as arrow_right_default } from "./index-DG0x9mYD.js";
|
|
3
|
+
import { u as useRouter } from "./index-BZZm3CTh.js";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "breadcrumb",
|
|
6
|
+
setup(__props) {
|
|
7
|
+
const r = useRouter(), lists = ref([]);
|
|
8
|
+
watch(
|
|
9
|
+
() => r.currentRoute.value.path,
|
|
10
|
+
// 使用 getter 函数
|
|
11
|
+
() => {
|
|
12
|
+
GetBreadcrumb(r.currentRoute.value.matched);
|
|
13
|
+
}
|
|
14
|
+
), onMounted(() => {
|
|
15
|
+
GetBreadcrumb(r.currentRoute.value.matched);
|
|
16
|
+
});
|
|
17
|
+
function GetBreadcrumb(matched) {
|
|
18
|
+
lists.value = matched;
|
|
19
|
+
}
|
|
20
|
+
return (_ctx, _cache) => {
|
|
21
|
+
const _component_el_breadcrumb_item = resolveComponent("el-breadcrumb-item"), _component_el_breadcrumb = resolveComponent("el-breadcrumb");
|
|
22
|
+
return openBlock(), createBlock(_component_el_breadcrumb, {
|
|
23
|
+
"separator-icon": unref(arrow_right_default),
|
|
24
|
+
style: { padding: "20px" }
|
|
25
|
+
}, {
|
|
26
|
+
default: withCtx(() => [
|
|
27
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(lists.value, (v) => (openBlock(), createBlock(_component_el_breadcrumb_item, {
|
|
28
|
+
key: v.path
|
|
29
|
+
}, {
|
|
30
|
+
default: withCtx(() => [
|
|
31
|
+
createTextVNode(toDisplayString(v.meta.title), 1)
|
|
32
|
+
]),
|
|
33
|
+
_: 2
|
|
34
|
+
}, 1024))), 128))
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 8, ["separator-icon"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
_sfc_main as _
|
|
43
|
+
};
|