zsysview 0.1.28 → 0.1.30

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, createCommentVNode } from "vue";
2
- import { H as HttpApiV1, i as _sfc_main$1, k as _sfc_main$2, Z as ZSYSMessage } from "./index-CNw37RHm.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1, k as _sfc_main$2, Z as ZSYSMessage } from "./index-BoncuvGr.js";
3
3
  const _hoisted_1 = { style: { padding: "0px 20px" } }, _hoisted_2 = { key: 0 }, _hoisted_3 = { key: 0 }, _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "backup",
5
5
  setup(__props) {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx } from "vue";
2
- import { _ as _export_sfc } from "./index-CNw37RHm.js";
2
+ import { _ as _export_sfc } from "./index-BoncuvGr.js";
3
3
  const _sfc_main = {}, _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } };
4
4
  function _sfc_render(_ctx, _cache) {
5
5
  const _component_breadcrumb = resolveComponent("breadcrumb"), _component_el_result = resolveComponent("el-result");
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, reactive, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode } from "vue";
2
- import { e as useRouter, i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-CNw37RHm.js";
2
+ import { e as useRouter, i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-BoncuvGr.js";
3
3
  import { h } from "./index.es-DrN1BLo5.js";
4
4
  const _hoisted_1 = { style: { padding: "0px 20px", "margin-top": "20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "change_password",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, watch, reactive, resolveComponent, resolveDirective, createBlock, openBlock, withCtx, withDirectives, withModifiers, createVNode, createElementVNode, createCommentVNode, createTextVNode, onMounted, onUnmounted, 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, n as refresh_default, m as _sfc_main$3 } from "./index-CNw37RHm.js";
2
+ import { z as zsysEventBus, l as useMagicKeys, w as whenever, H as HttpApiV1, Z as ZSYSMessage, i as _sfc_main$2, n as refresh_default, m as _sfc_main$3 } from "./index-BoncuvGr.js";
3
3
  const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
4
4
  __name: "department_edit_dialog",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, reactive, onMounted, resolveComponent, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
- import { i as _sfc_main$1 } from "./index-CNw37RHm.js";
2
+ import { i as _sfc_main$1 } from "./index-BoncuvGr.js";
3
3
  const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "help",
5
5
  setup(__props) {
@@ -48817,7 +48817,7 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
48817
48817
  path: "/main",
48818
48818
  //"/main"
48819
48819
  name: "main",
48820
- component: () => import("./main-D9OVH6_K.js"),
48820
+ component: () => import("./main-ChKqf0xI.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-BHCst5lx.js")
48832
+ component: () => import("./self-DMZmzdMe.js")
48833
48833
  },
48834
48834
  {
48835
48835
  path: "/notification",
48836
48836
  //个人中心
48837
48837
  meta: { title: "系统消息" },
48838
- component: () => import("./notification-CqXsnAz2.js")
48838
+ component: () => import("./notification-C26gukqU.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-D0uPa-X4.js")
48846
+ component: () => import("./change_password-BF5dw7IB.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-Ct4sNNaw.js")
48857
+ component: () => import("./user-ChFtI1Sp.js")
48858
48858
  },
48859
48859
  {
48860
48860
  path: "/department",
48861
48861
  meta: { title: "组织架构" },
48862
- component: () => import("./department-BYZDKCpm.js")
48862
+ component: () => import("./department-C293HNyp.js")
48863
48863
  },
48864
48864
  {
48865
48865
  path: "/position",
48866
48866
  meta: { title: "职务" },
48867
- component: () => import("./position-BLKJci-9.js")
48867
+ component: () => import("./position-BEJ7cBr-.js")
48868
48868
  },
48869
48869
  {
48870
48870
  path: "/role",
48871
48871
  meta: { title: "角色权限" },
48872
- component: () => import("./role-BITCusSw.js")
48872
+ component: () => import("./role-BJjBwKpZ.js")
48873
48873
  },
48874
48874
  {
48875
48875
  path: "/log",
48876
48876
  meta: { title: "日志" },
48877
- component: () => import("./log-BsQtd2y7.js")
48877
+ component: () => import("./log-CsRv_Wpw.js")
48878
48878
  },
48879
48879
  {
48880
48880
  path: "/backup",
48881
48881
  meta: { title: "备份" },
48882
- component: () => import("./backup-BUKuApTC.js")
48882
+ component: () => import("./backup-muVuMRBz.js")
48883
48883
  },
48884
48884
  {
48885
48885
  path: "/systemsetting",
48886
48886
  meta: { title: "高级设置" },
48887
- component: () => import("./systemsetting-DRcOYXlz.js")
48887
+ component: () => import("./systemsetting-B92K8DX-.js")
48888
48888
  }
48889
48889
  ]
48890
48890
  },
48891
48891
  {
48892
48892
  path: "/help",
48893
48893
  meta: { title: "使用帮助" },
48894
- component: () => import("./help-DcJjlxxS.js")
48894
+ component: () => import("./help-BtUHX4Pz.js")
48895
48895
  },
48896
48896
  {
48897
48897
  path: "/version",
48898
48898
  meta: { title: "版本记录" },
48899
- component: () => import("./version-2_UhisIi.js")
48899
+ component: () => import("./version-l6Ujbt_3.js")
48900
48900
  },
48901
48901
  {
48902
48902
  path: "/building",
48903
48903
  meta: { title: "开发中的功能" },
48904
- component: () => import("./building-COe2Cju2.js")
48904
+ component: () => import("./building-dz8J8JsI.js")
48905
48905
  }
48906
48906
  ]
48907
48907
  },
