zsysview 0.1.32 → 0.1.35
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-CFP-AaRe.js → backup-BomDF70f.js} +1 -1
- package/dist/{building-B7v1XYt4.js → building-D7SfeTp3.js} +1 -1
- package/dist/change_password-DD2T6X7I.js +17 -0
- package/dist/change_password_panel.vue_vue_type_script_setup_true_lang-CDSXHHec.js +155 -0
- package/dist/{department-H0OWUP2i.js → department-BULuEdr3.js} +1 -1
- package/dist/{help-B26v9Pv0.js → help-Dq_D2MVF.js} +1 -1
- package/dist/{index-CykFl1gC.js → index-CtKk28NV.js} +148 -142
- package/dist/{log-BkyTl8mJ.js → log-CdUReCmA.js} +1 -1
- package/dist/login-CBHzo0k4.js +143 -0
- package/dist/{main-CaGZzTs5.js → main-9qsBz3n1.js} +59 -14
- package/dist/{notification-BkXC5HhX.js → notification-BLE-evDJ.js} +1 -1
- package/dist/nyxxx.mp3 +0 -0
- package/dist/{position-B2UBV5IO.js → position-CZLL-EtO.js} +3 -2
- package/dist/{role-CfgfAT_T.js → role-CCfEGckq.js} +1 -1
- package/dist/{self-CZsHWkxs.js → self-zgC9Bxvr.js} +1 -1
- package/dist/{systemsetting-DmUR8BVh.js → systemsetting-Clvu_Ins.js} +1 -1
- package/dist/{user-D_zF6s3M.js → user-DfIRlt4y.js} +149 -14
- package/dist/{version-CWqvE4zd.js → version-C6UTuUy4.js} +1 -1
- package/dist/zsysview.css +1 -1
- package/dist/zsysview.es.d.ts +238 -234
- package/dist/zsysview.es.js +14 -14
- package/package.json +1 -1
- package/dist/change_password-CTEnFhqW.js +0 -132
- package/dist/login-DXqQgLQ2.js +0 -112
|
@@ -48817,7 +48817,7 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
|
|
|
48817
48817
|
path: "/main",
|
|
48818
48818
|
//"/main"
|
|
48819
48819
|
name: "main",
|
|
48820
|
-
component: () => import("./main-
|
|
48820
|
+
component: () => import("./main-9qsBz3n1.js"),
|
|
48821
48821
|
meta: { requiresAuth: !0, title: "主界面" },
|
|
48822
48822
|
children: [
|
|
48823
48823
|
{
|
|
@@ -48829,13 +48829,13 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
|
|
|
48829
48829
|
path: "/self",
|
|
48830
48830
|
//个人中心
|
|
48831
48831
|
meta: { title: "基本信息" },
|
|
48832
|
-
component: () => import("./self-
|
|
48832
|
+
component: () => import("./self-zgC9Bxvr.js")
|
|
48833
48833
|
},
|
|
48834
48834
|
{
|
|
48835
48835
|
path: "/notification",
|
|
48836
48836
|
//个人中心
|
|
48837
48837
|
meta: { title: "系统消息" },
|
|
48838
|
-
component: () => import("./notification-
|
|
48838
|
+
component: () => import("./notification-BLE-evDJ.js")
|
|
48839
48839
|
}
|
|
48840
48840
|
]
|
|
48841
48841
|
},
|
|
@@ -48843,7 +48843,7 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
|
|
|
48843
48843
|
path: "/password",
|
|
48844
48844
|
//修改密码
|
|
48845
48845
|
meta: { title: "修改密码" },
|
|
48846
|
-
component: () => import("./change_password-
|
|
48846
|
+
component: () => import("./change_password-DD2T6X7I.js")
|
|
48847
48847
|
},
|
|
48848
48848
|
{
|
|
48849
48849
|
path: "/sys",
|
|
@@ -48854,61 +48854,61 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
|
|
|
48854
48854
|
{
|
|
48855
48855
|
path: "/user",
|
|
48856
48856
|
meta: { title: "用户管理" },
|
|
48857
|
-
component: () => import("./user-
|
|
48857
|
+
component: () => import("./user-DfIRlt4y.js")
|
|
48858
48858
|
},
|
|
48859
48859
|
{
|
|
48860
48860
|
path: "/department",
|
|
48861
48861
|
meta: { title: "组织架构" },
|
|
48862
|
-
component: () => import("./department-
|
|
48862
|
+
component: () => import("./department-BULuEdr3.js")
|
|
48863
48863
|
},
|
|
48864
48864
|
{
|
|
48865
48865
|
path: "/position",
|
|
48866
48866
|
meta: { title: "职务" },
|
|
48867
|
-
component: () => import("./position-
|
|
48867
|
+
component: () => import("./position-CZLL-EtO.js")
|
|
48868
48868
|
},
|
|
48869
48869
|
{
|
|
48870
48870
|
path: "/role",
|
|
48871
48871
|
meta: { title: "角色权限" },
|
|
48872
|
-
component: () => import("./role-
|
|
48872
|
+
component: () => import("./role-CCfEGckq.js")
|
|
48873
48873
|
},
|
|
48874
48874
|
{
|
|
48875
48875
|
path: "/log",
|
|
48876
48876
|
meta: { title: "日志" },
|
|
48877
|
-
component: () => import("./log-
|
|
48877
|
+
component: () => import("./log-CdUReCmA.js")
|
|
48878
48878
|
},
|
|
48879
48879
|
{
|
|
48880
48880
|
path: "/backup",
|
|
48881
48881
|
meta: { title: "备份" },
|
|
48882
|
-
component: () => import("./backup-
|
|
48882
|
+
component: () => import("./backup-BomDF70f.js")
|
|
48883
48883
|
},
|
|
48884
48884
|
{
|
|
48885
48885
|
path: "/systemsetting",
|
|
48886
48886
|
meta: { title: "高级设置" },
|
|
48887
|
-
component: () => import("./systemsetting-
|
|
48887
|
+
component: () => import("./systemsetting-Clvu_Ins.js")
|
|
48888
48888
|
}
|
|
48889
48889
|
]
|
|
48890
48890
|
},
|
|
48891
48891
|
{
|
|
48892
48892
|
path: "/help",
|
|
48893
48893
|
meta: { title: "使用帮助" },
|
|
48894
|
-
component: () => import("./help-
|
|
48894
|
+
component: () => import("./help-Dq_D2MVF.js")
|
|
48895
48895
|
},
|
|
48896
48896
|
{
|
|
48897
48897
|
path: "/version",
|
|
48898
48898
|
meta: { title: "版本记录" },
|
|
48899
|
-
component: () => import("./version-
|
|
48899
|
+
component: () => import("./version-C6UTuUy4.js")
|
|
48900
48900
|
},
|
|
48901
48901
|
{
|
|
48902
48902
|
path: "/building",
|
|
48903
48903
|
meta: { title: "开发中的功能" },
|
|
48904
|
-
component: () => import("./building-
|
|
48904
|
+
component: () => import("./building-D7SfeTp3.js")
|
|
48905
48905
|
}
|
|
48906
48906
|
]
|
|
48907
48907
|
},
|
|
48908
48908
|
{
|
|
48909
48909
|
path: "/login",
|
|
48910
48910
|
name: "login",
|
|
48911
|
-
component: () => import("./login-
|
|
48911
|
+
component: () => import("./login-CBHzo0k4.js")
|
|
48912
48912
|
}
|
|
48913
48913
|
], router = createRouter({
|
|
48914
48914
|
history: createWebHistory(),
|
|
@@ -51662,6 +51662,7 @@ class HttpApiV1 {
|
|
|
51662
51662
|
static url_login = "api/login";
|
|
51663
51663
|
static url_usercenter = "api/user_center";
|
|
51664
51664
|
static url_change_password = "api/change_password";
|
|
51665
|
+
static url_user_change_pwd_by_username = "api/user_change_pwd_by_username";
|
|
51665
51666
|
static url_user_permission = "api/user_permission";
|
|
51666
51667
|
//系统消息
|
|
51667
51668
|
static url_notification_list = "api/notification_list";
|
|
@@ -51674,6 +51675,9 @@ class HttpApiV1 {
|
|
|
51674
51675
|
static url_user_del = "api/user_del";
|
|
51675
51676
|
static url_user_detail = "api/user_detail";
|
|
51676
51677
|
static url_user_change_pwd = "api/user_change_pwd";
|
|
51678
|
+
static url_user_module_setting_get = "api/user_module_setting_get";
|
|
51679
|
+
static url_user_module_setting_save = "api/user_module_setting_save";
|
|
51680
|
+
static url_user_unlock = "api/user_unlock";
|
|
51677
51681
|
//组织架构
|
|
51678
51682
|
static url_department_save = "api/department_save";
|
|
51679
51683
|
static url_department_list = "api/department_list";
|
|
@@ -51750,109 +51754,13 @@ class ZSYSMessage {
|
|
|
51750
51754
|
}
|
|
51751
51755
|
install = (app2) => (app2.component(ZSYSMessage.name, ZSYSMessage), app2);
|
|
51752
51756
|
}
|
|
51753
|
-
|
|
51754
|
-
return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e) {
|
|
51755
|
-
var i = n.get(t);
|
|
51756
|
-
i ? i.push(e) : n.set(t, [e]);
|
|
51757
|
-
}, off: function(t, e) {
|
|
51758
|
-
var i = n.get(t);
|
|
51759
|
-
i && (e ? i.splice(i.indexOf(e) >>> 0, 1) : n.set(t, []));
|
|
51760
|
-
}, emit: function(t, e) {
|
|
51761
|
-
var i = n.get(t);
|
|
51762
|
-
i && i.slice().map(function(n2) {
|
|
51763
|
-
n2(e);
|
|
51764
|
-
}), (i = n.get("*")) && i.slice().map(function(n2) {
|
|
51765
|
-
n2(t, e);
|
|
51766
|
-
});
|
|
51767
|
-
} };
|
|
51768
|
-
}
|
|
51769
|
-
const emitter = mitt(), zsysEventBus = () => ({
|
|
51770
|
-
// 触发事件
|
|
51771
|
-
emit: emitter.emit,
|
|
51772
|
-
// 监听事件
|
|
51773
|
-
on: emitter.on,
|
|
51774
|
-
// 取消监听
|
|
51775
|
-
off: emitter.off,
|
|
51776
|
-
// 一次性监听
|
|
51777
|
-
once: (event, handler) => {
|
|
51778
|
-
const onceHandler = (payload) => {
|
|
51779
|
-
handler(payload), emitter.off(event, onceHandler);
|
|
51780
|
-
};
|
|
51781
|
-
emitter.on(event, onceHandler);
|
|
51782
|
-
},
|
|
51783
|
-
// 清空所有监听
|
|
51784
|
-
clearAll: emitter.all.clear
|
|
51785
|
-
}), _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
51786
|
-
__name: "zsys_delbutton",
|
|
51787
|
-
props: {
|
|
51788
|
-
id: { type: BigInt, required: !0 },
|
|
51789
|
-
api_url: { type: String, required: !0 },
|
|
51790
|
-
module: { type: String, default: "all" }
|
|
51791
|
-
// closeOnClickModal: { type: Boolean, default: true }
|
|
51792
|
-
},
|
|
51793
|
-
setup(__props) {
|
|
51794
|
-
const eventBus = zsysEventBus(), view = reactive({
|
|
51795
|
-
loading: !1
|
|
51796
|
-
}), props2 = __props, confirm = async () => {
|
|
51797
|
-
view.loading = !0;
|
|
51798
|
-
try {
|
|
51799
|
-
(await HttpApiV1.Post(props2.api_url, { id: props2.id })).IsSuccess ? (view.loading = !1, ZSYSMessage.ShowSuccess("删除成功"), console.log("aud", props2.module), console.log(props2.module), eventBus.emit("aud", { module: props2.module, id: props2.id })) : ZSYSMessage.ShowError("删除失败");
|
|
51800
|
-
} catch {
|
|
51801
|
-
}
|
|
51802
|
-
view.loading = !1;
|
|
51803
|
-
};
|
|
51804
|
-
return (_ctx, _cache) => {
|
|
51805
|
-
const _component_el_link = resolveComponent("el-link"), _component_el_popconfirm = resolveComponent("el-popconfirm"), _component_el_popover = resolveComponent("el-popover");
|
|
51806
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
51807
|
-
view.loading ? createCommentVNode("", !0) : (openBlock(), createBlock(_component_el_popconfirm, {
|
|
51808
|
-
key: 0,
|
|
51809
|
-
onConfirm: confirm,
|
|
51810
|
-
title: "确认要删除吗?",
|
|
51811
|
-
"confirm-button-text": "删除",
|
|
51812
|
-
"cancel-button-text": "取消",
|
|
51813
|
-
"confirm-button-type": "danger"
|
|
51814
|
-
}, {
|
|
51815
|
-
reference: withCtx(() => [
|
|
51816
|
-
createVNode(_component_el_link, { type: "primary" }, {
|
|
51817
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
51818
|
-
createTextVNode("删除", -1)
|
|
51819
|
-
])]),
|
|
51820
|
-
_: 1
|
|
51821
|
-
})
|
|
51822
|
-
]),
|
|
51823
|
-
_: 1
|
|
51824
|
-
})),
|
|
51825
|
-
view.loading ? (openBlock(), createBlock(_component_el_popover, {
|
|
51826
|
-
key: 1,
|
|
51827
|
-
visible: view.loading,
|
|
51828
|
-
width: 40,
|
|
51829
|
-
placement: "top",
|
|
51830
|
-
content: "正在删除"
|
|
51831
|
-
}, {
|
|
51832
|
-
reference: withCtx(() => [
|
|
51833
|
-
createVNode(_component_el_link, {
|
|
51834
|
-
type: "primary",
|
|
51835
|
-
style: { "margin-left": "6px" },
|
|
51836
|
-
disabled: ""
|
|
51837
|
-
}, {
|
|
51838
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
51839
|
-
createTextVNode("删除", -1)
|
|
51840
|
-
])]),
|
|
51841
|
-
_: 1
|
|
51842
|
-
})
|
|
51843
|
-
]),
|
|
51844
|
-
_: 1
|
|
51845
|
-
}, 8, ["visible"])) : createCommentVNode("", !0)
|
|
51846
|
-
], 64);
|
|
51847
|
-
};
|
|
51848
|
-
}
|
|
51849
|
-
}), _hoisted_1$4 = { style: { "padding-left": "20px", "padding-right": "20px", "padding-top": "6px" } }, _hoisted_2$1 = {
|
|
51757
|
+
const _hoisted_1$4 = { style: { "padding-left": "20px", "padding-right": "20px", "padding-top": "6px" } }, _hoisted_2$1 = {
|
|
51850
51758
|
key: 0,
|
|
51851
51759
|
style: { "font-size": "x-large" }
|
|
51852
51760
|
}, _hoisted_3$1 = {
|
|
51853
51761
|
key: 1,
|
|
51854
51762
|
style: { "font-size": "x-large" }
|
|
51855
|
-
}, _hoisted_4$1 = { style: { "font-size": "large", "margin-top": "10px" } }, _sfc_main$
|
|
51763
|
+
}, _hoisted_4$1 = { style: { "font-size": "large", "margin-top": "10px" } }, _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
51856
51764
|
__name: "export_progress",
|
|
51857
51765
|
props: {
|
|
51858
51766
|
exportId: { type: BigInt, required: !0 }
|
|
@@ -51922,7 +51830,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
51922
51830
|
]);
|
|
51923
51831
|
};
|
|
51924
51832
|
}
|
|
51925
|
-
}), _hoisted_1$3 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$
|
|
51833
|
+
}), _hoisted_1$3 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
51926
51834
|
__name: "export_dialog",
|
|
51927
51835
|
props: {
|
|
51928
51836
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -52073,7 +51981,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52073
51981
|
}, 8, ["model", "rules"]), [
|
|
52074
51982
|
[vShow, view.exporting == !1]
|
|
52075
51983
|
]),
|
|
52076
|
-
withDirectives(createVNode(_sfc_main$
|
|
51984
|
+
withDirectives(createVNode(_sfc_main$8, {
|
|
52077
51985
|
"export-id": view.exportId
|
|
52078
51986
|
}, null, 8, ["export-id"]), [
|
|
52079
51987
|
[vShow, view.exporting]
|
|
@@ -52083,7 +51991,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52083
51991
|
}, 8, ["modelValue"]);
|
|
52084
51992
|
};
|
|
52085
51993
|
}
|
|
52086
|
-
}), export_dialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
51994
|
+
}), export_dialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$7, [["__scopeId", "data-v-f6c153b5"]]), _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
52087
51995
|
__name: "zsyslist_header",
|
|
52088
51996
|
props: ["config", "query"],
|
|
52089
51997
|
emits: ["refresh"],
|
|
@@ -52210,7 +52118,40 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52210
52118
|
], 64);
|
|
52211
52119
|
};
|
|
52212
52120
|
}
|
|
52213
|
-
})
|
|
52121
|
+
});
|
|
52122
|
+
function mitt(n) {
|
|
52123
|
+
return { all: n = n || /* @__PURE__ */ new Map(), on: function(t, e) {
|
|
52124
|
+
var i = n.get(t);
|
|
52125
|
+
i ? i.push(e) : n.set(t, [e]);
|
|
52126
|
+
}, off: function(t, e) {
|
|
52127
|
+
var i = n.get(t);
|
|
52128
|
+
i && (e ? i.splice(i.indexOf(e) >>> 0, 1) : n.set(t, []));
|
|
52129
|
+
}, emit: function(t, e) {
|
|
52130
|
+
var i = n.get(t);
|
|
52131
|
+
i && i.slice().map(function(n2) {
|
|
52132
|
+
n2(e);
|
|
52133
|
+
}), (i = n.get("*")) && i.slice().map(function(n2) {
|
|
52134
|
+
n2(t, e);
|
|
52135
|
+
});
|
|
52136
|
+
} };
|
|
52137
|
+
}
|
|
52138
|
+
const emitter = mitt(), zsysEventBus = () => ({
|
|
52139
|
+
// 触发事件
|
|
52140
|
+
emit: emitter.emit,
|
|
52141
|
+
// 监听事件
|
|
52142
|
+
on: emitter.on,
|
|
52143
|
+
// 取消监听
|
|
52144
|
+
off: emitter.off,
|
|
52145
|
+
// 一次性监听
|
|
52146
|
+
once: (event, handler) => {
|
|
52147
|
+
const onceHandler = (payload) => {
|
|
52148
|
+
handler(payload), emitter.off(event, onceHandler);
|
|
52149
|
+
};
|
|
52150
|
+
emitter.on(event, onceHandler);
|
|
52151
|
+
},
|
|
52152
|
+
// 清空所有监听
|
|
52153
|
+
clearAll: emitter.all.clear
|
|
52154
|
+
}), _hoisted_1$2 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
52214
52155
|
__name: "selector_dialog",
|
|
52215
52156
|
props: {
|
|
52216
52157
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -52287,7 +52228,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52287
52228
|
createElementVNode("div", {
|
|
52288
52229
|
style: normalizeStyle({ height: view.height + "px" })
|
|
52289
52230
|
}, [
|
|
52290
|
-
createVNode(_sfc_main$
|
|
52231
|
+
createVNode(_sfc_main$2, {
|
|
52291
52232
|
ref_key: "list",
|
|
52292
52233
|
ref: list,
|
|
52293
52234
|
config: __props.listconfig,
|
|
@@ -52305,7 +52246,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52305
52246
|
}, 8, ["modelValue", "title", "width"]);
|
|
52306
52247
|
};
|
|
52307
52248
|
}
|
|
52308
|
-
}), _sfc_main$
|
|
52249
|
+
}), _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
52309
52250
|
__name: "selector",
|
|
52310
52251
|
props: {
|
|
52311
52252
|
pre_selection: { type: Array, default: [] },
|
|
@@ -52371,7 +52312,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52371
52312
|
_: 1
|
|
52372
52313
|
}, 8, ["modelValue"])
|
|
52373
52314
|
]),
|
|
52374
|
-
createVNode(_sfc_main$
|
|
52315
|
+
createVNode(_sfc_main$5, {
|
|
52375
52316
|
modelValue: view.dialog_show,
|
|
52376
52317
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => view.dialog_show = $event),
|
|
52377
52318
|
pre_selection: props2.pre_selection || [],
|
|
@@ -52388,7 +52329,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52388
52329
|
], 64);
|
|
52389
52330
|
};
|
|
52390
52331
|
}
|
|
52391
|
-
}), _hoisted_1$1 = { class: "flex_height" }, _hoisted_2 = { style: { height: "40px", "line-height": "40px", "padding-left": "10px", "font-size": "16px", flex: "0 0 auto" } }, _hoisted_3 = { class: "flex_fill" }, _hoisted_4 = { style: { height: "100%", "overflow-y": "auto" } }, _sfc_main$
|
|
52332
|
+
}), _hoisted_1$1 = { class: "flex_height" }, _hoisted_2 = { style: { height: "40px", "line-height": "40px", "padding-left": "10px", "font-size": "16px", flex: "0 0 auto" } }, _hoisted_3 = { class: "flex_fill" }, _hoisted_4 = { style: { height: "100%", "overflow-y": "auto" } }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
52392
52333
|
__name: "zsyslist_selected_list",
|
|
52393
52334
|
props: {
|
|
52394
52335
|
modelValue: { type: Array, required: !0 }
|
|
@@ -52446,7 +52387,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52446
52387
|
]);
|
|
52447
52388
|
};
|
|
52448
52389
|
}
|
|
52449
|
-
}), zsyslist_selected_list = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
52390
|
+
}), zsyslist_selected_list = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-e96c1e80"]]), _hoisted_1 = { class: "flex_height" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
52450
52391
|
__name: "zsyslist",
|
|
52451
52392
|
props: {
|
|
52452
52393
|
config: { type: Object, required: !0 },
|
|
@@ -52541,7 +52482,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52541
52482
|
}), (_ctx, _cache) => {
|
|
52542
52483
|
const _component_el_splitter_panel = resolveComponent("el-splitter-panel"), _component_el_table_column = resolveComponent("el-table-column"), _component_el_empty = resolveComponent("el-empty"), _component_el_table = resolveComponent("el-table"), _component_el_pagination = resolveComponent("el-pagination"), _component_el_splitter = resolveComponent("el-splitter"), _directive_loading = resolveDirective("loading");
|
|
52543
52484
|
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1, [
|
|
52544
|
-
createVNode(_sfc_main$
|
|
52485
|
+
createVNode(_sfc_main$6, {
|
|
52545
52486
|
config: unref(config),
|
|
52546
52487
|
query,
|
|
52547
52488
|
onRefresh: _cache[0] || (_cache[0] = ($event) => GetListData()),
|
|
@@ -52635,6 +52576,70 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52635
52576
|
]);
|
|
52636
52577
|
};
|
|
52637
52578
|
}
|
|
52579
|
+
}), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
52580
|
+
__name: "zsys_delbutton",
|
|
52581
|
+
props: {
|
|
52582
|
+
id: { type: BigInt, required: !0 },
|
|
52583
|
+
api_url: { type: String, required: !0 },
|
|
52584
|
+
module: { type: String, default: "all" }
|
|
52585
|
+
// closeOnClickModal: { type: Boolean, default: true }
|
|
52586
|
+
},
|
|
52587
|
+
setup(__props) {
|
|
52588
|
+
const eventBus = zsysEventBus(), view = reactive({
|
|
52589
|
+
loading: !1
|
|
52590
|
+
}), props2 = __props, confirm = async () => {
|
|
52591
|
+
view.loading = !0;
|
|
52592
|
+
try {
|
|
52593
|
+
(await HttpApiV1.Post(props2.api_url, { id: props2.id })).IsSuccess ? (view.loading = !1, ZSYSMessage.ShowSuccess("删除成功"), console.log("aud", props2.module), console.log(props2.module), eventBus.emit("aud", { module: props2.module, id: props2.id })) : ZSYSMessage.ShowError("删除失败");
|
|
52594
|
+
} catch {
|
|
52595
|
+
}
|
|
52596
|
+
view.loading = !1;
|
|
52597
|
+
};
|
|
52598
|
+
return (_ctx, _cache) => {
|
|
52599
|
+
const _component_el_link = resolveComponent("el-link"), _component_el_popconfirm = resolveComponent("el-popconfirm"), _component_el_popover = resolveComponent("el-popover");
|
|
52600
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
52601
|
+
view.loading ? createCommentVNode("", !0) : (openBlock(), createBlock(_component_el_popconfirm, {
|
|
52602
|
+
key: 0,
|
|
52603
|
+
onConfirm: confirm,
|
|
52604
|
+
title: "确认要删除吗?",
|
|
52605
|
+
"confirm-button-text": "删除",
|
|
52606
|
+
"cancel-button-text": "取消",
|
|
52607
|
+
"confirm-button-type": "danger"
|
|
52608
|
+
}, {
|
|
52609
|
+
reference: withCtx(() => [
|
|
52610
|
+
createVNode(_component_el_link, { type: "primary" }, {
|
|
52611
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
52612
|
+
createTextVNode("删除", -1)
|
|
52613
|
+
])]),
|
|
52614
|
+
_: 1
|
|
52615
|
+
})
|
|
52616
|
+
]),
|
|
52617
|
+
_: 1
|
|
52618
|
+
})),
|
|
52619
|
+
view.loading ? (openBlock(), createBlock(_component_el_popover, {
|
|
52620
|
+
key: 1,
|
|
52621
|
+
visible: view.loading,
|
|
52622
|
+
width: 40,
|
|
52623
|
+
placement: "top",
|
|
52624
|
+
content: "正在删除"
|
|
52625
|
+
}, {
|
|
52626
|
+
reference: withCtx(() => [
|
|
52627
|
+
createVNode(_component_el_link, {
|
|
52628
|
+
type: "primary",
|
|
52629
|
+
style: { "margin-left": "6px" },
|
|
52630
|
+
disabled: ""
|
|
52631
|
+
}, {
|
|
52632
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
52633
|
+
createTextVNode("删除", -1)
|
|
52634
|
+
])]),
|
|
52635
|
+
_: 1
|
|
52636
|
+
})
|
|
52637
|
+
]),
|
|
52638
|
+
_: 1
|
|
52639
|
+
}, 8, ["visible"])) : createCommentVNode("", !0)
|
|
52640
|
+
], 64);
|
|
52641
|
+
};
|
|
52642
|
+
}
|
|
52638
52643
|
}), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52639
52644
|
__name: "user_selector",
|
|
52640
52645
|
props: {
|
|
@@ -52666,7 +52671,7 @@ const emitter = mitt(), zsysEventBus = () => ({
|
|
|
52666
52671
|
GetSelectedItems
|
|
52667
52672
|
}), (_ctx, _cache) => {
|
|
52668
52673
|
const _component_el_table_column = resolveComponent("el-table-column");
|
|
52669
|
-
return openBlock(), createBlock(_sfc_main$
|
|
52674
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
52670
52675
|
ref_key: "s",
|
|
52671
52676
|
ref: s2,
|
|
52672
52677
|
pre_selection: props2.pre_selection || [],
|
|
@@ -52796,19 +52801,20 @@ const AddClientUrl = (url2, clientUrl) => {
|
|
|
52796
52801
|
window.open(curl + "?id=" + id, "_blank");
|
|
52797
52802
|
};
|
|
52798
52803
|
export {
|
|
52799
|
-
|
|
52800
|
-
|
|
52804
|
+
addFrameRouter as A,
|
|
52805
|
+
zsysappMount as B,
|
|
52801
52806
|
CommonHelper as C,
|
|
52802
|
-
_sfc_main$
|
|
52803
|
-
|
|
52804
|
-
_sfc_main
|
|
52807
|
+
_sfc_main$4 as D,
|
|
52808
|
+
_sfc_main$5 as E,
|
|
52809
|
+
_sfc_main as F,
|
|
52805
52810
|
GetItemsIds as G,
|
|
52806
52811
|
HttpApiV1 as H,
|
|
52807
|
-
|
|
52808
|
-
|
|
52809
|
-
|
|
52810
|
-
|
|
52811
|
-
|
|
52812
|
+
GetItemsTitles as I,
|
|
52813
|
+
HttpApiReturnData as J,
|
|
52814
|
+
HasPermission as K,
|
|
52815
|
+
GetUserPermission as L,
|
|
52816
|
+
AddClientUrl as M,
|
|
52817
|
+
HasClientUrl as N,
|
|
52812
52818
|
OpenClientUrlWithID as O,
|
|
52813
52819
|
ZSYSMessage as Z,
|
|
52814
52820
|
_export_sfc$1 as _,
|
|
@@ -52822,20 +52828,20 @@ export {
|
|
|
52822
52828
|
useTokenStore as h,
|
|
52823
52829
|
_sfc_main$9 as i,
|
|
52824
52830
|
formatDateTime as j,
|
|
52825
|
-
_sfc_main$
|
|
52831
|
+
_sfc_main$2 as k,
|
|
52826
52832
|
useMagicKeys as l,
|
|
52827
|
-
_sfc_main$
|
|
52828
|
-
|
|
52833
|
+
_sfc_main$1 as m,
|
|
52834
|
+
more_filled_default as n,
|
|
52829
52835
|
office_building_default as o,
|
|
52830
|
-
|
|
52836
|
+
refresh_default as p,
|
|
52831
52837
|
question_filled_default as q,
|
|
52832
52838
|
reading_default as r,
|
|
52833
52839
|
setting_default as s,
|
|
52834
|
-
|
|
52840
|
+
useRoute as t,
|
|
52835
52841
|
user_default as u,
|
|
52836
|
-
|
|
52842
|
+
zsysapp as v,
|
|
52837
52843
|
whenever as w,
|
|
52838
|
-
|
|
52839
|
-
|
|
52844
|
+
router as x,
|
|
52845
|
+
addFrameRouters as y,
|
|
52840
52846
|
zsysEventBus as z
|
|
52841
52847
|
};
|
|
@@ -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-CtKk28NV.js";
|
|
3
3
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "log_setting",
|
|
5
5
|
setup(__props, { expose: __expose }) {
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { defineComponent, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, withCtx, withKeys, createTextVNode, toDisplayString, inject } from "vue";
|
|
2
|
+
import { e as useRouter, t as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-CtKk28NV.js";
|
|
3
|
+
import { h } from "./index.es-DrN1BLo5.js";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./change_password_panel.vue_vue_type_script_setup_true_lang-CDSXHHec.js";
|
|
5
|
+
const _hoisted_1 = {
|
|
6
|
+
class: "bg",
|
|
7
|
+
style: { "background-image": 'url("/public/img/login_bg.jpg")' }
|
|
8
|
+
}, _hoisted_2 = {
|
|
9
|
+
class: "card-header",
|
|
10
|
+
style: {}
|
|
11
|
+
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "login",
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const r = useRouter(), route = useRoute(), d = reactive({
|
|
15
|
+
u: "",
|
|
16
|
+
p: ""
|
|
17
|
+
}), view = reactive({
|
|
18
|
+
loading: !1,
|
|
19
|
+
change_pwd_dialog: !1
|
|
20
|
+
}), ToPasswordInput = () => {
|
|
21
|
+
}, login2 = () => {
|
|
22
|
+
view.loading = !0;
|
|
23
|
+
let data = {
|
|
24
|
+
u: d.u,
|
|
25
|
+
p: h.hashStr(d.p)
|
|
26
|
+
};
|
|
27
|
+
HttpApiV1.Post(HttpApiV1.url_login, data).then((res) => {
|
|
28
|
+
res.IsSuccess ? (ZSYSMessage.ShowSuccess("登录成功"), r.push(route.query.redirect || "/desktop")) : res.error_code == 101 ? view.change_pwd_dialog = !0 : ZSYSMessage.ShowError(res.message);
|
|
29
|
+
}).catch(() => {
|
|
30
|
+
console.log("请求失败"), ZSYSMessage.ShowError("登录服务器失败");
|
|
31
|
+
}).finally(() => {
|
|
32
|
+
view.loading = !1;
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
const _component_el_image = resolveComponent("el-image"), _component_el_input = resolveComponent("el-input"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_button = resolveComponent("el-button"), _component_el_form = resolveComponent("el-form"), _component_el_card = resolveComponent("el-card"), _component_el_alert = resolveComponent("el-alert"), _component_el_dialog = resolveComponent("el-dialog");
|
|
37
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
38
|
+
createElementVNode("div", _hoisted_1, [
|
|
39
|
+
createVNode(_component_el_card, {
|
|
40
|
+
style: { width: "300px", "text-align": "center" },
|
|
41
|
+
shadow: "always",
|
|
42
|
+
class: "align-center"
|
|
43
|
+
}, {
|
|
44
|
+
header: withCtx(() => [
|
|
45
|
+
createElementVNode("div", _hoisted_2, [
|
|
46
|
+
createElementVNode("span", null, toDisplayString(inject("appname")), 1)
|
|
47
|
+
])
|
|
48
|
+
]),
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createVNode(_component_el_image, {
|
|
51
|
+
style: { height: "100px" },
|
|
52
|
+
src: "/public/img/logo_100.png"
|
|
53
|
+
}),
|
|
54
|
+
createVNode(_component_el_form, {
|
|
55
|
+
"label-width": "auto",
|
|
56
|
+
"label-position": "top"
|
|
57
|
+
}, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
createVNode(_component_el_form_item, { label: "用户名" }, {
|
|
60
|
+
default: withCtx(() => [
|
|
61
|
+
createVNode(_component_el_input, {
|
|
62
|
+
size: "large",
|
|
63
|
+
autofocus: !0,
|
|
64
|
+
modelValue: d.u,
|
|
65
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => d.u = $event),
|
|
66
|
+
clearable: "",
|
|
67
|
+
onKeyup: withKeys(ToPasswordInput, ["enter", "native"])
|
|
68
|
+
}, null, 8, ["modelValue"])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}),
|
|
72
|
+
createVNode(_component_el_form_item, { label: "密码" }, {
|
|
73
|
+
default: withCtx(() => [
|
|
74
|
+
createVNode(_component_el_input, {
|
|
75
|
+
ref: "PasswordInput",
|
|
76
|
+
size: "large",
|
|
77
|
+
modelValue: d.p,
|
|
78
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => d.p = $event),
|
|
79
|
+
clearable: "",
|
|
80
|
+
"show-password": "",
|
|
81
|
+
onKeyup: withKeys(login2, ["enter", "native"])
|
|
82
|
+
}, null, 8, ["modelValue"])
|
|
83
|
+
]),
|
|
84
|
+
_: 1
|
|
85
|
+
}),
|
|
86
|
+
createVNode(_component_el_form_item, null, {
|
|
87
|
+
default: withCtx(() => [
|
|
88
|
+
createVNode(_component_el_button, {
|
|
89
|
+
type: "primary",
|
|
90
|
+
size: "large",
|
|
91
|
+
loading: view.loading,
|
|
92
|
+
onClick: login2,
|
|
93
|
+
style: { width: "100%" }
|
|
94
|
+
}, {
|
|
95
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
96
|
+
createTextVNode("登录", -1)
|
|
97
|
+
])]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["loading"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
})
|
|
106
|
+
]),
|
|
107
|
+
_: 1
|
|
108
|
+
})
|
|
109
|
+
]),
|
|
110
|
+
createVNode(_component_el_dialog, {
|
|
111
|
+
modelValue: view.change_pwd_dialog,
|
|
112
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => view.change_pwd_dialog = $event),
|
|
113
|
+
title: "请修改密码",
|
|
114
|
+
"align-center": !0,
|
|
115
|
+
width: "550",
|
|
116
|
+
draggable: !0,
|
|
117
|
+
overflow: !0,
|
|
118
|
+
"destroy-on-close": "",
|
|
119
|
+
"close-on-click-modal": !1
|
|
120
|
+
}, {
|
|
121
|
+
default: withCtx(() => [
|
|
122
|
+
createVNode(_component_el_alert, {
|
|
123
|
+
title: "为了安全考虑,管理员要求您修改密码",
|
|
124
|
+
type: "warning",
|
|
125
|
+
"show-icon": "",
|
|
126
|
+
closable: !1,
|
|
127
|
+
style: { "margin-bottom": "10px" }
|
|
128
|
+
}),
|
|
129
|
+
createVNode(_sfc_main$1, {
|
|
130
|
+
after_login: !1,
|
|
131
|
+
username: d.u,
|
|
132
|
+
old_p: d.p
|
|
133
|
+
}, null, 8, ["username", "old_p"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["modelValue"])
|
|
137
|
+
], 64);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}), login = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d7e104d9"]]);
|
|
141
|
+
export {
|
|
142
|
+
login as default
|
|
143
|
+
};
|