@aplus-frontend/ui 0.0.1-beta.20 → 0.0.1-beta.21
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/es/src/theme/antd-global-overwrite/admin/index.css +20 -1
- package/es/src/theme/antd-global-overwrite/admin/steps.css +20 -1
- package/es/src/theme/antd-global-overwrite/aplus/index.css +29 -0
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +17 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +12 -0
- package/es/src/work-order-modal/work-order-modal.vue.mjs +27 -23
- package/lib/src/theme/antd-global-overwrite/admin/index.css +20 -1
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +20 -1
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +29 -0
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +17 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +12 -0
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
- package/es/src/base-button/index.d.ts +0 -137
- package/es/src/basic/index.d.ts +0 -278
- package/es/src/button/index.d.ts +0 -51
- package/es/src/config-provider/index.d.ts +0 -691
- package/es/src/container/index.d.ts +0 -178
- package/es/src/count-down/index.d.ts +0 -150
- package/es/src/description/index.d.ts +0 -214
- package/es/src/dropdown/index.d.ts +0 -113
- package/es/src/icon/index.d.ts +0 -208
- package/es/src/icon-picker/index.d.ts +0 -190
- package/es/src/scroll-bar/index.d.ts +0 -177
- package/es/src/strength-meter/index.d.ts +0 -89
- package/es/src/transition/index.d.ts +0 -369
- package/lib/src/base-button/index.d.ts +0 -137
- package/lib/src/basic/index.d.ts +0 -278
- package/lib/src/button/index.d.ts +0 -51
- package/lib/src/config-provider/index.d.ts +0 -691
- package/lib/src/container/index.d.ts +0 -178
- package/lib/src/count-down/index.d.ts +0 -150
- package/lib/src/description/index.d.ts +0 -214
- package/lib/src/dropdown/index.d.ts +0 -113
- package/lib/src/icon/index.d.ts +0 -208
- package/lib/src/icon-picker/index.d.ts +0 -190
- package/lib/src/scroll-bar/index.d.ts +0 -177
- package/lib/src/strength-meter/index.d.ts +0 -89
- package/lib/src/transition/index.d.ts +0 -369
|
@@ -267,11 +267,16 @@
|
|
|
267
267
|
.ant-steps > * {
|
|
268
268
|
margin-right: 8px;
|
|
269
269
|
}
|
|
270
|
+
.ant-steps .ant-steps-item-container {
|
|
271
|
+
display: flex;
|
|
272
|
+
}
|
|
270
273
|
.ant-steps .ant-steps-item-icon {
|
|
271
274
|
width: 28px;
|
|
272
275
|
height: 28px;
|
|
273
276
|
margin-top: 4px;
|
|
274
|
-
|
|
277
|
+
display: flex;
|
|
278
|
+
justify-content: center;
|
|
279
|
+
align-items: center;
|
|
275
280
|
}
|
|
276
281
|
.ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
|
|
277
282
|
background-color: #ffffff;
|
|
@@ -304,6 +309,9 @@
|
|
|
304
309
|
.ant-steps .ant-steps-item-content {
|
|
305
310
|
margin-left: 4px;
|
|
306
311
|
}
|
|
312
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
313
|
+
background-color: #ff4d4f;
|
|
314
|
+
}
|
|
307
315
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
308
316
|
background-color: #34b77c;
|
|
309
317
|
}
|
|
@@ -337,6 +345,17 @@
|
|
|
337
345
|
font-size: 12px;
|
|
338
346
|
line-height: 1em;
|
|
339
347
|
}
|
|
348
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
349
|
+
margin-inline-end: 8px;
|
|
350
|
+
}
|
|
351
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
352
|
+
width: 28px;
|
|
353
|
+
height: 28px;
|
|
354
|
+
margin-top: 4px;
|
|
355
|
+
display: flex;
|
|
356
|
+
justify-content: center;
|
|
357
|
+
align-items: center;
|
|
358
|
+
}
|
|
340
359
|
.ant-table-wrapper {
|
|
341
360
|
border-radius: 0 !important;
|
|
342
361
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
.ant-steps > * {
|
|
2
2
|
margin-right: 8px;
|
|
3
3
|
}
|
|
4
|
+
.ant-steps .ant-steps-item-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
4
7
|
.ant-steps .ant-steps-item-icon {
|
|
5
8
|
width: 28px;
|
|
6
9
|
height: 28px;
|
|
7
10
|
margin-top: 4px;
|
|
8
|
-
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
9
14
|
}
|
|
10
15
|
.ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
|
|
11
16
|
background-color: #ffffff;
|
|
@@ -38,6 +43,9 @@
|
|
|
38
43
|
.ant-steps .ant-steps-item-content {
|
|
39
44
|
margin-left: 4px;
|
|
40
45
|
}
|
|
46
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
47
|
+
background-color: #ff4d4f;
|
|
48
|
+
}
|
|
41
49
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
42
50
|
background-color: #34b77c;
|
|
43
51
|
}
|
|
@@ -71,3 +79,14 @@
|
|
|
71
79
|
font-size: 12px;
|
|
72
80
|
line-height: 1em;
|
|
73
81
|
}
|
|
82
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
83
|
+
margin-inline-end: 8px;
|
|
84
|
+
}
|
|
85
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
86
|
+
width: 28px;
|
|
87
|
+
height: 28px;
|
|
88
|
+
margin-top: 4px;
|
|
89
|
+
display: flex;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
align-items: center;
|
|
92
|
+
}
|
|
@@ -274,6 +274,9 @@
|
|
|
274
274
|
.ant-steps > * {
|
|
275
275
|
margin-right: 12px;
|
|
276
276
|
}
|
|
277
|
+
.ant-steps .ant-steps-item-container {
|
|
278
|
+
display: flex;
|
|
279
|
+
}
|
|
277
280
|
.ant-steps .ant-steps-item-icon {
|
|
278
281
|
width: 28px;
|
|
279
282
|
height: 28px;
|
|
@@ -310,6 +313,9 @@
|
|
|
310
313
|
.ant-steps .ant-steps-item-content {
|
|
311
314
|
margin-left: 4px;
|
|
312
315
|
}
|
|
316
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
317
|
+
background-color: #ff4d4f;
|
|
318
|
+
}
|
|
313
319
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
|
|
314
320
|
color: #ffffff;
|
|
315
321
|
font-weight: 500;
|
|
@@ -340,3 +346,26 @@
|
|
|
340
346
|
font-size: 12px;
|
|
341
347
|
line-height: 1em;
|
|
342
348
|
}
|
|
349
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
350
|
+
margin-inline-end: 8px;
|
|
351
|
+
}
|
|
352
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
353
|
+
width: 28px;
|
|
354
|
+
height: 28px;
|
|
355
|
+
margin-top: 4px;
|
|
356
|
+
display: flex;
|
|
357
|
+
justify-content: center;
|
|
358
|
+
align-items: center;
|
|
359
|
+
}
|
|
360
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
|
|
361
|
+
padding: 16px;
|
|
362
|
+
}
|
|
363
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
364
|
+
padding: 16px !important;
|
|
365
|
+
}
|
|
366
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
|
|
367
|
+
padding: 11px 16px !important;
|
|
368
|
+
}
|
|
369
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
370
|
+
padding: 8px 16px !important;
|
|
371
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
.ant-steps > * {
|
|
2
2
|
margin-right: 12px;
|
|
3
3
|
}
|
|
4
|
+
.ant-steps .ant-steps-item-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
4
7
|
.ant-steps .ant-steps-item-icon {
|
|
5
8
|
width: 28px;
|
|
6
9
|
height: 28px;
|
|
@@ -37,6 +40,9 @@
|
|
|
37
40
|
.ant-steps .ant-steps-item-content {
|
|
38
41
|
margin-left: 4px;
|
|
39
42
|
}
|
|
43
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
44
|
+
background-color: #ff4d4f;
|
|
45
|
+
}
|
|
40
46
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
|
|
41
47
|
color: #ffffff;
|
|
42
48
|
font-weight: 500;
|
|
@@ -67,3 +73,14 @@
|
|
|
67
73
|
font-size: 12px;
|
|
68
74
|
line-height: 1em;
|
|
69
75
|
}
|
|
76
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
77
|
+
margin-inline-end: 8px;
|
|
78
|
+
}
|
|
79
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
80
|
+
width: 28px;
|
|
81
|
+
height: 28px;
|
|
82
|
+
margin-top: 4px;
|
|
83
|
+
display: flex;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
align-items: center;
|
|
86
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
|
|
2
|
+
padding: 16px;
|
|
3
|
+
}
|
|
4
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
5
|
+
padding: 16px !important;
|
|
6
|
+
}
|
|
7
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
|
|
8
|
+
padding: 11px 16px !important;
|
|
9
|
+
}
|
|
10
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
11
|
+
padding: 8px 16px !important;
|
|
12
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as B, ref as
|
|
2
|
-
import { message as O, Modal as A, Input as
|
|
1
|
+
import { defineComponent as B, ref as m, openBlock as F, createElementBlock as h, createVNode as t, unref as e, mergeProps as T, withCtx as n, h as w } from "vue";
|
|
2
|
+
import { message as O, Modal as A, Input as N, Textarea as q } from "ant-design-vue";
|
|
3
3
|
import { ApForm as r } from "../ap-form/index.mjs";
|
|
4
4
|
import "./help-message.vue.mjs";
|
|
5
5
|
import "../ap-upload/index.mjs";
|
|
6
6
|
import { DictCode as g } from "./interfaces.mjs";
|
|
7
7
|
import "../config-provider/index.mjs";
|
|
8
8
|
import "./style/index.css";
|
|
9
|
-
import { useGlobalConfig as
|
|
10
|
-
import { useLocale as
|
|
11
|
-
import
|
|
9
|
+
import { useGlobalConfig as I } from "../config-provider/hooks/use-global-config.mjs";
|
|
10
|
+
import { useLocale as P } from "../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import L from "../ap-form/items/select/index.vue.mjs";
|
|
12
12
|
import R from "../ap-form/items/radio/index.vue.mjs";
|
|
13
13
|
import S from "../ap-upload/apUpload.vue.mjs";
|
|
14
14
|
import $ from "./help-message.vue2.mjs";
|
|
@@ -57,20 +57,20 @@ const Y = /* @__PURE__ */ B({
|
|
|
57
57
|
mousePosition: {}
|
|
58
58
|
},
|
|
59
59
|
emits: ["modalClose"],
|
|
60
|
-
setup(k, { emit:
|
|
61
|
-
const
|
|
60
|
+
setup(k, { emit: v }) {
|
|
61
|
+
const c = m(), l = m(!1), p = m(!0), i = k, x = I("api"), { lang: C } = P(), _ = v, u = async (a) => {
|
|
62
62
|
var s, d;
|
|
63
|
-
const o = await ((d = (s =
|
|
64
|
-
dictCode:
|
|
65
|
-
locale:
|
|
63
|
+
const o = await ((d = (s = x.value) == null ? void 0 : s.select) == null ? void 0 : d.call(s, {
|
|
64
|
+
dictCode: a,
|
|
65
|
+
locale: C.value
|
|
66
66
|
}));
|
|
67
67
|
return o == null ? void 0 : o.map((y) => ({ label: y.itemText, value: y.itemValue }));
|
|
68
68
|
}, b = async () => {
|
|
69
|
-
var
|
|
69
|
+
var a;
|
|
70
70
|
if (!l.value)
|
|
71
71
|
try {
|
|
72
72
|
l.value = !0;
|
|
73
|
-
const o = await ((
|
|
73
|
+
const o = await ((a = c.value) == null ? void 0 : a.validateFields());
|
|
74
74
|
console.log("params", o), await i.api(o), l.value = !1, O.success("操作成功"), f();
|
|
75
75
|
} catch {
|
|
76
76
|
l.value = !1;
|
|
@@ -79,8 +79,8 @@ const Y = /* @__PURE__ */ B({
|
|
|
79
79
|
}, f = () => {
|
|
80
80
|
p.value = !1, _("modalClose");
|
|
81
81
|
};
|
|
82
|
-
return (
|
|
83
|
-
t(e(A),
|
|
82
|
+
return (a, o) => (F(), h("div", null, [
|
|
83
|
+
t(e(A), T(i, {
|
|
84
84
|
open: p.value,
|
|
85
85
|
title: "创建工单",
|
|
86
86
|
"ok-text": "确认",
|
|
@@ -88,26 +88,26 @@ const Y = /* @__PURE__ */ B({
|
|
|
88
88
|
onOk: b,
|
|
89
89
|
onCancel: f
|
|
90
90
|
}), {
|
|
91
|
-
default:
|
|
91
|
+
default: n(() => [
|
|
92
92
|
t(e(r), {
|
|
93
93
|
ref_key: "formRef",
|
|
94
|
-
ref:
|
|
94
|
+
ref: c
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
96
|
+
default: n(() => [
|
|
97
97
|
t(e(r).FormItem, {
|
|
98
98
|
label: "工单标题",
|
|
99
99
|
name: "ticketsTitle",
|
|
100
100
|
rules: [{ required: !0, message: "不可为空" }]
|
|
101
101
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
t(e(
|
|
102
|
+
default: n(() => [
|
|
103
|
+
t(e(N), {
|
|
104
104
|
maxlength: 50,
|
|
105
105
|
"show-count": !0
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}),
|
|
110
|
-
t(e(
|
|
110
|
+
t(e(L), {
|
|
111
111
|
label: "工单类型",
|
|
112
112
|
name: "ticketsType",
|
|
113
113
|
rules: [{ required: !0, message: "不可为空" }],
|
|
@@ -120,8 +120,8 @@ const Y = /* @__PURE__ */ B({
|
|
|
120
120
|
name: "ticketsContent",
|
|
121
121
|
rules: [{ required: !0, message: "不可为空" }]
|
|
122
122
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
t(e(
|
|
123
|
+
default: n(() => [
|
|
124
|
+
t(e(q), {
|
|
125
125
|
maxlength: 300,
|
|
126
126
|
"show-count": !0
|
|
127
127
|
})
|
|
@@ -137,11 +137,15 @@ const Y = /* @__PURE__ */ B({
|
|
|
137
137
|
}
|
|
138
138
|
}, null, 8, ["field"]),
|
|
139
139
|
t(e(r).FormItem, { name: "files" }, {
|
|
140
|
-
default:
|
|
140
|
+
default: n(() => [
|
|
141
141
|
t(e(S), {
|
|
142
142
|
dirName: "WorkOrder",
|
|
143
143
|
getOssAccess: i.getOssAccess,
|
|
144
144
|
type: "multipleFile",
|
|
145
|
+
needName: {
|
|
146
|
+
pathKey: "filePath",
|
|
147
|
+
nameKey: "fileName"
|
|
148
|
+
},
|
|
145
149
|
accept: ".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",
|
|
146
150
|
maxCount: 10,
|
|
147
151
|
maxSize: 50,
|
|
@@ -267,11 +267,16 @@
|
|
|
267
267
|
.ant-steps > * {
|
|
268
268
|
margin-right: 8px;
|
|
269
269
|
}
|
|
270
|
+
.ant-steps .ant-steps-item-container {
|
|
271
|
+
display: flex;
|
|
272
|
+
}
|
|
270
273
|
.ant-steps .ant-steps-item-icon {
|
|
271
274
|
width: 28px;
|
|
272
275
|
height: 28px;
|
|
273
276
|
margin-top: 4px;
|
|
274
|
-
|
|
277
|
+
display: flex;
|
|
278
|
+
justify-content: center;
|
|
279
|
+
align-items: center;
|
|
275
280
|
}
|
|
276
281
|
.ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
|
|
277
282
|
background-color: #ffffff;
|
|
@@ -304,6 +309,9 @@
|
|
|
304
309
|
.ant-steps .ant-steps-item-content {
|
|
305
310
|
margin-left: 4px;
|
|
306
311
|
}
|
|
312
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
313
|
+
background-color: #ff4d4f;
|
|
314
|
+
}
|
|
307
315
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
308
316
|
background-color: #34b77c;
|
|
309
317
|
}
|
|
@@ -337,6 +345,17 @@
|
|
|
337
345
|
font-size: 12px;
|
|
338
346
|
line-height: 1em;
|
|
339
347
|
}
|
|
348
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
349
|
+
margin-inline-end: 8px;
|
|
350
|
+
}
|
|
351
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
352
|
+
width: 28px;
|
|
353
|
+
height: 28px;
|
|
354
|
+
margin-top: 4px;
|
|
355
|
+
display: flex;
|
|
356
|
+
justify-content: center;
|
|
357
|
+
align-items: center;
|
|
358
|
+
}
|
|
340
359
|
.ant-table-wrapper {
|
|
341
360
|
border-radius: 0 !important;
|
|
342
361
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
.ant-steps > * {
|
|
2
2
|
margin-right: 8px;
|
|
3
3
|
}
|
|
4
|
+
.ant-steps .ant-steps-item-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
4
7
|
.ant-steps .ant-steps-item-icon {
|
|
5
8
|
width: 28px;
|
|
6
9
|
height: 28px;
|
|
7
10
|
margin-top: 4px;
|
|
8
|
-
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
9
14
|
}
|
|
10
15
|
.ant-steps .ant-steps-item-finish .ant-steps-item-container .ant-steps-item-icon {
|
|
11
16
|
background-color: #ffffff;
|
|
@@ -38,6 +43,9 @@
|
|
|
38
43
|
.ant-steps .ant-steps-item-content {
|
|
39
44
|
margin-left: 4px;
|
|
40
45
|
}
|
|
46
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
47
|
+
background-color: #ff4d4f;
|
|
48
|
+
}
|
|
41
49
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
42
50
|
background-color: #34b77c;
|
|
43
51
|
}
|
|
@@ -71,3 +79,14 @@
|
|
|
71
79
|
font-size: 12px;
|
|
72
80
|
line-height: 1em;
|
|
73
81
|
}
|
|
82
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
83
|
+
margin-inline-end: 8px;
|
|
84
|
+
}
|
|
85
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
86
|
+
width: 28px;
|
|
87
|
+
height: 28px;
|
|
88
|
+
margin-top: 4px;
|
|
89
|
+
display: flex;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
align-items: center;
|
|
92
|
+
}
|
|
@@ -274,6 +274,9 @@
|
|
|
274
274
|
.ant-steps > * {
|
|
275
275
|
margin-right: 12px;
|
|
276
276
|
}
|
|
277
|
+
.ant-steps .ant-steps-item-container {
|
|
278
|
+
display: flex;
|
|
279
|
+
}
|
|
277
280
|
.ant-steps .ant-steps-item-icon {
|
|
278
281
|
width: 28px;
|
|
279
282
|
height: 28px;
|
|
@@ -310,6 +313,9 @@
|
|
|
310
313
|
.ant-steps .ant-steps-item-content {
|
|
311
314
|
margin-left: 4px;
|
|
312
315
|
}
|
|
316
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
317
|
+
background-color: #ff4d4f;
|
|
318
|
+
}
|
|
313
319
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
|
|
314
320
|
color: #ffffff;
|
|
315
321
|
font-weight: 500;
|
|
@@ -340,3 +346,26 @@
|
|
|
340
346
|
font-size: 12px;
|
|
341
347
|
line-height: 1em;
|
|
342
348
|
}
|
|
349
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
350
|
+
margin-inline-end: 8px;
|
|
351
|
+
}
|
|
352
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
353
|
+
width: 28px;
|
|
354
|
+
height: 28px;
|
|
355
|
+
margin-top: 4px;
|
|
356
|
+
display: flex;
|
|
357
|
+
justify-content: center;
|
|
358
|
+
align-items: center;
|
|
359
|
+
}
|
|
360
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
|
|
361
|
+
padding: 16px;
|
|
362
|
+
}
|
|
363
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
364
|
+
padding: 16px !important;
|
|
365
|
+
}
|
|
366
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
|
|
367
|
+
padding: 11px 16px !important;
|
|
368
|
+
}
|
|
369
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
370
|
+
padding: 8px 16px !important;
|
|
371
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
.ant-steps > * {
|
|
2
2
|
margin-right: 12px;
|
|
3
3
|
}
|
|
4
|
+
.ant-steps .ant-steps-item-container {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
4
7
|
.ant-steps .ant-steps-item-icon {
|
|
5
8
|
width: 28px;
|
|
6
9
|
height: 28px;
|
|
@@ -37,6 +40,9 @@
|
|
|
37
40
|
.ant-steps .ant-steps-item-content {
|
|
38
41
|
margin-left: 4px;
|
|
39
42
|
}
|
|
43
|
+
.ant-steps .ant-steps-item-error.ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon {
|
|
44
|
+
background-color: #ff4d4f;
|
|
45
|
+
}
|
|
40
46
|
.ant-steps .ant-steps-item-active .ant-steps-item-container .ant-steps-item-icon .ant-steps-icon {
|
|
41
47
|
color: #ffffff;
|
|
42
48
|
font-weight: 500;
|
|
@@ -67,3 +73,14 @@
|
|
|
67
73
|
font-size: 12px;
|
|
68
74
|
line-height: 1em;
|
|
69
75
|
}
|
|
76
|
+
.ant-steps.ant-steps-vertical .ant-steps-item .ant-steps-item-icon {
|
|
77
|
+
margin-inline-end: 8px;
|
|
78
|
+
}
|
|
79
|
+
.ant-steps.ant-steps-vertical .ant-steps-item-icon {
|
|
80
|
+
width: 28px;
|
|
81
|
+
height: 28px;
|
|
82
|
+
margin-top: 4px;
|
|
83
|
+
display: flex;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
align-items: center;
|
|
86
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-thead tr > th {
|
|
2
|
+
padding: 16px;
|
|
3
|
+
}
|
|
4
|
+
.ant-table-wrapper .ant-table .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
5
|
+
padding: 16px !important;
|
|
6
|
+
}
|
|
7
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-thead tr > th {
|
|
8
|
+
padding: 11px 16px !important;
|
|
9
|
+
}
|
|
10
|
+
.ant-table-wrapper .ant-table-small .ant-table-container .ant-table-tbody tr > .ant-table-cell {
|
|
11
|
+
padding: 8px 16px !important;
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("ant-design-vue"),l=require("../ap-form/index.js");require("./help-message.vue.js");require("../ap-upload/index.js");const f=require("./interfaces.js");require("../config-provider/index.js");require("./style/index.css");const k=require("../config-provider/hooks/use-global-config.js"),q=require("../config-provider/hooks/use-locale.js"),b=require("../ap-form/items/select/index.vue.js"),h=require("../ap-form/items/radio/index.vue.js"),F=require("../ap-upload/apUpload.vue.js"),B=require("./help-message.vue2.js"),N=e.defineComponent({__name:"work-order-modal",props:{api:{type:Function},getOssAccess:{type:Function},prefixCls:{},visible:{type:Boolean},open:{type:Boolean},confirmLoading:{type:Boolean},title:{},closable:{type:Boolean},closeIcon:{},onOk:{type:Function},onCancel:{type:Function},"onUpdate:visible":{type:Function},"onUpdate:open":{type:Function},onChange:{type:Function},afterClose:{type:Function},centered:{type:Boolean},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean},forceRender:{type:Boolean},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function]},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean},keyboard:{type:Boolean},wrapProps:{},focusTriggerAfterClose:{type:Boolean},modalRender:{type:Function},mousePosition:{}},emits:["modalClose"],setup(_,{emit:y}){const u=e.ref(),n=e.ref(!1),i=e.ref(!0),s=_,g=k.useGlobalConfig("api"),{lang:v}=q.useLocale(),x=y,c=async o=>{var a,d;const t=await((d=(a=g.value)==null?void 0:a.select)==null?void 0:d.call(a,{dictCode:o,locale:v.value}));return t==null?void 0:t.map(m=>({label:m.itemText,value:m.itemValue}))},C=async()=>{var o;if(!n.value)try{n.value=!0;const t=await((o=u.value)==null?void 0:o.validateFields());console.log("params",t),await s.api(t),n.value=!1,r.message.success("操作成功"),p()}catch{n.value=!1;return}},p=()=>{i.value=!1,x("modalClose")};return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(r.Modal),e.mergeProps(s,{open:i.value,title:"创建工单","ok-text":"确认","cancel-text":"取消",onOk:C,onCancel:p}),{default:e.withCtx(()=>[e.createVNode(e.unref(l.ApForm),{ref_key:"formRef",ref:u},{default:e.withCtx(()=>[e.createVNode(e.unref(l.ApForm).FormItem,{label:"工单标题",name:"ticketsTitle",rules:[{required:!0,message:"不可为空"}]},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Input),{maxlength:50,"show-count":!0})]),_:1}),e.createVNode(e.unref(b.default),{label:"工单类型",name:"ticketsType",rules:[{required:!0,message:"不可为空"}],field:{request:()=>c(e.unref(f.DictCode).TicketsType)}},null,8,["field"]),e.createVNode(e.unref(l.ApForm).FormItem,{label:"工单详情",name:"ticketsContent",rules:[{required:!0,message:"不可为空"}]},{default:e.withCtx(()=>[e.createVNode(e.unref(r.Textarea),{maxlength:300,"show-count":!0})]),_:1}),e.createVNode(e.unref(h.default),{label:"优先级",name:"ticketsLevel",rules:[{required:!0,message:"不可为空"}],field:{request:()=>c(e.unref(f.DictCode).TicketsLevel)}},null,8,["field"]),e.createVNode(e.unref(l.ApForm).FormItem,{name:"files"},{default:e.withCtx(()=>[e.createVNode(e.unref(F.default),{dirName:"WorkOrder",getOssAccess:s.getOssAccess,type:"multipleFile",needName:{pathKey:"filePath",nameKey:"fileName"},accept:".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",maxCount:10,maxSize:50,subTitle:e.h(B.default)},null,8,["getOssAccess","subTitle"])]),_:1})]),_:1},512)]),_:1},16,["open"])]))}});exports.default=N;
|
package/package.json
CHANGED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { default as ModalButton } from './modal-button.vue';
|
|
2
|
-
import { default as PopConfirmButton } from './pop-confirm-button.vue';
|
|
3
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '@vue/runtime-core';
|
|
4
|
-
export * from './interface';
|
|
5
|
-
export { ModalButton, PopConfirmButton };
|
|
6
|
-
export declare const BaseButton: {
|
|
7
|
-
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
8
|
-
text: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
};
|
|
11
|
-
color: {
|
|
12
|
-
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
13
|
-
};
|
|
14
|
-
disabled: {
|
|
15
|
-
type: PropType<boolean>;
|
|
16
|
-
};
|
|
17
|
-
onClick: {
|
|
18
|
-
type: PropType<() => void>;
|
|
19
|
-
};
|
|
20
|
-
loading: {
|
|
21
|
-
type: PropType<boolean>;
|
|
22
|
-
};
|
|
23
|
-
preIcon: {
|
|
24
|
-
type: PropType<string>;
|
|
25
|
-
};
|
|
26
|
-
postIcon: {
|
|
27
|
-
type: PropType<string>;
|
|
28
|
-
};
|
|
29
|
-
iconSize: {
|
|
30
|
-
type: PropType<number>;
|
|
31
|
-
default: number;
|
|
32
|
-
};
|
|
33
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
34
|
-
text: {
|
|
35
|
-
type: PropType<string>;
|
|
36
|
-
};
|
|
37
|
-
color: {
|
|
38
|
-
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
39
|
-
};
|
|
40
|
-
disabled: {
|
|
41
|
-
type: PropType<boolean>;
|
|
42
|
-
};
|
|
43
|
-
onClick: {
|
|
44
|
-
type: PropType<() => void>;
|
|
45
|
-
};
|
|
46
|
-
loading: {
|
|
47
|
-
type: PropType<boolean>;
|
|
48
|
-
};
|
|
49
|
-
preIcon: {
|
|
50
|
-
type: PropType<string>;
|
|
51
|
-
};
|
|
52
|
-
postIcon: {
|
|
53
|
-
type: PropType<string>;
|
|
54
|
-
};
|
|
55
|
-
iconSize: {
|
|
56
|
-
type: PropType<number>;
|
|
57
|
-
default: number;
|
|
58
|
-
};
|
|
59
|
-
}>>, {
|
|
60
|
-
iconSize: number;
|
|
61
|
-
}, true, {}, {}, {
|
|
62
|
-
P: {};
|
|
63
|
-
B: {};
|
|
64
|
-
D: {};
|
|
65
|
-
C: {};
|
|
66
|
-
M: {};
|
|
67
|
-
Defaults: {};
|
|
68
|
-
}, Readonly< ExtractPropTypes<{
|
|
69
|
-
text: {
|
|
70
|
-
type: PropType<string>;
|
|
71
|
-
};
|
|
72
|
-
color: {
|
|
73
|
-
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
74
|
-
};
|
|
75
|
-
disabled: {
|
|
76
|
-
type: PropType<boolean>;
|
|
77
|
-
};
|
|
78
|
-
onClick: {
|
|
79
|
-
type: PropType<() => void>;
|
|
80
|
-
};
|
|
81
|
-
loading: {
|
|
82
|
-
type: PropType<boolean>;
|
|
83
|
-
};
|
|
84
|
-
preIcon: {
|
|
85
|
-
type: PropType<string>;
|
|
86
|
-
};
|
|
87
|
-
postIcon: {
|
|
88
|
-
type: PropType<string>;
|
|
89
|
-
};
|
|
90
|
-
iconSize: {
|
|
91
|
-
type: PropType<number>;
|
|
92
|
-
default: number;
|
|
93
|
-
};
|
|
94
|
-
}>>, {}, {}, {}, {}, {
|
|
95
|
-
iconSize: number;
|
|
96
|
-
}>;
|
|
97
|
-
__isFragment?: undefined;
|
|
98
|
-
__isTeleport?: undefined;
|
|
99
|
-
__isSuspense?: undefined;
|
|
100
|
-
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
101
|
-
text: {
|
|
102
|
-
type: PropType<string>;
|
|
103
|
-
};
|
|
104
|
-
color: {
|
|
105
|
-
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
106
|
-
};
|
|
107
|
-
disabled: {
|
|
108
|
-
type: PropType<boolean>;
|
|
109
|
-
};
|
|
110
|
-
onClick: {
|
|
111
|
-
type: PropType<() => void>;
|
|
112
|
-
};
|
|
113
|
-
loading: {
|
|
114
|
-
type: PropType<boolean>;
|
|
115
|
-
};
|
|
116
|
-
preIcon: {
|
|
117
|
-
type: PropType<string>;
|
|
118
|
-
};
|
|
119
|
-
postIcon: {
|
|
120
|
-
type: PropType<string>;
|
|
121
|
-
};
|
|
122
|
-
iconSize: {
|
|
123
|
-
type: PropType<number>;
|
|
124
|
-
default: number;
|
|
125
|
-
};
|
|
126
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
127
|
-
iconSize: number;
|
|
128
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
129
|
-
$slots: {
|
|
130
|
-
icon?(_: {}): any;
|
|
131
|
-
default?(_: any): any;
|
|
132
|
-
};
|
|
133
|
-
}) & Plugin<any[]> & (new (...args: any[]) => {
|
|
134
|
-
$props: {
|
|
135
|
-
onClick?: (() => void) | undefined;
|
|
136
|
-
};
|
|
137
|
-
});
|