@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,104 @@
|
|
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-Bd5ZD5ia.mjs";
|
3
|
+
import "./main-gPpx1WZq.mjs";
|
4
|
+
import "./index-_InmB_Fg.mjs";
|
5
|
+
const O = {
|
6
|
+
__name: "index",
|
7
|
+
setup(N) {
|
8
|
+
const p = V().proxy.$z, m = C(
|
9
|
+
{
|
10
|
+
api: z,
|
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
|
+
), _ = k(() => p.$store.dict.getDictByCode("sys_status"));
|
26
|
+
x(() => {
|
27
|
+
p.$store.dict.setDictByCode("sys_status");
|
28
|
+
});
|
29
|
+
const c = () => {
|
30
|
+
}, b = () => {
|
31
|
+
}, f = () => {
|
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, {
|
36
|
+
ref: "list",
|
37
|
+
tableOption: r(m)
|
38
|
+
}, {
|
39
|
+
form: t(({ queryParams: e }) => [
|
40
|
+
o(a, { label: "字典名称" }, {
|
41
|
+
default: t(() => [
|
42
|
+
o(i, {
|
43
|
+
modelValue: e.dictName,
|
44
|
+
"onUpdate:modelValue": (n) => e.dictName = n,
|
45
|
+
placeholder: "请输入字典名称",
|
46
|
+
clearable: "",
|
47
|
+
onKeyup: d(c, ["enter", "native"])
|
48
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
49
|
+
]),
|
50
|
+
_: 2
|
51
|
+
}, 1024),
|
52
|
+
o(a, { label: "字典类型" }, {
|
53
|
+
default: t(() => [
|
54
|
+
o(i, {
|
55
|
+
modelValue: e.dictType,
|
56
|
+
"onUpdate:modelValue": (n) => e.dictType = n,
|
57
|
+
placeholder: "请输入字典类型",
|
58
|
+
clearable: "",
|
59
|
+
onKeyup: d(c, ["enter", "native"])
|
60
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
61
|
+
]),
|
62
|
+
_: 2
|
63
|
+
}, 1024),
|
64
|
+
o(a, { label: "状态" })
|
65
|
+
]),
|
66
|
+
leftMenu: t(() => [
|
67
|
+
o(s, {
|
68
|
+
onClick: b,
|
69
|
+
icon: "el-icon-plus",
|
70
|
+
type: "primary",
|
71
|
+
plain: ""
|
72
|
+
}, {
|
73
|
+
default: t(() => [
|
74
|
+
u("新增")
|
75
|
+
]),
|
76
|
+
_: 1
|
77
|
+
})
|
78
|
+
]),
|
79
|
+
status: t((e) => [
|
80
|
+
o(y, {
|
81
|
+
options: r(_),
|
82
|
+
value: e.row.status
|
83
|
+
}, null, 8, ["options", "value"])
|
84
|
+
]),
|
85
|
+
menu: t((e) => [
|
86
|
+
o(s, {
|
87
|
+
icon: "el-icon-s-promotion",
|
88
|
+
link: "",
|
89
|
+
onClick: (n) => f(e.row)
|
90
|
+
}, {
|
91
|
+
default: t(() => [
|
92
|
+
u("详情")
|
93
|
+
]),
|
94
|
+
_: 2
|
95
|
+
}, 1032, ["onClick"])
|
96
|
+
]),
|
97
|
+
_: 1
|
98
|
+
}, 8, ["tableOption"]);
|
99
|
+
};
|
100
|
+
}
|
101
|
+
};
|
102
|
+
export {
|
103
|
+
O as default
|
104
|
+
};
|
@@ -0,0 +1,160 @@
|
|
1
|
+
import { getCurrentInstance as R, ref as d, resolveComponent as p, resolveDirective as N, openBlock as U, createElementBlock as q, withDirectives as L, createVNode as l, unref as o, withCtx as i, createTextVNode as c, isRef as A, createElementVNode as y } from "vue";
|
2
|
+
import { l as P } from "./dict-Bd5ZD5ia.mjs";
|
3
|
+
import "./main-gPpx1WZq.mjs";
|
4
|
+
import "./index-_InmB_Fg.mjs";
|
5
|
+
const B = /* @__PURE__ */ y("br", null, null, -1), E = /* @__PURE__ */ y("br", null, null, -1), H = {
|
6
|
+
__name: "index",
|
7
|
+
setup(O) {
|
8
|
+
const b = R().proxy.$z, m = d(!1), f = d(""), u = d(!1), t = d({
|
9
|
+
id: "",
|
10
|
+
scoreLimit: "123",
|
11
|
+
departurePort: "",
|
12
|
+
destinationPort: ""
|
13
|
+
}), x = d({
|
14
|
+
departurePort: [{ required: !0, message: "请输入始发港", trigger: "blur" }],
|
15
|
+
destinationPort: [{ required: !0, message: "请输入目的港", trigger: "blur" }]
|
16
|
+
}), v = d(), _ = (a, e) => {
|
17
|
+
switch (t.value.id = e, a) {
|
18
|
+
case "add":
|
19
|
+
u.value = !1, f.value = "新增";
|
20
|
+
break;
|
21
|
+
case "edit":
|
22
|
+
u.value = !1, f.value = "编辑", V();
|
23
|
+
break;
|
24
|
+
case "view":
|
25
|
+
u.value = !0, f.value = "详情", V();
|
26
|
+
break;
|
27
|
+
}
|
28
|
+
m.value = !0;
|
29
|
+
}, V = () => {
|
30
|
+
w({
|
31
|
+
id: "111",
|
32
|
+
departurePort: "111",
|
33
|
+
destinationPort: "222"
|
34
|
+
});
|
35
|
+
}, w = (a) => {
|
36
|
+
const e = b.$utils._.cloneDeep(t.value);
|
37
|
+
for (const r in e)
|
38
|
+
a[r] !== void 0 && (e[r] = a[r]);
|
39
|
+
t.value = e;
|
40
|
+
}, g = () => {
|
41
|
+
v.value.resetFields();
|
42
|
+
}, C = (a) => {
|
43
|
+
v.value.validate((e) => {
|
44
|
+
if (e) {
|
45
|
+
const r = t.value.id ? P : P, s = t.value.id ? "修改成功!" : "提交成功!";
|
46
|
+
r(b.$utils._.cloneDeep(t.value)).then(() => {
|
47
|
+
a(s);
|
48
|
+
});
|
49
|
+
}
|
50
|
+
});
|
51
|
+
};
|
52
|
+
return (a, e) => {
|
53
|
+
const r = p("el-input"), s = p("z-button"), k = p("el-form-item"), $ = p("el-form"), z = p("z-dialog"), D = N("inputReg");
|
54
|
+
return U(), q("div", null, [
|
55
|
+
L(l(r, {
|
56
|
+
type: "textarea",
|
57
|
+
max: 100,
|
58
|
+
min: -100,
|
59
|
+
modelValue: o(t).scoreLimit,
|
60
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => o(t).scoreLimit = n),
|
61
|
+
"controls-position": "right"
|
62
|
+
}, null, 8, ["modelValue"]), [
|
63
|
+
[D, "test", "exec"]
|
64
|
+
]),
|
65
|
+
B,
|
66
|
+
E,
|
67
|
+
l(s, {
|
68
|
+
onClick: e[1] || (e[1] = (n) => _("add")),
|
69
|
+
type: "primary"
|
70
|
+
}, {
|
71
|
+
default: i(() => [
|
72
|
+
c("新增弹框")
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}),
|
76
|
+
l(s, {
|
77
|
+
onClick: e[2] || (e[2] = (n) => _("edit", "1111")),
|
78
|
+
type: "primary"
|
79
|
+
}, {
|
80
|
+
default: i(() => [
|
81
|
+
c("编辑弹框")
|
82
|
+
]),
|
83
|
+
_: 1
|
84
|
+
}),
|
85
|
+
l(s, {
|
86
|
+
onClick: e[3] || (e[3] = (n) => _("view", "1111")),
|
87
|
+
type: "primary"
|
88
|
+
}, {
|
89
|
+
default: i(() => [
|
90
|
+
c("查看弹框")
|
91
|
+
]),
|
92
|
+
_: 1
|
93
|
+
}),
|
94
|
+
l(z, {
|
95
|
+
modelValue: o(m),
|
96
|
+
"onUpdate:modelValue": e[6] || (e[6] = (n) => A(m) ? m.value = n : null),
|
97
|
+
title: o(f),
|
98
|
+
width: "30%",
|
99
|
+
disabled: o(u),
|
100
|
+
onCancel: g,
|
101
|
+
onOk: C
|
102
|
+
}, {
|
103
|
+
footer: i(() => [
|
104
|
+
l(s, {
|
105
|
+
type: "primary",
|
106
|
+
onClick: g
|
107
|
+
}, {
|
108
|
+
default: i(() => [
|
109
|
+
c("自定义按钮")
|
110
|
+
]),
|
111
|
+
_: 1
|
112
|
+
})
|
113
|
+
]),
|
114
|
+
default: i(() => [
|
115
|
+
l($, {
|
116
|
+
ref_key: "formRef",
|
117
|
+
ref: v,
|
118
|
+
model: o(t),
|
119
|
+
"label-width": "80px",
|
120
|
+
rules: o(x),
|
121
|
+
disabled: o(u)
|
122
|
+
}, {
|
123
|
+
default: i(() => [
|
124
|
+
l(k, {
|
125
|
+
label: "始发港",
|
126
|
+
prop: "departurePort"
|
127
|
+
}, {
|
128
|
+
default: i(() => [
|
129
|
+
l(r, {
|
130
|
+
modelValue: o(t).departurePort,
|
131
|
+
"onUpdate:modelValue": e[4] || (e[4] = (n) => o(t).departurePort = n)
|
132
|
+
}, null, 8, ["modelValue"])
|
133
|
+
]),
|
134
|
+
_: 1
|
135
|
+
}),
|
136
|
+
l(k, {
|
137
|
+
label: "目的港",
|
138
|
+
prop: "destinationPort"
|
139
|
+
}, {
|
140
|
+
default: i(() => [
|
141
|
+
l(r, {
|
142
|
+
modelValue: o(t).destinationPort,
|
143
|
+
"onUpdate:modelValue": e[5] || (e[5] = (n) => o(t).destinationPort = n)
|
144
|
+
}, null, 8, ["modelValue"])
|
145
|
+
]),
|
146
|
+
_: 1
|
147
|
+
})
|
148
|
+
]),
|
149
|
+
_: 1
|
150
|
+
}, 8, ["model", "rules", "disabled"])
|
151
|
+
]),
|
152
|
+
_: 1
|
153
|
+
}, 8, ["modelValue", "title", "disabled"])
|
154
|
+
]);
|
155
|
+
};
|
156
|
+
}
|
157
|
+
};
|
158
|
+
export {
|
159
|
+
H as default
|
160
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { resolveComponent as o, openBlock as n, createElementBlock as c, createTextVNode as e, createVNode as _, withCtx as r } from "vue";
|
2
|
+
import { _ as s } from "./index-_InmB_Fg.mjs";
|
3
|
+
const a = {}, d = { class: "home" };
|
4
|
+
function l(f, m) {
|
5
|
+
const t = o("el-button");
|
6
|
+
return n(), c("div", d, [
|
7
|
+
e(" 首页 "),
|
8
|
+
_(t, null, {
|
9
|
+
default: r(() => [
|
10
|
+
e("1213")
|
11
|
+
]),
|
12
|
+
_: 1
|
13
|
+
})
|
14
|
+
]);
|
15
|
+
}
|
16
|
+
const u = /* @__PURE__ */ s(a, [["render", l], ["__scopeId", "data-v-5541444f"]]);
|
17
|
+
export {
|
18
|
+
u as default
|
19
|
+
};
|
@@ -0,0 +1,120 @@
|
|
1
|
+
import { getCurrentInstance as D, ref as l, computed as k, 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-Bd5ZD5ia.mjs";
|
3
|
+
import "./main-gPpx1WZq.mjs";
|
4
|
+
import "./index-_InmB_Fg.mjs";
|
5
|
+
const B = /* @__PURE__ */ $("br", null, null, -1), G = {
|
6
|
+
__name: "index",
|
7
|
+
setup(P) {
|
8
|
+
const i = D().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 = k(() => 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"), x = s("z-table"), z = s("z-list");
|
44
|
+
return N(), O("div", null, [
|
45
|
+
o(x, {
|
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
|
+
type: "text"
|
77
|
+
}, {
|
78
|
+
default: t(() => [
|
79
|
+
n("详情")
|
80
|
+
]),
|
81
|
+
_: 1
|
82
|
+
})
|
83
|
+
]),
|
84
|
+
_: 1
|
85
|
+
}, 8, ["tableOption", "tableData", "pageParams", "total"]),
|
86
|
+
B,
|
87
|
+
o(z, {
|
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
|
+
};
|