48908
48908
  {
48909
48909
  path: "/login",
48910
48910
  name: "login",
48911
- component: () => import("./login-BGoFmluX.js")
48911
+ component: () => import("./login-Dr1EFR-c.js")
48912
48912
  }
48913
48913
  ], router = createRouter({
48914
48914
  history: createWebHistory(),
@@ -51665,6 +51665,8 @@ class HttpApiV1 {
51665
51665
  static url_user_permission = "api/user_permission";
51666
51666
  //系统消息
51667
51667
  static url_notification_list = "api/notification_list";
51668
+ static url_notification_read = "api/notification_read";
51669
+ static url_notification_all_read = "api/notification_all_read";
51668
51670
  //用户管理
51669
51671
  static url_user_save = "api/user_save";
51670
51672
  static url_user_list = "api/user_list";
@@ -52213,7 +52215,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52213
52215
  props: {
52214
52216
  modelValue: { type: Boolean, required: !0 },
52215
52217
  // 控制显示隐藏
52216
- pre_selection: { type: Array, default: () => [] },
52218
+ pre_selection: { type: Array, default: [] },
52217
52219
  listconfig: { type: Object, required: !0 },
52218
52220
  dialog_config: { type: Object, default: {
52219
52221
  Title: "请选择",
@@ -52289,7 +52291,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52289
52291
  ref_key: "list",
52290
52292
  ref: list,
52291
52293
  config: __props.listconfig,
52292
- pre_selection: props2.pre_selection,
52294
+ pre_selection: props2.pre_selection || [],
52293
52295
  style: { height: "100%" }
52294
52296
  }, {
52295
52297
  content: withCtx(() => [
@@ -52306,7 +52308,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52306
52308
  }), _sfc_main$3 = /* @__PURE__ */ defineComponent({
52307
52309
  __name: "selector",
52308
52310
  props: {
52309
- pre_selection: { type: Array, default: () => [] },
52311
+ pre_selection: { type: Array, default: [] },
52310
52312
  listconfig: { type: Object, required: !0 },
52311
52313
  quantity: { type: Number, default: -1 },
52312
52314
  dialog_config: { type: Object }
@@ -52372,7 +52374,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52372
52374
  createVNode(_sfc_main$4, {
52373
52375
  modelValue: view.dialog_show,
52374
52376
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => view.dialog_show = $event),
52375
- pre_selection: props2.pre_selection,
52377
+ pre_selection: props2.pre_selection || [],
52376
52378
  listconfig: props2.listconfig,
52377
52379
  quantity: props2.quantity,
52378
52380
  onSure: dialog_sure,
@@ -52449,7 +52451,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52449
52451
  props: {
52450
52452
  config: { type: Object, required: !0 },
52451
52453
  module: { type: String, default: "" },
52452
- pre_selection: { type: Array, default: () => [] }
52454
+ pre_selection: { type: Array, default: [] }
52453
52455
  //预选数据
52454
52456
  // closeOnClickModal: { type: Boolean, default: true }
52455
52457
  },
@@ -52636,7 +52638,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52636
52638
  }), _sfc_main = /* @__PURE__ */ defineComponent({
52637
52639
  __name: "user_selector",
52638
52640
  props: {
52639
- pre_selection: { type: Array, default: () => [] },
52641
+ pre_selection: { type: Array, default: [] },
52640
52642
  quantity: { type: Number, default: -1 }
52641
52643
  // module: { type: String, default: "" },
52642
52644
  // closeOnClickModal: { type: Boolean, default: true }
@@ -52667,7 +52669,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52667
52669
  return openBlock(), createBlock(_sfc_main$3, {
52668
52670
  ref_key: "s",
52669
52671
  ref: s2,
52670
- pre_selection: props2.pre_selection,
52672
+ pre_selection: props2.pre_selection || [],
52671
52673
  listconfig: listConfig,
52672
52674
  quantity: props2.quantity,
52673
52675
  dialog_config: dialogConfig,
@@ -52758,6 +52760,41 @@ async function HasPermission(p2) {
52758
52760
  }
52759
52761
  return has;
52760
52762
  }
52763
+ const sysUrls = [], appUrls = [];
52764
+ function getClientUrl(url2) {
52765
+ let curl = "";
52766
+ for (let u2 of sysUrls)
52767
+ if (u2.url == url2) {
52768
+ curl = u2.client_url;
52769
+ break;
52770
+ }
52771
+ for (let u2 of appUrls)
52772
+ if (console.log(u2.url, url2), u2.url == url2) {
52773
+ curl = u2.client_url;
52774
+ break;
52775
+ }
52776
+ return curl;
52777
+ }
52778
+ function HasClientUrl(url2) {
52779
+ for (let u2 of sysUrls)
52780
+ if (u2.url == url2)
52781
+ return !0;
52782
+ for (let u2 of appUrls)
52783
+ if (console.log(u2.url, url2), u2.url == url2)
52784
+ return !0;
52785
+ return !1;
52786
+ }
52787
+ const AddClientUrl = (url2, clientUrl) => {
52788
+ for (let u2 of appUrls)
52789
+ if (u2.url == url2) {
52790
+ u2.client_url = clientUrl;
52791
+ return;
52792
+ }
52793
+ appUrls.push({ url: url2, client_url: clientUrl });
52794
+ }, OpenClientUrlWithID = (url2, id) => {
52795
+ let curl = getClientUrl(url2);
52796
+ window.open(curl + "?id=" + id, "_blank");
52797
+ };
52761
52798
  export {
52762
52799
  zsysappMount as A,
52763
52800
  _sfc_main as B,
@@ -52770,6 +52807,9 @@ export {
52770
52807
  HttpApiReturnData as I,
52771
52808
  HasPermission as J,
52772
52809
  GetUserPermission as K,
52810
+ AddClientUrl as L,
52811
+ HasClientUrl as M,
52812
+ OpenClientUrlWithID as O,
52773
52813
  ZSYSMessage as Z,
52774
52814
  _export_sfc$1 as _,
52775
52815
  avatar_default as a,
@@ -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-CNw37RHm.js";
2
+ import { H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$2, k as _sfc_main$3 } from "./index-BoncuvGr.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, p as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-CNw37RHm.js";
2
+ import { e as useRouter, p as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-BoncuvGr.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, q as question_filled_default, H as HttpApiV1, C as CommonHelper, _ as _export_sfc, e as useRouter, f as formatPreciseOralTime, g as arrow_down_default, h as useTokenStore, Z as ZSYSMessage } from "./index-CNw37RHm.js";
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, q as question_filled_default, H as HttpApiV1, C as CommonHelper, _ as _export_sfc, e as useRouter, f as formatPreciseOralTime, g as arrow_down_default, h as useTokenStore, Z as ZSYSMessage } from "./index-BoncuvGr.js";
3
3
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4
4
  __name: "userMenuItem",
5
5
  props: {
@@ -0,0 +1,127 @@
1
+ import { defineComponent, ref, reactive, computed, resolveComponent, createElementBlock, openBlock, createVNode, createElementVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
2
+ import { z as zsysEventBus, H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2, O as OpenClientUrlWithID } from "./index-BoncuvGr.js";
3
+ const _hoisted_1 = { class: "flex_height" }, _hoisted_2 = {
4
+ class: "flex_fill",
5
+ style: { padding: "0px 20px" }
6
+ }, _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "notification",
8
+ setup(__props) {
9
+ const activeName = ref("first"), eventBus = zsysEventBus(), handleClick = (tab, event) => {
10
+ console.log(tab, event);
11
+ }, listconfig = reactive({
12
+ ApiUrl: HttpApiV1.url_notification_list
13
+ }), dataformat = computed(
14
+ () => (item) => formatDateTime(new Date(item))
15
+ ), open = (row) => {
16
+ HttpApiV1.Post(HttpApiV1.url_notification_read, { id: row.notification_id }), OpenClientUrlWithID(row.url, row.notification_id);
17
+ }, all_read = async () => {
18
+ await HttpApiV1.Post(HttpApiV1.url_notification_all_read, {}), eventBus.emit("aud", { module: "notification", id: 0n });
19
+ };
20
+ return (_ctx, _cache) => {
21
+ 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_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
22
+ return openBlock(), createElementBlock("div", _hoisted_1, [
23
+ createVNode(_sfc_main$1),
24
+ createElementVNode("div", _hoisted_2, [
25
+ createVNode(_component_el_tabs, {
26
+ modelValue: activeName.value,
27
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeName.value = $event),
28
+ onTabClick: handleClick,
29
+ style: { height: "100%" }
30
+ }, {
31
+ default: withCtx(() => [
32
+ createVNode(_component_el_tab_pane, {
33
+ label: "全部消息",
34
+ name: "first",
35
+ style: { height: "100%" }
36
+ }, {
37
+ default: withCtx(() => [
38
+ createVNode(_sfc_main$2, {
39
+ config: listconfig,
40
+ module: "notification"
41
+ }, {
42
+ headermain: withCtx(() => [
43
+ createVNode(_component_el_button, {
44
+ class: "main_btn",
45
+ type: "primary",
46
+ onClick: all_read
47
+ }, {
48
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
49
+ createTextVNode("全部已阅", -1)
50
+ ])]),
51
+ _: 1
52
+ })
53
+ ]),
54
+ content: withCtx(() => [
55
+ createVNode(_component_el_table_column, {
56
+ prop: "c_time",
57
+ label: "时间",
58
+ width: "180"
59
+ }, {
60
+ default: withCtx(({ row }) => [
61
+ createTextVNode(toDisplayString(dataformat.value(row.c_time)), 1)
62
+ ]),
63
+ _: 1
64
+ }),
65
+ createVNode(_component_el_table_column, {
66
+ prop: "module",
67
+ label: "模块",
68
+ width: "180"
69
+ }),
70
+ createVNode(_component_el_table_column, {
71
+ prop: "title",
72
+ label: "标题",
73
+ "min-width": "300"
74
+ }, {
75
+ default: withCtx(({ row }) => [
76
+ row.is_read == 0 ? (openBlock(), createBlock(_component_el_tag, {
77
+ key: 0,
78
+ type: "danger",
79
+ "disable-transitions": !0,
80
+ size: "small"
81
+ }, {
82
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
83
+ createTextVNode("未阅", -1)
84
+ ])]),
85
+ _: 1
86
+ })) : createCommentVNode("", !0),
87
+ row.is_read == 1 ? (openBlock(), createBlock(_component_el_tag, {
88
+ key: 1,
89
+ type: "info",
90
+ "disable-transitions": !0,
91
+ size: "small"
92
+ }, {
93
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
94
+ createTextVNode("已阅", -1)
95
+ ])]),
96
+ _: 1
97
+ })) : createCommentVNode("", !0),
98
+ createVNode(_component_el_link, {
99
+ type: "primary",
100
+ onClick: ($event) => open(row),
101
+ style: { "margin-left": "8px" }
102
+ }, {
103
+ default: withCtx(() => [
104
+ createTextVNode(toDisplayString(row.title), 1)
105
+ ]),
106
+ _: 2
107
+ }, 1032, ["onClick"])
108
+ ]),
109
+ _: 1
110
+ })
111
+ ]),
112
+ _: 1
113
+ }, 8, ["config"])
114
+ ]),
115
+ _: 1
116
+ })
117
+ ]),
118
+ _: 1
119
+ }, 8, ["modelValue"])
120
+ ])
121
+ ]);
122
+ };
123
+ }
124
+ });
125
+ export {
126
+ _sfc_main as default
127
+ };
@@ -1,5 +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, m as _sfc_main$4 } from "./index-CNw37RHm.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-BoncuvGr.js";
3
3
  const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
