iv-npm 1.2.34 → 1.2.37
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/package.json +1 -1
- package/packages/ui/dist/business-ui/component/IVOrgDropdown.d.ts +17 -0
- package/packages/ui/dist/business-ui/component/IVSetofbookDropdown.d.ts +17 -0
- package/packages/ui/dist/index.cjs.js +78 -28
- package/packages/ui/dist/index.esm.js +78 -28
- package/packages/ui/dist/index.umd.js +78 -28
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -14,6 +14,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
type: ObjectConstructor;
|
|
15
15
|
required: false;
|
|
16
16
|
};
|
|
17
|
+
fieldNames: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
17
25
|
replaceFields: {
|
|
18
26
|
type: null;
|
|
19
27
|
required: false;
|
|
@@ -83,6 +91,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
91
|
type: ObjectConstructor;
|
|
84
92
|
required: false;
|
|
85
93
|
};
|
|
94
|
+
fieldNames: {
|
|
95
|
+
type: null;
|
|
96
|
+
required: false;
|
|
97
|
+
default: () => {
|
|
98
|
+
label: string;
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
86
102
|
replaceFields: {
|
|
87
103
|
type: null;
|
|
88
104
|
required: false;
|
|
@@ -141,6 +157,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
157
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
142
158
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
143
159
|
}, {
|
|
160
|
+
fieldNames: any;
|
|
144
161
|
replaceFields: any;
|
|
145
162
|
inputStyle: Record<string, any>;
|
|
146
163
|
isRequired: boolean;
|
|
@@ -14,6 +14,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
type: ObjectConstructor;
|
|
15
15
|
required: false;
|
|
16
16
|
};
|
|
17
|
+
fieldNames: {
|
|
18
|
+
type: null;
|
|
19
|
+
required: false;
|
|
20
|
+
default: () => {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
17
25
|
replaceFields: {
|
|
18
26
|
type: null;
|
|
19
27
|
required: false;
|
|
@@ -91,6 +99,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
99
|
type: ObjectConstructor;
|
|
92
100
|
required: false;
|
|
93
101
|
};
|
|
102
|
+
fieldNames: {
|
|
103
|
+
type: null;
|
|
104
|
+
required: false;
|
|
105
|
+
default: () => {
|
|
106
|
+
label: string;
|
|
107
|
+
value: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
94
110
|
replaceFields: {
|
|
95
111
|
type: null;
|
|
96
112
|
required: false;
|
|
@@ -157,6 +173,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
173
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
158
174
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
159
175
|
}, {
|
|
176
|
+
fieldNames: any;
|
|
160
177
|
replaceFields: any;
|
|
161
178
|
inputStyle: Record<string, any>;
|
|
162
179
|
wrapperCol: Record<string, any>;
|
|
@@ -1511,6 +1511,16 @@ var script$l = /*#__PURE__*/vue.defineComponent({
|
|
|
1511
1511
|
type: Object,
|
|
1512
1512
|
required: false
|
|
1513
1513
|
},
|
|
1514
|
+
fieldNames: {
|
|
1515
|
+
type: null,
|
|
1516
|
+
required: false,
|
|
1517
|
+
"default": function _default() {
|
|
1518
|
+
return {
|
|
1519
|
+
label: "name",
|
|
1520
|
+
value: "id"
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1514
1524
|
replaceFields: {
|
|
1515
1525
|
type: null,
|
|
1516
1526
|
required: false,
|
|
@@ -1624,6 +1634,9 @@ var script$l = /*#__PURE__*/vue.defineComponent({
|
|
|
1624
1634
|
emit("update:value", value);
|
|
1625
1635
|
}
|
|
1626
1636
|
});
|
|
1637
|
+
var filterOption = vue.computed(function () {
|
|
1638
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1639
|
+
});
|
|
1627
1640
|
/**
|
|
1628
1641
|
* 侦听器-------------------------------------
|
|
1629
1642
|
* */
|
|
@@ -1686,16 +1699,17 @@ var script$l = /*#__PURE__*/vue.defineComponent({
|
|
|
1686
1699
|
allowClear: !__props.isRequired,
|
|
1687
1700
|
showSearch: "",
|
|
1688
1701
|
multiple: __props.multiple,
|
|
1689
|
-
|
|
1702
|
+
filterOption: vue.unref(filterOption),
|
|
1690
1703
|
treeDefaultExpandAll: "",
|
|
1691
1704
|
style: __props.inputStyle,
|
|
1692
1705
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1693
1706
|
return _ctx.$emit('change', $event);
|
|
1694
1707
|
}),
|
|
1708
|
+
fieldNames: __props.fieldNames,
|
|
1695
1709
|
replaceFields: __props.replaceFields
|
|
1696
1710
|
}), null, 16
|
|
1697
1711
|
/* FULL_PROPS */
|
|
1698
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "
|
|
1712
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
|
|
1699
1713
|
}),
|
|
1700
1714
|
_: 1
|
|
1701
1715
|
/* STABLE */
|
|
@@ -1851,6 +1865,9 @@ var script$k = /*#__PURE__*/vue.defineComponent({
|
|
|
1851
1865
|
emit("update:value", value);
|
|
1852
1866
|
}
|
|
1853
1867
|
});
|
|
1868
|
+
var filterOption = vue.computed(function () {
|
|
1869
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1870
|
+
});
|
|
1854
1871
|
/**
|
|
1855
1872
|
* 侦听器-------------------------------------
|
|
1856
1873
|
* */
|
|
@@ -1916,10 +1933,10 @@ var script$k = /*#__PURE__*/vue.defineComponent({
|
|
|
1916
1933
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1917
1934
|
return _ctx.$emit('change', $event);
|
|
1918
1935
|
}),
|
|
1919
|
-
|
|
1936
|
+
filterOption: vue.unref(filterOption)
|
|
1920
1937
|
}), null, 16
|
|
1921
1938
|
/* FULL_PROPS */
|
|
1922
|
-
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
1939
|
+
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
1923
1940
|
}),
|
|
1924
1941
|
_: 1
|
|
1925
1942
|
/* STABLE */
|
|
@@ -2072,6 +2089,9 @@ var script$j = /*#__PURE__*/vue.defineComponent({
|
|
|
2072
2089
|
emit("update:value", value);
|
|
2073
2090
|
}
|
|
2074
2091
|
});
|
|
2092
|
+
var filterOption = vue.computed(function () {
|
|
2093
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2094
|
+
});
|
|
2075
2095
|
/**
|
|
2076
2096
|
* 侦听器-------------------------------------
|
|
2077
2097
|
* */
|
|
@@ -2136,10 +2156,10 @@ var script$j = /*#__PURE__*/vue.defineComponent({
|
|
|
2136
2156
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2137
2157
|
return _ctx.$emit('change', $event);
|
|
2138
2158
|
}),
|
|
2139
|
-
|
|
2159
|
+
filterOption: vue.unref(filterOption)
|
|
2140
2160
|
}), null, 16
|
|
2141
2161
|
/* FULL_PROPS */
|
|
2142
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2162
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2143
2163
|
}),
|
|
2144
2164
|
_: 1
|
|
2145
2165
|
/* STABLE */
|
|
@@ -2179,6 +2199,16 @@ var script$i = /*#__PURE__*/vue.defineComponent({
|
|
|
2179
2199
|
type: Object,
|
|
2180
2200
|
required: false
|
|
2181
2201
|
},
|
|
2202
|
+
fieldNames: {
|
|
2203
|
+
type: null,
|
|
2204
|
+
required: false,
|
|
2205
|
+
"default": function _default() {
|
|
2206
|
+
return {
|
|
2207
|
+
label: "name",
|
|
2208
|
+
value: "id"
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2182
2212
|
replaceFields: {
|
|
2183
2213
|
type: null,
|
|
2184
2214
|
required: false,
|
|
@@ -2302,6 +2332,9 @@ var script$i = /*#__PURE__*/vue.defineComponent({
|
|
|
2302
2332
|
emit("update:value", value);
|
|
2303
2333
|
}
|
|
2304
2334
|
});
|
|
2335
|
+
var filterOption = vue.computed(function () {
|
|
2336
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2337
|
+
});
|
|
2305
2338
|
/**
|
|
2306
2339
|
* 侦听器-------------------------------------
|
|
2307
2340
|
* */
|
|
@@ -2364,7 +2397,8 @@ var script$i = /*#__PURE__*/vue.defineComponent({
|
|
|
2364
2397
|
showArrow: "",
|
|
2365
2398
|
showSearch: "",
|
|
2366
2399
|
allowClear: !__props.isRequired,
|
|
2367
|
-
|
|
2400
|
+
filterOption: vue.unref(filterOption),
|
|
2401
|
+
fieldNames: __props.fieldNames,
|
|
2368
2402
|
multiple: __props.multiple,
|
|
2369
2403
|
treeDefaultExpandAll: "",
|
|
2370
2404
|
style: __props.inputStyle,
|
|
@@ -2374,7 +2408,7 @@ var script$i = /*#__PURE__*/vue.defineComponent({
|
|
|
2374
2408
|
replaceFields: __props.replaceFields
|
|
2375
2409
|
}), null, 16
|
|
2376
2410
|
/* FULL_PROPS */
|
|
2377
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
2411
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "fieldNames", "multiple", "style", "replaceFields"]), vue.createElementVNode("span", _hoisted_2$9, [vue.renderSlot(_ctx.$slots, "notes")])];
|
|
2378
2412
|
}),
|
|
2379
2413
|
_: 3
|
|
2380
2414
|
/* FORWARDED */
|
|
@@ -2522,6 +2556,9 @@ var script$h = /*#__PURE__*/vue.defineComponent({
|
|
|
2522
2556
|
emit("update:value", value);
|
|
2523
2557
|
}
|
|
2524
2558
|
});
|
|
2559
|
+
var filterOption = vue.computed(function () {
|
|
2560
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2561
|
+
});
|
|
2525
2562
|
/**
|
|
2526
2563
|
* 侦听器-------------------------------------
|
|
2527
2564
|
* */
|
|
@@ -2583,14 +2620,14 @@ var script$h = /*#__PURE__*/vue.defineComponent({
|
|
|
2583
2620
|
mode: __props.multiple ? 'multiple' : '',
|
|
2584
2621
|
showArrow: "",
|
|
2585
2622
|
options: dataV.value,
|
|
2586
|
-
|
|
2623
|
+
filterOption: vue.unref(filterOption),
|
|
2587
2624
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2588
2625
|
return _ctx.$emit('change', $event);
|
|
2589
2626
|
}),
|
|
2590
2627
|
fieldNames: __props.fieldNames
|
|
2591
2628
|
}), null, 16
|
|
2592
2629
|
/* FULL_PROPS */
|
|
2593
|
-
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "
|
|
2630
|
+
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "filterOption", "fieldNames"])];
|
|
2594
2631
|
}),
|
|
2595
2632
|
_: 1
|
|
2596
2633
|
/* STABLE */
|
|
@@ -2729,6 +2766,9 @@ var script$g = /*#__PURE__*/vue.defineComponent({
|
|
|
2729
2766
|
emit("update:value", value);
|
|
2730
2767
|
}
|
|
2731
2768
|
});
|
|
2769
|
+
var filterOption = vue.computed(function () {
|
|
2770
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2771
|
+
});
|
|
2732
2772
|
/**
|
|
2733
2773
|
* 侦听器-------------------------------------
|
|
2734
2774
|
* */
|
|
@@ -2793,10 +2833,10 @@ var script$g = /*#__PURE__*/vue.defineComponent({
|
|
|
2793
2833
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2794
2834
|
return _ctx.$emit('change', $event);
|
|
2795
2835
|
}),
|
|
2796
|
-
|
|
2836
|
+
filterOption: vue.unref(filterOption)
|
|
2797
2837
|
}), null, 16
|
|
2798
2838
|
/* FULL_PROPS */
|
|
2799
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2839
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2800
2840
|
}),
|
|
2801
2841
|
_: 1
|
|
2802
2842
|
/* STABLE */
|
|
@@ -2868,6 +2908,9 @@ var script$f = /*#__PURE__*/vue.defineComponent({
|
|
|
2868
2908
|
emit("update:value", value);
|
|
2869
2909
|
}
|
|
2870
2910
|
});
|
|
2911
|
+
var filterOption = vue.computed(function () {
|
|
2912
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2913
|
+
});
|
|
2871
2914
|
return function (_ctx, _cache) {
|
|
2872
2915
|
var _component_a_select = vue.resolveComponent("a-select");
|
|
2873
2916
|
|
|
@@ -2883,13 +2926,13 @@ var script$f = /*#__PURE__*/vue.defineComponent({
|
|
|
2883
2926
|
bordered: false,
|
|
2884
2927
|
options: dataV.value,
|
|
2885
2928
|
fieldNames: __props.fieldNames,
|
|
2886
|
-
|
|
2929
|
+
filterOption: vue.unref(filterOption),
|
|
2887
2930
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2888
2931
|
return _ctx.$emit('change', $event);
|
|
2889
2932
|
})
|
|
2890
2933
|
}), null, 16
|
|
2891
2934
|
/* FULL_PROPS */
|
|
2892
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
2935
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
2893
2936
|
};
|
|
2894
2937
|
}
|
|
2895
2938
|
});
|
|
@@ -2985,6 +3028,9 @@ var script$e = /*#__PURE__*/vue.defineComponent({
|
|
|
2985
3028
|
emit("update:value", value);
|
|
2986
3029
|
}
|
|
2987
3030
|
});
|
|
3031
|
+
var filterOption = vue.computed(function () {
|
|
3032
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
3033
|
+
});
|
|
2988
3034
|
/**
|
|
2989
3035
|
* 侦听器-------------------------------------
|
|
2990
3036
|
* */
|
|
@@ -3024,13 +3070,13 @@ var script$e = /*#__PURE__*/vue.defineComponent({
|
|
|
3024
3070
|
bordered: false,
|
|
3025
3071
|
options: dataV.value,
|
|
3026
3072
|
fieldNames: __props.fieldNames,
|
|
3027
|
-
|
|
3073
|
+
filterOption: vue.unref(filterOption),
|
|
3028
3074
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
3029
3075
|
return _ctx.$emit('change', $event);
|
|
3030
3076
|
})
|
|
3031
3077
|
}), null, 16
|
|
3032
3078
|
/* FULL_PROPS */
|
|
3033
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
3079
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
3034
3080
|
};
|
|
3035
3081
|
}
|
|
3036
3082
|
});
|
|
@@ -3242,7 +3288,7 @@ var script$d = /*#__PURE__*/vue.defineComponent({
|
|
|
3242
3288
|
maxHeight: '400px',
|
|
3243
3289
|
overflow: 'auto'
|
|
3244
3290
|
},
|
|
3245
|
-
|
|
3291
|
+
filterOption: vue.unref(filterOptionHeadle),
|
|
3246
3292
|
multiple: __props.multiple,
|
|
3247
3293
|
treeDefaultExpandAll: "",
|
|
3248
3294
|
style: __props.inputStyle,
|
|
@@ -3252,7 +3298,7 @@ var script$d = /*#__PURE__*/vue.defineComponent({
|
|
|
3252
3298
|
replaceFields: __props.replaceFields
|
|
3253
3299
|
}), null, 16
|
|
3254
3300
|
/* FULL_PROPS */
|
|
3255
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
3301
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "multiple", "style", "replaceFields"])];
|
|
3256
3302
|
}),
|
|
3257
3303
|
_: 1
|
|
3258
3304
|
/* STABLE */
|
|
@@ -3460,6 +3506,7 @@ var script$b = /*#__PURE__*/vue.defineComponent({
|
|
|
3460
3506
|
var _option,
|
|
3461
3507
|
_a,
|
|
3462
3508
|
_yield$formatHTTP,
|
|
3509
|
+
items,
|
|
3463
3510
|
totalCount,
|
|
3464
3511
|
_args2 = arguments;
|
|
3465
3512
|
|
|
@@ -3475,16 +3522,13 @@ var script$b = /*#__PURE__*/vue.defineComponent({
|
|
|
3475
3522
|
|
|
3476
3523
|
case 3:
|
|
3477
3524
|
_yield$formatHTTP = _context2.sent;
|
|
3478
|
-
_yield$formatHTTP.items;
|
|
3525
|
+
items = _yield$formatHTTP.items;
|
|
3479
3526
|
totalCount = _yield$formatHTTP.totalCount;
|
|
3480
|
-
|
|
3481
|
-
// item.creationTime = dateFormat(item.creationTime, "YYYY-MM-DD");
|
|
3482
|
-
// return item;
|
|
3483
|
-
// });
|
|
3527
|
+
dataV.value = items;
|
|
3484
3528
|
totalPages.value = totalCount;
|
|
3485
3529
|
topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
|
|
3486
3530
|
|
|
3487
|
-
case
|
|
3531
|
+
case 9:
|
|
3488
3532
|
case "end":
|
|
3489
3533
|
return _context2.stop();
|
|
3490
3534
|
}
|
|
@@ -4217,6 +4261,9 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
|
|
|
4217
4261
|
emit("update:value", value);
|
|
4218
4262
|
}
|
|
4219
4263
|
});
|
|
4264
|
+
var filterOption = vue.computed(function () {
|
|
4265
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4266
|
+
});
|
|
4220
4267
|
/**
|
|
4221
4268
|
* 侦听器-------------------------------------
|
|
4222
4269
|
* */
|
|
@@ -4284,10 +4331,10 @@ var script$9 = /*#__PURE__*/vue.defineComponent({
|
|
|
4284
4331
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4285
4332
|
return _ctx.$emit('change', $event);
|
|
4286
4333
|
}),
|
|
4287
|
-
|
|
4334
|
+
filterOption: vue.unref(filterOption)
|
|
4288
4335
|
}), null, 16
|
|
4289
4336
|
/* FULL_PROPS */
|
|
4290
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4337
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4291
4338
|
}),
|
|
4292
4339
|
_: 1
|
|
4293
4340
|
/* STABLE */
|
|
@@ -4436,6 +4483,9 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
|
|
|
4436
4483
|
emit("update:value", value);
|
|
4437
4484
|
}
|
|
4438
4485
|
});
|
|
4486
|
+
var filterOption = vue.computed(function () {
|
|
4487
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4488
|
+
});
|
|
4439
4489
|
/**
|
|
4440
4490
|
* 侦听器-------------------------------------
|
|
4441
4491
|
* */
|
|
@@ -4503,10 +4553,10 @@ var script$8 = /*#__PURE__*/vue.defineComponent({
|
|
|
4503
4553
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4504
4554
|
return _ctx.$emit('change', $event);
|
|
4505
4555
|
}),
|
|
4506
|
-
|
|
4556
|
+
filterOption: vue.unref(filterOption)
|
|
4507
4557
|
}), null, 16
|
|
4508
4558
|
/* FULL_PROPS */
|
|
4509
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4559
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4510
4560
|
}),
|
|
4511
4561
|
_: 1
|
|
4512
4562
|
/* STABLE */
|
|
@@ -1507,6 +1507,16 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1507
1507
|
type: Object,
|
|
1508
1508
|
required: false
|
|
1509
1509
|
},
|
|
1510
|
+
fieldNames: {
|
|
1511
|
+
type: null,
|
|
1512
|
+
required: false,
|
|
1513
|
+
"default": function _default() {
|
|
1514
|
+
return {
|
|
1515
|
+
label: "name",
|
|
1516
|
+
value: "id"
|
|
1517
|
+
};
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1510
1520
|
replaceFields: {
|
|
1511
1521
|
type: null,
|
|
1512
1522
|
required: false,
|
|
@@ -1620,6 +1630,9 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1620
1630
|
emit("update:value", value);
|
|
1621
1631
|
}
|
|
1622
1632
|
});
|
|
1633
|
+
var filterOption = computed(function () {
|
|
1634
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1635
|
+
});
|
|
1623
1636
|
/**
|
|
1624
1637
|
* 侦听器-------------------------------------
|
|
1625
1638
|
* */
|
|
@@ -1682,16 +1695,17 @@ var script$l = /*#__PURE__*/defineComponent({
|
|
|
1682
1695
|
allowClear: !__props.isRequired,
|
|
1683
1696
|
showSearch: "",
|
|
1684
1697
|
multiple: __props.multiple,
|
|
1685
|
-
|
|
1698
|
+
filterOption: unref(filterOption),
|
|
1686
1699
|
treeDefaultExpandAll: "",
|
|
1687
1700
|
style: __props.inputStyle,
|
|
1688
1701
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1689
1702
|
return _ctx.$emit('change', $event);
|
|
1690
1703
|
}),
|
|
1704
|
+
fieldNames: __props.fieldNames,
|
|
1691
1705
|
replaceFields: __props.replaceFields
|
|
1692
1706
|
}), null, 16
|
|
1693
1707
|
/* FULL_PROPS */
|
|
1694
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "
|
|
1708
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
|
|
1695
1709
|
}),
|
|
1696
1710
|
_: 1
|
|
1697
1711
|
/* STABLE */
|
|
@@ -1847,6 +1861,9 @@ var script$k = /*#__PURE__*/defineComponent({
|
|
|
1847
1861
|
emit("update:value", value);
|
|
1848
1862
|
}
|
|
1849
1863
|
});
|
|
1864
|
+
var filterOption = computed(function () {
|
|
1865
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1866
|
+
});
|
|
1850
1867
|
/**
|
|
1851
1868
|
* 侦听器-------------------------------------
|
|
1852
1869
|
* */
|
|
@@ -1912,10 +1929,10 @@ var script$k = /*#__PURE__*/defineComponent({
|
|
|
1912
1929
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1913
1930
|
return _ctx.$emit('change', $event);
|
|
1914
1931
|
}),
|
|
1915
|
-
|
|
1932
|
+
filterOption: unref(filterOption)
|
|
1916
1933
|
}), null, 16
|
|
1917
1934
|
/* FULL_PROPS */
|
|
1918
|
-
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
1935
|
+
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
1919
1936
|
}),
|
|
1920
1937
|
_: 1
|
|
1921
1938
|
/* STABLE */
|
|
@@ -2068,6 +2085,9 @@ var script$j = /*#__PURE__*/defineComponent({
|
|
|
2068
2085
|
emit("update:value", value);
|
|
2069
2086
|
}
|
|
2070
2087
|
});
|
|
2088
|
+
var filterOption = computed(function () {
|
|
2089
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2090
|
+
});
|
|
2071
2091
|
/**
|
|
2072
2092
|
* 侦听器-------------------------------------
|
|
2073
2093
|
* */
|
|
@@ -2132,10 +2152,10 @@ var script$j = /*#__PURE__*/defineComponent({
|
|
|
2132
2152
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2133
2153
|
return _ctx.$emit('change', $event);
|
|
2134
2154
|
}),
|
|
2135
|
-
|
|
2155
|
+
filterOption: unref(filterOption)
|
|
2136
2156
|
}), null, 16
|
|
2137
2157
|
/* FULL_PROPS */
|
|
2138
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2158
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2139
2159
|
}),
|
|
2140
2160
|
_: 1
|
|
2141
2161
|
/* STABLE */
|
|
@@ -2175,6 +2195,16 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2175
2195
|
type: Object,
|
|
2176
2196
|
required: false
|
|
2177
2197
|
},
|
|
2198
|
+
fieldNames: {
|
|
2199
|
+
type: null,
|
|
2200
|
+
required: false,
|
|
2201
|
+
"default": function _default() {
|
|
2202
|
+
return {
|
|
2203
|
+
label: "name",
|
|
2204
|
+
value: "id"
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2178
2208
|
replaceFields: {
|
|
2179
2209
|
type: null,
|
|
2180
2210
|
required: false,
|
|
@@ -2298,6 +2328,9 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2298
2328
|
emit("update:value", value);
|
|
2299
2329
|
}
|
|
2300
2330
|
});
|
|
2331
|
+
var filterOption = computed(function () {
|
|
2332
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2333
|
+
});
|
|
2301
2334
|
/**
|
|
2302
2335
|
* 侦听器-------------------------------------
|
|
2303
2336
|
* */
|
|
@@ -2360,7 +2393,8 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2360
2393
|
showArrow: "",
|
|
2361
2394
|
showSearch: "",
|
|
2362
2395
|
allowClear: !__props.isRequired,
|
|
2363
|
-
|
|
2396
|
+
filterOption: unref(filterOption),
|
|
2397
|
+
fieldNames: __props.fieldNames,
|
|
2364
2398
|
multiple: __props.multiple,
|
|
2365
2399
|
treeDefaultExpandAll: "",
|
|
2366
2400
|
style: __props.inputStyle,
|
|
@@ -2370,7 +2404,7 @@ var script$i = /*#__PURE__*/defineComponent({
|
|
|
2370
2404
|
replaceFields: __props.replaceFields
|
|
2371
2405
|
}), null, 16
|
|
2372
2406
|
/* FULL_PROPS */
|
|
2373
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
2407
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "fieldNames", "multiple", "style", "replaceFields"]), createElementVNode("span", _hoisted_2$9, [renderSlot(_ctx.$slots, "notes")])];
|
|
2374
2408
|
}),
|
|
2375
2409
|
_: 3
|
|
2376
2410
|
/* FORWARDED */
|
|
@@ -2518,6 +2552,9 @@ var script$h = /*#__PURE__*/defineComponent({
|
|
|
2518
2552
|
emit("update:value", value);
|
|
2519
2553
|
}
|
|
2520
2554
|
});
|
|
2555
|
+
var filterOption = computed(function () {
|
|
2556
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2557
|
+
});
|
|
2521
2558
|
/**
|
|
2522
2559
|
* 侦听器-------------------------------------
|
|
2523
2560
|
* */
|
|
@@ -2579,14 +2616,14 @@ var script$h = /*#__PURE__*/defineComponent({
|
|
|
2579
2616
|
mode: __props.multiple ? 'multiple' : '',
|
|
2580
2617
|
showArrow: "",
|
|
2581
2618
|
options: dataV.value,
|
|
2582
|
-
|
|
2619
|
+
filterOption: unref(filterOption),
|
|
2583
2620
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2584
2621
|
return _ctx.$emit('change', $event);
|
|
2585
2622
|
}),
|
|
2586
2623
|
fieldNames: __props.fieldNames
|
|
2587
2624
|
}), null, 16
|
|
2588
2625
|
/* FULL_PROPS */
|
|
2589
|
-
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "
|
|
2626
|
+
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "filterOption", "fieldNames"])];
|
|
2590
2627
|
}),
|
|
2591
2628
|
_: 1
|
|
2592
2629
|
/* STABLE */
|
|
@@ -2725,6 +2762,9 @@ var script$g = /*#__PURE__*/defineComponent({
|
|
|
2725
2762
|
emit("update:value", value);
|
|
2726
2763
|
}
|
|
2727
2764
|
});
|
|
2765
|
+
var filterOption = computed(function () {
|
|
2766
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2767
|
+
});
|
|
2728
2768
|
/**
|
|
2729
2769
|
* 侦听器-------------------------------------
|
|
2730
2770
|
* */
|
|
@@ -2789,10 +2829,10 @@ var script$g = /*#__PURE__*/defineComponent({
|
|
|
2789
2829
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2790
2830
|
return _ctx.$emit('change', $event);
|
|
2791
2831
|
}),
|
|
2792
|
-
|
|
2832
|
+
filterOption: unref(filterOption)
|
|
2793
2833
|
}), null, 16
|
|
2794
2834
|
/* FULL_PROPS */
|
|
2795
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2835
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2796
2836
|
}),
|
|
2797
2837
|
_: 1
|
|
2798
2838
|
/* STABLE */
|
|
@@ -2864,6 +2904,9 @@ var script$f = /*#__PURE__*/defineComponent({
|
|
|
2864
2904
|
emit("update:value", value);
|
|
2865
2905
|
}
|
|
2866
2906
|
});
|
|
2907
|
+
var filterOption = computed(function () {
|
|
2908
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2909
|
+
});
|
|
2867
2910
|
return function (_ctx, _cache) {
|
|
2868
2911
|
var _component_a_select = resolveComponent("a-select");
|
|
2869
2912
|
|
|
@@ -2879,13 +2922,13 @@ var script$f = /*#__PURE__*/defineComponent({
|
|
|
2879
2922
|
bordered: false,
|
|
2880
2923
|
options: dataV.value,
|
|
2881
2924
|
fieldNames: __props.fieldNames,
|
|
2882
|
-
|
|
2925
|
+
filterOption: unref(filterOption),
|
|
2883
2926
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2884
2927
|
return _ctx.$emit('change', $event);
|
|
2885
2928
|
})
|
|
2886
2929
|
}), null, 16
|
|
2887
2930
|
/* FULL_PROPS */
|
|
2888
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
2931
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
2889
2932
|
};
|
|
2890
2933
|
}
|
|
2891
2934
|
});
|
|
@@ -2981,6 +3024,9 @@ var script$e = /*#__PURE__*/defineComponent({
|
|
|
2981
3024
|
emit("update:value", value);
|
|
2982
3025
|
}
|
|
2983
3026
|
});
|
|
3027
|
+
var filterOption = computed(function () {
|
|
3028
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
3029
|
+
});
|
|
2984
3030
|
/**
|
|
2985
3031
|
* 侦听器-------------------------------------
|
|
2986
3032
|
* */
|
|
@@ -3020,13 +3066,13 @@ var script$e = /*#__PURE__*/defineComponent({
|
|
|
3020
3066
|
bordered: false,
|
|
3021
3067
|
options: dataV.value,
|
|
3022
3068
|
fieldNames: __props.fieldNames,
|
|
3023
|
-
|
|
3069
|
+
filterOption: unref(filterOption),
|
|
3024
3070
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
3025
3071
|
return _ctx.$emit('change', $event);
|
|
3026
3072
|
})
|
|
3027
3073
|
}), null, 16
|
|
3028
3074
|
/* FULL_PROPS */
|
|
3029
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
3075
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
3030
3076
|
};
|
|
3031
3077
|
}
|
|
3032
3078
|
});
|
|
@@ -3238,7 +3284,7 @@ var script$d = /*#__PURE__*/defineComponent({
|
|
|
3238
3284
|
maxHeight: '400px',
|
|
3239
3285
|
overflow: 'auto'
|
|
3240
3286
|
},
|
|
3241
|
-
|
|
3287
|
+
filterOption: unref(filterOptionHeadle),
|
|
3242
3288
|
multiple: __props.multiple,
|
|
3243
3289
|
treeDefaultExpandAll: "",
|
|
3244
3290
|
style: __props.inputStyle,
|
|
@@ -3248,7 +3294,7 @@ var script$d = /*#__PURE__*/defineComponent({
|
|
|
3248
3294
|
replaceFields: __props.replaceFields
|
|
3249
3295
|
}), null, 16
|
|
3250
3296
|
/* FULL_PROPS */
|
|
3251
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
3297
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "multiple", "style", "replaceFields"])];
|
|
3252
3298
|
}),
|
|
3253
3299
|
_: 1
|
|
3254
3300
|
/* STABLE */
|
|
@@ -3456,6 +3502,7 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3456
3502
|
var _option,
|
|
3457
3503
|
_a,
|
|
3458
3504
|
_yield$formatHTTP,
|
|
3505
|
+
items,
|
|
3459
3506
|
totalCount,
|
|
3460
3507
|
_args2 = arguments;
|
|
3461
3508
|
|
|
@@ -3471,16 +3518,13 @@ var script$b = /*#__PURE__*/defineComponent({
|
|
|
3471
3518
|
|
|
3472
3519
|
case 3:
|
|
3473
3520
|
_yield$formatHTTP = _context2.sent;
|
|
3474
|
-
_yield$formatHTTP.items;
|
|
3521
|
+
items = _yield$formatHTTP.items;
|
|
3475
3522
|
totalCount = _yield$formatHTTP.totalCount;
|
|
3476
|
-
|
|
3477
|
-
// item.creationTime = dateFormat(item.creationTime, "YYYY-MM-DD");
|
|
3478
|
-
// return item;
|
|
3479
|
-
// });
|
|
3523
|
+
dataV.value = items;
|
|
3480
3524
|
totalPages.value = totalCount;
|
|
3481
3525
|
topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
|
|
3482
3526
|
|
|
3483
|
-
case
|
|
3527
|
+
case 9:
|
|
3484
3528
|
case "end":
|
|
3485
3529
|
return _context2.stop();
|
|
3486
3530
|
}
|
|
@@ -4213,6 +4257,9 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
4213
4257
|
emit("update:value", value);
|
|
4214
4258
|
}
|
|
4215
4259
|
});
|
|
4260
|
+
var filterOption = computed(function () {
|
|
4261
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4262
|
+
});
|
|
4216
4263
|
/**
|
|
4217
4264
|
* 侦听器-------------------------------------
|
|
4218
4265
|
* */
|
|
@@ -4280,10 +4327,10 @@ var script$9 = /*#__PURE__*/defineComponent({
|
|
|
4280
4327
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4281
4328
|
return _ctx.$emit('change', $event);
|
|
4282
4329
|
}),
|
|
4283
|
-
|
|
4330
|
+
filterOption: unref(filterOption)
|
|
4284
4331
|
}), null, 16
|
|
4285
4332
|
/* FULL_PROPS */
|
|
4286
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4333
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4287
4334
|
}),
|
|
4288
4335
|
_: 1
|
|
4289
4336
|
/* STABLE */
|
|
@@ -4432,6 +4479,9 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
4432
4479
|
emit("update:value", value);
|
|
4433
4480
|
}
|
|
4434
4481
|
});
|
|
4482
|
+
var filterOption = computed(function () {
|
|
4483
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4484
|
+
});
|
|
4435
4485
|
/**
|
|
4436
4486
|
* 侦听器-------------------------------------
|
|
4437
4487
|
* */
|
|
@@ -4499,10 +4549,10 @@ var script$8 = /*#__PURE__*/defineComponent({
|
|
|
4499
4549
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4500
4550
|
return _ctx.$emit('change', $event);
|
|
4501
4551
|
}),
|
|
4502
|
-
|
|
4552
|
+
filterOption: unref(filterOption)
|
|
4503
4553
|
}), null, 16
|
|
4504
4554
|
/* FULL_PROPS */
|
|
4505
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4555
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4506
4556
|
}),
|
|
4507
4557
|
_: 1
|
|
4508
4558
|
/* STABLE */
|
|
@@ -1511,6 +1511,16 @@
|
|
|
1511
1511
|
type: Object,
|
|
1512
1512
|
required: false
|
|
1513
1513
|
},
|
|
1514
|
+
fieldNames: {
|
|
1515
|
+
type: null,
|
|
1516
|
+
required: false,
|
|
1517
|
+
"default": function _default() {
|
|
1518
|
+
return {
|
|
1519
|
+
label: "name",
|
|
1520
|
+
value: "id"
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1514
1524
|
replaceFields: {
|
|
1515
1525
|
type: null,
|
|
1516
1526
|
required: false,
|
|
@@ -1624,6 +1634,9 @@
|
|
|
1624
1634
|
emit("update:value", value);
|
|
1625
1635
|
}
|
|
1626
1636
|
});
|
|
1637
|
+
var filterOption = vue.computed(function () {
|
|
1638
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1639
|
+
});
|
|
1627
1640
|
/**
|
|
1628
1641
|
* 侦听器-------------------------------------
|
|
1629
1642
|
* */
|
|
@@ -1686,16 +1699,17 @@
|
|
|
1686
1699
|
allowClear: !__props.isRequired,
|
|
1687
1700
|
showSearch: "",
|
|
1688
1701
|
multiple: __props.multiple,
|
|
1689
|
-
|
|
1702
|
+
filterOption: vue.unref(filterOption),
|
|
1690
1703
|
treeDefaultExpandAll: "",
|
|
1691
1704
|
style: __props.inputStyle,
|
|
1692
1705
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1693
1706
|
return _ctx.$emit('change', $event);
|
|
1694
1707
|
}),
|
|
1708
|
+
fieldNames: __props.fieldNames,
|
|
1695
1709
|
replaceFields: __props.replaceFields
|
|
1696
1710
|
}), null, 16
|
|
1697
1711
|
/* FULL_PROPS */
|
|
1698
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "
|
|
1712
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "multiple", "filterOption", "style", "fieldNames", "replaceFields"])];
|
|
1699
1713
|
}),
|
|
1700
1714
|
_: 1
|
|
1701
1715
|
/* STABLE */
|
|
@@ -1851,6 +1865,9 @@
|
|
|
1851
1865
|
emit("update:value", value);
|
|
1852
1866
|
}
|
|
1853
1867
|
});
|
|
1868
|
+
var filterOption = vue.computed(function () {
|
|
1869
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
1870
|
+
});
|
|
1854
1871
|
/**
|
|
1855
1872
|
* 侦听器-------------------------------------
|
|
1856
1873
|
* */
|
|
@@ -1916,10 +1933,10 @@
|
|
|
1916
1933
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
1917
1934
|
return _ctx.$emit('change', $event);
|
|
1918
1935
|
}),
|
|
1919
|
-
|
|
1936
|
+
filterOption: vue.unref(filterOption)
|
|
1920
1937
|
}), null, 16
|
|
1921
1938
|
/* FULL_PROPS */
|
|
1922
|
-
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
1939
|
+
, ["value", "getPopupContainer", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
1923
1940
|
}),
|
|
1924
1941
|
_: 1
|
|
1925
1942
|
/* STABLE */
|
|
@@ -2072,6 +2089,9 @@
|
|
|
2072
2089
|
emit("update:value", value);
|
|
2073
2090
|
}
|
|
2074
2091
|
});
|
|
2092
|
+
var filterOption = vue.computed(function () {
|
|
2093
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2094
|
+
});
|
|
2075
2095
|
/**
|
|
2076
2096
|
* 侦听器-------------------------------------
|
|
2077
2097
|
* */
|
|
@@ -2136,10 +2156,10 @@
|
|
|
2136
2156
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2137
2157
|
return _ctx.$emit('change', $event);
|
|
2138
2158
|
}),
|
|
2139
|
-
|
|
2159
|
+
filterOption: vue.unref(filterOption)
|
|
2140
2160
|
}), null, 16
|
|
2141
2161
|
/* FULL_PROPS */
|
|
2142
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2162
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2143
2163
|
}),
|
|
2144
2164
|
_: 1
|
|
2145
2165
|
/* STABLE */
|
|
@@ -2179,6 +2199,16 @@
|
|
|
2179
2199
|
type: Object,
|
|
2180
2200
|
required: false
|
|
2181
2201
|
},
|
|
2202
|
+
fieldNames: {
|
|
2203
|
+
type: null,
|
|
2204
|
+
required: false,
|
|
2205
|
+
"default": function _default() {
|
|
2206
|
+
return {
|
|
2207
|
+
label: "name",
|
|
2208
|
+
value: "id"
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2182
2212
|
replaceFields: {
|
|
2183
2213
|
type: null,
|
|
2184
2214
|
required: false,
|
|
@@ -2302,6 +2332,9 @@
|
|
|
2302
2332
|
emit("update:value", value);
|
|
2303
2333
|
}
|
|
2304
2334
|
});
|
|
2335
|
+
var filterOption = vue.computed(function () {
|
|
2336
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2337
|
+
});
|
|
2305
2338
|
/**
|
|
2306
2339
|
* 侦听器-------------------------------------
|
|
2307
2340
|
* */
|
|
@@ -2364,7 +2397,8 @@
|
|
|
2364
2397
|
showArrow: "",
|
|
2365
2398
|
showSearch: "",
|
|
2366
2399
|
allowClear: !__props.isRequired,
|
|
2367
|
-
|
|
2400
|
+
filterOption: vue.unref(filterOption),
|
|
2401
|
+
fieldNames: __props.fieldNames,
|
|
2368
2402
|
multiple: __props.multiple,
|
|
2369
2403
|
treeDefaultExpandAll: "",
|
|
2370
2404
|
style: __props.inputStyle,
|
|
@@ -2374,7 +2408,7 @@
|
|
|
2374
2408
|
replaceFields: __props.replaceFields
|
|
2375
2409
|
}), null, 16
|
|
2376
2410
|
/* FULL_PROPS */
|
|
2377
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
2411
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "fieldNames", "multiple", "style", "replaceFields"]), vue.createElementVNode("span", _hoisted_2$9, [vue.renderSlot(_ctx.$slots, "notes")])];
|
|
2378
2412
|
}),
|
|
2379
2413
|
_: 3
|
|
2380
2414
|
/* FORWARDED */
|
|
@@ -2522,6 +2556,9 @@
|
|
|
2522
2556
|
emit("update:value", value);
|
|
2523
2557
|
}
|
|
2524
2558
|
});
|
|
2559
|
+
var filterOption = vue.computed(function () {
|
|
2560
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2561
|
+
});
|
|
2525
2562
|
/**
|
|
2526
2563
|
* 侦听器-------------------------------------
|
|
2527
2564
|
* */
|
|
@@ -2583,14 +2620,14 @@
|
|
|
2583
2620
|
mode: __props.multiple ? 'multiple' : '',
|
|
2584
2621
|
showArrow: "",
|
|
2585
2622
|
options: dataV.value,
|
|
2586
|
-
|
|
2623
|
+
filterOption: vue.unref(filterOption),
|
|
2587
2624
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2588
2625
|
return _ctx.$emit('change', $event);
|
|
2589
2626
|
}),
|
|
2590
2627
|
fieldNames: __props.fieldNames
|
|
2591
2628
|
}), null, 16
|
|
2592
2629
|
/* FULL_PROPS */
|
|
2593
|
-
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "
|
|
2630
|
+
, ["value", "getPopupContainer", "allowClear", "style", "placeholder", "mode", "options", "filterOption", "fieldNames"])];
|
|
2594
2631
|
}),
|
|
2595
2632
|
_: 1
|
|
2596
2633
|
/* STABLE */
|
|
@@ -2729,6 +2766,9 @@
|
|
|
2729
2766
|
emit("update:value", value);
|
|
2730
2767
|
}
|
|
2731
2768
|
});
|
|
2769
|
+
var filterOption = vue.computed(function () {
|
|
2770
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2771
|
+
});
|
|
2732
2772
|
/**
|
|
2733
2773
|
* 侦听器-------------------------------------
|
|
2734
2774
|
* */
|
|
@@ -2793,10 +2833,10 @@
|
|
|
2793
2833
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2794
2834
|
return _ctx.$emit('change', $event);
|
|
2795
2835
|
}),
|
|
2796
|
-
|
|
2836
|
+
filterOption: vue.unref(filterOption)
|
|
2797
2837
|
}), null, 16
|
|
2798
2838
|
/* FULL_PROPS */
|
|
2799
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
2839
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
2800
2840
|
}),
|
|
2801
2841
|
_: 1
|
|
2802
2842
|
/* STABLE */
|
|
@@ -2868,6 +2908,9 @@
|
|
|
2868
2908
|
emit("update:value", value);
|
|
2869
2909
|
}
|
|
2870
2910
|
});
|
|
2911
|
+
var filterOption = vue.computed(function () {
|
|
2912
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
2913
|
+
});
|
|
2871
2914
|
return function (_ctx, _cache) {
|
|
2872
2915
|
var _component_a_select = vue.resolveComponent("a-select");
|
|
2873
2916
|
|
|
@@ -2883,13 +2926,13 @@
|
|
|
2883
2926
|
bordered: false,
|
|
2884
2927
|
options: dataV.value,
|
|
2885
2928
|
fieldNames: __props.fieldNames,
|
|
2886
|
-
|
|
2929
|
+
filterOption: vue.unref(filterOption),
|
|
2887
2930
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
2888
2931
|
return _ctx.$emit('change', $event);
|
|
2889
2932
|
})
|
|
2890
2933
|
}), null, 16
|
|
2891
2934
|
/* FULL_PROPS */
|
|
2892
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
2935
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
2893
2936
|
};
|
|
2894
2937
|
}
|
|
2895
2938
|
});
|
|
@@ -2985,6 +3028,9 @@
|
|
|
2985
3028
|
emit("update:value", value);
|
|
2986
3029
|
}
|
|
2987
3030
|
});
|
|
3031
|
+
var filterOption = vue.computed(function () {
|
|
3032
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
3033
|
+
});
|
|
2988
3034
|
/**
|
|
2989
3035
|
* 侦听器-------------------------------------
|
|
2990
3036
|
* */
|
|
@@ -3024,13 +3070,13 @@
|
|
|
3024
3070
|
bordered: false,
|
|
3025
3071
|
options: dataV.value,
|
|
3026
3072
|
fieldNames: __props.fieldNames,
|
|
3027
|
-
|
|
3073
|
+
filterOption: vue.unref(filterOption),
|
|
3028
3074
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
3029
3075
|
return _ctx.$emit('change', $event);
|
|
3030
3076
|
})
|
|
3031
3077
|
}), null, 16
|
|
3032
3078
|
/* FULL_PROPS */
|
|
3033
|
-
, ["value", "getPopupContainer", "style", "options", "fieldNames", "
|
|
3079
|
+
, ["value", "getPopupContainer", "style", "options", "fieldNames", "filterOption"]);
|
|
3034
3080
|
};
|
|
3035
3081
|
}
|
|
3036
3082
|
});
|
|
@@ -3242,7 +3288,7 @@
|
|
|
3242
3288
|
maxHeight: '400px',
|
|
3243
3289
|
overflow: 'auto'
|
|
3244
3290
|
},
|
|
3245
|
-
|
|
3291
|
+
filterOption: vue.unref(filterOptionHeadle),
|
|
3246
3292
|
multiple: __props.multiple,
|
|
3247
3293
|
treeDefaultExpandAll: "",
|
|
3248
3294
|
style: __props.inputStyle,
|
|
@@ -3252,7 +3298,7 @@
|
|
|
3252
3298
|
replaceFields: __props.replaceFields
|
|
3253
3299
|
}), null, 16
|
|
3254
3300
|
/* FULL_PROPS */
|
|
3255
|
-
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "
|
|
3301
|
+
, ["value", "tree-data", "getPopupContainer", "placeholder", "allowClear", "filterOption", "multiple", "style", "replaceFields"])];
|
|
3256
3302
|
}),
|
|
3257
3303
|
_: 1
|
|
3258
3304
|
/* STABLE */
|
|
@@ -3460,6 +3506,7 @@
|
|
|
3460
3506
|
var _option,
|
|
3461
3507
|
_a,
|
|
3462
3508
|
_yield$formatHTTP,
|
|
3509
|
+
items,
|
|
3463
3510
|
totalCount,
|
|
3464
3511
|
_args2 = arguments;
|
|
3465
3512
|
|
|
@@ -3475,16 +3522,13 @@
|
|
|
3475
3522
|
|
|
3476
3523
|
case 3:
|
|
3477
3524
|
_yield$formatHTTP = _context2.sent;
|
|
3478
|
-
_yield$formatHTTP.items;
|
|
3525
|
+
items = _yield$formatHTTP.items;
|
|
3479
3526
|
totalCount = _yield$formatHTTP.totalCount;
|
|
3480
|
-
|
|
3481
|
-
// item.creationTime = dateFormat(item.creationTime, "YYYY-MM-DD");
|
|
3482
|
-
// return item;
|
|
3483
|
-
// });
|
|
3527
|
+
dataV.value = items;
|
|
3484
3528
|
totalPages.value = totalCount;
|
|
3485
3529
|
topPages.value = Math.ceil(totalPages.value / formData.maxResultCount);
|
|
3486
3530
|
|
|
3487
|
-
case
|
|
3531
|
+
case 9:
|
|
3488
3532
|
case "end":
|
|
3489
3533
|
return _context2.stop();
|
|
3490
3534
|
}
|
|
@@ -4217,6 +4261,9 @@
|
|
|
4217
4261
|
emit("update:value", value);
|
|
4218
4262
|
}
|
|
4219
4263
|
});
|
|
4264
|
+
var filterOption = vue.computed(function () {
|
|
4265
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4266
|
+
});
|
|
4220
4267
|
/**
|
|
4221
4268
|
* 侦听器-------------------------------------
|
|
4222
4269
|
* */
|
|
@@ -4284,10 +4331,10 @@
|
|
|
4284
4331
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4285
4332
|
return _ctx.$emit('change', $event);
|
|
4286
4333
|
}),
|
|
4287
|
-
|
|
4334
|
+
filterOption: vue.unref(filterOption)
|
|
4288
4335
|
}), null, 16
|
|
4289
4336
|
/* FULL_PROPS */
|
|
4290
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4337
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4291
4338
|
}),
|
|
4292
4339
|
_: 1
|
|
4293
4340
|
/* STABLE */
|
|
@@ -4436,6 +4483,9 @@
|
|
|
4436
4483
|
emit("update:value", value);
|
|
4437
4484
|
}
|
|
4438
4485
|
});
|
|
4486
|
+
var filterOption = vue.computed(function () {
|
|
4487
|
+
return filterOptionHeadle(props.fieldNames.label);
|
|
4488
|
+
});
|
|
4439
4489
|
/**
|
|
4440
4490
|
* 侦听器-------------------------------------
|
|
4441
4491
|
* */
|
|
@@ -4503,10 +4553,10 @@
|
|
|
4503
4553
|
onChange: _cache[1] || (_cache[1] = function ($event) {
|
|
4504
4554
|
return _ctx.$emit('change', $event);
|
|
4505
4555
|
}),
|
|
4506
|
-
|
|
4556
|
+
filterOption: vue.unref(filterOption)
|
|
4507
4557
|
}), null, 16
|
|
4508
4558
|
/* FULL_PROPS */
|
|
4509
|
-
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "
|
|
4559
|
+
, ["getPopupContainer", "value", "style", "placeholder", "options", "mode", "fieldNames", "allowClear", "filterOption"])];
|
|
4510
4560
|
}),
|
|
4511
4561
|
_: 1
|
|
4512
4562
|
/* STABLE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs","../src/business-ui/component/icon/SelectorIcon.vue?vue&type=template&id=0b124b76&lang.js","../src/business-ui/component/IVTimeSelector.vue?vue&type=template&id=5f0fe252&lang.js"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\nfunction isDate(val) {\n return toString.call(val) === \"[object Date]\";\n}\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== \"undefined\" && val instanceof URLSearchParams;\n}\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\n\n// utils/input/index.ts\nfunction filterOptionHeadle(key) {\n return (input, option) => option[key] && option[key].toLowerCase().indexOf(input.toLowerCase()) >= 0;\n}\n\n// utils/format/buildUrl.ts\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%40/g, \"@\").replace(/%3A/gi, \":\").replace(/%24/g, \"$\").replace(/%2C/gi, \",\").replace(/%20/g, \"+\").replace(/%5B/gi, \"[\").replace(/%5D/gi, \"]\");\n}\nfunction buildURL(url, params) {\n if (!params) {\n return url;\n }\n if (isURLSearchParams(params)) {\n return url += (url.includes(\"?\") ? \"&\" : \"?\") + params.toString();\n }\n const parts = [];\n Object.keys(params).forEach((key) => {\n const val = params[key];\n if (val === null || typeof val === \"undefined\") {\n return;\n }\n let tempVal = [];\n if (Array.isArray(val)) {\n tempVal = val;\n key = key + \"[]\";\n } else {\n tempVal = [val];\n }\n tempVal.forEach((temp) => {\n if (isDate(temp)) {\n temp = val.toString();\n } else if (isObject(temp)) {\n temp = JSON.stringify(temp);\n }\n parts.push(`${encode(key)}=${encode(temp)}`);\n });\n });\n const hashmarkIndex = url.indexOf(\"#\");\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.includes(\"?\") ? \"&\" : \"?\") + parts.join(\"&\");\n return url;\n}\n\n// utils/format/apiConfiger.ts\nvar hostname = window.location.hostname.split(\".\");\nvar protocol = window.location.protocol;\nfunction apiConfiger(config) {\n if (config.requestBase == \"USER_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/user\" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;\n }\n if (config.requestBase == \"BASIS_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/basis\" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;\n }\n if (config.requestBase == \"MRP2_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/mrp2\" : `${protocol}//mrp2.${hostname[1]}.${hostname[2]}`;\n }\n if (config.requestBase == \"ROOT_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/root\" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;\n }\n return config;\n}\n\n// utils/format/dateFormat.ts\nfunction dateFormat(data, format) {\n const weekList = [\n \"\\u661F\\u671F\\u65E5\",\n \"\\u661F\\u671F\\u4E00\",\n \"\\u661F\\u671F\\u4E8C\",\n \"\\u661F\\u671F\\u4E09\",\n \"\\u661F\\u671F\\u56DB\",\n \"\\u661F\\u671F\\u4E94\",\n \"\\u661F\\u671F\\u516D\"\n ];\n const now = data ? new Date(data) : new Date();\n let year = now.getFullYear();\n let month = now.getMonth() + 1;\n month = month < 10 ? \"0\" + month : month;\n let day = now.getDate();\n day = day < 10 ? \"0\" + day : day;\n let hours = now.getHours();\n hours = hours < 10 ? \"0\" + hours : hours;\n let minutes = now.getMinutes();\n minutes = minutes < 10 ? \"0\" + minutes : minutes;\n let seconds = now.getSeconds();\n seconds = seconds < 10 ? \"0\" + seconds : seconds;\n let week = weekList[now.getDay()];\n if (format) {\n format = format.replace(/YYYY/, String(year)).replace(/MM/, String(month)).replace(/DD/, String(day)).replace(/hh/, String(hours)).replace(/mm/, String(minutes)).replace(/ss/, String(seconds));\n return format;\n } else {\n return {\n date: `${year}\\u5E74${month}\\u6708${day}`,\n time: `${hours}:${minutes}:${seconds}`,\n week\n };\n }\n}\nfunction yearMonthFormat(data) {\n if (data) {\n const now = data ? new Date(data) : new Date();\n let year = now.getFullYear();\n let month = now.getMonth() + 1;\n month = month;\n return `${year}\\u5E74${month}\\u6708`;\n } else {\n return \"\";\n }\n}\nfunction yearMonthDayFormat(data) {\n if (data) {\n const now = data ? new Date(data) : new Date();\n let year = now.getFullYear();\n let month = now.getMonth() + 1;\n let day = now.getDate();\n month = month;\n return `${year}\\u5E74${month}\\u6708${day}\\u65E5`;\n } else {\n return \"\";\n }\n}\nexport {\n apiConfiger,\n arrToTree,\n assign,\n buildURL as buildUrl,\n dateFormat,\n filterOptionHeadle,\n findTree,\n isDate,\n isObject,\n isPlainObject,\n isURLSearchParams,\n tranListToTreeData,\n yearMonthDayFormat,\n yearMonthFormat\n};\n","<!--\r\n * @Author: Mr.Cong Wei\r\n * @Date: 2022-08-11 09:51:33\r\n * @LastEditTime: 2022-08-16 13:24:36\r\n-->\r\n<template>\r\n <div style=\"position: relative; margin-top: 8px; width: 30px; height: 23px;\">\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n style=\"position: absolute;\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -256 -275 )\">\r\n <path\r\n d=\"M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 256 275 )\"\r\n />\r\n </g>\r\n </svg>\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n style=\"position: absolute;left: 7px;bottom: 7px;\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -263 -268 )\">\r\n <path\r\n d=\"M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 263 268 )\"\r\n />\r\n </g>\r\n </svg>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\"></script>\r\n\r\n<style scoped></style>\r\n","<template>\r\n <div class=\"Mrp-time text-[18px] flex items-center\">\r\n <a-radio-group v-model:value=\"activeBtn\" size=\"large\" @change=\"selectTime\">\r\n <a-radio-button\r\n v-for=\"item in btnList\"\r\n :key=\"item.id\"\r\n :value=\"item.id\"\r\n class=\"cursor-pointer\"\r\n >{{ item.name }}</a-radio-button\r\n >\r\n </a-radio-group>\r\n <a-range-picker\r\n class=\"picker\"\r\n style=\"height: 35px; width: 210px;border-radius: 5px;\"\r\n v-model:value=\"time\"\r\n format=\"YYYY/MM/DD\"\r\n valueFormat=\"YYYY-MM-DD\"\r\n @change=\"timeChange\"\r\n >\r\n <template #suffixIcon>\r\n <FieldTimeOutlined />\r\n </template>\r\n </a-range-picker>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { reactive, toRefs, onBeforeMount, onMounted, ref } from \"vue\";\r\n\r\nexport default {\r\n name: \"time\",\r\n props: {\r\n timeType: Number,\r\n },\r\n emits: [\"selectedTime\"],\r\n setup(props: any, context: any) {\r\n const data: any = reactive({\r\n time: \"\",\r\n year: \"\",\r\n beginTime: \"\",\r\n endTime: \"\",\r\n });\r\n const today = ref(\"\");\r\n const activeBtn = ref(0);\r\n const btnList = ref([\r\n {\r\n id: 0,\r\n name: \"开累\",\r\n },\r\n {\r\n id: 1,\r\n name: \"上月\",\r\n },\r\n {\r\n id: 2,\r\n name: \"本月\",\r\n },\r\n {\r\n id: 3,\r\n name: \"去年\",\r\n },\r\n {\r\n id: 4,\r\n name: \"今年\",\r\n },\r\n ]);\r\n const refData: any = toRefs(data);\r\n onBeforeMount(() => {\r\n const date = new Date();\r\n refData.year.value = date.getFullYear();\r\n const y = date.getFullYear().toString();\r\n const m = (date.getMonth() + 1).toString().padStart(2, \"0\");\r\n const d = date.getDate().toString().padStart(2, \"0\");\r\n today.value = y + \"/\" + m + \"/\" + d;\r\n data.time = [\"1990-01-01\", y + \"-\" + m + \"-\" + d];\r\n });\r\n onMounted(() => {});\r\n\r\n const formatFun = (date,format)=>{\r\n var o: any = {\r\n \"M+\": date.getMonth() + 1, //month\r\n \"d+\": date.getDate(), //day\r\n \"h+\": date.getHours(), //hour\r\n \"m+\": date.getMinutes(), //minute\r\n \"s+\": date.getSeconds(), //second\r\n \"q+\": Math.floor((date.getMonth() + 3) / 3), //quarter\r\n S: date.getMilliseconds(), //millisecond\r\n };\r\n if (/(y+)/.test(format))\r\n format = format.replace(\r\n RegExp.$1,\r\n (date.getFullYear() + \"\").substr(4 - RegExp.$1.length)\r\n );\r\n for (var k in o)\r\n if (new RegExp(\"(\" + k + \")\").test(format))\r\n format = format.replace(\r\n RegExp.$1,\r\n RegExp.$1.length == 1 ? o[k] : (\"00\" + o[k]).substr((\"\" + o[k]).length)\r\n );\r\n return format;\r\n }\r\n\r\n const timeChange = (dates: any | String) => {\r\n activeBtn.value = -1;\r\n context.emit(\"selectedTime\", dates[0], dates[1], props.timeType);\r\n console.log(\r\n dates[0],\r\n dates[1],\r\n props.timeType,\r\n \"-----------------------selectedTime\"\r\n );\r\n };\r\n const selectTime = (e: any) => {\r\n console.log(props.timeType);\r\n\r\n let type = e.target.value;\r\n if (type === 0) {\r\n //开累\r\n refData.beginTime.value = \"1990/01/01\";\r\n refData.endTime.value = today.value;\r\n } else if (type === 1) {\r\n //上月\r\n refData.beginTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(new Date().getMonth() - 1)).setDate(1)\r\n ),\"yyyy/MM/dd\");\r\n refData.endTime.value = formatFun(new Date(new Date().setDate(0)),\"yyyy/MM/dd\");\r\n } else if (type === 2) {\r\n //本月\r\n refData.beginTime.value = formatFun(new Date(new Date().setDate(1)),\"yyyy/MM/dd\");\r\n refData.endTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(new Date().getMonth() + 1)).setDate(0)\r\n ),\"yyyy/MM/dd\");\r\n } else if (type === 3) {\r\n //去年\r\n refData.beginTime.value = \"2021/01/01\";\r\n refData.endTime.value = \"2021/12/31\";\r\n } else if (type === 4) {\r\n //今年\r\n refData.beginTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(0)).setDate(1)\r\n ),\"yyyy/MM/dd\");\r\n refData.endTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(12)).setDate(0)\r\n ),\"yyyy/MM/dd\");\r\n }\r\n refData.time.value = [refData.beginTime.value, refData.endTime.value];\r\n console.log(\r\n refData.beginTime.value,\r\n refData.endTime.value,\r\n props.timeType,\r\n \"-----------------------selectedTime\"\r\n );\r\n context.emit(\r\n \"selectedTime\",\r\n refData.beginTime.value,\r\n refData.endTime.value,\r\n props.timeType\r\n );\r\n };\r\n return {\r\n ...refData,\r\n activeBtn,\r\n btnList,\r\n timeChange,\r\n selectTime,\r\n };\r\n },\r\n};\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.Mrp-time {\r\n .button {\r\n width: 48px;\r\n height: 30px;\r\n }\r\n .active {\r\n background: rgba(189, 158, 85, 1);\r\n }\r\n\r\n :deep(.ant-radio-button-wrapper:first-child) {\r\n border-radius: 4px 0 0 4px;\r\n }\r\n\r\n :deep(.ant-radio-button-wrapper:last-child) {\r\n border-radius: 0 4px 4px 0;\r\n }\r\n\r\n :deep(.el-range-editor.el-input__inner) {\r\n width: 200px;\r\n height: 35px;\r\n }\r\n :deep(.el-date-editor .el-range-input) {\r\n font-size: 12px;\r\n color: #333333;\r\n }\r\n :deep(.ant-radio-button-wrapper) {\r\n width: 52px;\r\n height: 35px;\r\n font-size: 12px;\r\n color: #006ab2;\r\n padding: 0;\r\n text-align: center;\r\n line-height: 35px;\r\n border: 1px solid rgba(0, 106, 178, 1);\r\n }\r\n :deep(.ant-radio-button-wrapper-checked) {\r\n background: rgba(189, 158, 85, 1);\r\n color: #fff;\r\n border: 1px solid rgba(189, 158, 85, 1);\r\n }\r\n :deep(.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child) {\r\n border-color: rgba(189, 158, 85, 1);\r\n }\r\n .picker {\r\n margin-left: 10px;\r\n }\r\n :deep(.ant-picker-input > input){\r\n font-size: 12px;\r\n }\r\n :deep(.ant-picker-range-separator){\r\n margin-bottom: 5px;\r\n }\r\n}\r\n</style>\r\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","isDate","toString","call","isURLSearchParams","URLSearchParams","assign","Object","filterOptionHeadle","key","input","option","toLowerCase","indexOf","encode","encodeURIComponent","replace","buildURL","url","params","includes","parts","keys","tempVal","Array","isArray","temp","JSON","stringify","push","hashmarkIndex","slice","join","window","location","hostname","split","dateFormat","data","format","weekList","now","Date","year","getFullYear","month","getMonth","day","getDate","hours","getHours","minutes","getMinutes","seconds","getSeconds","week","getDay","String","date","time","_hoisted_1","style","xmlns","version","d","fill","stroke","transform","_hoisted_4","_openBlock","_createElementBlock","_createVNode","_component_a_radio_group","value","$setup","activeBtn","$event","size","onChange","selectTime","_Fragment","_renderList","btnList","item","_createBlock","_component_a_radio_button","_createTextVNode","_toDisplayString","name","_component_a_range_picker","_ctx","valueFormat","timeChange","suffixIcon","_component_FieldTimeOutlined"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs","../src/business-ui/component/icon/SelectorIcon.vue?vue&type=template&id=0b124b76&lang.js","../src/business-ui/component/IVTimeSelector.vue?vue&type=template&id=5f0fe252&lang.js"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\nfunction isDate(val) {\n return toString.call(val) === \"[object Date]\";\n}\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== \"undefined\" && val instanceof URLSearchParams;\n}\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\n\n// utils/input/index.ts\nfunction filterOptionHeadle(key) {\n return (input, option) => option[key] && option[key].toLowerCase().indexOf(input.toLowerCase()) >= 0;\n}\n\n// utils/format/buildUrl.ts\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%40/g, \"@\").replace(/%3A/gi, \":\").replace(/%24/g, \"$\").replace(/%2C/gi, \",\").replace(/%20/g, \"+\").replace(/%5B/gi, \"[\").replace(/%5D/gi, \"]\");\n}\nfunction buildURL(url, params) {\n if (!params) {\n return url;\n }\n if (isURLSearchParams(params)) {\n return url += (url.includes(\"?\") ? \"&\" : \"?\") + params.toString();\n }\n const parts = [];\n Object.keys(params).forEach((key) => {\n const val = params[key];\n if (val === null || typeof val === \"undefined\") {\n return;\n }\n let tempVal = [];\n if (Array.isArray(val)) {\n tempVal = val;\n key = key + \"[]\";\n } else {\n tempVal = [val];\n }\n tempVal.forEach((temp) => {\n if (isDate(temp)) {\n temp = val.toString();\n } else if (isObject(temp)) {\n temp = JSON.stringify(temp);\n }\n parts.push(`${encode(key)}=${encode(temp)}`);\n });\n });\n const hashmarkIndex = url.indexOf(\"#\");\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.includes(\"?\") ? \"&\" : \"?\") + parts.join(\"&\");\n return url;\n}\n\n// utils/format/apiConfiger.ts\nvar hostname = window.location.hostname.split(\".\");\nvar protocol = window.location.protocol;\nfunction apiConfiger(config) {\n if (config.requestBase == \"USER_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/user\" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;\n }\n if (config.requestBase == \"BASIS_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/basis\" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;\n }\n if (config.requestBase == \"MRP2_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/mrp2\" : `${protocol}//mrp2.${hostname[1]}.${hostname[2]}`;\n }\n if (config.requestBase == \"ROOT_BASE_URL\") {\n config.baseURL = process.env.NODE_ENV == \"development\" ? \"/root\" : `${protocol}//basis.${hostname[1]}.${hostname[2]}`;\n }\n return config;\n}\n\n// utils/format/dateFormat.ts\nfunction dateFormat(data, format) {\n const weekList = [\n \"\\u661F\\u671F\\u65E5\",\n \"\\u661F\\u671F\\u4E00\",\n \"\\u661F\\u671F\\u4E8C\",\n \"\\u661F\\u671F\\u4E09\",\n \"\\u661F\\u671F\\u56DB\",\n \"\\u661F\\u671F\\u4E94\",\n \"\\u661F\\u671F\\u516D\"\n ];\n const now = data ? new Date(data) : new Date();\n let year = now.getFullYear();\n let month = now.getMonth() + 1;\n month = month < 10 ? \"0\" + month : month;\n let day = now.getDate();\n day = day < 10 ? \"0\" + day : day;\n let hours = now.getHours();\n hours = hours < 10 ? \"0\" + hours : hours;\n let minutes = now.getMinutes();\n minutes = minutes < 10 ? \"0\" + minutes : minutes;\n let seconds = now.getSeconds();\n seconds = seconds < 10 ? \"0\" + seconds : seconds;\n let week = weekList[now.getDay()];\n if (format) {\n format = format.replace(/YYYY/, String(year)).replace(/MM/, String(month)).replace(/DD/, String(day)).replace(/hh/, String(hours)).replace(/mm/, String(minutes)).replace(/ss/, String(seconds));\n return format;\n } else {\n return {\n date: `${year}\\u5E74${month}\\u6708${day}`,\n time: `${hours}:${minutes}:${seconds}`,\n week\n };\n }\n}\nfunction yearMonthFormat(data) {\n if (data) {\n const now = data ? new Date(data) : new Date();\n let year = now.getFullYear();\n let month = now.getMonth() + 1;\n month = month;\n return `${year}\\u5E74${month}\\u6708`;\n } else {\n return \"\";\n }\n}\nfunction yearMonthDayFormat(data) {\n if (data) {\n const now = data ? new Date(data) : new Date();\n let year = now.getFullYear();\n let month = now.getMonth() + 1;\n let day = now.getDate();\n month = month;\n return `${year}\\u5E74${month}\\u6708${day}\\u65E5`;\n } else {\n return \"\";\n }\n}\nexport {\n apiConfiger,\n arrToTree,\n assign,\n buildURL as buildUrl,\n dateFormat,\n filterOptionHeadle,\n findTree,\n isDate,\n isObject,\n isPlainObject,\n isURLSearchParams,\n tranListToTreeData,\n yearMonthDayFormat,\n yearMonthFormat\n};\n","<!--\r\n * @Author: Mr.Cong Wei\r\n * @Date: 2022-08-11 09:51:33\r\n * @LastEditTime: 2022-08-16 13:24:36\r\n-->\r\n<template>\r\n <div style=\"position: relative; margin-top: 8px; width: 30px; height: 23px;\">\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n style=\"position: absolute;\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -256 -275 )\">\r\n <path\r\n d=\"M 2.8482972136223452 0 C 1.2746130030959648 0.028482972136316675 0 1.3030959752322815 0 2.8767801857584345 L 0 20.151702786377655 C 0 21.725386996904035 1.2746130030959648 23 2.8482972136223452 23 L 20.123219814241565 23 C 21.69690402476772 23 22.971517027863683 21.725386996904035 23 20.151702786377655 L 23 2.8767801857584345 C 22.971517027863683 1.3030959752322815 21.69690402476772 0.028482972136316675 20.123219814241565 0 L 2.8482972136223452 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 256 275 )\"\r\n />\r\n </g>\r\n </svg>\r\n <svg\r\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n version=\"1.1\"\r\n width=\"23px\"\r\n height=\"23px\"\r\n style=\"position: absolute;left: 7px;bottom: 7px;\"\r\n >\r\n <g transform=\"matrix(1 0 0 1 -263 -268 )\">\r\n <path\r\n d=\"M 2.8767801857584345 0 C 1.3030959752322815 0 0.028482972136316675 1.2746130030959648 0.028482972136316675 2.8482972136223452 L 0.028482972136316675 4.870588235294008 C 0.028482972136316675 5.027244582043295 0.15665634674928697 5.155417956656265 0.31331269349834656 5.155417956656265 L 14.426625386996877 5.155417956656265 C 16.306501547987637 5.155417956656265 17.844582043343735 6.693498452012363 17.844582043343735 8.573374613003125 L 17.844582043343735 22.686687306501653 C 17.844582043343735 22.843343653250713 17.972755417956705 22.971517027863683 18.129411764705992 22.971517027863683 L 20.151702786377655 22.971517027863683 C 21.725386996904035 22.971517027863683 23 21.69690402476772 23 20.123219814241565 L 23 2.8482972136223452 C 23 1.2746130030959648 21.725386996904035 0 20.151702786377655 0 L 2.8767801857584345 0 Z \"\r\n fill-rule=\"nonzero\"\r\n fill=\"#bd9e55\"\r\n stroke=\"none\"\r\n transform=\"matrix(1 0 0 1 263 268 )\"\r\n />\r\n </g>\r\n </svg>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\"></script>\r\n\r\n<style scoped></style>\r\n","<template>\r\n <div class=\"Mrp-time text-[18px] flex items-center\">\r\n <a-radio-group v-model:value=\"activeBtn\" size=\"large\" @change=\"selectTime\">\r\n <a-radio-button\r\n v-for=\"item in btnList\"\r\n :key=\"item.id\"\r\n :value=\"item.id\"\r\n class=\"cursor-pointer\"\r\n >{{ item.name }}</a-radio-button\r\n >\r\n </a-radio-group>\r\n <a-range-picker\r\n class=\"picker\"\r\n style=\"height: 35px; width: 210px;border-radius: 5px;\"\r\n v-model:value=\"time\"\r\n format=\"YYYY/MM/DD\"\r\n valueFormat=\"YYYY-MM-DD\"\r\n @change=\"timeChange\"\r\n >\r\n <template #suffixIcon>\r\n <FieldTimeOutlined />\r\n </template>\r\n </a-range-picker>\r\n </div>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nimport { reactive, toRefs, onBeforeMount, onMounted, ref } from \"vue\";\r\n\r\nexport default {\r\n name: \"time\",\r\n props: {\r\n timeType: Number,\r\n },\r\n emits: [\"selectedTime\"],\r\n setup(props: any, context: any) {\r\n const data: any = reactive({\r\n time: \"\",\r\n year: \"\",\r\n beginTime: \"\",\r\n endTime: \"\",\r\n });\r\n const today = ref(\"\");\r\n const activeBtn = ref(0);\r\n const btnList = ref([\r\n {\r\n id: 0,\r\n name: \"开累\",\r\n },\r\n {\r\n id: 1,\r\n name: \"上月\",\r\n },\r\n {\r\n id: 2,\r\n name: \"本月\",\r\n },\r\n {\r\n id: 3,\r\n name: \"去年\",\r\n },\r\n {\r\n id: 4,\r\n name: \"今年\",\r\n },\r\n ]);\r\n const refData: any = toRefs(data);\r\n onBeforeMount(() => {\r\n const date = new Date();\r\n refData.year.value = date.getFullYear();\r\n const y = date.getFullYear().toString();\r\n const m = (date.getMonth() + 1).toString().padStart(2, \"0\");\r\n const d = date.getDate().toString().padStart(2, \"0\");\r\n today.value = y + \"/\" + m + \"/\" + d;\r\n data.time = [\"1990-01-01\", y + \"-\" + m + \"-\" + d];\r\n });\r\n onMounted(() => {});\r\n\r\n const formatFun = (date,format)=>{\r\n var o: any = {\r\n \"M+\": date.getMonth() + 1, //month\r\n \"d+\": date.getDate(), //day\r\n \"h+\": date.getHours(), //hour\r\n \"m+\": date.getMinutes(), //minute\r\n \"s+\": date.getSeconds(), //second\r\n \"q+\": Math.floor((date.getMonth() + 3) / 3), //quarter\r\n S: date.getMilliseconds(), //millisecond\r\n };\r\n if (/(y+)/.test(format))\r\n format = format.replace(\r\n RegExp.$1,\r\n (date.getFullYear() + \"\").substr(4 - RegExp.$1.length)\r\n );\r\n for (var k in o)\r\n if (new RegExp(\"(\" + k + \")\").test(format))\r\n format = format.replace(\r\n RegExp.$1,\r\n RegExp.$1.length == 1 ? o[k] : (\"00\" + o[k]).substr((\"\" + o[k]).length)\r\n );\r\n return format;\r\n }\r\n\r\n const timeChange = (dates: any | String) => {\r\n activeBtn.value = -1;\r\n context.emit(\"selectedTime\", dates[0], dates[1], props.timeType);\r\n console.log(\r\n dates[0],\r\n dates[1],\r\n props.timeType,\r\n \"-----------------------selectedTime\"\r\n );\r\n };\r\n const selectTime = (e: any) => {\r\n console.log(props.timeType);\r\n\r\n let type = e.target.value;\r\n if (type === 0) {\r\n //开累\r\n refData.beginTime.value = \"1990/01/01\";\r\n refData.endTime.value = today.value;\r\n } else if (type === 1) {\r\n //上月\r\n refData.beginTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(new Date().getMonth() - 1)).setDate(1)\r\n ),\"yyyy/MM/dd\");\r\n refData.endTime.value = formatFun(new Date(new Date().setDate(0)),\"yyyy/MM/dd\");\r\n } else if (type === 2) {\r\n //本月\r\n refData.beginTime.value = formatFun(new Date(new Date().setDate(1)),\"yyyy/MM/dd\");\r\n refData.endTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(new Date().getMonth() + 1)).setDate(0)\r\n ),\"yyyy/MM/dd\");\r\n } else if (type === 3) {\r\n //去年\r\n refData.beginTime.value = \"2021/01/01\";\r\n refData.endTime.value = \"2021/12/31\";\r\n } else if (type === 4) {\r\n //今年\r\n refData.beginTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(0)).setDate(1)\r\n ),\"yyyy/MM/dd\");\r\n refData.endTime.value = formatFun(new Date(\r\n new Date(new Date().setMonth(12)).setDate(0)\r\n ),\"yyyy/MM/dd\");\r\n }\r\n refData.time.value = [refData.beginTime.value, refData.endTime.value];\r\n console.log(\r\n refData.beginTime.value,\r\n refData.endTime.value,\r\n props.timeType,\r\n \"-----------------------selectedTime\"\r\n );\r\n context.emit(\r\n \"selectedTime\",\r\n refData.beginTime.value,\r\n refData.endTime.value,\r\n props.timeType\r\n );\r\n };\r\n return {\r\n ...refData,\r\n activeBtn,\r\n btnList,\r\n timeChange,\r\n selectTime,\r\n };\r\n },\r\n};\r\n</script>\r\n<style lang=\"scss\" scoped>\r\n.Mrp-time {\r\n .button {\r\n width: 48px;\r\n height: 30px;\r\n }\r\n .active {\r\n background: rgba(189, 158, 85, 1);\r\n }\r\n\r\n :deep(.ant-radio-button-wrapper:first-child) {\r\n border-radius: 4px 0 0 4px;\r\n }\r\n\r\n :deep(.ant-radio-button-wrapper:last-child) {\r\n border-radius: 0 4px 4px 0;\r\n }\r\n\r\n :deep(.el-range-editor.el-input__inner) {\r\n width: 200px;\r\n height: 35px;\r\n }\r\n :deep(.el-date-editor .el-range-input) {\r\n font-size: 12px;\r\n color: #333333;\r\n }\r\n :deep(.ant-radio-button-wrapper) {\r\n width: 52px;\r\n height: 35px;\r\n font-size: 12px;\r\n color: #006ab2;\r\n padding: 0;\r\n text-align: center;\r\n line-height: 35px;\r\n border: 1px solid rgba(0, 106, 178, 1);\r\n }\r\n :deep(.ant-radio-button-wrapper-checked) {\r\n background: rgba(189, 158, 85, 1);\r\n color: #fff;\r\n border: 1px solid rgba(189, 158, 85, 1);\r\n }\r\n :deep(.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child) {\r\n border-color: rgba(189, 158, 85, 1);\r\n }\r\n .picker {\r\n margin-left: 10px;\r\n }\r\n :deep(.ant-picker-input > input){\r\n font-size: 12px;\r\n }\r\n :deep(.ant-picker-range-separator){\r\n margin-bottom: 5px;\r\n }\r\n}\r\n</style>\r\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","isDate","toString","call","isURLSearchParams","URLSearchParams","assign","Object","filterOptionHeadle","key","input","option","toLowerCase","indexOf","encode","encodeURIComponent","replace","buildURL","url","params","includes","parts","keys","tempVal","Array","isArray","temp","JSON","stringify","push","hashmarkIndex","slice","join","window","location","hostname","split","dateFormat","data","format","weekList","now","Date","year","getFullYear","month","getMonth","day","getDate","hours","getHours","minutes","getMinutes","seconds","getSeconds","week","getDay","String","date","time","_hoisted_1","style","xmlns","version","d","fill","stroke","transform","_hoisted_4","_openBlock","_createElementBlock","_createVNode","_component_a_radio_group","value","$setup","activeBtn","$event","size","onChange","selectTime","_Fragment","_renderList","btnList","item","_createBlock","_component_a_radio_button","_createTextVNode","_toDisplayString","name","_component_a_range_picker","_ctx","valueFormat","timeChange","suffixIcon","_component_FieldTimeOutlined"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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