xyvcard-asset 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. package/README.md +52 -52
  2. package/dist/assign-BLa-fXcy.mjs +1626 -0
  3. package/dist/{edit-zFZfd8e1.mjs → edit-CCrekeeb.mjs} +1 -1
  4. package/dist/{edit-CE3u81Q0.mjs → edit-DmRG7fo0.mjs} +1 -1
  5. package/dist/edit-Dn-QMuy6.mjs +4 -0
  6. package/dist/edit-FdqpKRgF.mjs +294 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-CkBAP9Bk.mjs +547 -0
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs → edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs} +146 -139
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-IWUY0BmY.mjs +278 -0
  10. package/dist/index copy-Di49EjkG.mjs +76 -0
  11. package/dist/index-B4vUTwSW.mjs +171 -0
  12. package/dist/index-BK24yagy.mjs +1663 -0
  13. package/dist/index-BW-5IuVN.mjs +91 -0
  14. package/dist/index-BWwU9hSp.mjs +320 -0
  15. package/dist/index-BvKWLFdr.mjs +345 -0
  16. package/dist/index-BwbnYpa1.mjs +29 -0
  17. package/dist/index-ByVysHgI.mjs +4 -0
  18. package/dist/index-C5_f5Lce.mjs +213 -0
  19. package/dist/index-CgAq70-p.mjs +314 -0
  20. package/dist/index-DElPNxc7.mjs +398 -0
  21. package/dist/index-De4u-LEl.mjs +325 -0
  22. package/dist/index-DeBZxOsC.mjs +372 -0
  23. package/dist/index-Dyo7je0Z.mjs +38 -0
  24. package/dist/index-FUnFB7nG.mjs +61 -0
  25. package/dist/index-axEqTssj.mjs +378 -0
  26. package/dist/index-jOcS7tqC.mjs +311 -0
  27. package/dist/index-qQuyprvx.mjs +4 -0
  28. package/dist/index-xyCxQquE.mjs +432 -0
  29. package/dist/index.mjs +2752 -35
  30. package/dist/index.vue_vue_type_script_setup_true_lang-05kzecXV.mjs +274 -0
  31. package/dist/index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs +120 -0
  32. package/dist/index.vue_vue_type_script_setup_true_lang-BtIlu38i.mjs +105 -0
  33. package/dist/index/345/244/207/344/273/275-CaiMDP8J.mjs +319 -0
  34. package/dist/style.css +1 -1
  35. package/dts/src/api/asset/asset-asset/index.d.ts +10 -5
  36. package/dts/src/api/asset/asset-asset/types.d.ts +39 -23
  37. package/dts/src/api/asset/asset-asset-detail/index.d.ts +12 -0
  38. package/dts/src/api/asset/asset-asset-detail/types.d.ts +56 -0
  39. package/dts/src/api/asset/asset-depreciation-record/index.d.ts +11 -0
  40. package/dts/src/api/asset/asset-depreciation-record/types.d.ts +38 -0
  41. package/dts/src/api/asset/asset-inventory-record/index.d.ts +10 -0
  42. package/dts/src/api/asset/asset-inventory-record/types.d.ts +62 -0
  43. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +1 -12
  44. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +1 -44
  45. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +1 -12
  46. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +7 -68
  47. package/dts/src/api/asset/asset-site/index.d.ts +1 -2
  48. package/dts/src/api/asset/asset-site/types.d.ts +4 -14
  49. package/dts/src/api/asset/asset-site-service/index.d.ts +1 -2
  50. package/dts/src/api/asset/asset-site-service/types.d.ts +1 -0
  51. package/dts/src/api/asset/text/index.d.ts +0 -0
  52. package/dts/src/api/asset/text/types.d.ts +0 -0
  53. package/dts/src/api/dict.d.ts +1 -4
  54. package/dts/src/api/index.d.ts +2 -0
  55. package/dts/src/components/PeopleSelect/index.vue.d.ts +18 -0
  56. package/dts/src/components/Upload/ImageUpload.vue.d.ts +1 -1
  57. package/dts/{components/TMaps/index.vue.d.ts → src/components copy/PeopleSelect/index.vue.d.ts } +5 -7
  58. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 2.vue.d.ts" +34 -0
  59. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy 22.vue.d.ts" +18 -0
  60. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index copy.vue.d.ts" +34 -0
  61. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/index/345/215/225/351/200/211/346/241/206/346/234/200/346/226/260.vue.d.ts" +34 -0
  62. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275/tree/351/200/211/346/213/251/346/241/206/344/270/215/345/261/225/347/244/272/346/225/260/346/215/256,/344/270/213/346/226/271/351/242/204/350/247/210/346/225/260/346/215/256.vue.d.ts" +18 -0
  63. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//345/217/214/351/200/211/346/213/251.vue.d.ts" +42 -0
  64. package/dts/src/components copy/PeopleSelect//345/244/207/344/273/275//351/200/211/346/213/251/344/272/272/345/221/230/index.vue.d.ts" +34 -0
  65. package/dts/{components/Upload/ImageUpload.vue.d.ts → src/components copy/Upload/ImageUpload.vue.d.ts } +1 -1
  66. package/dts/src/constant.d.ts +4 -1
  67. package/dts/src/index.d.ts +3 -1
  68. package/dts/src/lang/asset/zh-cn.d.ts +59 -1
  69. package/dts/src/router/page.d.ts +4 -0
  70. package/dts/src/utils/momentPlugin.d.ts +5 -0
  71. package/dts/{views/asset/asset-asset/edit.vue.d.ts → src/views/asset/asset-asset/assign.vue.d.ts} +12 -5
  72. package/dts/{views/asset/asset-site → src/views/asset/asset-asset-detail}/edit.vue.d.ts +5 -7
  73. package/dts/src/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  74. package/dts/src/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  75. package/dts/src/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  76. package/dts/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +7 -6
  78. package/dist/edit-Bo9bnbUP.mjs +0 -492
  79. package/dist/edit-DJFxVmvv.mjs +0 -624
  80. package/dist/edit-qp_2xtTZ.mjs +0 -242
  81. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +0 -322
  82. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +0 -1
  83. package/dist/index-Bf5U4Ucl.mjs +0 -369
  84. package/dist/index-Bh2imlN_.mjs +0 -149
  85. package/dist/index-CHNiaFZk.mjs +0 -291
  86. package/dist/index-CmlP_Rro.mjs +0 -332
  87. package/dist/index-Cqw_E8lr.mjs +0 -1269
  88. package/dist/index-DA_FS24d.mjs +0 -146
  89. package/dist/index-DKmGNvQl.mjs +0 -370
  90. package/dist/index-DLxpE9s5.mjs +0 -305
  91. package/dist/index-DWaL87j5.mjs +0 -89
  92. package/dist/index-jOnQLJaB.mjs +0 -416
  93. package/dist/index-pyyjj1xa.mjs +0 -187
  94. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +0 -37
  95. package/dts/api/asset/asset-asset/index.d.ts +0 -20
  96. package/dts/api/asset/asset-asset/types.d.ts +0 -93
  97. package/dts/api/asset/asset-service-appt-member/index.d.ts +0 -20
  98. package/dts/api/asset/asset-service-appt-member/types.d.ts +0 -71
  99. package/dts/api/asset/asset-service-appt-record/index.d.ts +0 -20
  100. package/dts/api/asset/asset-service-appt-record/types.d.ts +0 -98
  101. package/dts/api/asset/asset-site/index.d.ts +0 -15
  102. package/dts/api/asset/asset-site/types.d.ts +0 -81
  103. package/dts/api/asset/asset-site-service/index.d.ts +0 -14
  104. package/dts/api/asset/asset-site-service/types.d.ts +0 -80
  105. package/dts/api/dict.d.ts +0 -22
  106. package/dts/api/index.d.ts +0 -14
  107. package/dts/api/org/union-org/index.d.ts +0 -14
  108. package/dts/api/org/union-org/types.d.ts +0 -49
  109. package/dts/components/EnumRadio/index.vue.d.ts +0 -18
  110. package/dts/components/EnumSelect/index.vue.d.ts +0 -18
  111. package/dts/constant.d.ts +0 -16
  112. package/dts/index.d.ts +0 -4
  113. package/dts/lang/asset/en.d.ts +0 -2
  114. package/dts/lang/asset/zh-cn.d.ts +0 -91
  115. package/dts/lang/index.d.ts +0 -1
  116. package/dts/main.d.ts +0 -4
  117. package/dts/permission.d.ts +0 -1
  118. package/dts/router/page.d.ts +0 -2
  119. package/dts/src/api/org/union-org/index.d.ts +0 -14
  120. package/dts/src/api/org/union-org/types.d.ts +0 -49
  121. package/dts/src/components/EnumRadio/index.vue.d.ts +0 -18
  122. package/dts/src/components/EnumSelect/index.vue.d.ts +0 -18
  123. package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  124. package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  125. package/dts/utils/common.d.ts +0 -51
  126. package/dts/utils/index.d.ts +0 -24
  127. package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +0 -22
  128. package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +0 -22
  129. package/dts/views/asset/asset-site-service/edit.vue.d.ts +0 -22
  130. /package/dts/{views/asset/asset-asset → src/components/deptPeopleSelect}/index.vue.d.ts +0 -0
  131. /package/dts/{components → src/components copy}/Upload/MultiUpload.vue.d.ts +0 -0
  132. /package/dts/src/{views/asset/asset-service-appt-member → components copy/deptPeopleSelect}/index.vue.d.ts +0 -0
  133. /package/dts/{views/asset/asset-service-appt-record → src/views/asset/asset-asset/info}/index.vue.d.ts +0 -0
  134. /package/dts/{views/asset/asset-service-appt-member → src/views/asset/asset-asset-detail}/index.vue.d.ts +0 -0
  135. /package/dts/{views/asset/asset-service-appt-record/info → src/views/asset/asset-depreciation-record}/index.vue.d.ts +0 -0
  136. /package/dts/{views/asset/asset-site-service → src/views/asset/asset-depreciation-record/info}/index.vue.d.ts +0 -0
  137. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/index.vue.d.ts +0 -0
  138. /package/dts/{App.vue.d.ts → src/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts"} +0 -0
  139. /package/dts/{views/asset/asset-site → src/views/asset/asset-inventory-record}/info/index.vue.d.ts +0 -0
@@ -0,0 +1,274 @@
1
+ import { defineComponent as R, ref as s, watch as A, resolveComponent as n, openBlock as m, createElementBlock as P, createElementVNode as p, toDisplayString as w, unref as e, Fragment as E, renderList as F, createBlock as x, withCtx as i, createTextVNode as H, createVNode as a, isRef as S, createCommentVNode as K, reactive as N, useModel as O } from "vue";
2
+ import { i as G } from "./index-Dyo7je0Z.mjs";
3
+ import { useTableHooks as J } from "jmash-core";
4
+ import { useI18n as Q } from "vue-i18n";
5
+ import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
+ const X = { class: "people-select-tag-box" }, Y = { class: "dept-people-select-left-box" }, Z = /* @__PURE__ */ R({
7
+ __name: "index",
8
+ setup(k) {
9
+ const { t: b } = Q(), d = {
10
+ children: "children",
11
+ label: "label"
12
+ }, r = s({
13
+ curPage: 1,
14
+ pageSize: 10
15
+ }), { tableHooks: g, multipleTableRef: v, listLoading: y, tableData: _, total: c } = J(b, G, r), u = s(""), f = s(), I = s([
16
+ {
17
+ deptId: 1,
18
+ label: "技术部",
19
+ children: [
20
+ {
21
+ deptId: 4,
22
+ label: "前端开发部",
23
+ children: [
24
+ {
25
+ deptId: 9,
26
+ label: "前端技术部"
27
+ },
28
+ {
29
+ deptId: 10,
30
+ label: "前端测试部"
31
+ }
32
+ ]
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ deptId: 2,
38
+ label: "运维部",
39
+ children: [
40
+ {
41
+ deptId: 3,
42
+ label: "网络部",
43
+ children: [
44
+ {
45
+ deptId: 5,
46
+ label: "检修部"
47
+ },
48
+ {
49
+ deptId: 6,
50
+ label: "实施部"
51
+ }
52
+ ]
53
+ }
54
+ ]
55
+ },
56
+ {
57
+ deptId: 12,
58
+ label: "运维部",
59
+ children: [
60
+ {
61
+ deptId: 13,
62
+ label: "网络部",
63
+ children: [
64
+ {
65
+ deptId: 15,
66
+ label: "检修部"
67
+ },
68
+ {
69
+ deptId: 16,
70
+ label: "实施部"
71
+ }
72
+ ]
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ deptId: 22,
78
+ label: "运维部",
79
+ children: [
80
+ {
81
+ deptId: 23,
82
+ label: "网络部",
83
+ children: [
84
+ {
85
+ deptId: 25,
86
+ label: "检修部"
87
+ },
88
+ {
89
+ deptId: 26,
90
+ label: "实施部"
91
+ }
92
+ ]
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ deptId: 22,
98
+ label: "运维部",
99
+ children: [
100
+ {
101
+ deptId: 23,
102
+ label: "网络部",
103
+ children: [
104
+ {
105
+ deptId: 25,
106
+ label: "检修部"
107
+ },
108
+ {
109
+ deptId: 26,
110
+ label: "实施部"
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ }
116
+ ]), T = s([]);
117
+ let z = s([
118
+ {
119
+ label: "common.operate",
120
+ width: "100",
121
+ slotName: "operation",
122
+ columnType: "slot",
123
+ fixed: "right",
124
+ isColumn: !0
125
+ }
126
+ ]);
127
+ A(
128
+ () => u.value,
129
+ (o) => {
130
+ f.value.filter(o);
131
+ }
132
+ );
133
+ function U(o, l) {
134
+ return o ? l.label.includes(o) : !0;
135
+ }
136
+ function j(o) {
137
+ console.log(o);
138
+ }
139
+ const h = s([]);
140
+ function B(o) {
141
+ h.value.splice(h.value.indexOf(o), 1);
142
+ }
143
+ return (o, l) => {
144
+ const L = n("el-tag"), V = n("el-input"), M = n("el-tree"), C = n("el-col"), $ = n("jmash-table"), D = n("jmash-pagination"), q = n("el-row");
145
+ return m(), P("div", null, [
146
+ p("div", null, [
147
+ p("span", null, "已选" + w(e(T).length) + "名人员", 1),
148
+ p("div", X, [
149
+ (m(!0), P(E, null, F(e(h), (t) => (m(), x(L, {
150
+ key: t,
151
+ closable: "",
152
+ "disable-transitions": !1,
153
+ onClose: (te) => B(t)
154
+ }, {
155
+ default: i(() => [
156
+ H(w(t), 1)
157
+ ]),
158
+ _: 2
159
+ }, 1032, ["onClose"]))), 128))
160
+ ])
161
+ ]),
162
+ p("div", null, [
163
+ a(q, { gutter: 22 }, {
164
+ default: i(() => [
165
+ a(C, { span: 6 }, {
166
+ default: i(() => [
167
+ a(V, {
168
+ modelValue: e(u),
169
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => S(u) ? u.value = t : null),
170
+ placeholder: "请选择部门"
171
+ }, null, 8, ["modelValue"]),
172
+ p("div", Y, [
173
+ a(M, {
174
+ ref_key: "treeRef",
175
+ ref: f,
176
+ style: { "max-width": "600px" },
177
+ class: "filter-tree",
178
+ data: e(I),
179
+ props: d,
180
+ "default-expand-all": "",
181
+ "filter-node-method": U,
182
+ onNodeClick: j
183
+ }, null, 8, ["data"])
184
+ ])
185
+ ]),
186
+ _: 1
187
+ }),
188
+ a(C, { span: 16 }, {
189
+ footer: i(() => [
190
+ e(c) > 0 ? (m(), x(D, {
191
+ key: 0,
192
+ total: e(c),
193
+ "onUpdate:total": l[1] || (l[1] = (t) => S(c) ? c.value = t : null),
194
+ "current-page": e(r).curPage,
195
+ "onUpdate:currentPage": l[2] || (l[2] = (t) => e(r).curPage = t),
196
+ "page-size": e(r).pageSize,
197
+ "onUpdate:pageSize": l[3] || (l[3] = (t) => e(r).pageSize = t),
198
+ onPagination: l[4] || (l[4] = (t) => e(g).getList())
199
+ }, null, 8, ["total", "current-page", "page-size"])) : K("", !0)
200
+ ]),
201
+ default: i(() => [
202
+ a(V, { placeholder: "请输入姓名/手机号/岗位职务" }),
203
+ a($, {
204
+ ref_key: "multipleTableRef",
205
+ ref: v,
206
+ class: "table-top",
207
+ "row-key": "unionMemberPk",
208
+ "list-loading": e(y),
209
+ data: e(_),
210
+ "table-label": e(z)
211
+ }, null, 8, ["list-loading", "data", "table-label"])
212
+ ]),
213
+ _: 1
214
+ })
215
+ ]),
216
+ _: 1
217
+ })
218
+ ])
219
+ ]);
220
+ };
221
+ }
222
+ }), ee = /* @__PURE__ */ W(Z, [["__scopeId", "data-v-225942ea"]]), le = /* @__PURE__ */ p("div", { class: "title-content dialog-select-clear-top" }, "选择人员", -1), se = /* @__PURE__ */ R({
223
+ __name: "index",
224
+ props: {
225
+ modelValue: { type: Boolean },
226
+ modelModifiers: {}
227
+ },
228
+ emits: ["update:modelValue"],
229
+ setup(k) {
230
+ const b = N({}), d = O(k, "modelValue"), r = N({
231
+ people: [
232
+ {
233
+ required: !0,
234
+ message: "请选择人员",
235
+ trigger: "blur"
236
+ }
237
+ ]
238
+ });
239
+ function g() {
240
+ d.value = !1;
241
+ }
242
+ function v() {
243
+ d.value && (d.value = !1);
244
+ }
245
+ return (y, _) => {
246
+ const c = ee, u = n("el-form"), f = n("el-dialog");
247
+ return m(), x(f, {
248
+ modelValue: d.value,
249
+ "onUpdate:modelValue": _[0] || (_[0] = (I) => d.value = I),
250
+ onClose: v
251
+ }, {
252
+ default: i(() => [
253
+ le,
254
+ a(u, {
255
+ ref: "FormRef",
256
+ model: e(b),
257
+ "label-width": "120px",
258
+ rules: e(r)
259
+ }, {
260
+ default: i(() => [
261
+ a(c)
262
+ ]),
263
+ _: 1
264
+ }, 8, ["model", "rules"]),
265
+ p("button", { onClick: g }, "弹框按钮触发组件提交事件")
266
+ ]),
267
+ _: 1
268
+ }, 8, ["modelValue"]);
269
+ };
270
+ }
271
+ });
272
+ export {
273
+ se as _
274
+ };
@@ -0,0 +1,120 @@
1
+ import { defineComponent as j, ref as i, resolveComponent as a, openBlock as t, createElementBlock as s, createElementVNode as k, createVNode as c, unref as p, isRef as y, withCtx as _, Fragment as b, renderList as v, createBlock as h, createTextVNode as w, toDisplayString as E } from "vue";
2
+ const O = { class: "people-select-tag-box" }, L = /* @__PURE__ */ j({
3
+ __name: "index",
4
+ props: {
5
+ deptId: {
6
+ type: String,
7
+ default: ""
8
+ }
9
+ },
10
+ emits: ["updatePeoples"],
11
+ setup(g, { emit: x }) {
12
+ const u = i([]), m = x;
13
+ console.log(g);
14
+ const o = i([]), r = i([
15
+ {
16
+ key: "1",
17
+ value: "张三",
18
+ label: "张三",
19
+ deep: "测试",
20
+ position: "测试工程师",
21
+ children: []
22
+ },
23
+ {
24
+ key: "2",
25
+ value: "里斯",
26
+ label: "里斯",
27
+ deep: "前端部",
28
+ position: "前端工程师",
29
+ children: []
30
+ },
31
+ {
32
+ key: "6",
33
+ value: "里斯",
34
+ label: "里斯",
35
+ deep: "前端部",
36
+ position: "前端工程师",
37
+ children: []
38
+ },
39
+ {
40
+ key: "3",
41
+ value: "王五",
42
+ label: "王五",
43
+ deep: "java",
44
+ position: "实习",
45
+ children: []
46
+ }
47
+ ]), f = r.value, V = (n) => {
48
+ r.value = f.filter((l) => l.label.indexOf(n) > -1);
49
+ }, C = (n) => {
50
+ const l = f.filter((d) => d.key === n)[0];
51
+ return l.label + " " + l.deep + " " + l.position;
52
+ }, P = () => {
53
+ m("updatePeoples", o.value);
54
+ };
55
+ function T(n) {
56
+ o.value = o.value.filter((l) => l !== n), m("updatePeoples", o.value);
57
+ }
58
+ return (n, l) => {
59
+ const d = a("el-option"), B = a("el-checkbox"), D = a("el-checkbox-group"), N = a("el-select"), S = a("el-tag");
60
+ return t(), s("div", null, [
61
+ k("div", null, [
62
+ c(N, {
63
+ modelValue: p(u),
64
+ "onUpdate:modelValue": l[1] || (l[1] = (e) => y(u) ? u.value = e : null),
65
+ multiple: "",
66
+ placeholder: "请输入选择的人员",
67
+ filterable: "",
68
+ "filter-method": V,
69
+ style: { width: "100% !important" }
70
+ }, {
71
+ default: _(() => [
72
+ (t(!0), s(b, null, v(p(r), (e) => (t(), h(d, {
73
+ key: e.key,
74
+ label: e.label,
75
+ value: e.key,
76
+ hidden: ""
77
+ }, null, 8, ["label", "value"]))), 128)),
78
+ c(D, {
79
+ modelValue: p(o),
80
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => y(o) ? o.value = e : null),
81
+ onChange: P
82
+ }, {
83
+ default: _(() => [
84
+ (t(!0), s(b, null, v(p(r), (e) => (t(), s("div", {
85
+ key: e.key,
86
+ style: { padding: "0 10px" }
87
+ }, [
88
+ c(B, {
89
+ label: e.label + "" + e.deep + e.position,
90
+ value: e.key
91
+ }, null, 8, ["label", "value"])
92
+ ]))), 128))
93
+ ]),
94
+ _: 1
95
+ }, 8, ["modelValue"])
96
+ ]),
97
+ _: 1
98
+ }, 8, ["modelValue"])
99
+ ]),
100
+ k("div", O, [
101
+ (t(!0), s(b, null, v(p(o), (e) => (t(), h(S, {
102
+ key: e,
103
+ closable: "",
104
+ "disable-transitions": !1,
105
+ style: { "margin-right": "10px" },
106
+ onClose: (F) => T(e)
107
+ }, {
108
+ default: _(() => [
109
+ w(E(C(e)), 1)
110
+ ]),
111
+ _: 2
112
+ }, 1032, ["onClose"]))), 128))
113
+ ])
114
+ ]);
115
+ };
116
+ }
117
+ });
118
+ export {
119
+ L as _
120
+ };
@@ -0,0 +1,105 @@
1
+ import { defineComponent as x, ref as i, reactive as n, resolveComponent as p, openBlock as y, createBlock as P, unref as l, isRef as C, withCtx as a, createVNode as s, createElementVNode as u, toDisplayString as w } from "vue";
2
+ import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs";
3
+ const I = /* @__PURE__ */ x({
4
+ __name: "index",
5
+ setup(h) {
6
+ const d = i([]);
7
+ console.log("父组件的selectPeoples---", d.value);
8
+ function c(t) {
9
+ console.log("子组件的getValue---", t), o.selectPeoples = t;
10
+ }
11
+ const o = n({
12
+ selectPeoples: []
13
+ }), m = n({
14
+ people: [
15
+ {
16
+ required: !0,
17
+ message: "请选择人员",
18
+ trigger: "blur"
19
+ }
20
+ ]
21
+ }), f = n({
22
+ label: "选择人员",
23
+ prop: "people",
24
+ // 模糊查询人员
25
+ peopleTableData: [
26
+ {
27
+ key: "1",
28
+ value: "张三",
29
+ label: "张三",
30
+ deep: "测试",
31
+ position: "测试工程师"
32
+ },
33
+ {
34
+ key: "2",
35
+ value: "里斯",
36
+ label: "里斯",
37
+ deep: "前端部",
38
+ position: "前端工程师"
39
+ },
40
+ {
41
+ key: "6",
42
+ value: "里斯",
43
+ label: "里斯",
44
+ deep: "前端部",
45
+ position: "前端工程师"
46
+ },
47
+ {
48
+ key: "3",
49
+ value: "王五",
50
+ label: "王五",
51
+ deep: "java",
52
+ position: "实习"
53
+ }
54
+ ],
55
+ deptId: "1"
56
+ });
57
+ function _() {
58
+ e.value = !1;
59
+ }
60
+ const e = i(!0);
61
+ function v() {
62
+ e.value && (e.value = !1);
63
+ }
64
+ return (t, r) => {
65
+ const b = p("el-form-item"), g = p("el-form"), k = p("el-dialog");
66
+ return y(), P(k, {
67
+ modelValue: l(e),
68
+ "onUpdate:modelValue": r[0] || (r[0] = (V) => C(e) ? e.value = V : null),
69
+ onClose: v
70
+ }, {
71
+ default: a(() => [
72
+ s(g, {
73
+ ref: "FormRef",
74
+ model: l(o),
75
+ "label-width": "120px",
76
+ rules: l(m)
77
+ }, {
78
+ default: a(() => [
79
+ s(b, {
80
+ label: "选择人员",
81
+ prop: "people"
82
+ }, {
83
+ default: a(() => [
84
+ s(D, {
85
+ "dept-id": l(f).deptId,
86
+ style: { width: "500px" },
87
+ onUpdatePeoples: c
88
+ }, null, 8, ["dept-id"]),
89
+ u("span", null, "子组件值--" + w(l(o).selectPeoples), 1)
90
+ ]),
91
+ _: 1
92
+ })
93
+ ]),
94
+ _: 1
95
+ }, 8, ["model", "rules"]),
96
+ u("button", { onClick: _ }, "弹框按钮触发组件提交事件")
97
+ ]),
98
+ _: 1
99
+ }, 8, ["modelValue"]);
100
+ };
101
+ }
102
+ });
103
+ export {
104
+ I as _
105
+ };