zsysview 0.0.101 → 0.1.0

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-DO9Zllux.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1, k as _sfc_main$2, Z as ZSYSMessage } from "./index-Dna8bb3T.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-DO9Zllux.js";
2
+ import { _ as _export_sfc } from "./index-Dna8bb3T.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-DO9Zllux.js";
2
+ import { e as useRouter, i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-Dna8bb3T.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-DO9Zllux.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-Dna8bb3T.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-DO9Zllux.js";
2
+ import { i as _sfc_main$1 } from "./index-Dna8bb3T.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-BIGJzcgS.js"),
48820
+ component: () => import("./main-CJr_bzjV.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-DtNwEaq9.js")
48832
+ component: () => import("./self-HQ1IjgId.js")
48833
48833
  },
48834
48834
  {
48835
48835
  path: "/notification",
48836
48836
  //个人中心
48837
48837
  meta: { title: "系统消息" },
48838
- component: () => import("./notification-DlWScLMH.js")
48838
+ component: () => import("./notification-BJ5zr9g6.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-BgPF0W_9.js")
48846
+ component: () => import("./change_password-B9TQS1Ig.js")
48847
48847
  },
48848
48848
  {
48849
48849
  path: "/sys",
@@ -48854,56 +48854,56 @@ const useTokenStore = /* @__PURE__ */ defineStore("UseToken", () => {
48854
48854
  {
48855
48855
  path: "/user",
48856
48856
  meta: { title: "用户管理" },
48857
- component: () => import("./user-BhltKGTX.js")
48857
+ component: () => import("./user-ffKEgL5R.js")
48858
48858
  },
48859
48859
  {
48860
48860
  path: "/department",
48861
48861
  meta: { title: "组织架构" },
48862
- component: () => import("./department-PUPy38fg.js")
48862
+ component: () => import("./department-BsswCQkX.js")
48863
48863
  },
48864
48864
  {
48865
48865
  path: "/position",
48866
48866
  meta: { title: "职务" },
48867
- component: () => import("./position-Chy5TqeX.js")
48867
+ component: () => import("./position-B3vGOkNR.js")
48868
48868
  },
48869
48869
  {
48870
48870
  path: "/role",
48871
48871
  meta: { title: "角色权限" },
48872
- component: () => import("./role-Du4Fs9Za.js")
48872
+ component: () => import("./role-Cpz5S0FP.js")
48873
48873
  },
48874
48874
  {
48875
48875
  path: "/log",
48876
48876
  meta: { title: "日志" },
48877
- component: () => import("./log-Z0L-nwMq.js")
48877
+ component: () => import("./log-DwjZ0TjV.js")
48878
48878
  },
48879
48879
  {
48880
48880
  path: "/backup",
48881
48881
  meta: { title: "备份" },
48882
- component: () => import("./backup-DUiINbJH.js")
48882
+ component: () => import("./backup-Bb3b4MEd.js")
48883
48883
  },
48884
48884
  {
48885
48885
  path: "/systemsetting",
48886
48886
  meta: { title: "高级设置" },
48887
- component: () => import("./systemsetting-Cn1h39VX.js")
48887
+ component: () => import("./systemsetting--GRA9HDI.js")
48888
48888
  }
48889
48889
  ]
48890
48890
  },
48891
48891
  {
48892
48892
  path: "/help",
48893
48893
  meta: { title: "使用帮助" },
48894
- component: () => import("./help-C8Q9DaIx.js")
48894
+ component: () => import("./help-B5_rIhjb.js")
48895
48895
  },
48896
48896
  {
48897
48897
  path: "/building",
48898
48898
  meta: { title: "开发中的功能" },
48899
- component: () => import("./building-tUd095SK.js")
48899
+ component: () => import("./building-DVaUxZ0Q.js")
48900
48900
  }
48901
48901
  ]
48902
48902
  },
48903
48903
  {
48904
48904
  path: "/login",
48905
48905
  name: "login",
48906
- component: () => import("./login-DYr90IRg.js")
48906
+ component: () => import("./login-DKqKCGFa.js")
48907
48907
  }
