@luzhaoqi/test 0.0.55 → 0.0.58
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/README.md +18 -57
- package/dist/dict-_0HrbUGB.mjs +172 -0
- package/dist/dict-vkW5oXQf.mjs +66 -0
- package/dist/dictEdit-RfQqA5M4.mjs +187 -0
- package/dist/favicon.ico +0 -0
- package/dist/index--IjOD8yQ.mjs +162 -0
- package/dist/index-Fj2kjzW4.mjs +33586 -0
- package/dist/index-LkpiywJu.mjs +55 -0
- package/dist/index-LnWdMwyP.mjs +104 -0
- package/dist/index-PcYFBHXl.mjs +246 -0
- package/dist/index-QhSU5A9W.mjs +19 -0
- package/dist/index-i2KsEpof.mjs +82 -0
- package/dist/index-xp-0jyhB.mjs +120 -0
- package/dist/layout-bHXVVeJO.mjs +11 -0
- package/dist/main-cLwCUpDd.mjs +36090 -0
- package/dist/style.css +11 -0
- package/dist/test-kxtmZdsk.mjs +74 -0
- package/dist/type-7-iv3Kj1.mjs +157 -0
- package/dist/typeEdit-BA-nOPQU.mjs +146 -0
- package/dist/z-ui3.mjs +37 -0
- package/dist/z-ui3.umd.js +225 -0
- package/package.json +52 -26
- package/.idea/modules.xml +0 -8
- package/.idea/npm-test.iml +0 -12
- package/src/index.js +0 -38
- package/src/vue-plugin.js +0 -39
- package/test/basic.test.js +0 -17
package/README.md
CHANGED
|
@@ -1,74 +1,35 @@
|
|
|
1
|
-
#
|
|
1
|
+
# vue-project
|
|
2
2
|
|
|
3
|
-
Vue
|
|
3
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Recommended IDE Setup
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
npm install @luzhaoqi/test
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 普通使用
|
|
12
|
-
|
|
13
|
-
```javascript
|
|
14
|
-
const { add, subtract } = require('@luzhaoqi/test');
|
|
15
|
-
|
|
16
|
-
console.log(add(1, 2, 3)); // 6
|
|
17
|
-
console.log(subtract(5, 3)); // 2
|
|
18
|
-
```
|
|
7
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
19
8
|
|
|
20
|
-
##
|
|
9
|
+
## Customize configuration
|
|
21
10
|
|
|
22
|
-
|
|
11
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
23
12
|
|
|
24
|
-
|
|
25
|
-
import Vue from 'vue';
|
|
26
|
-
import VueMathOps from '@luzhaoqi/test/src/vue-plugin';
|
|
13
|
+
## Project Setup
|
|
27
14
|
|
|
28
|
-
|
|
15
|
+
```sh
|
|
16
|
+
npm install
|
|
29
17
|
```
|
|
30
18
|
|
|
31
|
-
###
|
|
19
|
+
### Compile and Hot-Reload for Development
|
|
32
20
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Vue.add(1, 2, 3); // 6
|
|
36
|
-
Vue.subtract(5, 3); // 2
|
|
21
|
+
```sh
|
|
22
|
+
npm run dev
|
|
37
23
|
```
|
|
38
24
|
|
|
39
|
-
|
|
40
|
-
```javascript
|
|
41
|
-
this.$add(1, 2, 3); // 6
|
|
42
|
-
this.$subtract(5, 3); // 2
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
3. 过滤器:
|
|
46
|
-
```html
|
|
47
|
-
<div>{{ [1, 2, 3] | add }}</div>
|
|
48
|
-
<!-- 渲染为: 6 -->
|
|
25
|
+
### Compile and Minify for Production
|
|
49
26
|
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
```sh
|
|
28
|
+
npm run build
|
|
52
29
|
```
|
|
53
30
|
|
|
54
|
-
|
|
55
|
-
```html
|
|
56
|
-
<div v-add="[1, 2, 3]"></div>
|
|
57
|
-
<!-- 渲染为: 6 -->
|
|
31
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
58
32
|
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
```sh
|
|
34
|
+
npm run lint
|
|
61
35
|
```
|
|
62
|
-
|
|
63
|
-
## API 文档
|
|
64
|
-
|
|
65
|
-
### `add(...numbers)`
|
|
66
|
-
- `...numbers`: 要相加的数字(一个或多个)
|
|
67
|
-
- 返回: 所有数字的和
|
|
68
|
-
- 抛出: 如果任何参数不是数字,则抛出 TypeError
|
|
69
|
-
|
|
70
|
-
### `subtract(a, b)`
|
|
71
|
-
- `a`: 被减数
|
|
72
|
-
- `b`: 减数
|
|
73
|
-
- 返回: a - b 的结果
|
|
74
|
-
- 抛出: 如果参数不是数字,则抛出 TypeError
|
|
@@ -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-RfQqA5M4.mjs";
|
|
3
|
+
import { d as L, l as M, a as Q } from "./dict-vkW5oXQf.mjs";
|
|
4
|
+
import { u as F } from "./index-Fj2kjzW4.mjs";
|
|
5
|
+
import "./main-cLwCUpDd.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,66 @@
|
|
|
1
|
+
import { a as r } from "./main-cLwCUpDd.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,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-vkW5oXQf.mjs";
|
|
3
|
+
import "./main-cLwCUpDd.mjs";
|
|
4
|
+
import "./index-Fj2kjzW4.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
|
+
};
|
package/dist/favicon.ico
ADDED
|
Binary file
|
|
@@ -0,0 +1,162 @@
|
|
|
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-vkW5oXQf.mjs";
|
|
3
|
+
import "./main-cLwCUpDd.mjs";
|
|
4
|
+
import "./index-Fj2kjzW4.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
|
+
};
|