zsysview 0.1.27 → 0.1.29

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-CAzCrkhz.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1, k as _sfc_main$2, Z as ZSYSMessage } from "./index-Do1sXbbi.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-CAzCrkhz.js";
2
+ import { _ as _export_sfc } from "./index-Do1sXbbi.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-CAzCrkhz.js";
2
+ import { e as useRouter, i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-Do1sXbbi.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-CAzCrkhz.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-Do1sXbbi.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-CAzCrkhz.js";
2
+ import { i as _sfc_main$1 } from "./index-Do1sXbbi.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-auSEg95Y.js"),
48820
+ component: () => import("./main-DIlqxuFe.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-nUkqKVMQ.js")
48832
+ component: () => import("./self-HAJ28Tz9.js")
48833
48833
  },
48834
48834
  {
48835
48835
  path: "/notification",
48836
48836
  //个人中心
48837
48837
  meta: { title: "系统消息" },
48838
- component: () => import("./notification-BFw_u6Pf.js")
48838
+ component: () => import("./notification-B49hR2kW.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-DjeLJ8Yg.js")
48846
+ component: () => import("./change_password-BLORsa3E.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-CDeqng7F.js")
48857
+ component: () => import("./user-BtniqlyU.js")
48858
48858
  },
48859
48859
  {
48860
48860
  path: "/department",
48861
48861
  meta: { title: "组织架构" },
48862
- component: () => import("./department-kmSbHQw6.js")
48862
+ component: () => import("./department-C48zjD0O.js")
48863
48863
  },
48864
48864
  {
48865
48865
  path: "/position",
48866
48866
  meta: { title: "职务" },
48867
- component: () => import("./position-CMNHqDx4.js")
48867
+ component: () => import("./position-3ib4XU1V.js")
48868
48868
  },
48869
48869
  {
48870
48870
  path: "/role",
48871
48871
  meta: { title: "角色权限" },
48872
- component: () => import("./role-WP75vSyY.js")
48872
+ component: () => import("./role-9wqnFJaN.js")
48873
48873
  },
48874
48874
  {
48875
48875
  path: "/log",
48876
48876
  meta: { title: "日志" },
48877
- component: () => import("./log-CvR5UVij.js")
48877
+ component: () => import("./log-CO2F99_s.js")
48878
48878
  },
48879
48879
  {
48880
48880
  path: "/backup",
48881
48881
  meta: { title: "备份" },
48882
- component: () => import("./backup-DvuCj1YR.js")
48882
+ component: () => import("./backup-DhoaOmDS.js")
48883
48883
  },
48884
48884
  {
48885
48885
  path: "/systemsetting",
48886
48886
  meta: { title: "高级设置" },
48887
- component: () => import("./systemsetting-mKnJtmeJ.js")
48887
+ component: () => import("./systemsetting-2gNgQvoT.js")
48888
48888
  }
48889
48889
  ]
48890
48890
  },
48891
48891
  {
48892
48892
  path: "/help",
48893
48893
  meta: { title: "使用帮助" },
48894
- component: () => import("./help-B0n2YScg.js")
48894
+ component: () => import("./help-DEMA-uBu.js")
48895
48895
  },
48896
48896
  {
48897
48897
  path: "/version",
48898
48898
  meta: { title: "版本记录" },
48899
- component: () => import("./version-eobFYifm.js")
48899
+ component: () => import("./version-CC-9Revz.js")
48900
48900
  },
48901
48901
  {
48902
48902
  path: "/building",
48903
48903
  meta: { title: "开发中的功能" },
48904
- component: () => import("./building-D4H9FH1b.js")
48904
+ component: () => import("./building-CkyBxa5m.js")
48905
48905
  }
48906
48906
  ]
48907
48907
  },
48908
48908
  {
48909
48909
  path: "/login",
48910
48910
  name: "login",
48911
- component: () => import("./login-D6BlrxyO.js")
48911
+ component: () => import("./login-cHmw7AA8.js")
48912
48912
  }
