@luzhaoqi/test 0.0.52 → 0.0.54
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/.idea/modules.xml +8 -0
- package/.idea/npm-test.iml +12 -0
- package/README.md +23 -24
- package/index.js +23 -0
- package/package.json +14 -51
- package/test.js +13 -0
- package/dist/dict-DsA0NW4N.mjs +0 -66
- package/dist/dict-aiZOAPw6.mjs +0 -172
- package/dist/dictEdit-PxIqjHPx.mjs +0 -187
- package/dist/favicon.ico +0 -0
- package/dist/index-L-oWjfYx.mjs +0 -19
- package/dist/index-LkpiywJu.mjs +0 -55
- package/dist/index-PbMBEwtj.mjs +0 -162
- package/dist/index-VFWpzLjm.mjs +0 -120
- package/dist/index-fTfCWWWT.mjs +0 -246
- package/dist/index-jG3xGL8q.mjs +0 -33586
- package/dist/index-luK1z0Wp.mjs +0 -6853
- package/dist/index-uB3FyLsC.mjs +0 -82
- package/dist/index-uM09M4BC.mjs +0 -104
- package/dist/layout-KbArRK0t.mjs +0 -11
- package/dist/main-pn1pY5YC.mjs +0 -36092
- package/dist/style.css +0 -11
- package/dist/test-kxtmZdsk.mjs +0 -74
- package/dist/type-bEKVlVJS.mjs +0 -157
- package/dist/typeEdit-y6wwdtll.mjs +0 -146
- package/dist/z-ui3.mjs +0 -37
- package/dist/z-ui3.umd.js +0 -233
package/dist/index-PbMBEwtj.mjs
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as B, ref as s, resolveComponent as p, resolveDirective as P, openBlock as y, createElementBlock as L, withDirectives as x, createVNode as r, unref as o, withCtx as i, createTextVNode as f, createBlock as A, isRef as E, createElementVNode as C } from "vue";
|
|
2
|
-
import { l as w } from "./dict-DsA0NW4N.mjs";
|
|
3
|
-
import "./main-pn1pY5YC.mjs";
|
|
4
|
-
import "./index-jG3xGL8q.mjs";
|
|
5
|
-
const O = /* @__PURE__ */ C("br", null, null, -1), j = /* @__PURE__ */ C("br", null, null, -1), K = {
|
|
6
|
-
__name: "index",
|
|
7
|
-
setup(F) {
|
|
8
|
-
const b = B().proxy.$z, m = s(!1), c = s(""), u = s(!1), t = s({
|
|
9
|
-
id: "",
|
|
10
|
-
scoreLimit: "123",
|
|
11
|
-
departurePort: "",
|
|
12
|
-
destinationPort: ""
|
|
13
|
-
}), $ = s({
|
|
14
|
-
departurePort: [{ required: !0, message: "请输入始发港", trigger: "blur" }],
|
|
15
|
-
destinationPort: [{ required: !0, message: "请输入目的港", trigger: "blur" }]
|
|
16
|
-
}), v = s(), _ = (a, e) => {
|
|
17
|
-
switch (t.value.id = e, a) {
|
|
18
|
-
case "add":
|
|
19
|
-
u.value = !1, c.value = "新增";
|
|
20
|
-
break;
|
|
21
|
-
case "edit":
|
|
22
|
-
u.value = !1, c.value = "编辑", g();
|
|
23
|
-
break;
|
|
24
|
-
case "view":
|
|
25
|
-
u.value = !0, c.value = "详情", g();
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
m.value = !0;
|
|
29
|
-
}, g = () => {
|
|
30
|
-
z({
|
|
31
|
-
id: "111",
|
|
32
|
-
departurePort: "111",
|
|
33
|
-
destinationPort: "222"
|
|
34
|
-
});
|
|
35
|
-
}, z = (a) => {
|
|
36
|
-
const e = b.$utils._.cloneDeep(t.value);
|
|
37
|
-
for (const n in e)
|
|
38
|
-
a[n] !== void 0 && (e[n] = a[n]);
|
|
39
|
-
t.value = e;
|
|
40
|
-
}, V = () => {
|
|
41
|
-
v.value.resetFields();
|
|
42
|
-
}, D = (a) => {
|
|
43
|
-
v.value.validate((e) => {
|
|
44
|
-
if (e) {
|
|
45
|
-
const n = t.value.id ? w : w, d = t.value.id ? "修改成功!" : "提交成功!";
|
|
46
|
-
n(b.$utils._.cloneDeep(t.value)).then(() => {
|
|
47
|
-
a(d);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
return (a, e) => {
|
|
53
|
-
const n = p("el-input"), d = p("z-button"), k = p("el-form-item"), R = p("el-form"), N = p("z-dialog"), U = P("inputReg"), q = P("dialog-drag");
|
|
54
|
-
return y(), L("div", null, [
|
|
55
|
-
x(r(n, {
|
|
56
|
-
type: "textarea",
|
|
57
|
-
max: 100,
|
|
58
|
-
min: -100,
|
|
59
|
-
modelValue: o(t).scoreLimit,
|
|
60
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => o(t).scoreLimit = l),
|
|
61
|
-
"controls-position": "right"
|
|
62
|
-
}, null, 8, ["modelValue"]), [
|
|
63
|
-
[U, "test", "exec"]
|
|
64
|
-
]),
|
|
65
|
-
O,
|
|
66
|
-
j,
|
|
67
|
-
r(d, {
|
|
68
|
-
onClick: e[1] || (e[1] = (l) => _("add")),
|
|
69
|
-
type: "primary"
|
|
70
|
-
}, {
|
|
71
|
-
default: i(() => [
|
|
72
|
-
f("新增弹框")
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
}),
|
|
76
|
-
r(d, {
|
|
77
|
-
onClick: e[2] || (e[2] = (l) => _("edit", "1111")),
|
|
78
|
-
type: "primary"
|
|
79
|
-
}, {
|
|
80
|
-
default: i(() => [
|
|
81
|
-
f("编辑弹框")
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}),
|
|
85
|
-
r(d, {
|
|
86
|
-
onClick: e[3] || (e[3] = (l) => _("view", "1111")),
|
|
87
|
-
type: "primary"
|
|
88
|
-
}, {
|
|
89
|
-
default: i(() => [
|
|
90
|
-
f("查看弹框")
|
|
91
|
-
]),
|
|
92
|
-
_: 1
|
|
93
|
-
}),
|
|
94
|
-
x((y(), A(N, {
|
|
95
|
-
modelValue: o(m),
|
|
96
|
-
"onUpdate:modelValue": e[6] || (e[6] = (l) => E(m) ? m.value = l : null),
|
|
97
|
-
title: o(c),
|
|
98
|
-
width: "30%",
|
|
99
|
-
disabled: o(u),
|
|
100
|
-
onCancel: V,
|
|
101
|
-
onOk: D
|
|
102
|
-
}, {
|
|
103
|
-
footer: i(() => [
|
|
104
|
-
r(d, {
|
|
105
|
-
type: "primary",
|
|
106
|
-
onClick: V
|
|
107
|
-
}, {
|
|
108
|
-
default: i(() => [
|
|
109
|
-
f("自定义按钮")
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
})
|
|
113
|
-
]),
|
|
114
|
-
default: i(() => [
|
|
115
|
-
r(R, {
|
|
116
|
-
ref_key: "formRef",
|
|
117
|
-
ref: v,
|
|
118
|
-
model: o(t),
|
|
119
|
-
"label-width": "80px",
|
|
120
|
-
rules: o($),
|
|
121
|
-
disabled: o(u)
|
|
122
|
-
}, {
|
|
123
|
-
default: i(() => [
|
|
124
|
-
r(k, {
|
|
125
|
-
label: "始发港",
|
|
126
|
-
prop: "departurePort"
|
|
127
|
-
}, {
|
|
128
|
-
default: i(() => [
|
|
129
|
-
r(n, {
|
|
130
|
-
modelValue: o(t).departurePort,
|
|
131
|
-
"onUpdate:modelValue": e[4] || (e[4] = (l) => o(t).departurePort = l)
|
|
132
|
-
}, null, 8, ["modelValue"])
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}),
|
|
136
|
-
r(k, {
|
|
137
|
-
label: "目的港",
|
|
138
|
-
prop: "destinationPort"
|
|
139
|
-
}, {
|
|
140
|
-
default: i(() => [
|
|
141
|
-
r(n, {
|
|
142
|
-
modelValue: o(t).destinationPort,
|
|
143
|
-
"onUpdate:modelValue": e[5] || (e[5] = (l) => o(t).destinationPort = l)
|
|
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
|
-
[q]
|
|
155
|
-
])
|
|
156
|
-
]);
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
export {
|
|
161
|
-
K as default
|
|
162
|
-
};
|
package/dist/index-VFWpzLjm.mjs
DELETED
|
@@ -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-DsA0NW4N.mjs";
|
|
3
|
-
import "./main-pn1pY5YC.mjs";
|
|
4
|
-
import "./index-jG3xGL8q.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
|
-
};
|