zsysview 0.1.10 → 0.1.13
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-JYciwQ4I.js → backup-BiLoey95.js} +1 -1
- package/dist/{building-JfhGEuI2.js → building-BcGLhNOi.js} +1 -1
- package/dist/{change_password-BCpfLtZQ.js → change_password-DfYWwVoK.js} +1 -1
- package/dist/{department-BraC02i1.js → department-D7EwhbOO.js} +1 -1
- package/dist/{help-Au_xwj_V.js → help-BnAsSKLq.js} +1 -1
- package/dist/{index-DzL6spbn.js → index-D5KAIOPC.js} +547 -394
- package/dist/{log-DPlyCY4H.js → log-CbQ47aGY.js} +24 -14
- package/dist/{login-DNMzryyr.js → login-BSH9Xd4k.js} +1 -1
- package/dist/{main-BM8Fvt32.js → main-Bbc5hIiY.js} +1 -1
- package/dist/{notification-BCkAPoyl.js → notification-C_9n_N5v.js} +16 -9
- package/dist/{position-2LqfB_Zh.js → position-DFskDcl3.js} +86 -79
- package/dist/{role-CNrpDxip.js → role-CfsfhmKi.js} +117 -110
- package/dist/{self-CUu1aORS.js → self-8xQnyP7j.js} +1 -1
- package/dist/{systemsetting-BsHvQQfQ.js → systemsetting-BK-7trEN.js} +1 -1
- package/dist/{user-CXVihXkC.js → user-cO9fyb0O.js} +183 -159
- package/dist/{version-0-kWtYgH.js → version-CnryUp9o.js} +1 -1
- package/dist/zsysview.css +1 -1
- package/dist/zsysview.es.d.ts +31 -3
- package/dist/zsysview.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
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, m as _sfc_main$5 } 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-D5KAIOPC.js";
|
|
3
3
|
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
|
-
const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
4
|
+
const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2$1 = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" }
|
|
7
7
|
}, _hoisted_3 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
@@ -58,6 +58,18 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
58
58
|
}), rules = reactive({
|
|
59
59
|
uname: [
|
|
60
60
|
{ required: !0, message: "请输入姓名", trigger: "blur" }
|
|
61
|
+
],
|
|
62
|
+
username: [
|
|
63
|
+
{ required: !0, message: "请输入用户名", trigger: "blur" }
|
|
64
|
+
],
|
|
65
|
+
phone: [
|
|
66
|
+
{ required: !0, message: "请输入手机号码", trigger: "blur" }
|
|
67
|
+
],
|
|
68
|
+
password: [
|
|
69
|
+
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
70
|
+
],
|
|
71
|
+
role_value: [
|
|
72
|
+
{ required: !0, message: "请选择角色", trigger: "blur" }
|
|
61
73
|
]
|
|
62
74
|
}), getData = async () => {
|
|
63
75
|
if (view.loading = !0, role_option.value = await getRoleOption(), form.value.uid = props.id, props.id != 0n) {
|
|
@@ -66,7 +78,7 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
66
78
|
let res = await HttpApiV1.Post(HttpApiV1.url_user_detail, { id: props.id });
|
|
67
79
|
if (res.IsSuccess) {
|
|
68
80
|
let data = res.data;
|
|
69
|
-
form.value.uid = data.uid, form.value.uname = data.uname, form.value.username = data.username, form.value.is_enable = data.user_enable == 1;
|
|
81
|
+
form.value.uid = data.uid, form.value.uname = data.uname, form.value.username = data.username, form.value.phone = data.phone, form.value.is_enable = data.user_enable == 1;
|
|
70
82
|
let rs = [];
|
|
71
83
|
for (const s of data.role_ids)
|
|
72
84
|
for (let tmp of role_option.value)
|
|
@@ -91,6 +103,7 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
91
103
|
username: form.value.username,
|
|
92
104
|
password: form.value.uid == 0n ? h.hashStr(form.value.password) : "",
|
|
93
105
|
uname: form.value.uname,
|
|
106
|
+
phone: form.value.phone,
|
|
94
107
|
user_enable: form.value.is_enable ? 1 : 0,
|
|
95
108
|
role_ids: r
|
|
96
109
|
};
|
|
@@ -262,7 +275,7 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
262
275
|
}),
|
|
263
276
|
createVNode(_component_el_form_item, {
|
|
264
277
|
label: "角色权限",
|
|
265
|
-
prop: "
|
|
278
|
+
prop: "role_value"
|
|
266
279
|
}, {
|
|
267
280
|
default: withCtx(() => [
|
|
268
281
|
createVNode(_component_el_select, {
|
|
@@ -280,7 +293,7 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
280
293
|
}, {
|
|
281
294
|
default: withCtx(() => [
|
|
282
295
|
createElementVNode("span", _hoisted_1$2, toDisplayString(item.label), 1),
|
|
283
|
-
item.enable ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", _hoisted_2, " 禁用不生效 "))
|
|
296
|
+
item.enable ? createCommentVNode("", !0) : (openBlock(), createElementBlock("span", _hoisted_2$1, " 禁用不生效 "))
|
|
284
297
|
]),
|
|
285
298
|
_: 2
|
|
286
299
|
}, 1032, ["label", "value"]))), 128))
|
|
@@ -451,7 +464,10 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
451
464
|
}, 8, ["modelValue"]);
|
|
452
465
|
};
|
|
453
466
|
}
|
|
454
|
-
}), _hoisted_1 = {
|
|
467
|
+
}), _hoisted_1 = { class: "flex_height" }, _hoisted_2 = {
|
|
468
|
+
style: { padding: "0px 20px" },
|
|
469
|
+
class: "flex_fill"
|
|
470
|
+
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
455
471
|
__name: "user",
|
|
456
472
|
setup(__props) {
|
|
457
473
|
const activeName = ref("userList"), listconfig = reactive({
|
|
@@ -468,7 +484,7 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
468
484
|
]
|
|
469
485
|
}
|
|
470
486
|
],
|
|
471
|
-
ExportUrl: HttpApiV1.url_user_export
|
|
487
|
+
ExportUrl: HttpApiV1.url_user_export,
|
|
472
488
|
// ExportColumn:[
|
|
473
489
|
// {ColumnTitle:'姓名',ColumnName:'uname'},
|
|
474
490
|
// {ColumnTitle:'用户名',ColumnName:'username'},
|
|
@@ -476,6 +492,10 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
476
492
|
// {ColumnTitle:'最后登录时间',ColumnName:'last_login_time'},
|
|
477
493
|
// {ColumnTitle:'角色',ColumnName:'role_titles'},
|
|
478
494
|
// ]
|
|
495
|
+
HasCheckbox: !0,
|
|
496
|
+
ReserveSelection: !0,
|
|
497
|
+
RowIdKey: "uid",
|
|
498
|
+
RowTitleKey: "uname"
|
|
479
499
|
}), view = reactive({
|
|
480
500
|
edit_id: BigInt(0),
|
|
481
501
|
edit_dialog_show: !1,
|
|
@@ -484,160 +504,164 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
|
|
|
484
504
|
return (_ctx, _cache) => {
|
|
485
505
|
const _component_el_button = resolveComponent("el-button"), _component_el_table_column = resolveComponent("el-table-column"), _component_el_tag = resolveComponent("el-tag"), _component_el_link = resolveComponent("el-link"), _component_el_space = resolveComponent("el-space"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
|
|
486
506
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
487
|
-
createVNode(_sfc_main$3),
|
|
488
507
|
createElementVNode("div", _hoisted_1, [
|
|
489
|
-
createVNode(
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
508
|
+
createVNode(_sfc_main$3),
|
|
509
|
+
createElementVNode("div", _hoisted_2, [
|
|
510
|
+
createVNode(_component_el_tabs, {
|
|
511
|
+
modelValue: activeName.value,
|
|
512
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => activeName.value = $event),
|
|
513
|
+
style: { height: "100%" }
|
|
514
|
+
}, {
|
|
515
|
+
default: withCtx(() => [
|
|
516
|
+
createVNode(_component_el_tab_pane, {
|
|
517
|
+
label: "全部用户",
|
|
518
|
+
name: "userList",
|
|
519
|
+
style: { height: "100%" }
|
|
520
|
+
}, {
|
|
521
|
+
default: withCtx(() => [
|
|
522
|
+
createVNode(_sfc_main$4, {
|
|
523
|
+
config: listconfig,
|
|
524
|
+
module: "user"
|
|
525
|
+
}, {
|
|
526
|
+
headermain: withCtx(() => [
|
|
527
|
+
createVNode(_component_el_button, {
|
|
528
|
+
class: "main_btn",
|
|
529
|
+
type: "primary",
|
|
530
|
+
onClick: _cache[0] || (_cache[0] = ($event) => {
|
|
531
|
+
view.edit_id = 0n, view.edit_dialog_show = !0;
|
|
532
|
+
})
|
|
533
|
+
}, {
|
|
534
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
535
|
+
createTextVNode("新建用户", -1)
|
|
536
|
+
])]),
|
|
537
|
+
_: 1
|
|
509
538
|
})
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
name: "second"
|
|
637
|
-
})
|
|
638
|
-
]),
|
|
639
|
-
_: 1
|
|
640
|
-
}, 8, ["modelValue"])
|
|
539
|
+
]),
|
|
540
|
+
content: withCtx(() => [
|
|
541
|
+
createVNode(_component_el_table_column, {
|
|
542
|
+
prop: "uname",
|
|
543
|
+
label: "姓名",
|
|
544
|
+
width: "100"
|
|
545
|
+
}),
|
|
546
|
+
createVNode(_component_el_table_column, {
|
|
547
|
+
prop: "enable",
|
|
548
|
+
label: "状态",
|
|
549
|
+
width: "70"
|
|
550
|
+
}, {
|
|
551
|
+
default: withCtx(({ row }) => [
|
|
552
|
+
row.user_enable == 1 ? (openBlock(), createBlock(_component_el_tag, {
|
|
553
|
+
key: 0,
|
|
554
|
+
type: "success",
|
|
555
|
+
"disable-transitions": !0,
|
|
556
|
+
size: "small"
|
|
557
|
+
}, {
|
|
558
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
559
|
+
createTextVNode("正常", -1)
|
|
560
|
+
])]),
|
|
561
|
+
_: 1
|
|
562
|
+
})) : createCommentVNode("", !0),
|
|
563
|
+
row.user_enable == 0 ? (openBlock(), createBlock(_component_el_tag, {
|
|
564
|
+
key: 1,
|
|
565
|
+
type: "info",
|
|
566
|
+
"disable-transitions": !0,
|
|
567
|
+
size: "small"
|
|
568
|
+
}, {
|
|
569
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
570
|
+
createTextVNode("禁用", -1)
|
|
571
|
+
])]),
|
|
572
|
+
_: 1
|
|
573
|
+
})) : createCommentVNode("", !0)
|
|
574
|
+
]),
|
|
575
|
+
_: 1
|
|
576
|
+
}),
|
|
577
|
+
createVNode(_component_el_table_column, {
|
|
578
|
+
prop: "username",
|
|
579
|
+
label: "用户名",
|
|
580
|
+
width: "100"
|
|
581
|
+
}),
|
|
582
|
+
createVNode(_component_el_table_column, {
|
|
583
|
+
label: "角色",
|
|
584
|
+
"min-width": "240"
|
|
585
|
+
}, {
|
|
586
|
+
default: withCtx(({ row }) => [
|
|
587
|
+
row.role_titles != "" ? (openBlock(!0), createElementBlock(Fragment, { key: 0 }, renderList(row.role_titles.split(","), (r) => (openBlock(), createBlock(_component_el_tag, {
|
|
588
|
+
style: { "margin-right": "2px" },
|
|
589
|
+
"disable-transitions": !0,
|
|
590
|
+
size: "small"
|
|
591
|
+
}, {
|
|
592
|
+
default: withCtx(() => [
|
|
593
|
+
createTextVNode(toDisplayString(r), 1)
|
|
594
|
+
]),
|
|
595
|
+
_: 2
|
|
596
|
+
}, 1024))), 256)) : createCommentVNode("", !0)
|
|
597
|
+
]),
|
|
598
|
+
_: 1
|
|
599
|
+
}),
|
|
600
|
+
createVNode(_component_el_table_column, {
|
|
601
|
+
label: "最后登录时间",
|
|
602
|
+
prop: "last_login_time",
|
|
603
|
+
width: "180"
|
|
604
|
+
}, {
|
|
605
|
+
default: withCtx(({ row }) => [
|
|
606
|
+
createTextVNode(toDisplayString(dataformat.value(row.last_login_time)), 1)
|
|
607
|
+
]),
|
|
608
|
+
_: 1
|
|
609
|
+
}),
|
|
610
|
+
createVNode(_component_el_table_column, {
|
|
611
|
+
fixed: "right",
|
|
612
|
+
label: "操作",
|
|
613
|
+
width: "180"
|
|
614
|
+
}, {
|
|
615
|
+
default: withCtx(({ row }) => [
|
|
616
|
+
createVNode(_component_el_space, null, {
|
|
617
|
+
default: withCtx(() => [
|
|
618
|
+
createVNode(_component_el_link, {
|
|
619
|
+
type: "primary",
|
|
620
|
+
onClick: ($event) => {
|
|
621
|
+
view.edit_id = BigInt(row.uid), view.edit_dialog_show = !0;
|
|
622
|
+
}
|
|
623
|
+
}, {
|
|
624
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
625
|
+
createTextVNode("查看和编辑", -1)
|
|
626
|
+
])]),
|
|
627
|
+
_: 1
|
|
628
|
+
}, 8, ["onClick"]),
|
|
629
|
+
createVNode(_component_el_link, {
|
|
630
|
+
type: "primary",
|
|
631
|
+
onClick: ($event) => {
|
|
632
|
+
view.edit_id = BigInt(row.uid), view.change_pwd_dialog_show = !0;
|
|
633
|
+
}
|
|
634
|
+
}, {
|
|
635
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
636
|
+
createTextVNode("改密码", -1)
|
|
637
|
+
])]),
|
|
638
|
+
_: 1
|
|
639
|
+
}, 8, ["onClick"]),
|
|
640
|
+
createVNode(_sfc_main$5, {
|
|
641
|
+
id: BigInt(row.uid),
|
|
642
|
+
api_url: unref(HttpApiV1).url_user_del,
|
|
643
|
+
module: "user"
|
|
644
|
+
}, null, 8, ["id", "api_url"])
|
|
645
|
+
]),
|
|
646
|
+
_: 2
|
|
647
|
+
}, 1024)
|
|
648
|
+
]),
|
|
649
|
+
_: 1
|
|
650
|
+
})
|
|
651
|
+
]),
|
|
652
|
+
_: 1
|
|
653
|
+
}, 8, ["config"])
|
|
654
|
+
]),
|
|
655
|
+
_: 1
|
|
656
|
+
}),
|
|
657
|
+
createVNode(_component_el_tab_pane, {
|
|
658
|
+
label: "设置",
|
|
659
|
+
name: "second"
|
|
660
|
+
})
|
|
661
|
+
]),
|
|
662
|
+
_: 1
|
|
663
|
+
}, 8, ["modelValue"])
|
|
664
|
+
])
|
|
641
665
|
]),
|
|
642
666
|
createVNode(_sfc_main$2, {
|
|
643
667
|
id: view.edit_id,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, createBlock, createCommentVNode, 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-D5KAIOPC.js";
|
|
3
3
|
const _hoisted_1 = { style: { padding: "0px 20px", "white-space": "pre" } }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "version",
|
|
5
5
|
setup(__props) {
|