4
4
  __name: "position_edit_dialog",
5
5
  props: {
@@ -1,5 +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, m as _sfc_main$4 } from "./index-CNw37RHm.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-BoncuvGr.js";
3
3
  const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
4
4
  __name: "role_edit_dialog",
5
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-CNw37RHm.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1 } from "./index-BoncuvGr.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-CNw37RHm.js";
2
+ import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-BoncuvGr.js";
3
3
  const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "systemsetting",
5
5
  setup(__props) {
@@ -1,5 +1,5 @@
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-CNw37RHm.js";
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-BoncuvGr.js";
3
3
  import { h } from "./index.es-DrN1BLo5.js";
4
4
  const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2$1 = {
5
5
  key: 0,
@@ -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-CNw37RHm.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1 } from "./index-BoncuvGr.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) {
@@ -37,7 +37,7 @@ default: string;
37
37
  };
38
38
  pre_selection: {
39
39
  type: PropType<SelectedItem[]>;
40
- default: () => never[];
40
+ default: never[];
41
41
  };
42
42
  }>, {
43
43
  GetSelectedItems: () => SelectedItem[];
@@ -52,7 +52,7 @@ default: string;
52
52
  };
53
53
  pre_selection: {
54
54
  type: PropType<SelectedItem[]>;
55
- default: () => never[];
55
+ default: never[];
56
56
  };