48908
48908
  ], router = createRouter({
48909
48909
  history: createWebHistory(),
@@ -51898,8 +51898,8 @@ const emitter = mitt(), zsysEventBus = () => ({
51898
51898
  if (xRes.IsSuccess) {
51899
51899
  let data = xRes.data;
51900
51900
  view.progress = data.progress, view.state = data.state, view.file_ids = [];
51901
- let fs = data.file_ids.split(",");
51902
- for (let f2 of fs)
51901
+ let fs2 = data.file_ids.split(",");
51902
+ for (let f2 of fs2)
51903
51903
  view.file_ids.push(BigInt(f2));
51904
51904
  view.state != 1 && clearInterval(intervalId);
51905
51905
  }
@@ -52348,10 +52348,31 @@ function formatDateTime(date4) {
52348
52348
  const formatPreciseOralTime = (timestamp) => {
52349
52349
  const date4 = new Date(timestamp), diffInMs = (/* @__PURE__ */ new Date()).getTime() - date4.getTime(), seconds = Math.floor(diffInMs / 1e3), minutes = Math.floor(seconds / 60), hours = Math.floor(minutes / 60), days = Math.floor(hours / 24);
52350
52350
  return days > 0 ? days === 1 ? "昨天" : days === 2 ? "前天" : days < 7 ? `${days}天前` : days < 30 ? `${Math.floor(days / 7)}周前` : days < 365 ? `${Math.floor(days / 30)}个月前` : `${Math.floor(days / 365)}年前` : hours > 0 ? `${hours}小时前` : minutes > 0 ? `${minutes}分钟前` : "刚刚";
52351
- };
52351
+ }, fs = {};
52352
+ function make_build_time() {
52353
+ return {
52354
+ name: "make_build_time",
52355
+ // 只在构建时应用
52356
+ apply: "build",
52357
+ // 在构建完成后执行
52358
+ closeBundle() {
52359
+ const now2 = /* @__PURE__ */ new Date(), timestamp = [
52360
+ now2.getFullYear(),
52361
+ String(now2.getMonth() + 1).padStart(2, "0"),
52362
+ String(now2.getDate()).padStart(2, "0"),
52363
+ "_",
52364
+ String(now2.getHours()).padStart(2, "0"),
52365
+ String(now2.getMinutes()).padStart(2, "0"),
52366
+ String(now2.getSeconds()).padStart(2, "0")
52367
+ ].join(""), outputDir = fs.join(process.cwd(), "dist/assets"), outputFile = fs.join(outputDir, "build-time.txt");
52368
+ fs.existsSync(outputDir) || fs.mkdirSync(outputDir, { recursive: !0 }), fs.writeFileSync(outputFile, timestamp), console.log(`🎉 Build timestamp generated: ${timestamp}`), console.log(`📁 File saved to: ${outputFile}`);
52369
+ }
52370
+ };
52371
+ }
52352
52372
  export {
52353
52373
  zsysappMount as A,
52354
52374
  HttpApiReturnData as B,
52375
+ make_build_time as C,
52355
52376
  HttpApiV1 as H,
52356
52377
  ZSYSMessage as Z,
52357
52378
  _export_sfc$1 as _,
@@ -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-DO9Zllux.js";
2
+ import { H as HttpApiV1, Z as ZSYSMessage, j as formatDateTime, i as _sfc_main$2, k as _sfc_main$3 } from "./index-Dna8bb3T.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-DO9Zllux.js";
2
+ import { e as useRouter, p as useRoute, H as HttpApiV1, Z as ZSYSMessage, _ as _export_sfc } from "./index-Dna8bb3T.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-DO9Zllux.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-Dna8bb3T.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, 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-DO9Zllux.js";
2
+ import { H as HttpApiV1, j as formatDateTime, i as _sfc_main$1, k as _sfc_main$2 } from "./index-Dna8bb3T.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-DO9Zllux.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-Dna8bb3T.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-DO9Zllux.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-Dna8bb3T.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-DO9Zllux.js";
2
+ import { H as HttpApiV1, i as _sfc_main$1 } from "./index-Dna8bb3T.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-DO9Zllux.js";
2
+ import { i as _sfc_main$1, H as HttpApiV1, Z as ZSYSMessage } from "./index-Dna8bb3T.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-DO9Zllux.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-Dna8bb3T.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,
@@ -4,6 +4,7 @@ import { ComponentProvideOptions } from 'vue';
4
4
  import { DefineComponent } from 'vue';
5
5
  import { ExtractPropTypes } from 'vue';
6
6
  import { Handler } from 'mitt';
7
+ import { Plugin as Plugin_2 } from 'vite';
7
8
  import { PropType } from 'vue';
8
9
  import { PublicProps } from 'vue';
9
10
  import { Router } from 'vue-router';
@@ -136,6 +137,8 @@ export declare interface ListConfig {
136
137
  ExportColumn?: ExportColumn[];
137
138
  }
138
139
 
140
+ export declare function make_build_time(): Plugin_2;
141
+
139
142
  declare interface QuickConditionsGroup {
140
143
  Label: string;
141
144
  QuickConditions: SqlQueryParam[];
@@ -1,4 +1,4 @@
1
- import { B, Z, y, x, i, j, f, H, v, z, m, t, A, k } from "./index-DO9Zllux.js";
1
+ import { B, Z, y, x, i, j, f, H, C, v, z, m, t, A, k } from "./index-Dna8bb3T.js";
2
2
  export {
3
3
  B as HttpApiReturnData,
4
4
  Z as ZSYSMessage,
@@ -8,6 +8,7 @@ export {
8
8
  j as formatDateTime,
9
9
  f as formatPreciseOralTime,
10
10
  H as httpapi,
11
+ C as make_build_time,
11
12
  v as router,
12
13
  z as zsysEventBus,
13
14
  m as zsys_delbutton,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zsysview",
3
3
  "private": false,
4
- "version": "0.0.101",
4
+ "version": "0.1.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",