@luzhaoqi/test 0.0.43 → 0.0.45
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/dist/dict-Bd5ZD5ia.mjs +66 -0
- package/dist/dict-uCj2Cg8O.mjs +172 -0
- package/dist/dictEdit-E8D81oHu.mjs +187 -0
- package/dist/index-4RzD8CJ3.mjs +82 -0
- package/dist/index-LkpiywJu.mjs +55 -0
- package/dist/index-MSlWQFbz.mjs +246 -0
- package/dist/index-_InmB_Fg.mjs +31498 -0
- package/dist/index-dLUx1A_Y.mjs +104 -0
- package/dist/index-mBDnOF1n.mjs +160 -0
- package/dist/index-p4HI9ccu.mjs +19 -0
- package/dist/index-tF_j39Si.mjs +120 -0
- package/dist/index-uFC6rZY7.mjs +6853 -0
- package/dist/layout-CT9WEYrm.mjs +11 -0
- package/dist/main-gPpx1WZq.mjs +36094 -0
- package/dist/style.css +2 -2
- package/dist/test-xFpnSxbr.mjs +41 -0
- package/dist/type-XKne415H.mjs +157 -0
- package/dist/typeEdit-VqWP1Hpc.mjs +146 -0
- package/dist/z-ui3.mjs +35 -27607
- package/dist/z-ui3.umd.js +185 -79
- package/package.json +5 -2
@@ -0,0 +1,66 @@
|
|
1
|
+
import { a as r } from "./main-gPpx1WZq.mjs";
|
2
|
+
const u = r.config.globalProperties.$z, e = u.$http;
|
3
|
+
function n(t) {
|
4
|
+
return e.request({
|
5
|
+
url: "/ucenter/dict/type/queryPage",
|
6
|
+
method: "post",
|
7
|
+
data: t
|
8
|
+
});
|
9
|
+
}
|
10
|
+
function c(t) {
|
11
|
+
return e.request({
|
12
|
+
url: "/ucenter/dict/type/save",
|
13
|
+
method: "post",
|
14
|
+
data: t
|
15
|
+
});
|
16
|
+
}
|
17
|
+
function d(t) {
|
18
|
+
return e.request({
|
19
|
+
url: "/ucenter/dict/type/update",
|
20
|
+
method: "post",
|
21
|
+
data: t
|
22
|
+
});
|
23
|
+
}
|
24
|
+
function o(t) {
|
25
|
+
return e.request({
|
26
|
+
url: `ucenter/dict/type/del/${t}`,
|
27
|
+
method: "post"
|
28
|
+
});
|
29
|
+
}
|
30
|
+
function s(t) {
|
31
|
+
return e.request({
|
32
|
+
url: "/ucenter/dict/queryPage",
|
33
|
+
method: "post",
|
34
|
+
data: t
|
35
|
+
});
|
36
|
+
}
|
37
|
+
function p(t) {
|
38
|
+
return e.request({
|
39
|
+
url: "/ucenter/dict/save",
|
40
|
+
method: "post",
|
41
|
+
data: t
|
42
|
+
});
|
43
|
+
}
|
44
|
+
function a(t) {
|
45
|
+
return e.request({
|
46
|
+
url: "/ucenter/dict/update",
|
47
|
+
method: "post",
|
48
|
+
data: t
|
49
|
+
});
|
50
|
+
}
|
51
|
+
function l(t) {
|
52
|
+
return e.request({
|
53
|
+
url: `ucenter/dict/del/${t}`,
|
54
|
+
method: "post"
|
55
|
+
});
|
56
|
+
}
|
57
|
+
export {
|
58
|
+
l as a,
|
59
|
+
a as b,
|
60
|
+
p as c,
|
61
|
+
s as d,
|
62
|
+
o as e,
|
63
|
+
d as f,
|
64
|
+
c as g,
|
65
|
+
n as l
|
66
|
+
};
|
@@ -0,0 +1,172 @@
|
|
1
|
+
import { getCurrentInstance as O, computed as S, onMounted as N, ref as d, resolveComponent as a, openBlock as r, createBlock as k, unref as s, withCtx as t, createVNode as o, createElementBlock as C, Fragment as w, renderList as $, withKeys as E, createTextVNode as m } from "vue";
|
2
|
+
import K from "./dictEdit-E8D81oHu.mjs";
|
3
|
+
import { d as L, l as M, a as Q } from "./dict-Bd5ZD5ia.mjs";
|
4
|
+
import { u as F } from "./index-_InmB_Fg.mjs";
|
5
|
+
import "./main-gPpx1WZq.mjs";
|
6
|
+
const X = {
|
7
|
+
__name: "dict",
|
8
|
+
setup(I) {
|
9
|
+
const i = O().proxy.$z, x = F(), h = S(() => i.$store.dict.getDictByCode("sys_status"));
|
10
|
+
N(() => {
|
11
|
+
i.$store.dict.setDictByCode("sys_status"), z();
|
12
|
+
});
|
13
|
+
const T = d({
|
14
|
+
api: L,
|
15
|
+
hiddenQuery: {
|
16
|
+
dictType: x.params.id
|
17
|
+
},
|
18
|
+
columns: [
|
19
|
+
{ label: "字典编号", type: "index", width: 90 },
|
20
|
+
{ label: "字典标签", prop: "lable" },
|
21
|
+
{ label: "字典键值", prop: "value" },
|
22
|
+
{ label: "字典排序", prop: "dictSort" },
|
23
|
+
{ label: "状态", prop: "status", slot: !0 },
|
24
|
+
{ label: "备注", prop: "remark" },
|
25
|
+
{ label: "操作", prop: "menu", width: "200", slot: !0 }
|
26
|
+
]
|
27
|
+
}), _ = d([]), z = () => {
|
28
|
+
M({ pageSize: 9999 }).then((n) => {
|
29
|
+
_.value = n.records || [];
|
30
|
+
});
|
31
|
+
}, f = d(), b = d(), c = () => {
|
32
|
+
f.value.handleQuery();
|
33
|
+
}, v = (n, u) => {
|
34
|
+
n === "add" ? b.value.show(n, f.value.queryParams) : b.value.show(n, u);
|
35
|
+
}, B = (n) => {
|
36
|
+
i.$modal.confirm("是否确认删除名称为" + n.lable + "的数据项?", "警告", {
|
37
|
+
confirmButtonText: "确定",
|
38
|
+
cancelButtonText: "取消",
|
39
|
+
type: "warning"
|
40
|
+
}).then(() => {
|
41
|
+
Q(n.id).then(() => {
|
42
|
+
i.$modal.msgSuccess("删除成功"), c();
|
43
|
+
}).catch((u) => {
|
44
|
+
console.log(u), i.$modal.msgError("删除失败");
|
45
|
+
});
|
46
|
+
});
|
47
|
+
};
|
48
|
+
return (n, u) => {
|
49
|
+
const g = a("el-option"), V = a("el-select"), y = a("el-form-item"), D = a("el-input"), p = a("el-button"), A = a("z-dict-tag"), U = a("z-list");
|
50
|
+
return r(), k(U, {
|
51
|
+
ref_key: "list",
|
52
|
+
ref: f,
|
53
|
+
tableOption: s(T)
|
54
|
+
}, {
|
55
|
+
form: t(({ queryParams: l }) => [
|
56
|
+
o(y, { label: "字典类型" }, {
|
57
|
+
default: t(() => [
|
58
|
+
o(V, {
|
59
|
+
modelValue: l.dictType,
|
60
|
+
"onUpdate:modelValue": (e) => l.dictType = e,
|
61
|
+
clearable: "",
|
62
|
+
filterable: "",
|
63
|
+
onChange: c
|
64
|
+
}, {
|
65
|
+
default: t(() => [
|
66
|
+
(r(!0), C(w, null, $(s(_), (e) => (r(), k(g, {
|
67
|
+
key: e.dictType,
|
68
|
+
label: e.dictName,
|
69
|
+
value: e.dictType
|
70
|
+
}, null, 8, ["label", "value"]))), 128))
|
71
|
+
]),
|
72
|
+
_: 2
|
73
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
74
|
+
]),
|
75
|
+
_: 2
|
76
|
+
}, 1024),
|
77
|
+
o(y, { label: "字典标签" }, {
|
78
|
+
default: t(() => [
|
79
|
+
o(D, {
|
80
|
+
modelValue: l.lable,
|
81
|
+
"onUpdate:modelValue": (e) => l.lable = e,
|
82
|
+
placeholder: "请输入字典标签",
|
83
|
+
clearable: "",
|
84
|
+
onKeyup: E(c, ["enter", "native"])
|
85
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
86
|
+
]),
|
87
|
+
_: 2
|
88
|
+
}, 1024),
|
89
|
+
o(y, { label: "状态" }, {
|
90
|
+
default: t(() => [
|
91
|
+
o(V, {
|
92
|
+
modelValue: l.status,
|
93
|
+
"onUpdate:modelValue": (e) => l.status = e,
|
94
|
+
clearable: ""
|
95
|
+
}, {
|
96
|
+
default: t(() => [
|
97
|
+
(r(!0), C(w, null, $(s(h), (e) => (r(), k(g, {
|
98
|
+
key: e.value,
|
99
|
+
label: e.label,
|
100
|
+
value: e.value
|
101
|
+
}, null, 8, ["label", "value"]))), 128))
|
102
|
+
]),
|
103
|
+
_: 2
|
104
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
105
|
+
]),
|
106
|
+
_: 2
|
107
|
+
}, 1024)
|
108
|
+
]),
|
109
|
+
leftMenu: t(() => [
|
110
|
+
o(p, {
|
111
|
+
onClick: u[0] || (u[0] = (l) => v("add")),
|
112
|
+
icon: "el-icon-plus",
|
113
|
+
type: "primary",
|
114
|
+
plain: ""
|
115
|
+
}, {
|
116
|
+
default: t(() => [
|
117
|
+
m("新增字典")
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
})
|
121
|
+
]),
|
122
|
+
status: t((l) => [
|
123
|
+
o(A, {
|
124
|
+
options: s(h),
|
125
|
+
value: l.row.status
|
126
|
+
}, null, 8, ["options", "value"])
|
127
|
+
]),
|
128
|
+
menu: t((l) => [
|
129
|
+
o(p, {
|
130
|
+
link: "",
|
131
|
+
onClick: (e) => v("edit", l.row)
|
132
|
+
}, {
|
133
|
+
default: t(() => [
|
134
|
+
m("编辑")
|
135
|
+
]),
|
136
|
+
_: 2
|
137
|
+
}, 1032, ["onClick"]),
|
138
|
+
o(p, {
|
139
|
+
link: "",
|
140
|
+
onClick: (e) => v("view", l.row)
|
141
|
+
}, {
|
142
|
+
default: t(() => [
|
143
|
+
m("详情")
|
144
|
+
]),
|
145
|
+
_: 2
|
146
|
+
}, 1032, ["onClick"]),
|
147
|
+
o(p, {
|
148
|
+
link: "",
|
149
|
+
onClick: (e) => B(l.row)
|
150
|
+
}, {
|
151
|
+
default: t(() => [
|
152
|
+
m("删除")
|
153
|
+
]),
|
154
|
+
_: 2
|
155
|
+
}, 1032, ["onClick"])
|
156
|
+
]),
|
157
|
+
default: t(() => [
|
158
|
+
o(K, {
|
159
|
+
ref_key: "dialog",
|
160
|
+
ref: b,
|
161
|
+
typeArr: s(_),
|
162
|
+
onOk: c
|
163
|
+
}, null, 8, ["typeArr"])
|
164
|
+
]),
|
165
|
+
_: 1
|
166
|
+
}, 8, ["tableOption"]);
|
167
|
+
};
|
168
|
+
}
|
169
|
+
};
|
170
|
+
export {
|
171
|
+
X as default
|
172
|
+
};
|
@@ -0,0 +1,187 @@
|
|
1
|
+
import { getCurrentInstance as I, computed as L, onMounted as M, ref as i, resolveComponent as n, openBlock as m, createBlock as y, unref as o, isRef as G, withCtx as u, createVNode as a, createElementBlock as T, Fragment as x, renderList as A, createTextVNode as H, toDisplayString as J } from "vue";
|
2
|
+
import { b as K, c as P } from "./dict-Bd5ZD5ia.mjs";
|
3
|
+
import "./main-gPpx1WZq.mjs";
|
4
|
+
import "./index-_InmB_Fg.mjs";
|
5
|
+
const j = {
|
6
|
+
__name: "dictEdit",
|
7
|
+
props: {
|
8
|
+
typeArr: {
|
9
|
+
type: Array,
|
10
|
+
default() {
|
11
|
+
return [];
|
12
|
+
}
|
13
|
+
}
|
14
|
+
},
|
15
|
+
emits: ["ok"],
|
16
|
+
setup(C, { expose: D, emit: U }) {
|
17
|
+
const c = I().proxy.$z, $ = L(() => c.$store.dict.getDictByCode("sys_status"));
|
18
|
+
M(() => {
|
19
|
+
c.$store.dict.setDictByCode("sys_status");
|
20
|
+
});
|
21
|
+
const f = i(!1), _ = i(""), p = i(!1), V = () => ({
|
22
|
+
id: void 0,
|
23
|
+
dictType: void 0,
|
24
|
+
lable: void 0,
|
25
|
+
value: void 0,
|
26
|
+
dictSort: 0,
|
27
|
+
status: "1",
|
28
|
+
remark: void 0
|
29
|
+
}), l = i(V()), q = i({
|
30
|
+
dictType: [{ required: !0, message: "请输入字典类型", trigger: "change" }],
|
31
|
+
lable: [{ required: !0, message: "请输入字典标签", trigger: "blur" }],
|
32
|
+
value: [{ required: !0, message: "请输入字典值", trigger: "blur" }],
|
33
|
+
status: [{ required: !0, message: "请选择状态", trigger: "change" }]
|
34
|
+
}), k = (d) => {
|
35
|
+
const e = c.$utils._.cloneDeep(l.value);
|
36
|
+
for (const r in e)
|
37
|
+
d[r] !== void 0 && (e[r] = d[r]);
|
38
|
+
l.value = e;
|
39
|
+
}, v = i(), w = (d, e) => {
|
40
|
+
switch (l.value.dictType = e.dictType, d) {
|
41
|
+
case "add":
|
42
|
+
p.value = !1, _.value = "新增";
|
43
|
+
break;
|
44
|
+
case "edit":
|
45
|
+
p.value = !1, _.value = "编辑", k(e);
|
46
|
+
break;
|
47
|
+
case "view":
|
48
|
+
p.value = !0, _.value = "详情", k(e);
|
49
|
+
break;
|
50
|
+
}
|
51
|
+
f.value = !0;
|
52
|
+
}, B = () => {
|
53
|
+
v.value.resetFields(), l.value = V();
|
54
|
+
}, S = (d) => {
|
55
|
+
v.value.validate((e) => {
|
56
|
+
if (e) {
|
57
|
+
const r = l.value.id ? K : P, b = l.value.id ? "修改成功!" : "提交成功!";
|
58
|
+
r(c.$utils._.cloneDeep(l.value)).then(() => {
|
59
|
+
d(b), z("ok");
|
60
|
+
});
|
61
|
+
}
|
62
|
+
});
|
63
|
+
}, z = U;
|
64
|
+
return D({ show: w, form: l }), (d, e) => {
|
65
|
+
const r = n("el-option"), b = n("el-select"), s = n("el-form-item"), g = n("el-input"), N = n("el-radio"), R = n("el-radio-group"), E = n("el-input-number"), F = n("el-form"), O = n("z-dialog");
|
66
|
+
return m(), y(O, {
|
67
|
+
modelValue: o(f),
|
68
|
+
"onUpdate:modelValue": e[6] || (e[6] = (t) => G(f) ? f.value = t : null),
|
69
|
+
title: o(_),
|
70
|
+
width: "30%",
|
71
|
+
disabled: o(p),
|
72
|
+
onCancel: B,
|
73
|
+
onOk: S
|
74
|
+
}, {
|
75
|
+
default: u(() => [
|
76
|
+
a(F, {
|
77
|
+
ref_key: "formRef",
|
78
|
+
ref: v,
|
79
|
+
model: o(l),
|
80
|
+
"label-width": "80px",
|
81
|
+
rules: o(q),
|
82
|
+
disabled: o(p)
|
83
|
+
}, {
|
84
|
+
default: u(() => [
|
85
|
+
a(s, {
|
86
|
+
label: "字典类型",
|
87
|
+
prop: "dictType"
|
88
|
+
}, {
|
89
|
+
default: u(() => [
|
90
|
+
a(b, {
|
91
|
+
modelValue: o(l).dictType,
|
92
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => o(l).dictType = t),
|
93
|
+
disabled: ""
|
94
|
+
}, {
|
95
|
+
default: u(() => [
|
96
|
+
(m(!0), T(x, null, A(C.typeArr, (t) => (m(), y(r, {
|
97
|
+
key: t.dictType,
|
98
|
+
label: t.dictName,
|
99
|
+
value: t.dictType
|
100
|
+
}, null, 8, ["label", "value"]))), 128))
|
101
|
+
]),
|
102
|
+
_: 1
|
103
|
+
}, 8, ["modelValue"])
|
104
|
+
]),
|
105
|
+
_: 1
|
106
|
+
}),
|
107
|
+
a(s, {
|
108
|
+
label: "字典标签",
|
109
|
+
prop: "lable"
|
110
|
+
}, {
|
111
|
+
default: u(() => [
|
112
|
+
a(g, {
|
113
|
+
modelValue: o(l).lable,
|
114
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => o(l).lable = t)
|
115
|
+
}, null, 8, ["modelValue"])
|
116
|
+
]),
|
117
|
+
_: 1
|
118
|
+
}),
|
119
|
+
a(s, {
|
120
|
+
label: "字典值",
|
121
|
+
prop: "value"
|
122
|
+
}, {
|
123
|
+
default: u(() => [
|
124
|
+
a(g, {
|
125
|
+
modelValue: o(l).value,
|
126
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => o(l).value = t)
|
127
|
+
}, null, 8, ["modelValue"])
|
128
|
+
]),
|
129
|
+
_: 1
|
130
|
+
}),
|
131
|
+
a(s, {
|
132
|
+
label: "状态",
|
133
|
+
prop: "status"
|
134
|
+
}, {
|
135
|
+
default: u(() => [
|
136
|
+
a(R, {
|
137
|
+
modelValue: o(l).status,
|
138
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => o(l).status = t)
|
139
|
+
}, {
|
140
|
+
default: u(() => [
|
141
|
+
(m(!0), T(x, null, A(o($), (t) => (m(), y(N, {
|
142
|
+
key: t.value,
|
143
|
+
value: t.value
|
144
|
+
}, {
|
145
|
+
default: u(() => [
|
146
|
+
H(J(t.label), 1)
|
147
|
+
]),
|
148
|
+
_: 2
|
149
|
+
}, 1032, ["value"]))), 128))
|
150
|
+
]),
|
151
|
+
_: 1
|
152
|
+
}, 8, ["modelValue"])
|
153
|
+
]),
|
154
|
+
_: 1
|
155
|
+
}),
|
156
|
+
a(s, { label: "排序" }, {
|
157
|
+
default: u(() => [
|
158
|
+
a(E, {
|
159
|
+
modelValue: o(l).dictSort,
|
160
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => o(l).dictSort = t),
|
161
|
+
"controls-position": "right"
|
162
|
+
}, null, 8, ["modelValue"])
|
163
|
+
]),
|
164
|
+
_: 1
|
165
|
+
}),
|
166
|
+
a(s, { label: "备注" }, {
|
167
|
+
default: u(() => [
|
168
|
+
a(g, {
|
169
|
+
type: "textarea",
|
170
|
+
modelValue: o(l).remark,
|
171
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => o(l).remark = t)
|
172
|
+
}, null, 8, ["modelValue"])
|
173
|
+
]),
|
174
|
+
_: 1
|
175
|
+
})
|
176
|
+
]),
|
177
|
+
_: 1
|
178
|
+
}, 8, ["model", "rules", "disabled"])
|
179
|
+
]),
|
180
|
+
_: 1
|
181
|
+
}, 8, ["modelValue", "title", "disabled"]);
|
182
|
+
};
|
183
|
+
}
|
184
|
+
};
|
185
|
+
export {
|
186
|
+
j as default
|
187
|
+
};
|
@@ -0,0 +1,82 @@
|
|
1
|
+
import { resolveComponent as n, openBlock as i, createElementBlock as u, createVNode as t, Fragment as f, renderList as g, withCtx as z, createTextVNode as b, createElementVNode as e } from "vue";
|
2
|
+
import { _ as x } from "./index-_InmB_Fg.mjs";
|
3
|
+
const V = {
|
4
|
+
data() {
|
5
|
+
return {
|
6
|
+
file: "2025/03/12/11319480292.png",
|
7
|
+
file2: "2025/03/12/a1435570981.pdf"
|
8
|
+
};
|
9
|
+
},
|
10
|
+
methods: {
|
11
|
+
handleExport() {
|
12
|
+
this.$z.$http.download(
|
13
|
+
{
|
14
|
+
url: "/platform/shipCompany/export1",
|
15
|
+
method: "get",
|
16
|
+
params: {
|
17
|
+
type: 4,
|
18
|
+
createTimeStart: "2025-01-01",
|
19
|
+
createTimeEnd: "2025-03-12",
|
20
|
+
pageNum: 1,
|
21
|
+
pageSize: 10
|
22
|
+
}
|
23
|
+
},
|
24
|
+
`222_${(/* @__PURE__ */ new Date()).getTime()}.xlsx`
|
25
|
+
);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}, w = /* @__PURE__ */ e("div", null, "图片上传:", -1), v = /* @__PURE__ */ e("br", null, null, -1), y = /* @__PURE__ */ e("br", null, null, -1), k = /* @__PURE__ */ e("br", null, null, -1), C = /* @__PURE__ */ e("div", null, "图片读取:", -1), E = /* @__PURE__ */ e("br", null, null, -1), T = ["src"], N = /* @__PURE__ */ e("br", null, null, -1), U = /* @__PURE__ */ e("br", null, null, -1), j = /* @__PURE__ */ e("div", null, "图片文件:", -1), B = /* @__PURE__ */ e("br", null, null, -1), L = /* @__PURE__ */ e("br", null, null, -1), S = /* @__PURE__ */ e("br", null, null, -1), $ = /* @__PURE__ */ e("br", null, null, -1), A = /* @__PURE__ */ e("br", null, null, -1);
|
29
|
+
function D(r, s, F, R, l, _) {
|
30
|
+
const d = n("z-upload-import"), p = n("z-upload-image"), c = n("z-upload-file"), a = n("z-button"), m = n("z-image-preview");
|
31
|
+
return i(), u("div", null, [
|
32
|
+
t(d),
|
33
|
+
w,
|
34
|
+
v,
|
35
|
+
t(p, {
|
36
|
+
modelValue: l.file,
|
37
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => l.file = o),
|
38
|
+
fileType: ["png", "jpg", "jpeg", "pdf"]
|
39
|
+
}, null, 8, ["modelValue"]),
|
40
|
+
y,
|
41
|
+
k,
|
42
|
+
C,
|
43
|
+
E,
|
44
|
+
(i(!0), u(f, null, g(l.file.split(","), (o, h) => (i(), u("img", {
|
45
|
+
style: { width: "100px", height: "100px" },
|
46
|
+
src: r.$z.http.baseURL + r.$z.upload.downloadAction + o,
|
47
|
+
alt: "",
|
48
|
+
key: h
|
49
|
+
}, null, 8, T))), 128)),
|
50
|
+
N,
|
51
|
+
U,
|
52
|
+
j,
|
53
|
+
B,
|
54
|
+
t(c, {
|
55
|
+
modelValue: l.file2,
|
56
|
+
"onUpdate:modelValue": s[1] || (s[1] = (o) => l.file2 = o)
|
57
|
+
}, null, 8, ["modelValue"]),
|
58
|
+
L,
|
59
|
+
S,
|
60
|
+
t(a, {
|
61
|
+
type: "success",
|
62
|
+
plain: "",
|
63
|
+
size: "small",
|
64
|
+
onClick: _.handleExport
|
65
|
+
}, {
|
66
|
+
default: z(() => [
|
67
|
+
b("导出")
|
68
|
+
]),
|
69
|
+
_: 1
|
70
|
+
}, 8, ["onClick"]),
|
71
|
+
$,
|
72
|
+
A,
|
73
|
+
t(m, {
|
74
|
+
src: l.file,
|
75
|
+
width: "200px"
|
76
|
+
}, null, 8, ["src"])
|
77
|
+
]);
|
78
|
+
}
|
79
|
+
const H = /* @__PURE__ */ x(V, [["render", D]]);
|
80
|
+
export {
|
81
|
+
H as default
|
82
|
+
};
|
@@ -0,0 +1,55 @@
|
|
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
|
+
};
|