@aplus-frontend/ui 0.0.1-beta.20 → 0.0.1-beta.22
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/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +3 -3
- package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs +12 -12
- package/es/src/ap-layout/interface.d.ts +1 -1
- 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 +29 -24
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +3 -3
- package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.js +1 -1
- package/lib/src/ap-layout/interface.d.ts +1 -1
- 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
|
@@ -3,13 +3,13 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
|
|
|
3
3
|
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<APInfoLayoutProps>, {
|
|
5
5
|
toEl: string;
|
|
6
|
-
|
|
6
|
+
telDisabled: boolean;
|
|
7
7
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<APInfoLayoutProps>, {
|
|
8
8
|
toEl: string;
|
|
9
|
-
|
|
9
|
+
telDisabled: boolean;
|
|
10
10
|
}>>>, {
|
|
11
|
-
disabled: boolean;
|
|
12
11
|
toEl: string | HTMLElement;
|
|
12
|
+
telDisabled: boolean;
|
|
13
13
|
}, {}>, {
|
|
14
14
|
title?(_: {}): any;
|
|
15
15
|
actions?(_: {}): any;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as C, computed as e, openBlock as l, createElementBlock as b, normalizeClass as t, createBlock as g, Teleport as h, createElementVNode as o, renderSlot as
|
|
1
|
+
import { defineComponent as C, computed as e, openBlock as l, createElementBlock as b, normalizeClass as t, createBlock as g, Teleport as h, createElementVNode as o, renderSlot as s, createVNode as y, unref as $ } from "vue";
|
|
2
2
|
import { Divider as B } from "ant-design-vue";
|
|
3
3
|
import "../style/ap-info-layout.css";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useNamespace as
|
|
5
|
+
import { useNamespace as D } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
6
|
const _ = /* @__PURE__ */ C({
|
|
7
7
|
name: "ApInfoLayout",
|
|
8
8
|
__name: "ap-info-layout",
|
|
9
9
|
props: {
|
|
10
10
|
toEl: { default: "#microapp-fixed-header" },
|
|
11
|
-
|
|
11
|
+
telDisabled: { type: Boolean, default: !1 }
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
const { b: n, be:
|
|
15
|
-
return (a,
|
|
16
|
-
class: t(
|
|
13
|
+
setup(E) {
|
|
14
|
+
const { b: n, be: i, bem: r } = D("info-layout"), d = e(() => [n("container")]), c = e(() => [n("header")]), u = e(() => [n("divider")]), p = e(() => [n("contant")]), m = e(() => [i("header", "contant")]), v = e(() => [r("header", "contant", "title")]), f = e(() => [r("header", "contant", "actions")]);
|
|
15
|
+
return (a, H) => (l(), b("div", {
|
|
16
|
+
class: t(d.value)
|
|
17
17
|
}, [
|
|
18
18
|
(l(), g(h, {
|
|
19
19
|
to: a.toEl,
|
|
20
|
-
disabled: a.
|
|
20
|
+
disabled: a.telDisabled
|
|
21
21
|
}, [
|
|
22
22
|
o("div", {
|
|
23
23
|
class: t(`${c.value}`)
|
|
@@ -28,12 +28,12 @@ const _ = /* @__PURE__ */ C({
|
|
|
28
28
|
o("div", {
|
|
29
29
|
class: t(v.value)
|
|
30
30
|
}, [
|
|
31
|
-
|
|
31
|
+
s(a.$slots, "title")
|
|
32
32
|
], 2),
|
|
33
33
|
o("div", {
|
|
34
34
|
class: t(f.value)
|
|
35
35
|
}, [
|
|
36
|
-
|
|
36
|
+
s(a.$slots, "actions")
|
|
37
37
|
], 2)
|
|
38
38
|
], 2)
|
|
39
39
|
], 2)
|
|
@@ -41,7 +41,7 @@ const _ = /* @__PURE__ */ C({
|
|
|
41
41
|
o("div", {
|
|
42
42
|
class: t(u.value)
|
|
43
43
|
}, [
|
|
44
|
-
|
|
44
|
+
s(a.$slots, "divider", {}, () => [
|
|
45
45
|
y($(B), {
|
|
46
46
|
class: "ap-info-layout-divider",
|
|
47
47
|
dashed: ""
|
|
@@ -51,7 +51,7 @@ const _ = /* @__PURE__ */ C({
|
|
|
51
51
|
o("div", {
|
|
52
52
|
class: t(p.value)
|
|
53
53
|
}, [
|
|
54
|
-
|
|
54
|
+
s(a.$slots, "content")
|
|
55
55
|
], 2)
|
|
56
56
|
], 2));
|
|
57
57
|
}
|
|
@@ -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,13 +1,13 @@
|
|
|
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 l, h as w } from "vue";
|
|
2
|
+
import { message as O, Modal as A, Input as L, Textarea as N } 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
|
|
9
|
+
import { useGlobalConfig as q } from "../config-provider/hooks/use-global-config.mjs";
|
|
10
|
+
import { useLocale as I } from "../config-provider/hooks/use-locale.mjs";
|
|
11
11
|
import P 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";
|
|
@@ -57,50 +57,51 @@ 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(), a = m(!1), p = m(!0), i = k, x = q("api"), { lang: C } = I(), _ = v, u = async (n) => {
|
|
62
62
|
var s, d;
|
|
63
|
-
const o = await ((d = (s =
|
|
63
|
+
const o = await ((d = (s = x.value) == null ? void 0 : s.select) == null ? void 0 : d.call(s, {
|
|
64
64
|
dictCode: n,
|
|
65
|
-
locale:
|
|
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
69
|
var n;
|
|
70
|
-
if (!
|
|
70
|
+
if (!a.value)
|
|
71
71
|
try {
|
|
72
|
-
|
|
73
|
-
const o = await ((n =
|
|
74
|
-
console.log("params", o), await i.api(o),
|
|
72
|
+
a.value = !0;
|
|
73
|
+
const o = await ((n = c.value) == null ? void 0 : n.validateFields());
|
|
74
|
+
console.log("params", o), await i.api(o), a.value = !1, O.success("操作成功"), f();
|
|
75
75
|
} catch {
|
|
76
|
-
|
|
76
|
+
a.value = !1;
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
79
|
}, f = () => {
|
|
80
80
|
p.value = !1, _("modalClose");
|
|
81
81
|
};
|
|
82
|
-
return (n, o) => (F(),
|
|
83
|
-
t(e(A),
|
|
82
|
+
return (n, o) => (F(), h("div", null, [
|
|
83
|
+
t(e(A), T(i, {
|
|
84
84
|
open: p.value,
|
|
85
85
|
title: "创建工单",
|
|
86
86
|
"ok-text": "确认",
|
|
87
87
|
"cancel-text": "取消",
|
|
88
88
|
onOk: b,
|
|
89
|
+
confirmLoading: a.value,
|
|
89
90
|
onCancel: f
|
|
90
91
|
}), {
|
|
91
|
-
default:
|
|
92
|
+
default: l(() => [
|
|
92
93
|
t(e(r), {
|
|
93
94
|
ref_key: "formRef",
|
|
94
|
-
ref:
|
|
95
|
+
ref: c
|
|
95
96
|
}, {
|
|
96
|
-
default:
|
|
97
|
+
default: l(() => [
|
|
97
98
|
t(e(r).FormItem, {
|
|
98
99
|
label: "工单标题",
|
|
99
100
|
name: "ticketsTitle",
|
|
100
101
|
rules: [{ required: !0, message: "不可为空" }]
|
|
101
102
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
t(e(
|
|
103
|
+
default: l(() => [
|
|
104
|
+
t(e(L), {
|
|
104
105
|
maxlength: 50,
|
|
105
106
|
"show-count": !0
|
|
106
107
|
})
|
|
@@ -120,8 +121,8 @@ const Y = /* @__PURE__ */ B({
|
|
|
120
121
|
name: "ticketsContent",
|
|
121
122
|
rules: [{ required: !0, message: "不可为空" }]
|
|
122
123
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
t(e(
|
|
124
|
+
default: l(() => [
|
|
125
|
+
t(e(N), {
|
|
125
126
|
maxlength: 300,
|
|
126
127
|
"show-count": !0
|
|
127
128
|
})
|
|
@@ -137,11 +138,15 @@ const Y = /* @__PURE__ */ B({
|
|
|
137
138
|
}
|
|
138
139
|
}, null, 8, ["field"]),
|
|
139
140
|
t(e(r).FormItem, { name: "files" }, {
|
|
140
|
-
default:
|
|
141
|
+
default: l(() => [
|
|
141
142
|
t(e(S), {
|
|
142
143
|
dirName: "WorkOrder",
|
|
143
144
|
getOssAccess: i.getOssAccess,
|
|
144
145
|
type: "multipleFile",
|
|
146
|
+
needName: {
|
|
147
|
+
pathKey: "filePath",
|
|
148
|
+
nameKey: "fileName"
|
|
149
|
+
},
|
|
145
150
|
accept: ".txt,.doc,.docx,.rtf,.pdf,.jpg,.jpeg,.png,.gif,.bmp,.tiff,.tif,.mp4,.avi,.wmv,.mov,.mkv,.xls,.xlsx,.csv,.ppt,.pptx",
|
|
146
151
|
maxCount: 10,
|
|
147
152
|
maxSize: 50,
|
|
@@ -155,7 +160,7 @@ const Y = /* @__PURE__ */ B({
|
|
|
155
160
|
}, 512)
|
|
156
161
|
]),
|
|
157
162
|
_: 1
|
|
158
|
-
}, 16, ["open"])
|
|
163
|
+
}, 16, ["open", "confirmLoading"])
|
|
159
164
|
]));
|
|
160
165
|
}
|
|
161
166
|
});
|
|
@@ -3,13 +3,13 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
|
|
|
3
3
|
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<APInfoLayoutProps>, {
|
|
5
5
|
toEl: string;
|
|
6
|
-
|
|
6
|
+
telDisabled: boolean;
|
|
7
7
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<APInfoLayoutProps>, {
|
|
8
8
|
toEl: string;
|
|
9
|
-
|
|
9
|
+
telDisabled: boolean;
|
|
10
10
|
}>>>, {
|
|
11
|
-
disabled: boolean;
|
|
12
11
|
toEl: string | HTMLElement;
|
|
12
|
+
telDisabled: boolean;
|
|
13
13
|
}, {}>, {
|
|
14
14
|
title?(_: {}): any;
|
|
15
15
|
actions?(_: {}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("ant-design-vue");require("../style/ap-info-layout.css");require("../../config-provider/index.js");const p=require("../../config-provider/hooks/use-namespace.js"),v=e.defineComponent({name:"ApInfoLayout",__name:"ap-info-layout",props:{toEl:{default:"#microapp-fixed-header"},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("ant-design-vue");require("../style/ap-info-layout.css");require("../../config-provider/index.js");const p=require("../../config-provider/hooks/use-namespace.js"),v=e.defineComponent({name:"ApInfoLayout",__name:"ap-info-layout",props:{toEl:{default:"#microapp-fixed-header"},telDisabled:{type:Boolean,default:!1}},setup(C){const{b:a,be:n,bem:o}=p.useNamespace("info-layout"),l=e.computed(()=>[a("container")]),r=e.computed(()=>[a("header")]),s=e.computed(()=>[a("divider")]),d=e.computed(()=>[a("contant")]),i=e.computed(()=>[n("header","contant")]),c=e.computed(()=>[o("header","contant","title")]),u=e.computed(()=>[o("header","contant","actions")]);return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(l.value)},[(e.openBlock(),e.createBlock(e.Teleport,{to:t.toEl,disabled:t.telDisabled},[e.createElementVNode("div",{class:e.normalizeClass(`${r.value}`)},[e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.createElementVNode("div",{class:e.normalizeClass(c.value)},[e.renderSlot(t.$slots,"title")],2),e.createElementVNode("div",{class:e.normalizeClass(u.value)},[e.renderSlot(t.$slots,"actions")],2)],2)],2)],8,["to","disabled"])),e.createElementVNode("div",{class:e.normalizeClass(s.value)},[e.renderSlot(t.$slots,"divider",{},()=>[e.createVNode(e.unref(m.Divider),{class:"ap-info-layout-divider",dashed:""})])],2),e.createElementVNode("div",{class:e.normalizeClass(d.value)},[e.renderSlot(t.$slots,"content")],2)],2))}});exports.default=v;
|
|
@@ -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(),o=e.ref(!1),i=e.ref(!0),s=_,g=k.useGlobalConfig("api"),{lang:v}=q.useLocale(),x=y,c=async n=>{var a,d;const t=await((d=(a=g.value)==null?void 0:a.select)==null?void 0:d.call(a,{dictCode:n,locale:v.value}));return t==null?void 0:t.map(m=>({label:m.itemText,value:m.itemValue}))},C=async()=>{var n;if(!o.value)try{o.value=!0;const t=await((n=u.value)==null?void 0:n.validateFields());console.log("params",t),await s.api(t),o.value=!1,r.message.success("操作成功"),p()}catch{o.value=!1;return}},p=()=>{i.value=!1,x("modalClose")};return(n,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,confirmLoading:o.value,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","confirmLoading"])]))}});exports.default=N;
|