zsysview 0.0.96 → 0.0.99

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/README.md CHANGED
@@ -3,8 +3,9 @@
3
3
  #### main.ts
4
4
  ```
5
5
  // 整个main.ts只需要这2句代码快速开始
6
- import {zsysapp, addFrameRouter} from 'zsysview'
6
+ import {zsysapp, addFrameRouters,zsysappMount} from 'zsysview'
7
7
  import 'zsysview/dist/zsysview.css'
8
+ zsysappMount()
8
9
  ```
9
10
 
10
11
  #### vite.config.ts 请求重写
@@ -18,6 +19,11 @@ server: {
18
19
  changeOrigin: true,
19
20
  rewrite: (path) => path.replace(/^\/api/, ""),
20
21
  },
22
+ "/public/": {
23
+ target: "http://localhost:1788/public",
24
+ changeOrigin: true,
25
+ rewrite: (path) => path.replace(/^\/public/, ""),
26
+ },
21
27
  },
22
28
  },
23
29
  ```
@@ -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-BPMOrNS0.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1, k as _sfc_main$2, Z as ZSYSMessage } from "./index-DM09-kV_.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-BPMOrNS0.js";
2
+ import { _ as _export_sfc } from "./index-DM09-kV_.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-BPMOrNS0.js";
2
+ import { e as useRouter, i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-DM09-kV_.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-BPMOrNS0.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-DM09-kV_.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: {
@@ -0,0 +1,72 @@
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-DM09-kV_.js";
3
+ const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "help",
5
+ setup(__props) {
6
+ const tableData = reactive({
7
+ data: []
8
+ });
9
+ async function getAppHelp() {
10
+ const response = await fetch(
11
+ "/public/app_help/help.json?" + Date.now().toString()
12
+ );
13
+ if (!response.ok)
14
+ return;
15
+ const jsonData = await response.json();
16
+ tableData.data = tableData.data.concat(jsonData);
17
+ }
18
+ async function getBaseHelp() {
19
+ const response = await fetch(
20
+ "/public/help/help.json?" + Date.now().toString()
21
+ );
22
+ if (!response.ok)
23
+ return;
24
+ const jsonData = await response.json();
25
+ tableData.data = tableData.data.concat(jsonData);
26
+ }
27
+ async function getHelp() {
28
+ await getAppHelp(), await getBaseHelp();
29
+ }
30
+ return onMounted(() => {
31
+ tableData.data = [], getHelp();
32
+ }), (_ctx, _cache) => {
33
+ const _component_el_table_column = resolveComponent("el-table-column"), _component_el_link = resolveComponent("el-link"), _component_el_table = resolveComponent("el-table");
34
+ return openBlock(), createElementBlock(Fragment, null, [
35
+ createVNode(_sfc_main$1),
36
+ createElementVNode("div", _hoisted_1, [
37
+ createVNode(_component_el_table, {
38
+ data: tableData.data,
39
+ style: { width: "100%" }
40
+ }, {
41
+ default: withCtx(() => [
42
+ createVNode(_component_el_table_column, {
43
+ prop: "type",
44
+ label: "类别",
45
+ width: "180"
46
+ }),
47
+ createVNode(_component_el_table_column, { label: "帮助" }, {
48
+ default: withCtx(({ row }) => [
49
+ createVNode(_component_el_link, {
50
+ type: "primary",
51
+ href: row.url + "?" + Date.now().toString(),
52
+ target: "_blank"
53
+ }, {
54
+ default: withCtx(() => [
55
+ createTextVNode(toDisplayString(row.name), 1)
56
+ ]),
57
+ _: 2
58
+ }, 1032, ["href"])
59
+ ]),
60
+ _: 1
61
+ })
62
+ ]),
63
+ _: 1
64
+ }, 8, ["data"])
65
+ ])
66
+ ], 64);
67
+ };
68
+ }
69
+ });
70
+ export {
71
+ _sfc_main as default
72
+ };
@@ -48817,7 +48817,7 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
48817
48817
  path: "/main",
48818
48818
  //"/main"
48819
48819
  name: "main",
48820
- component: () => import("./main-DwhncAyo.js"),
48820
+ component: () => import("./main-FNbvC1Mb.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-CBeYBtKB.js")
48832
+ component: () => import("./self-CGcequ5m.js")
48833
48833
  },
48834
48834
  {
48835
48835
  path: "/notification",
48836
48836
  //个人中心
48837
48837
  meta: { title: "系统消息" },
48838
- component: () => import("./notification-BF0LfVIK.js")
48838
+ component: () => import("./notification-Czgxq9Pt.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-DxZZU1IC.js")
48846
+ component: () => import("./change_password-DGs7wNNQ.js")
48847
48847
  },
48848
48848
  {
48849
48849
  path: "/sys",
@@ -48854,51 +48854,56 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
48854
48854
  {
48855
48855
  path: "/user",
48856
48856
  meta: { title: "用户管理" },
48857
- component: () => import("./user-y8LfZWjP.js")
48857
+ component: () => import("./user-Bhqde3QF.js")
48858
48858
  },
48859
48859
  {
48860
48860
  path: "/department",
48861
48861
  meta: { title: "组织架构" },
48862
- component: () => import("./department-CsDxDYDa.js")
48862
+ component: () => import("./department-DfhITwCj.js")
48863
48863
  },
48864
48864
  {
48865
48865
  path: "/position",
48866
48866
  meta: { title: "职务" },
48867
- component: () => import("./position-Zq6sTkaT.js")
48867
+ component: () => import("./position-DYbVftBz.js")
48868
48868
  },
48869
48869
  {
48870
48870
  path: "/role",
48871
48871
  meta: { title: "角色权限" },
48872
- component: () => import("./role-Cc85U4tX.js")
48872
+ component: () => import("./role-DvA_PbKK.js")
48873
48873
  },
48874
48874
  {
48875
48875
  path: "/log",
48876
48876
  meta: { title: "日志" },
48877
- component: () => import("./log-BXx2Lu6n.js")
48877
+ component: () => import("./log-C9GhMR2W.js")
48878
48878
  },
48879
48879
  {
48880
48880
  path: "/backup",
48881
48881
  meta: { title: "备份" },
48882
- component: () => import("./backup-CkrykQj9.js")
48882
+ component: () => import("./backup-BynkkfI_.js")
48883
48883
  },
48884
48884
  {
48885
48885
  path: "/systemsetting",
48886
48886
  meta: { title: "高级设置" },
48887
- component: () => import("./systemsetting-DDGZNjIm.js")
48887
+ component: () => import("./systemsetting-hvcpOCDL.js")
48888
48888
  }
48889
48889
  ]
48890
48890
  },
48891
+ {
48892
+ path: "/help",
48893
+ meta: { title: "使用帮助" },
48894
+ component: () => import("./help-TMgv8IS4.js")
48895
+ },
48891
48896
  {
48892
48897
  path: "/building",
48893
48898
  meta: { title: "开发中的功能" },
48894
- component: () => import("./building-DTQnEali.js")
48899
+ component: () => import("./building-zyiuXs73.js")
48895
48900
  }
48896
48901
  ]
48897
48902
  },
48898
48903
  {
48899
48904
  path: "/login",
48900
48905
  name: "login",
48901
- component: () => import("./login-BRLR1Ef-.js")
48906
+ component: () => import("./login-JAqM2ygn.js")
48902
48907
  }
48903
48908
  ], router = createRouter({
48904
48909
  history: createWebHistory(),
@@ -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-BPMOrNS0.js";
2
+ import { H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$2, k as _sfc_main$3 } from "./index-DM09-kV_.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-BPMOrNS0.js";
2
+ import { e as useRouter, p as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-DM09-kV_.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, _ as _export_sfc, e as useRouter, f as formatPreciseOralTime, g as arrow_down_default, h as useTokenStore, Z as ZSYSMessage } from "./index-BPMOrNS0.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, _ as _export_sfc, e as useRouter, f as formatPreciseOralTime, g as arrow_down_default, h as useTokenStore, Z as ZSYSMessage } from "./index-DM09-kV_.js";
3
3
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4
4
  __name: "userMenuItem",
5
5
  props: {
@@ -141,9 +141,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
141
141
  }
142
142
  ]
143
143
  },
144
- { name: "使用帮助", icon: markRaw(question_filled_default), url: "/building?2" }
144
+ { name: "使用帮助", icon: markRaw(question_filled_default), url: "/help" }
145
145
  ], all_menus = [];
146
- all_menus.push(...app_menus, ...sys_menus);
146
+ app_menus != null ? all_menus.push(...app_menus, ...sys_menus) : all_menus.push(...sys_menus);
147
147
  const menus = reactive([
148
148
  /*
149
149
  { name: '首页', icon: markRaw(House), url: '/desktop', show: true },
@@ -249,7 +249,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
249
249
  });
250
250
  };
251
251
  }
252
- }), Usermenu = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-6ca3e7db"]]), _hoisted_1$1 = ["onClick"], _hoisted_2$1 = { style: { height: "20px" } }, _hoisted_3$1 = { style: { "font-weight": "bold", float: "left" } }, _hoisted_4$1 = { style: { color: "#909399", "font-size": "small", float: "right" } }, _hoisted_5$1 = { style: { width: "100%", display: "inline-block" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
252
+ }), Usermenu = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-c77e10a7"]]), _hoisted_1$1 = ["onClick"], _hoisted_2$1 = { style: { height: "20px" } }, _hoisted_3$1 = { style: { "font-weight": "bold", float: "left" } }, _hoisted_4$1 = { style: { color: "#909399", "font-size": "small", float: "right" } }, _hoisted_5$1 = { style: { width: "100%", display: "inline-block" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
253
253
  __name: "notification_box",
254
254
  setup(__props) {
255
255
  const data = ref([]), r = useRouter(), handleClick = (item) => {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, reactive, computed, resolveComponent, createElementBlock, openBlock, Fragment, 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-BPMOrNS0.js";
2
+ import { H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2 } from "./index-DM09-kV_.js";
3
3
  const _hoisted_1 = { style: { padding: "0px 20px" } }, _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "notification",
5
5
  setup(__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, i as _sfc_main$2, k as _sfc_main$3, m as _sfc_main$4 } from "./index-BPMOrNS0.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-DM09-kV_.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: {
@@ -238,7 +238,7 @@ const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } },
238
238
  })
239
239
  }, {
240
240
  default: withCtx(() => [..._cache[3] || (_cache[3] = [
241
- createTextVNode("新建", -1)
241
+ createTextVNode("新建职务", -1)
242
242
  ])]),
243
243
  _: 1
244
244
  })
@@ -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-BPMOrNS0.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-DM09-kV_.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: {
@@ -300,7 +300,7 @@ const _hoisted_1$1 = { style: { display: "flex", "justify-content": "right" } },
300
300
  onClick: newdata
301
301
  }, {
302
302
  default: withCtx(() => [..._cache[2] || (_cache[2] = [
303
- createTextVNode("新建", -1)
303
+ createTextVNode("新建角色", -1)
304
304
  ])]),
305
305
  _: 1
306
306
  })
@@ -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-BPMOrNS0.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1 } from "./index-DM09-kV_.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-BPMOrNS0.js";
2
+ import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-DM09-kV_.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-BPMOrNS0.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-DM09-kV_.js";
3
3
  import { h } from "./index.es-DrN1BLo5.js";
4
4
  const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
5
5
  key: 0,
@@ -495,7 +495,7 @@ const _hoisted_1$2 = { style: { float: "left" } }, _hoisted_2 = {
495
495
  })
496
496
  }, {
497
497
  default: withCtx(() => [..._cache[4] || (_cache[4] = [
498
- createTextVNode("新建", -1)
498
+ createTextVNode("新建用户", -1)
499
499
  ])]),
500
500
  _: 1
501
501
  })