48913
48913
  ], router = createRouter({
48914
48914
  history: createWebHistory(),
@@ -52289,7 +52289,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52289
52289
  ref_key: "list",
52290
52290
  ref: list,
52291
52291
  config: __props.listconfig,
52292
- pre_selection: props2.pre_selection,
52292
+ pre_selection: props2.pre_selection || [],
52293
52293
  style: { height: "100%" }
52294
52294
  }, {
52295
52295
  content: withCtx(() => [
@@ -52372,7 +52372,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52372
52372
  createVNode(_sfc_main$4, {
52373
52373
  modelValue: view.dialog_show,
52374
52374
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => view.dialog_show = $event),
52375
- pre_selection: props2.pre_selection,
52375
+ pre_selection: props2.pre_selection || [],
52376
52376
  listconfig: props2.listconfig,
52377
52377
  quantity: props2.quantity,
52378
52378
  onSure: dialog_sure,
@@ -52473,15 +52473,11 @@ const emitter = mitt(), zsysEventBus = () => ({
52473
52473
  nextTick(() => {
52474
52474
  tableRef.value.data.forEach((row) => {
52475
52475
  let id = toRaw$1(getRowKeyValue(row));
52476
- console.log("112233", [...props2.pre_selection]);
52477
- for (let s2 of props2.pre_selection) {
52478
- if (console.log("s.id", s2.id), console.log("id", id), BigInt(s2.id) == BigInt(id)) {
52476
+ for (let s2 of props2.pre_selection)
52477
+ if (BigInt(s2.id) == BigInt(id)) {
52479
52478
  console.log("======="), tableRef.value.toggleRowSelection(row, !0);
52480
52479
  break;
52481
52480
  }
52482
- console.log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
52483
- }
52484
- console.log("[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]");
52485
52481
  });
52486
52482
  }), view.loading = !1;
52487
52483
  }, aud_event = (payload) => {
@@ -52671,7 +52667,7 @@ const emitter = mitt(), zsysEventBus = () => ({
52671
52667
  return openBlock(), createBlock(_sfc_main$3, {
52672
52668
  ref_key: "s",
52673
52669
  ref: s2,
52674
- pre_selection: props2.pre_selection,
52670
+ pre_selection: props2.pre_selection || [],
52675
52671
  listconfig: listConfig,
52676
52672
  quantity: props2.quantity,
52677
52673
  dialog_config: dialogConfig,
@@ -52691,7 +52687,17 @@ const emitter = mitt(), zsysEventBus = () => ({
52691
52687
  }, 8, ["pre_selection", "listconfig", "quantity", "dialog_config"]);
52692
52688
  };
52693
52689
  }
52694
- });
52690
+ }), GetItemsTitles = (arr) => {
52691
+ let titles = "";
52692
+ for (let i of arr)
52693
+ titles != "" && (titles += ","), titles += i.title;
52694
+ return titles;
52695
+ }, GetItemsIds = (arr) => {
52696
+ let ids = "";
52697
+ for (let i of arr)
52698
+ ids != "" && (ids += ","), ids += i.id.toString();
52699
+ return ids;
52700
+ };
52695
52701
  function formatDateTime(date4) {
52696
52702
  if (date4 == "0001-01-01T00:00:00Z")
52697
52703
  return "";
@@ -52757,11 +52763,13 @@ export {
52757
52763
  _sfc_main as B,
52758
52764
  CommonHelper as C,
52759
52765
  _sfc_main$3 as D,
52760
- _sfc_main$4 as E,
52761
- HttpApiReturnData as F,
52762
- HasPermission as G,
52766
+ GetItemsTitles as E,
52767
+ _sfc_main$4 as F,
52768
+ GetItemsIds as G,
52763
52769
  HttpApiV1 as H,
52764
- GetUserPermission as I,
52770
+ HttpApiReturnData as I,
52771
+ HasPermission as J,
52772
+ GetUserPermission as K,
52765
52773
  ZSYSMessage as Z,
52766
52774
  _export_sfc$1 as _,
52767
52775
  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-CAzCrkhz.js";
2
+ import { H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$2, k as _sfc_main$3 } from "./index-Do1sXbbi.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-CAzCrkhz.js";
2
+ import { e as useRouter, p as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-Do1sXbbi.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-CAzCrkhz.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-Do1sXbbi.js";
3
3
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
4
4
  __name: "userMenuItem",
5
5
  props: {
@@ -1,5 +1,5 @@
1
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-CAzCrkhz.js";
2
+ import { H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2 } from "./index-Do1sXbbi.js";
3
3
  const _hoisted_1 = { class: "flex_height" }, _hoisted_2 = {
4
4
  class: "flex_fill",
5
5
  style: { padding: "0px 20px" }
@@ -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-CAzCrkhz.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-Do1sXbbi.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-CAzCrkhz.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-Do1sXbbi.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-CAzCrkhz.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1 } from "./index-Do1sXbbi.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-CAzCrkhz.js";
2
+ import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-Do1sXbbi.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-CAzCrkhz.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-Do1sXbbi.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-CAzCrkhz.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1 } from "./index-Do1sXbbi.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) {
@@ -707,6 +707,10 @@ export declare function formatDateTime(date: Date | string | number): string;
707
707
 
708
708
  export declare const formatPreciseOralTime: (timestamp: string | Date) => string;
709
709
 
710
+ export declare const GetItemsIds: (arr: SelectedItem[]) => string;
711
+
712
+ export declare const GetItemsTitles: (arr: SelectedItem[]) => string;
713
+
710
714
  export declare function GetUserPermission(): Promise<string[]>;
711
715
 
712
716
  export declare function HasPermission(p: string): Promise<boolean>;
@@ -1,8 +1,10 @@
1
- import { I, G, F, Z, y, x, i, j, f, H, v, z, m, D, E, B, t, A, k } from "./index-CAzCrkhz.js";
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-Do1sXbbi.js";
2
2
  export {
3
- I as GetUserPermission,
4
- G as HasPermission,
5
- F as HttpApiReturnData,
3
+ G as GetItemsIds,
4
+ E as GetItemsTitles,
5
+ K as GetUserPermission,
6
+ J as HasPermission,
7
+ I as HttpApiReturnData,
6
8
  Z as ZSYSMessage,
7
9
  y as addFrameRouter,
8
10
  x as addFrameRouters,
@@ -14,7 +16,7 @@ export {
14
16
  z as zsysEventBus,
15
17
  m as zsys_delbutton,
16
18
  D as zsys_selector,
17
- E as zsys_selector_dialog,
19
+ F as zsys_selector_dialog,
18
20
  B as zsys_user_selctor,
19
21
  t as zsysapp,
20
22
  A as zsysappMount,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zsysview",
3
3
  "private": false,
4
- "version": "0.1.27",
4
+ "version": "0.1.29",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",