57
57
  }>> & Readonly<{}>, {
58
58
  module: string;
@@ -64,7 +64,7 @@ tableRef: unknown;
64
64
  declare const __VLS_component_2: DefineComponent<ExtractPropTypes< {
65
65
  pre_selection: {
66
66
  type: PropType<SelectedItem[]>;
67
- default: () => never[];
67
+ default: never[];
68
68
  };
69
69
  quantity: {
70
70
  type: NumberConstructor;
@@ -77,7 +77,7 @@ dialog_sure: (value: SelectedItem[]) => any;
77
77
  }, string, PublicProps, Readonly<ExtractPropTypes< {
78
78
  pre_selection: {
79
79
  type: PropType<SelectedItem[]>;
80
- default: () => never[];
80
+ default: never[];
81
81
  };
82
82
  quantity: {
83
83
  type: NumberConstructor;
@@ -119,7 +119,7 @@ $el: any;
119
119
  $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
120
120
  pre_selection: {
121
121
  type: PropType<SelectedItem[]>;
122
- default: () => never[];
122
+ default: never[];
123
123
  };
124
124
  listconfig: {
125
125
  type: PropType<ListConfig>;
@@ -168,7 +168,7 @@ quantity: number;
168
168
  }> & Omit<Readonly<ExtractPropTypes< {
169
169
  pre_selection: {
170
170
  type: PropType<SelectedItem[]>;
171
- default: () => never[];
171
+ default: never[];
172
172
  };
173
173
  listconfig: {
174
174
  type: PropType<ListConfig>;
@@ -201,7 +201,7 @@ dialoglist?(_: {}): any;
201
201
  declare const __VLS_component_3: DefineComponent<ExtractPropTypes< {
202
202
  pre_selection: {
203
203
  type: PropType<SelectedItem[]>;
204
- default: () => never[];
204
+ default: never[];
205
205
  };
206
206
  listconfig: {
207
207
  type: PropType<ListConfig>;
@@ -222,7 +222,7 @@ dialog_sure: (value: SelectedItem[]) => any;
222
222
  }, string, PublicProps, Readonly<ExtractPropTypes< {
223
223
  pre_selection: {
224
224
  type: PropType<SelectedItem[]>;
225
- default: () => never[];
225
+ default: never[];
226
226
  };
227
227
  listconfig: {
228
228
  type: PropType<ListConfig>;
@@ -249,7 +249,7 @@ required: true;
249
249
  };
250
250
  pre_selection: {
251
251
  type: PropType<SelectedItem[]>;
252
- default: () => never[];
252
+ default: never[];
253
253
  };
254
254
  listconfig: {
255
255
  type: PropType<ListConfig>;
@@ -278,7 +278,7 @@ required: true;
278
278
  };
279
279
  pre_selection: {
280
280
  type: PropType<SelectedItem[]>;
281
- default: () => never[];
281
+ default: never[];
282
282
  };
283
283
  listconfig: {
284
284
  type: PropType<ListConfig>;
@@ -343,7 +343,7 @@ default: string;
343
343
  };
344
344
  pre_selection: {
345
345
  type: PropType<SelectedItem[]>;
346
- default: () => never[];
346
+ default: never[];
347
347
  };
348
348
  }>> & Readonly<{}>, {
349
349
  GetSelectedItems: () => SelectedItem[];
@@ -384,7 +384,7 @@ default: string;
384
384
  };
385
385
  pre_selection: {
386
386
  type: PropType<SelectedItem[]>;
387
- default: () => never[];
387
+ default: never[];
388
388
  };
389
389
  }>> & Readonly<{}>, "GetSelectedItems" | ("module" | "pre_selection")> & ShallowUnwrapRef< {
390
390
  GetSelectedItems: () => SelectedItem[];
@@ -448,7 +448,7 @@ declare function __VLS_template_2(): {
448
448
  $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
449
449
  pre_selection: {
450
450
  type: PropType<SelectedItem[]>;
451
- default: () => never[];
451
+ default: never[];
452
452
  };
453
453
  listconfig: {
454
454
  type: PropType<ListConfig>;
@@ -497,7 +497,7 @@ declare function __VLS_template_2(): {
497
497
  }> & Omit<Readonly<ExtractPropTypes< {
498
498
  pre_selection: {
499
499
  type: PropType<SelectedItem[]>;
500
- default: () => never[];
500
+ default: never[];
501
501
  };
502
502
  listconfig: {
503
503
  type: PropType<ListConfig>;
@@ -587,7 +587,7 @@ declare function __VLS_template_4(): {
587
587
  };
588
588
  pre_selection: {
589
589
  type: PropType<SelectedItem[]>;
590
- default: () => never[];
590
+ default: never[];
591
591
  };
592
592
  }>> & Readonly<{}>, {
593
593
  GetSelectedItems: () => SelectedItem[];
@@ -628,7 +628,7 @@ declare function __VLS_template_4(): {
628
628
  };
629
629
  pre_selection: {
630
630
  type: PropType<SelectedItem[]>;
631
- default: () => never[];
631
+ default: never[];
632
632
  };
633
633
  }>> & Readonly<{}>, "GetSelectedItems" | ("module" | "pre_selection")> & ShallowUnwrapRef< {
634
634
  GetSelectedItems: () => SelectedItem[];
@@ -674,6 +674,8 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
674
674
  };
675
675
  };
676
676
 
677
+ export declare const AddClientUrl: (url: string, clientUrl: string) => void;
678
+
677
679
  export declare const addFrameRouter: (r: RouteRecordRaw) => void;
678
680
 
679
681
  export declare const addFrameRouters: (rs: RouteRecordRaw[]) => void;
@@ -713,6 +715,8 @@ export declare const GetItemsTitles: (arr: SelectedItem[]) => string;
713
715
 
714
716
  export declare function GetUserPermission(): Promise<string[]>;
715
717
 
718
+ export declare function HasClientUrl(url: string): boolean;
719
+
716
720
  export declare function HasPermission(p: string): Promise<boolean>;
717
721
 
718
722
  export declare class httpapi {
@@ -722,6 +726,8 @@ export declare class httpapi {
722
726
  static url_change_password: string;
723
727
  static url_user_permission: string;
724
728
  static url_notification_list: string;
729
+ static url_notification_read: string;
730
+ static url_notification_all_read: string;
725
731
  static url_user_save: string;
726
732
  static url_user_list: string;
727
733
  static url_user_export: string;
@@ -784,6 +790,8 @@ export declare interface ListConfig {
784
790
  LeftPanel?: boolean;
785
791
  }
786
792
 
793
+ export declare const OpenClientUrlWithID: (url: string, id: any) => void;
794
+
787
795
  declare interface QuickConditionsGroup {
788
796
  Label: string;
789
797
  QuickConditions: SqlQueryParam[];
@@ -1,10 +1,13 @@
1
- import { G, E, K, J, I, Z, y, x, i, j, f, H, v, z, m, D, F, B, t, A, k } from "./index-CNw37RHm.js";
1
+ import { L, G, E, K, M, J, I, O, Z, y, x, i, j, f, H, v, z, m, D, F, B, t, A, k } from "./index-BoncuvGr.js";
2
2
  export {
3
+ L as AddClientUrl,
3
4
  G as GetItemsIds,
4
5
  E as GetItemsTitles,
5
6
  K as GetUserPermission,
7
+ M as HasClientUrl,
6
8
  J as HasPermission,
7
9
  I as HttpApiReturnData,
10
+ O as OpenClientUrlWithID,
8
11
  Z as ZSYSMessage,
9
12
  y as addFrameRouter,
10
13
  x as addFrameRouters,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zsysview",
3
3
  "private": false,
4
- "version": "0.1.28",
4
+ "version": "0.1.30",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -1,86 +0,0 @@
1
- import { defineComponent, ref, reactive, computed, resolveComponent, createElementBlock, openBlock, 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-CNw37RHm.js";
3
- const _hoisted_1 = { class: "flex_height" }, _hoisted_2 = {
4
- class: "flex_fill",
5
- style: { padding: "0px 20px" }
6
- }, _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "notification",
8
- setup(__props) {
9
- const activeName = ref("first"), handleClick = (tab, event) => {
10
- console.log(tab, event);
11
- }, listconfig = reactive({
12
- ApiUrl: HttpApiV1.url_notification_list
13
- }), dataformat = computed(
14
- () => (item) => formatDateTime(new Date(item))
15
- );
16
- return (_ctx, _cache) => {
17
- const _component_el_table_column = resolveComponent("el-table-column"), _component_el_link = resolveComponent("el-link"), _component_el_tab_pane = resolveComponent("el-tab-pane"), _component_el_tabs = resolveComponent("el-tabs");
18
- return openBlock(), createElementBlock("div", _hoisted_1, [
19
- createVNode(_sfc_main$1),
20
- createElementVNode("div", _hoisted_2, [
21
- createVNode(_component_el_tabs, {
22
- modelValue: activeName.value,
23
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeName.value = $event),
24
- onTabClick: handleClick,
25
- style: { height: "100%" }
26
- }, {
27
- default: withCtx(() => [
28
- createVNode(_component_el_tab_pane, {
29
- label: "全部消息",
30
- name: "first",
31
- style: { height: "100%" }
32
- }, {
33
- default: withCtx(() => [
34
- createVNode(_sfc_main$2, { config: listconfig }, {
35
- content: withCtx(() => [
36
- createVNode(_component_el_table_column, {
37
- prop: "c_time",
38
- label: "时间",
39
- width: "180"
40
- }, {
41
- default: withCtx(({ row }) => [
42
- createTextVNode(toDisplayString(dataformat.value(row.c_time)), 1)
43
- ]),
44
- _: 1
45
- }),
46
- createVNode(_component_el_table_column, {
47
- prop: "module",
48
- label: "模块",
49
- width: "180"
50
- }),
51
- createVNode(_component_el_table_column, {
52
- prop: "title",
53
- label: "标题",
54
- "min-width": "300"
55
- }, {
56
- default: withCtx(({ row }) => [
57
- createVNode(_component_el_link, {
58
- type: "primary",
59
- href: row.url,
60
- target: "_blank"
61
- }, {
62
- default: withCtx(() => [
63
- createTextVNode(toDisplayString(row.title), 1)
64
- ]),
65
- _: 2
66
- }, 1032, ["href"])
67
- ]),
68
- _: 1
69
- })
70
- ]),
71
- _: 1
72
- }, 8, ["config"])
73
- ]),
74
- _: 1
75
- })
76
- ]),
77
- _: 1
78
- }, 8, ["modelValue"])
79
- ])
80
- ]);
81
- };
82
- }
83
- });
84
- export {
85
- _sfc_main as default
86
- };