xyvcard-asset 0.0.9 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/dist/{assign-BLa-fXcy.mjs → assign-DzQUNp-Y.mjs} +26 -26
  2. package/dist/{edit-DmRG7fo0.mjs → edit-O1D_xFra.mjs} +1 -1
  3. package/dist/{edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs → edit.vue_vue_type_script_setup_true_lang-sE0fN_pL.mjs} +127 -150
  4. package/dist/{index copy-Di49EjkG.mjs → index copy-CxTCJcvX.mjs } +21 -22
  5. package/dist/{index-DeBZxOsC.mjs → index-BpYjnXUI.mjs} +2 -1
  6. package/dist/{index-xyCxQquE.mjs → index-CSMEsPcN.mjs} +1 -1
  7. package/dist/{index-ByVysHgI.mjs → index-GhvyIwc3.mjs} +1 -1
  8. package/dist/{index-qQuyprvx.mjs → index-pfeu6d82.mjs} +1 -1
  9. package/dist/index.mjs +2 -1
  10. package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +110 -0
  11. package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +54 -0
  12. package/dist/index/345/244/207/344/273/{275-CaiMDP8J.mjs → 275-BfKo5eBT.mjs} +84 -80
  13. package/dist/style.css +1 -1
  14. package/dts/App.vue.d.ts +2 -0
  15. package/dts/api/asset/asset-asset/index.d.ts +25 -0
  16. package/dts/api/asset/asset-asset/types.d.ts +109 -0
  17. package/dts/api/asset/asset-asset-detail/index.d.ts +12 -0
  18. package/dts/api/asset/asset-asset-detail/types.d.ts +56 -0
  19. package/dts/api/asset/asset-depreciation-record/index.d.ts +11 -0
  20. package/dts/api/asset/asset-depreciation-record/types.d.ts +38 -0
  21. package/dts/api/asset/asset-inventory-record/index.d.ts +10 -0
  22. package/dts/api/asset/asset-inventory-record/types.d.ts +62 -0
  23. package/dts/api/asset/asset-service-appt-member/index.d.ts +9 -0
  24. package/dts/api/asset/asset-service-appt-member/types.d.ts +28 -0
  25. package/dts/api/asset/asset-service-appt-record/index.d.ts +9 -0
  26. package/dts/api/asset/asset-service-appt-record/types.d.ts +37 -0
  27. package/dts/api/asset/asset-site/index.d.ts +14 -0
  28. package/dts/api/asset/asset-site/types.d.ts +71 -0
  29. package/dts/api/asset/asset-site-service/index.d.ts +13 -0
  30. package/dts/api/asset/asset-site-service/types.d.ts +81 -0
  31. package/dts/api/asset/text/index.d.ts +140 -0
  32. package/dts/api/asset/text/types.d.ts +179 -0
  33. package/dts/api/dict.d.ts +19 -0
  34. package/dts/api/index.d.ts +16 -0
  35. package/dts/components/PeopleSelectAsset/index.vue.d.ts +18 -0
  36. package/dts/components/Upload/ImageUpload.vue.d.ts +38 -0
  37. package/dts/components/Upload/MultiUpload.vue.d.ts +24 -0
  38. package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +14 -0
  39. package/dts/constant.d.ts +19 -0
  40. package/dts/index.d.ts +6 -0
  41. package/dts/lang/asset/en.d.ts +2 -0
  42. package/dts/lang/asset/zh-cn.d.ts +150 -0
  43. package/dts/lang/index.d.ts +1 -0
  44. package/dts/main.d.ts +4 -0
  45. package/dts/permission.d.ts +1 -0
  46. package/dts/router/page.d.ts +8 -0
  47. package/dts/utils/common.d.ts +51 -0
  48. package/dts/utils/index.d.ts +24 -0
  49. package/dts/utils/momentPlugin.d.ts +5 -0
  50. package/dts/views/asset/asset-asset/assign.vue.d.ts +29 -0
  51. package/dts/views/asset/asset-asset/edit.vue.d.ts +22 -0
  52. package/dts/views/asset/asset-asset/index.vue.d.ts +2 -0
  53. package/dts/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  54. package/dts/views/asset/asset-asset-detail/edit.vue.d.ts +20 -0
  55. package/dts/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  56. package/dts/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  57. package/dts/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  58. package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  59. package/dts/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  60. package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +2 -0
  61. package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  62. package/dts/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  63. package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  64. package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  65. package/dts/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  66. package/dts/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  67. package/dts/views/asset/asset-site/edit.vue.d.ts +22 -0
  68. package/dts/views/asset/asset-site/index.vue.d.ts +2 -0
  69. package/dts/views/asset/asset-site/info/index.vue.d.ts +2 -0
  70. package/dts/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  71. package/dts/views/asset/asset-site-service/index.vue.d.ts +2 -0
  72. package/package.json +3 -3
  73. package/dist/index.vue_vue_type_script_setup_true_lang-05kzecXV.mjs +0 -274
  74. package/dist/index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs +0 -120
  75. package/dist/index.vue_vue_type_script_setup_true_lang-BtIlu38i.mjs +0 -105
