@luzhaoqi/test 0.0.58 → 0.0.59

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,13 +1,13 @@
1
- import { getCurrentInstance as V, ref as C, computed as k, onMounted as x, resolveComponent as l, openBlock as v, createBlock as w, unref as r, withCtx as t, createVNode as o, withKeys as d, createTextVNode as u } from "vue";
2
- import { l as z } from "./dict-vkW5oXQf.mjs";
3
- import "./main-cLwCUpDd.mjs";
4
- import "./index-Fj2kjzW4.mjs";
5
- const O = {
1
+ import { getCurrentInstance as x, ref as z, computed as D, onMounted as N, resolveComponent as l, resolveDirective as r, openBlock as d, createBlock as u, unref as m, withCtx as t, createVNode as o, withKeys as _, withDirectives as T, createTextVNode as b } from "vue";
2
+ import { l as $ } from "./dict-T4hW9Ftt.mjs";
3
+ import "./main-LGxmffHJ.mjs";
4
+ import "./index-NpYJRFIi.mjs";
5
+ const I = {
6
6
  __name: "index",
7
- setup(N) {
8
- const p = V().proxy.$z, m = C(
7
+ setup(g) {
8
+ const i = x().proxy.$z, f = z(
9
9
  {
10
- api: z,
10
+ api: $,
11
11
  columns: [
12
12
  { label: "字典编号", type: "index", width: 90 },
13
13
  { label: "字典名称", prop: "dictName" },
@@ -22,41 +22,41 @@ const O = {
22
22
  // border: false
23
23
  // }
24
24
  }
25
- ), _ = k(() => p.$store.dict.getDictByCode("sys_status"));
26
- x(() => {
27
- p.$store.dict.setDictByCode("sys_status");
25
+ ), h = D(() => i.$store.dict.getDictByCode("sys_status"));
26
+ N(() => {
27
+ i.$store.dict.setDictByCode("sys_status");
28
28
  });
29
29
  const c = () => {
30
- }, b = () => {
31
- }, f = () => {
30
+ }, y = () => {
31
+ }, v = () => {
32
32
  };
33
- return ($, g) => {
34
- const i = l("el-input"), a = l("el-form-item"), s = l("el-button"), y = l("z-dict-tag"), h = l("z-list");
35
- return v(), w(h, {
33
+ return (U, K) => {
34
+ const s = l("el-input"), a = l("el-form-item"), p = l("el-button"), V = l("z-dict-tag"), C = l("z-list"), k = r("hasPermi"), w = r("hasRole");
35
+ return d(), u(C, {
36
36
  ref: "list",
37
- tableOption: r(m)
37
+ tableOption: m(f)
38
38
  }, {
39
39
  form: t(({ queryParams: e }) => [
40
40
  o(a, { label: "字典名称" }, {
41
41
  default: t(() => [
42
- o(i, {
42
+ o(s, {
43
43
  modelValue: e.dictName,
44
44
  "onUpdate:modelValue": (n) => e.dictName = n,
45
45
  placeholder: "请输入字典名称",
46
46
  clearable: "",
47
- onKeyup: d(c, ["enter", "native"])
47
+ onKeyup: _(c, ["enter", "native"])
48
48
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
49
49
  ]),
50
50
  _: 2
51
51
  }, 1024),
52
52
  o(a, { label: "字典类型" }, {
53
53
  default: t(() => [
54
- o(i, {
54
+ o(s, {
55
55
  modelValue: e.dictType,
56
56
  "onUpdate:modelValue": (n) => e.dictType = n,
57
57
  placeholder: "请输入字典类型",
58
58
  clearable: "",
59
- onKeyup: d(c, ["enter", "native"])
59
+ onKeyup: _(c, ["enter", "native"])
60
60
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
61
61
  ]),
62
62
  _: 2
@@ -64,32 +64,35 @@ const O = {
64
64
  o(a, { label: "状态" })
65
65
  ]),
66
66
  leftMenu: t(() => [
67
- o(s, {
68
- onClick: b,
67
+ T((d(), u(p, {
68
+ onClick: y,
69
69
  icon: "el-icon-plus",
70
70
  type: "primary",
71
71
  plain: ""
72
72
  }, {
73
73
  default: t(() => [
74
- u("新增")
74
+ b("新增")
75
75
  ]),
76
76
  _: 1
77
- })
77
+ })), [
78
+ [k, ["system:user:edit"]],
79
+ [w, ["admin2"]]
80
+ ])
78
81
  ]),
79
82
  status: t((e) => [
80
- o(y, {
81
- options: r(_),
83
+ o(V, {
84
+ options: m(h),
82
85
  value: e.row.status
83
86
  }, null, 8, ["options", "value"])
84
87
  ]),
85
88
  menu: t((e) => [
86
- o(s, {
89
+ o(p, {
87
90
  icon: "el-icon-s-promotion",
88
91
  link: "",
89
- onClick: (n) => f(e.row)
92
+ onClick: (n) => v(e.row)
90
93
  }, {
91
94
  default: t(() => [
92
- u("详情")
95
+ b("详情")
93
96
  ]),
94
97
  _: 2
95
98
  }, 1032, ["onClick"])
@@ -100,5 +103,5 @@ const O = {
100
103
  }
101
104
  };
102
105
  export {
103
- O as default
106
+ I as default
104
107
  };
@@ -1,7 +1,7 @@
1
1
  import { getCurrentInstance as k, ref as l, computed as x, onMounted as C, resolveComponent as s, openBlock as N, createElementBlock as O, createVNode as o, unref as a, withCtx as t, createTextVNode as n, toDisplayString as y, createElementVNode as $ } from "vue";
2
- import { l as f } from "./dict-vkW5oXQf.mjs";
3
- import "./main-cLwCUpDd.mjs";
4
- import "./index-Fj2kjzW4.mjs";
2
+ import { l as f } from "./dict-T4hW9Ftt.mjs";
3
+ import "./main-LGxmffHJ.mjs";
4
+ import "./index-NpYJRFIi.mjs";
5
5
  const B = /* @__PURE__ */ $("br", null, null, -1), G = {
6
6
  __name: "index",
7
7
  setup(P) {