@luzhaoqi/test 0.0.59 → 0.0.60

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,107 +0,0 @@
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
- __name: "index",
7
- setup(g) {
8
- const i = x().proxy.$z, f = z(
9
- {
10
- api: $,
11
- columns: [
12
- { label: "字典编号", type: "index", width: 90 },
13
- { label: "字典名称", prop: "dictName" },
14
- { label: "字典类型", prop: "dictType" },
15
- { label: "状态", prop: "status", slot: !0 },
16
- { label: "备注", prop: "remark" },
17
- { label: "创建时间", prop: "createTime" },
18
- { label: "操作", prop: "menu", width: "200", slot: !0 }
19
- ]
20
- // tableAttrs: {
21
- // headerCellStyle: {background: '#EFF6FF', color: '#40638B'},
22
- // border: false
23
- // }
24
- }
25
- ), h = D(() => i.$store.dict.getDictByCode("sys_status"));
26
- N(() => {
27
- i.$store.dict.setDictByCode("sys_status");
28
- });
29
- const c = () => {
30
- }, y = () => {
31
- }, v = () => {
32
- };
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
- ref: "list",
37
- tableOption: m(f)
38
- }, {
39
- form: t(({ queryParams: e }) => [
40
- o(a, { label: "字典名称" }, {
41
- default: t(() => [
42
- o(s, {
43
- modelValue: e.dictName,
44
- "onUpdate:modelValue": (n) => e.dictName = n,
45
- placeholder: "请输入字典名称",
46
- clearable: "",
47
- onKeyup: _(c, ["enter", "native"])
48
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
49
- ]),
50
- _: 2
51
- }, 1024),
52
- o(a, { label: "字典类型" }, {
53
- default: t(() => [
54
- o(s, {
55
- modelValue: e.dictType,
56
- "onUpdate:modelValue": (n) => e.dictType = n,
57
- placeholder: "请输入字典类型",
58
- clearable: "",
59
- onKeyup: _(c, ["enter", "native"])
60
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
61
- ]),
62
- _: 2
63
- }, 1024),
64
- o(a, { label: "状态" })
65
- ]),
66
- leftMenu: t(() => [
67
- T((d(), u(p, {
68
- onClick: y,
69
- icon: "el-icon-plus",
70
- type: "primary",
71
- plain: ""
72
- }, {
73
- default: t(() => [
74
- b("新增")
75
- ]),
76
- _: 1
77
- })), [
78
- [k, ["system:user:edit"]],
79
- [w, ["admin2"]]
80
- ])
81
- ]),
82
- status: t((e) => [
83
- o(V, {
84
- options: m(h),
85
- value: e.row.status
86
- }, null, 8, ["options", "value"])
87
- ]),
88
- menu: t((e) => [
89
- o(p, {
90
- icon: "el-icon-s-promotion",
91
- link: "",
92
- onClick: (n) => v(e.row)
93
- }, {
94
- default: t(() => [
95
- b("详情")
96
- ]),
97
- _: 2
98
- }, 1032, ["onClick"])
99
- ]),
100
- _: 1
101
- }, 8, ["tableOption"]);
102
- };
103
- }
104
- };
105
- export {
106
- I as default
107
- };
@@ -1,120 +0,0 @@
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-T4hW9Ftt.mjs";
3
- import "./main-LGxmffHJ.mjs";
4
- import "./index-NpYJRFIi.mjs";
5
- const B = /* @__PURE__ */ $("br", null, null, -1), G = {
6
- __name: "index",
7
- setup(P) {
8
- const i = k().proxy.$z, g = l({
9
- columns: [
10
- { label: "字典编号", type: "index", width: 90 },
11
- { label: "字典名称", prop: "dictName" },
12
- { label: "字典类型", prop: "dictType" },
13
- { label: "状态", prop: "status", slot: !0 },
14
- { label: "备注", prop: "remark" },
15
- { label: "操作", prop: "menu", width: "200", slot: !0 }
16
- ]
17
- }), c = l([]), u = l(0), m = l({
18
- pageSize: 10,
19
- pageNumber: 1
20
- }), v = l({
21
- a: "1"
22
- }), w = l({
23
- api: f,
24
- columns: [
25
- { label: "字典编号", type: "index", width: 90 },
26
- { label: "字典名称", prop: "dictName" },
27
- { label: "字典类型", prop: "dictType" },
28
- { label: "状态", prop: "status", slot: !0 },
29
- { label: "备注", prop: "remark" },
30
- { label: "操作", prop: "menu", width: "200", slot: !0 }
31
- ]
32
- }), d = x(() => i.$store.dict.getDictByCode("sys_status"));
33
- C(() => {
34
- i.$store.dict.setDictByCode("sys_status"), _();
35
- });
36
- const _ = () => {
37
- f({ ...m.value, ...v.value }).then((p) => {
38
- c.value = p.records, u.value = p.total;
39
- });
40
- }, h = () => {
41
- };
42
- return (p, T) => {
43
- const r = s("el-button"), b = s("z-dict-tag"), z = s("z-table"), D = s("z-list");
44
- return N(), O("div", null, [
45
- o(z, {
46
- tableOption: a(g),
47
- tableData: a(c),
48
- pageParams: a(m),
49
- total: a(u),
50
- onGetData: _
51
- }, {
52
- leftMenu: t(() => [
53
- o(r, {
54
- icon: "el-icon-plus",
55
- type: "primary",
56
- plain: ""
57
- }, {
58
- default: t(() => [
59
- n("新增")
60
- ]),
61
- _: 1
62
- })
63
- ]),
64
- type: t((e) => [
65
- n(y(e.row.type), 1)
66
- ]),
67
- status: t((e) => [
68
- o(b, {
69
- options: a(d),
70
- value: e.row.status
71
- }, null, 8, ["options", "value"])
72
- ]),
73
- menu: t(() => [
74
- o(r, {
75
- icon: "el-icon-s-promotion",
76
- link: ""
77
- }, {
78
- default: t(() => [
79
- n("详情")
80
- ]),
81
- _: 1
82
- })
83
- ]),
84
- _: 1
85
- }, 8, ["tableOption", "tableData", "pageParams", "total"]),
86
- B,
87
- o(D, {
88
- ref: "list",
89
- tableOption: a(w)
90
- }, {
91
- type: t((e) => [
92
- n(y(e.row.type), 1)
93
- ]),
94
- status: t((e) => [
95
- o(b, {
96
- options: a(d),
97
- value: e.row.status
98
- }, null, 8, ["options", "value"])
99
- ]),
100
- menu: t((e) => [
101
- o(r, {
102
- icon: "el-icon-s-promotion",
103
- link: "",
104
- onClick: (V) => h(e.row)
105
- }, {
106
- default: t(() => [
107
- n("详情")
108
- ]),
109
- _: 2
110
- }, 1032, ["onClick"])
111
- ]),
112
- _: 1
113
- }, 8, ["tableOption"])
114
- ]);
115
- };
116
- }
117
- };
118
- export {
119
- G as default
120
- };
@@ -1,55 +0,0 @@
1
- import { getCurrentInstance as v, computed as y, onMounted as z, ref as g, resolveComponent as o, openBlock as s, createElementBlock as d, createTextVNode as u, createVNode as a, unref as t, withCtx as f, Fragment as h, renderList as x, createBlock as C, createElementVNode as e, toDisplayString as V } from "vue";
2
- const b = /* @__PURE__ */ e("hr", null, null, -1), B = /* @__PURE__ */ e("hr", null, null, -1), k = /* @__PURE__ */ e("p", null, "正常输出:", -1), D = /* @__PURE__ */ e("br", null, null, -1), q = {
3
- __name: "index",
4
- setup($) {
5
- const r = v().proxy.$z, n = y(() => r.$store.dict.getDictByCode("sys_status"));
6
- z(() => {
7
- r.$store.dict.setDictByCode("sys_status");
8
- });
9
- const c = g({
10
- status: "0"
11
- });
12
- return (E, _) => {
13
- const p = o("z-option"), m = o("z-select"), i = o("z-dict-tag");
14
- return s(), d("div", null, [
15
- u(" 下拉框使用字典: "),
16
- a(m, {
17
- modelValue: t(c).status,
18
- "onUpdate:modelValue": _[0] || (_[0] = (l) => t(c).status = l),
19
- clearable: ""
20
- }, {
21
- default: f(() => [
22
- (s(!0), d(h, null, x(t(n), (l) => (s(), C(p, {
23
- key: l.value,
24
- label: l.label,
25
- value: l.value
26
- }, null, 8, ["label", "value"]))), 128))
27
- ]),
28
- _: 1
29
- }, 8, ["modelValue"]),
30
- b,
31
- e("div", null, [
32
- u(" 字典标签只用字典: "),
33
- a(i, {
34
- options: t(n),
35
- value: 0,
36
- listClass: "danger"
37
- }, null, 8, ["options"]),
38
- a(i, {
39
- options: t(n),
40
- value: 1
41
- }, null, 8, ["options"])
42
- ]),
43
- B,
44
- e("div", null, [
45
- k,
46
- D,
47
- u(V(t(n)), 1)
48
- ])
49
- ]);
50
- };
51
- }
52
- };
53
- export {
54
- q as default
55
- };