@@ -0,0 +1,51 @@
1
+ export declare function generateRandomKey(): string;
2
+ export declare function getDaysInMonth(val?: any): string[];
3
+ /**
4
+ * 计算当前时间
5
+ *
6
+ * @returns 返回当前时间
7
+ */
8
+ export declare function calculateDate(currentDate: any, year?: number, month?: number, day?: number): {
9
+ getYear: () => number;
10
+ getMonth: () => string;
11
+ getFullDate: () => string;
12
+ };
13
+ /**
14
+ * @returns 返回当前时分秒
15
+ */
16
+ export declare function returnTime(time: any): string;
17
+ /**
18
+ * 解析身份证号信息
19
+ *
20
+ * @param idNumber 身份证号
21
+ * @returns 返回包含出生日期和性别等信息的对象
22
+ */
23
+ export declare function parseIdNumber(idNumber: string): {
24
+ year: string;
25
+ month: string;
26
+ day: string;
27
+ fullDate: string;
28
+ gender: string;
29
+ };
30
+ export declare function isCreditCode(code: string): boolean;
31
+ /**
32
+ * 将数字转换为对应的中文数字
33
+ * @param number 需要转换的数字,必须是0到9之间的整数
34
+ * @return 返回对应的中文数字字符串
35
+ */
36
+ export declare function numberToChinese(number: number): string | undefined;
37
+ /**
38
+ * 递归遍历树结构寻找指定id的节点的子节点。
39
+ * @param id 要查找的节点的id。
40
+ * @param node 当前遍历的节点。
41
+ * @returns 找到的子节点数组,如果未找到则返回空数组。
42
+ */
43
+ export declare function traverseTreeRecursively(id: string, node: any): any;
44
+ /**
45
+ * 从传入的对象数组中查找指定key对应的value,并拼接成一个字符串返回
46
+ *
47
+ * @param data 对象数组
48
+ * @param key 需要查找的key
49
+ * @returns 返回拼接后的字符串
50
+ */
51
+ export declare function treeData(node: any, key?: string): string | null;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Check if an element has a class
3
+ * @param {HTMLElement} ele
4
+ * @param {string} cls
5
+ * @returns {boolean}
6
+ */
7
+ export declare function hasClass(ele: HTMLElement, cls: string): boolean;
8
+ /**
9
+ * Add class to element
10
+ * @param {HTMLElement} ele
11
+ * @param {string} cls
12
+ */
13
+ export declare function addClass(ele: HTMLElement, cls: string): void;
14
+ /**
15
+ * Remove class from element
16
+ * @param {HTMLElement} ele
17
+ * @param {string} cls
18
+ */
19
+ export declare function removeClass(ele: HTMLElement, cls: string): void;
20
+ /**
21
+ * @param {string} path
22
+ * @returns {Boolean}
23
+ */
24
+ export declare function isExternal(path: string): boolean;
@@ -0,0 +1,5 @@
1
+ import type { App } from "vue";
2
+ declare const _default: {
3
+ install: (app: App) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import type { AssetKey } from "@/api/asset/asset-asset/types";
2
+ declare const _default: import("vue").DefineComponent<{
3
+ modelValue: globalThis.PropType<boolean>;
4
+ entityKey: {
5
+ type: globalThis.PropType<AssetKey>;
6
+ default: () => void;
7
+ };
8
+ numberList: {
9
+ type: ObjectConstructor;
10
+ required: true;
11
+ };
12
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
+ refresh: (...args: any[]) => void;
14
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
+ modelValue: globalThis.PropType<boolean>;
16
+ entityKey: {
17
+ type: globalThis.PropType<AssetKey>;
18
+ default: () => void;
19
+ };
20
+ numberList: {
21
+ type: ObjectConstructor;
22
+ required: true;
23
+ };
24
+ }>> & {
25
+ onRefresh?: ((...args: any[]) => any) | undefined;
26
+ }, {
27
+ entityKey: AssetKey;
28
+ }, {}>;
29
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import type { PropType } from "vue";
2
+ import type { AssetKey } from "@/api/asset/asset-asset/types";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ modelValue: PropType<boolean>;
5
+ entityKey: {
6
+ type: PropType<AssetKey>;
7
+ default: () => void;
8
+ };
9
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ refresh: (...args: any[]) => void;
11
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
12
+ modelValue: PropType<boolean>;
13
+ entityKey: {
14
+ type: PropType<AssetKey>;
15
+ default: () => void;
16
+ };
17
+ }>> & {
18
+ onRefresh?: ((...args: any[]) => any) | undefined;
19
+ }, {
20
+ entityKey: AssetKey;
21
+ }, {}>;
22
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,20 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: globalThis.PropType<boolean>;
3
+ entityKey: {
4
+ type: ObjectConstructor;
5
+ default: () => void;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ refresh: (...args: any[]) => void;
9
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
10
+ modelValue: globalThis.PropType<boolean>;
11
+ entityKey: {
12
+ type: ObjectConstructor;
13
+ default: () => void;
14
+ };
15
+ }>> & {
16
+ onRefresh?: ((...args: any[]) => any) | undefined;
17
+ }, {
18
+ entityKey: Record<string, any>;
19
+ }, {}>;
20
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: globalThis.PropType<boolean>;
3
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
4
+ modelValue: globalThis.PropType<boolean>;
5
+ }>>, {}, {}>;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import type { PropType } from "vue";
2
+ import type { SiteKey } from "@/api/asset/asset-site/types";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ modelValue: PropType<boolean>;
5
+ entityKey: {
6
+ type: PropType<SiteKey>;
7
+ default: () => void;
8
+ };
9
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ refresh: (...args: any[]) => void;
11
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
12
+ modelValue: PropType<boolean>;
13
+ entityKey: {
14
+ type: PropType<SiteKey>;
15
+ default: () => void;
16
+ };
17
+ }>> & {
18
+ onRefresh?: ((...args: any[]) => any) | undefined;
19
+ }, {
20
+ entityKey: SiteKey;
21
+ }, {}>;
22
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import type { PropType } from "vue";
2
+ import type { SiteServiceKey } from "@/api/asset/asset-site-service/types";
3
+ declare const _default: import("vue").DefineComponent<{
4
+ modelValue: PropType<boolean>;
5
+ entityKey: {
6
+ type: PropType<SiteServiceKey>;
7
+ default: () => void;
8
+ };
9
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ refresh: (...args: any[]) => void;
11
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
12
+ modelValue: PropType<boolean>;
13
+ entityKey: {
14
+ type: PropType<SiteServiceKey>;
15
+ default: () => void;
16
+ };
17
+ }>> & {
18
+ onRefresh?: ((...args: any[]) => any) | undefined;
19
+ }, {
20
+ entityKey: SiteServiceKey;
21
+ }, {}>;
22
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-asset",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",
@@ -16,8 +16,8 @@
16
16
  "vue-i18n": "^9.10.1",
17
17
  "vue-router": "^4.3.0",
18
18
  "jmash-core": "^0.0.95",
19
- "jmash-rbac": "^0.0.20",
20
- "jmash-dict": "^0.0.39"
19
+ "jmash-dict": "^0.0.39",
20
+ "jmash-rbac": "file:jmash-rbac-0.0.21.tgz"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@rushstack/eslint-patch": "^1.3.3",
@@ -1,274 +0,0 @@
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
- };