cnhis-design-vue 3.1.40-beta.0 → 3.1.40-beta.10
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/README.md +12 -48
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/src/utils/print.js +6 -1
- package/es/components/form-config/index.d.ts +66 -148
- package/es/components/form-config/src/FormConfig.vue.d.ts +66 -148
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +33 -74
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +33 -74
- package/es/components/form-render/index.d.ts +33 -74
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +33 -74
- package/es/components/form-render/src/FormRender.vue.js +37 -20
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +33 -74
- package/es/components/form-render/src/components/renderer/searchCascade.js +2 -0
- package/es/components/form-render/src/components/renderer/select.js +5 -2
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.d.ts +6 -3
- package/es/components/form-render/src/hooks/useAnchor.js +26 -26
- package/es/components/form-render/src/hooks/useAutoHidden.d.ts +4 -0
- package/es/components/form-render/src/hooks/useAutoHidden.js +43 -0
- package/es/components/form-render/src/hooks/useBusinessBinding.d.ts +7 -10
- package/es/components/form-render/src/hooks/useBusinessBinding.js +38 -36
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +2 -6
- package/es/components/form-render/src/hooks/useFormContext.d.ts +1 -2
- package/es/components/form-render/src/hooks/useFormContext.js +2 -2
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +25 -21
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/form-render/test/basic-config.spec.d.ts +1 -0
- package/es/components/form-render/test/renderer.spec.d.ts +1 -0
- package/es/components/iho-table/index.d.ts +121 -121
- package/es/components/iho-table/src/IhoTable.vue.d.ts +121 -121
- package/es/components/iho-table/src/IhoTable.vue.js +2 -1
- package/es/components/iho-table/src/constants/index.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +59 -59
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +7 -1
- package/es/components/info-header/index.d.ts +18 -3
- package/es/components/info-header/src/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/InfoHeader.vue.d.ts +18 -3
- package/es/components/info-header/src/InfoHeader.vue.js +40 -19
- package/es/components/keyboard/index.d.ts +20 -2
- package/es/components/keyboard/src/Keyboard.vue.d.ts +20 -2
- package/es/components/keyboard/src/components/InputNumber.vue.d.ts +19 -2
- package/es/components/keyboard/src/components/InputNumber.vue.js +15 -5
- package/es/components/keyboard/src/components/NumberPanel.vue.d.ts +20 -2
- package/es/components/keyboard/src/components/NumberPanel.vue.js +14 -10
- package/es/components/recommend-search/index.d.ts +14 -14
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +14 -14
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +4 -4
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -4
- package/es/components/scale-view/index.d.ts +5 -2
- package/es/components/scale-view/src/ScaleView.vue.d.ts +8 -2
- package/es/components/scale-view/src/ScaleView.vue.js +4 -3
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +76 -31
- package/es/components/scale-view/src/hooks/use-evaluate.js +13 -13
- package/es/components/shortcut-provider/index.d.ts +15 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.d.ts +15 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +8 -2
- package/es/components/shortcut-setter/index.d.ts +33 -74
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +33 -74
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/index.d.ts +8933 -0
- package/es/components/table-filter/index.js +21 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +3841 -0
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +2272 -0
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +3198 -0
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1315 -0
- package/es/components/table-filter/src/classification/search-class-name.vue.d.ts +71 -0
- package/es/components/table-filter/src/classification/search-class-name.vue.js +195 -0
- package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +1119 -0
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +594 -0
- package/es/components/table-filter/src/components/age-com/index.vue.d.ts +119 -0
- package/es/components/table-filter/src/components/age-com/index.vue.js +185 -0
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.d.ts +199 -0
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +86 -0
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.d.ts +2 -0
- package/es/components/table-filter/src/components/button-icon/getBtnIcon.js +30 -0
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.d.ts +90 -0
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +253 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +112 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +114 -0
- package/es/components/table-filter/src/components/classify-filter/helpers/options.d.ts +4 -0
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +14 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +20 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +87 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.d.ts +59 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +147 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +278 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +304 -0
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.d.ts +113 -0
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +153 -0
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.d.ts +266 -0
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +310 -0
- package/es/components/table-filter/src/components/range-age/index.vue.d.ts +248 -0
- package/es/components/table-filter/src/components/range-age/index.vue.js +137 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +104 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +64 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +34 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +45 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -0
- package/es/components/table-filter/src/components/render-widget/components/index.js +2 -0
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +25 -0
- package/es/components/table-filter/src/components/render-widget/enums.js +27 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +70 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +32 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.js +107 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +199 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +152 -0
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.d.ts +789 -0
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1520 -0
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.d.ts +18 -0
- package/es/components/table-filter/src/components/search-condition/fieldTypeList.js +171 -0
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +1217 -0
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +199 -0
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +1624 -0
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +241 -0
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.d.ts +292 -0
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +526 -0
- package/es/components/table-filter/src/const/dataOptions.d.ts +36 -0
- package/es/components/table-filter/src/const/dataOptions.js +107 -0
- package/es/components/table-filter/src/const/index.d.ts +5 -0
- package/es/components/table-filter/src/const/index.js +5 -0
- package/es/components/table-filter/src/directive/flexibleResize.d.ts +28 -0
- package/es/components/table-filter/src/directive/flexibleResize.js +157 -0
- package/es/components/table-filter/src/directive/preventReClick.d.ts +4 -0
- package/es/components/table-filter/src/directive/preventReClick.js +14 -0
- package/es/components/table-filter/src/directive/resize.d.ts +4 -0
- package/es/components/table-filter/src/directive/resize.js +12 -0
- package/es/components/table-filter/src/hooks/export.d.ts +1 -0
- package/es/components/table-filter/src/hooks/export.js +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +28 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +64 -0
- package/es/components/table-filter/src/hooks/useMixins.d.ts +60 -0
- package/es/components/table-filter/src/hooks/useMixins.js +532 -0
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +15 -0
- package/es/components/table-filter/src/hooks/useRenderWidget.js +94 -0
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +8 -0
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +131 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +12 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.js +91 -0
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +1942 -0
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +2038 -0
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +14 -0
- package/es/components/table-filter/src/tool/generateDefOptions.js +65 -0
- package/es/components/table-filter/src/tool/getWidgetType.d.ts +1 -0
- package/es/components/table-filter/src/tool/getWidgetType.js +27 -0
- package/es/components/table-filter/src/tool/options.d.ts +18 -0
- package/es/components/table-filter/src/tool/options.js +200 -0
- package/es/components/table-filter/src/tool/resizeSensor.d.ts +16 -0
- package/es/components/table-filter/src/tool/resizeSensor.js +123 -0
- package/es/components/table-filter/src/tool/time-domain.d.ts +39 -0
- package/es/components/table-filter/src/tool/time-domain.js +100 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +92 -0
- package/es/components/table-filter/src/tool/transformData.js +169 -0
- package/es/components/table-filter/src/tool/utils.d.ts +4 -0
- package/es/components/table-filter/src/tool/utils.js +29 -0
- package/es/components/table-filter/src/types/enums.d.ts +65 -0
- package/es/components/table-filter/src/types/enums.js +67 -0
- package/es/components/table-filter/src/types/index.d.ts +483 -0
- package/es/components/table-filter/src/types/index.js +1 -0
- package/es/components/table-filter/src/types/tool.d.ts +7 -0
- package/es/components/table-filter/src/types/tool.js +1 -0
- package/es/components/table-filter/style/index.css +1 -0
- package/es/shared/assets/img/failure.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/icon-asc.js +1 -1
- package/es/shared/assets/img/icon-desc.js +1 -1
- package/es/shared/assets/img/no-permission.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/video_hover.js +1 -1
- package/es/shared/assets/img/video_play_hover.js +1 -1
- package/es/shared/assets/img/xb_big.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.d.ts +1 -1
- package/es/shared/utils/utilExpand.js +66 -0
- package/package.json +3 -3
|
@@ -0,0 +1,2038 @@
|
|
|
1
|
+
import { defineComponent, useAttrs, ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeClass, unref, createCommentVNode, Fragment, renderList, toDisplayString, createBlock, withCtx, createVNode, createTextVNode, renderSlot, withDirectives, normalizeStyle, withModifiers, withKeys, vModelText, vShow, isRef } from 'vue';
|
|
2
|
+
import { TEAMS, DAYUNITS, EVALUATEList1, AGEOPTIONS, DATETEAM0, DATETEAM2, DATETEAM3 } from '../const/dataOptions.js';
|
|
3
|
+
import { useMessage, NTooltip, NTag, NIcon, NInput, NInputNumber, NRadioGroup, NRadioButton, NDatePicker, NSelect, NCheckboxGroup, NCheckbox, NRadio, NModal, NCard, NButton, NForm, NFormItem, NGrid, NGridItem } from 'naive-ui';
|
|
4
|
+
import { ChevronUp, ChevronDown, CloseOutline, AddOutline } from '@vicons/ionicons5';
|
|
5
|
+
import useMixins from '../hooks/useMixins.js';
|
|
6
|
+
import useTableSearchCon from '../hooks/useTableSearchCon.js';
|
|
7
|
+
import useWordBookutils from '../hooks/useWordBookutils.js';
|
|
8
|
+
import useRenderWidget from '../hooks/useRenderWidget.js';
|
|
9
|
+
import axios from 'axios';
|
|
10
|
+
import moment from 'moment';
|
|
11
|
+
import 'moment/locale/zh-cn';
|
|
12
|
+
import { cloneDeep } from 'lodash-es';
|
|
13
|
+
import script from '../../../../shared/components/SvgIcon/SvgIcon.vue.js';
|
|
14
|
+
import rangeAge from '../components/range-age/index.vue.js';
|
|
15
|
+
import multiSelect from '../components/multi-select/multi-select.vue.js';
|
|
16
|
+
import cTreeSelect from '../components/c-tree-select/tree-select.vue.js';
|
|
17
|
+
import RenderWidget from '../components/render-widget/index.vue.js';
|
|
18
|
+
import Resize from '../directive/resize.js';
|
|
19
|
+
import { handleLabelColor } from '../../../../shared/utils/vexutils.js';
|
|
20
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
21
|
+
import XEUtils from 'xe-utils';
|
|
22
|
+
|
|
23
|
+
const _hoisted_1 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "module-title"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_2 = { class: "quick-row" };
|
|
28
|
+
const _hoisted_3 = { class: "age-container" };
|
|
29
|
+
const _hoisted_4 = { class: "label-attr-container" };
|
|
30
|
+
const _hoisted_5 = { class: "edit-label" };
|
|
31
|
+
const _hoisted_6 = { class: "label-content" };
|
|
32
|
+
const _hoisted_7 = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "label-unfold-btn"
|
|
35
|
+
};
|
|
36
|
+
const _hoisted_8 = ["onClick"];
|
|
37
|
+
const _hoisted_9 = /* @__PURE__ */ createElementVNode("span", null, "\u6536\u8D77", -1);
|
|
38
|
+
const _hoisted_10 = /* @__PURE__ */ createElementVNode("span", null, "\u5C55\u5F00", -1);
|
|
39
|
+
const _hoisted_11 = { class: "tag-evaluate" };
|
|
40
|
+
const _hoisted_12 = {
|
|
41
|
+
class: "ant-calendar-picker",
|
|
42
|
+
style: { "width": "300px" }
|
|
43
|
+
};
|
|
44
|
+
const _hoisted_13 = ["onUpdate:modelValue", "onKeyup", "title", "placeholder"];
|
|
45
|
+
const _hoisted_14 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-range-picker-separator" }, " ~ \xA0", -1);
|
|
46
|
+
const _hoisted_15 = ["onUpdate:modelValue", "title", "onKeyup", "placeholder"];
|
|
47
|
+
const _hoisted_16 = ["onClick"];
|
|
48
|
+
const _hoisted_17 = /* @__PURE__ */ createElementVNode("i", {
|
|
49
|
+
"aria-label": "\u56FE\u6807: close-circle",
|
|
50
|
+
tabindex: "-1",
|
|
51
|
+
class: "anticon anticon-close-circle ant-input-clear-icon"
|
|
52
|
+
}, [
|
|
53
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
54
|
+
viewBox: "64 64 896 896",
|
|
55
|
+
"data-icon": "close-circle",
|
|
56
|
+
width: "1em",
|
|
57
|
+
height: "1em",
|
|
58
|
+
fill: "currentColor",
|
|
59
|
+
"aria-hidden": "true",
|
|
60
|
+
focusable: "false",
|
|
61
|
+
class: ""
|
|
62
|
+
}, [
|
|
63
|
+
/* @__PURE__ */ createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
64
|
+
])
|
|
65
|
+
], -1);
|
|
66
|
+
const _hoisted_18 = [
|
|
67
|
+
_hoisted_17
|
|
68
|
+
];
|
|
69
|
+
const _hoisted_19 = { key: 3 };
|
|
70
|
+
const _hoisted_20 = ["onClick"];
|
|
71
|
+
const _hoisted_21 = { class: "check-date" };
|
|
72
|
+
const _hoisted_22 = { class: "age-wrap" };
|
|
73
|
+
const _hoisted_23 = /* @__PURE__ */ createElementVNode("p", null, "\u5E74\u9F84", -1);
|
|
74
|
+
const _hoisted_24 = ["onClick"];
|
|
75
|
+
const _hoisted_25 = { class: "module-title" };
|
|
76
|
+
const _hoisted_26 = { class: "quick-row" };
|
|
77
|
+
const _hoisted_27 = { key: 0 };
|
|
78
|
+
const _hoisted_28 = { class: "edit-label" };
|
|
79
|
+
const _hoisted_29 = { class: "edit-content" };
|
|
80
|
+
const _hoisted_30 = { class: "label-content" };
|
|
81
|
+
const _hoisted_31 = { class: "tag-evaluate" };
|
|
82
|
+
const _hoisted_32 = {
|
|
83
|
+
class: "ant-calendar-picker",
|
|
84
|
+
style: { "width": "300px" }
|
|
85
|
+
};
|
|
86
|
+
const _hoisted_33 = ["onUpdate:modelValue", "onKeyup", "title", "placeholder"];
|
|
87
|
+
const _hoisted_34 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-range-picker-separator" }, " ~ \xA0", -1);
|
|
88
|
+
const _hoisted_35 = ["onUpdate:modelValue", "title", "onKeyup", "placeholder"];
|
|
89
|
+
const _hoisted_36 = ["onClick"];
|
|
90
|
+
const _hoisted_37 = /* @__PURE__ */ createElementVNode("i", {
|
|
91
|
+
"aria-label": "\u56FE\u6807: close-circle",
|
|
92
|
+
tabindex: "-1",
|
|
93
|
+
class: "anticon anticon-close-circle ant-input-clear-icon"
|
|
94
|
+
}, [
|
|
95
|
+
/* @__PURE__ */ createElementVNode("svg", {
|
|
96
|
+
viewBox: "64 64 896 896",
|
|
97
|
+
"data-icon": "close-circle",
|
|
98
|
+
width: "1em",
|
|
99
|
+
height: "1em",
|
|
100
|
+
fill: "currentColor",
|
|
101
|
+
"aria-hidden": "true",
|
|
102
|
+
focusable: "false",
|
|
103
|
+
class: ""
|
|
104
|
+
}, [
|
|
105
|
+
/* @__PURE__ */ createElementVNode("path", { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" })
|
|
106
|
+
])
|
|
107
|
+
], -1);
|
|
108
|
+
const _hoisted_38 = [
|
|
109
|
+
_hoisted_37
|
|
110
|
+
];
|
|
111
|
+
const _hoisted_39 = /* @__PURE__ */ createElementVNode("span", { class: "ant-calendar-picker-icon" }, null, -1);
|
|
112
|
+
const _hoisted_40 = { key: 3 };
|
|
113
|
+
const _hoisted_41 = ["onClick"];
|
|
114
|
+
const _hoisted_42 = { class: "check-date" };
|
|
115
|
+
const _hoisted_43 = { class: "svg-wrap" };
|
|
116
|
+
const _hoisted_44 = ["onDblclick", "onClick"];
|
|
117
|
+
const _hoisted_45 = {
|
|
118
|
+
key: 0,
|
|
119
|
+
class: "s-content"
|
|
120
|
+
};
|
|
121
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
122
|
+
__name: "QuickSearch",
|
|
123
|
+
props: {
|
|
124
|
+
visible: { type: Boolean },
|
|
125
|
+
searchFieldList: {
|
|
126
|
+
type: Array,
|
|
127
|
+
default: () => []
|
|
128
|
+
},
|
|
129
|
+
searchFieldLimit: {
|
|
130
|
+
type: Object,
|
|
131
|
+
default: () => ({})
|
|
132
|
+
},
|
|
133
|
+
quickSearchConfig: {
|
|
134
|
+
type: Array,
|
|
135
|
+
default: () => []
|
|
136
|
+
},
|
|
137
|
+
source: {
|
|
138
|
+
type: String,
|
|
139
|
+
default: "editTable"
|
|
140
|
+
},
|
|
141
|
+
quickSearchListObj: {
|
|
142
|
+
type: Object,
|
|
143
|
+
default: () => ({})
|
|
144
|
+
},
|
|
145
|
+
originConditionList: {
|
|
146
|
+
type: Array,
|
|
147
|
+
default: () => []
|
|
148
|
+
},
|
|
149
|
+
isOrgAdmin: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: false
|
|
152
|
+
},
|
|
153
|
+
lastQuickSearchData: {
|
|
154
|
+
type: Array,
|
|
155
|
+
default: () => []
|
|
156
|
+
},
|
|
157
|
+
show: { type: Boolean },
|
|
158
|
+
getFilterData: { type: Function },
|
|
159
|
+
filterApiConfig: { type: Object }
|
|
160
|
+
},
|
|
161
|
+
emits: [
|
|
162
|
+
"filterCountChange",
|
|
163
|
+
"onSave",
|
|
164
|
+
"closeModal",
|
|
165
|
+
"updateTableCondiTion",
|
|
166
|
+
"clearQuickSearchConfig"
|
|
167
|
+
],
|
|
168
|
+
setup(__props, { expose, emit }) {
|
|
169
|
+
const props = __props;
|
|
170
|
+
const rules = {
|
|
171
|
+
classname: {
|
|
172
|
+
required: true,
|
|
173
|
+
message: "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",
|
|
174
|
+
trigger: ["input", "blur"]
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
axios.create({});
|
|
178
|
+
const attrs = useAttrs();
|
|
179
|
+
const $message = useMessage();
|
|
180
|
+
const { handleGetConfigApi } = useMixins();
|
|
181
|
+
const { validConObj, getSearchDefValueByLimit, formatSearchLimit } = useTableSearchCon();
|
|
182
|
+
const { wordBookutils } = useWordBookutils();
|
|
183
|
+
const { isRender, getDefValByRenderWidget, initRenderWidgetCfg, getRenderSearchConObj, getDefValByRenderConObj, isExistDefValByRenderWidget, resetRenderWidgetValue } = useRenderWidget();
|
|
184
|
+
const ageAttrDomList = ref(/* @__PURE__ */ new Map());
|
|
185
|
+
const formRef = ref(null);
|
|
186
|
+
const formValue = ref({ classname: "" });
|
|
187
|
+
let modalVisible = ref(props.visible);
|
|
188
|
+
let showInner = ref(false);
|
|
189
|
+
let quickSearch = ref([]);
|
|
190
|
+
let relationTableList = ref([]);
|
|
191
|
+
let relationQuickSearch = ref([]);
|
|
192
|
+
let searchItem = ref({});
|
|
193
|
+
let curWordbookData = ref();
|
|
194
|
+
let curAutograph = ref("");
|
|
195
|
+
let dateTeam = ref(TEAMS);
|
|
196
|
+
let birthdayTeam = ref([]);
|
|
197
|
+
let limit_date = ref("");
|
|
198
|
+
let birthdayUnits = ref(DAYUNITS);
|
|
199
|
+
let isChangeWindow = ref(false);
|
|
200
|
+
let modalWidth = ref("700px");
|
|
201
|
+
let modalHeight = ref("60vh");
|
|
202
|
+
let EVALUATEList = ref(EVALUATEList1);
|
|
203
|
+
ref(AGEOPTIONS);
|
|
204
|
+
ref(8);
|
|
205
|
+
let parentNames = ref([]);
|
|
206
|
+
let showAdd = ref(false);
|
|
207
|
+
let addVal = ref("");
|
|
208
|
+
let fetchingWordbook = ref(false);
|
|
209
|
+
let dateTeam0 = ref(DATETEAM0);
|
|
210
|
+
let dateTeam2 = ref(DATETEAM2);
|
|
211
|
+
let dateTeam3 = ref(DATETEAM3);
|
|
212
|
+
let showPercent = computed(() => {
|
|
213
|
+
return function(item) {
|
|
214
|
+
var _a;
|
|
215
|
+
return ((_a = item.settingObj) == null ? void 0 : _a.attr) === "PERCENTAGE" || false;
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
let getEleWidth = computed(() => {
|
|
219
|
+
return function(item) {
|
|
220
|
+
return `${item.advanceColWidth || 200}px`;
|
|
221
|
+
};
|
|
222
|
+
});
|
|
223
|
+
let hasRelationQuickSearch = computed(() => {
|
|
224
|
+
return relationQuickSearch.value.findIndex((item) => item.fieldList && item.fieldList.length) != -1;
|
|
225
|
+
});
|
|
226
|
+
let parentNamesHasAdd = computed(() => {
|
|
227
|
+
if (!parentNames.value.length)
|
|
228
|
+
return false;
|
|
229
|
+
return parentNames.value.some((v) => v.isAdd);
|
|
230
|
+
});
|
|
231
|
+
let handleName = computed(() => {
|
|
232
|
+
return (item, key = "name") => {
|
|
233
|
+
return item.alias || item[key];
|
|
234
|
+
};
|
|
235
|
+
});
|
|
236
|
+
function filterOption(...arg) {
|
|
237
|
+
return XEUtils.filterOption(...arg);
|
|
238
|
+
}
|
|
239
|
+
function handleLabelColorFn(...arg) {
|
|
240
|
+
return handleLabelColor(...arg);
|
|
241
|
+
}
|
|
242
|
+
function init() {
|
|
243
|
+
quickSearch.value = [];
|
|
244
|
+
relationQuickSearch.value = [];
|
|
245
|
+
birthdayTeam.value = dateTeam.value.filter((item) => item.con != "THIS_YEAR" && item.con != "NEXT_YEAR" && item.con != "LAST_YEAR");
|
|
246
|
+
let copyList = cloneDeep(props.searchFieldList);
|
|
247
|
+
let mySearchFieldList = copyList.filter((item) => item.isShowSearch == 1 && item.filterExplicit != 1) || [];
|
|
248
|
+
let relationTableListVal = cloneDeep(relationTableList.value);
|
|
249
|
+
relationQuickSearch.value = relationTableListVal.map((item) => {
|
|
250
|
+
return {
|
|
251
|
+
fieldList: item.fieldList.fieldList.filter((field) => field.isShowSearch == 1 && field.filterExplicit != 1),
|
|
252
|
+
tableName: item.tableName,
|
|
253
|
+
primaryField: item.primaryField,
|
|
254
|
+
parameterConversionId: item.parameterConversionId,
|
|
255
|
+
tableId: item.tableId,
|
|
256
|
+
relationField: item.relationField,
|
|
257
|
+
converFun: item.converFun,
|
|
258
|
+
relationOrgId: item.relationOrgId,
|
|
259
|
+
preConObj: item.preConObj,
|
|
260
|
+
preSqlExpression: item.preSqlExpression
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
quickSearch.value = mySearchFieldList || [];
|
|
264
|
+
handlerInitSearchItem(quickSearch.value);
|
|
265
|
+
relationQuickSearch.value.forEach((item) => {
|
|
266
|
+
handlerInitSearchItem(item.fieldList);
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
function handleParentName() {
|
|
270
|
+
let parentNamesResult = [];
|
|
271
|
+
let { displayCategoryList = [] } = props.quickSearchListObj;
|
|
272
|
+
if (!displayCategoryList || !displayCategoryList.length) {
|
|
273
|
+
parentNames.value = [];
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
displayCategoryList.forEach((item) => {
|
|
277
|
+
if (item !== "\u672A\u5206\u7C7B") {
|
|
278
|
+
parentNamesResult.push({
|
|
279
|
+
disabled: true,
|
|
280
|
+
selected: false,
|
|
281
|
+
value: item
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
parentNames.value = parentNamesResult;
|
|
286
|
+
}
|
|
287
|
+
function setDefaultCon(val) {
|
|
288
|
+
if (!val.length) {
|
|
289
|
+
quickSearch.value.forEach((item, index) => {
|
|
290
|
+
if (isRender(item)) {
|
|
291
|
+
quickSearch.value[index].value = getDefValByRenderWidget(item);
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
295
|
+
let optionSetting0 = String(advanceOptionSetting) == "0";
|
|
296
|
+
if (optionSetting0) {
|
|
297
|
+
quickSearch.value[index].value = void 0;
|
|
298
|
+
} else {
|
|
299
|
+
if (item.CONVERT && Array.isArray(item.CONVERT)) {
|
|
300
|
+
quickSearch.value[index].CONVERT = [];
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
return false;
|
|
305
|
+
}
|
|
306
|
+
quickSearch.value.forEach((item, index) => {
|
|
307
|
+
var _a;
|
|
308
|
+
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
309
|
+
let optionSetting0 = String(advanceOptionSetting) == "0";
|
|
310
|
+
let find = val.find((valItem) => valItem.field_key === item.columnName);
|
|
311
|
+
if (find) {
|
|
312
|
+
if (isRender(item)) {
|
|
313
|
+
quickSearch.value[index].value = getDefValByRenderConObj(find, item);
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
let findValue = find == null ? void 0 : find.value;
|
|
317
|
+
if (Array.isArray(findValue) && item.CONVERT && Array.isArray(item.CONVERT)) {
|
|
318
|
+
let value = ((_a = findValue.map) == null ? void 0 : _a.call(findValue, (itemFind) => JSON.stringify(itemFind))) || find.value;
|
|
319
|
+
value = value.filter(Boolean);
|
|
320
|
+
quickSearch.value[index].CONVERT = value;
|
|
321
|
+
if (optionSetting0 && item.labelList) {
|
|
322
|
+
let i = value[0] ? item.labelList.findIndex((v) => v.value == value[0]) : "";
|
|
323
|
+
quickSearch.value[index].value = i;
|
|
324
|
+
}
|
|
325
|
+
} else {
|
|
326
|
+
quickSearch.value[index].value = findValue;
|
|
327
|
+
}
|
|
328
|
+
} else {
|
|
329
|
+
quickSearch.value[index].CONVERT = optionSetting0 ? "" : [];
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function handlerInitSearchItem(arr) {
|
|
334
|
+
if (!Array.isArray(arr))
|
|
335
|
+
return;
|
|
336
|
+
arr.forEach((el) => {
|
|
337
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
338
|
+
if (initRenderWidgetCfg(el))
|
|
339
|
+
return;
|
|
340
|
+
const isPreciseSearch = ((_a = el == null ? void 0 : el.settingObj) == null ? void 0 : _a.isPreciseSearch) || "";
|
|
341
|
+
if (el.setting) {
|
|
342
|
+
el.setting = typeof el.setting == "string" ? JSON.parse(el.setting) : el.setting;
|
|
343
|
+
let advanceOptionSetting = el == null ? void 0 : el.advanceOptionSetting;
|
|
344
|
+
let optionSetting0 = String(advanceOptionSetting) == "0";
|
|
345
|
+
let wordbookId = (_c = (_b = el == null ? void 0 : el.setting) == null ? void 0 : _b.wordbook) == null ? void 0 : _c.id;
|
|
346
|
+
if (XEUtils.anyNotEmpty((_d = el.setting) == null ? void 0 : _d.wordbook) && wordbookId) {
|
|
347
|
+
let isTree = "tree" === ((_f = (_e = el == null ? void 0 : el.setting) == null ? void 0 : _e.wordbook) == null ? void 0 : _f.showType);
|
|
348
|
+
let comType = isTree ? "treeSelect" : "SelectMuiWordBook";
|
|
349
|
+
let defVal = [];
|
|
350
|
+
if (optionSetting0) {
|
|
351
|
+
defVal = void 0;
|
|
352
|
+
}
|
|
353
|
+
el.con = "QUOTE";
|
|
354
|
+
el.dataSource = [];
|
|
355
|
+
el.QUOTE = [];
|
|
356
|
+
el.value = defVal;
|
|
357
|
+
el.com = "SelectMui";
|
|
358
|
+
el.comType = comType;
|
|
359
|
+
el.searchPageConfig = {
|
|
360
|
+
keyword: void 0,
|
|
361
|
+
isRequest: false,
|
|
362
|
+
page: 1,
|
|
363
|
+
total: 1,
|
|
364
|
+
hasNextPage: false
|
|
365
|
+
};
|
|
366
|
+
return;
|
|
367
|
+
} else if (((_g = el == null ? void 0 : el.setting) == null ? void 0 : _g.showSetting) && (el == null ? void 0 : el.setting.showSetting.length) > 0) {
|
|
368
|
+
el.con = "CONVERT";
|
|
369
|
+
let showSetting = el.setting.showSetting;
|
|
370
|
+
let dictionItem = handleDictionDef(el);
|
|
371
|
+
if (dictionItem) {
|
|
372
|
+
showSetting.unshift(dictionItem);
|
|
373
|
+
}
|
|
374
|
+
showSetting.forEach((set) => {
|
|
375
|
+
set.label = set.change_text;
|
|
376
|
+
set.value = JSON.stringify(set.filter);
|
|
377
|
+
});
|
|
378
|
+
if (optionSetting0) {
|
|
379
|
+
el.com = "SelectMui";
|
|
380
|
+
el.comType = "SelectMui";
|
|
381
|
+
const labelList = el.setting.showSetting.map((i) => {
|
|
382
|
+
i.labelName = i.change_text;
|
|
383
|
+
return i;
|
|
384
|
+
});
|
|
385
|
+
el.labelList = labelList;
|
|
386
|
+
}
|
|
387
|
+
el.setting["showSetting"] = showSetting;
|
|
388
|
+
el.CONVERT = optionSetting0 ? "" : [];
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
if (((_h = el.setting) == null ? void 0 : _h.attr) === "LABEL") {
|
|
393
|
+
el.con = "CL";
|
|
394
|
+
el.LABELAttr = true;
|
|
395
|
+
el.labelSelectList = [];
|
|
396
|
+
el.inputVal = "";
|
|
397
|
+
handleSetLabelOptions(el.setting.labelType, el);
|
|
398
|
+
} else if (((_i = el.setting) == null ? void 0 : _i.attr) === "EVALUATE") {
|
|
399
|
+
el.con = "CL";
|
|
400
|
+
el.selecteds = [];
|
|
401
|
+
el.EVALUATEAttr = true;
|
|
402
|
+
} else if (((_j = el.setting) == null ? void 0 : _j.attr) === "AGE" && el.fieldType != "NUMBER") {
|
|
403
|
+
let format = el.setting.format || "YYYY-MM-DD";
|
|
404
|
+
format = format.toUpperCase();
|
|
405
|
+
el.con = "IN";
|
|
406
|
+
el.ageObj = {};
|
|
407
|
+
el.format = format;
|
|
408
|
+
el.AGEAttr = true;
|
|
409
|
+
} else if (((_k = el.setting) == null ? void 0 : _k.attr) === "PASSWORD") {
|
|
410
|
+
el.comAttr = "PASSWORD";
|
|
411
|
+
el.PASSWORDTYPE = true;
|
|
412
|
+
} else if (el.fieldType == "NUMBER") {
|
|
413
|
+
el.con = "EQ";
|
|
414
|
+
el.EQ = "";
|
|
415
|
+
el.NUMBERFiled = true;
|
|
416
|
+
el.lessValue = "";
|
|
417
|
+
el.bigValue = "";
|
|
418
|
+
if (((_l = el.setting) == null ? void 0 : _l.attr) == "PERCENTAGE") {
|
|
419
|
+
el.inputUnit = "%";
|
|
420
|
+
}
|
|
421
|
+
} else if ((_m = el == null ? void 0 : el.fieldType) == null ? void 0 : _m.includes("DATE")) {
|
|
422
|
+
if (el.settingObj && el.settingObj.attr == "BIRTHDAY") {
|
|
423
|
+
el.con = "BIRTHDAY";
|
|
424
|
+
el.showDate = false;
|
|
425
|
+
el.marginx = "ml";
|
|
426
|
+
el.BIRTHDAY = initBirthdayParams();
|
|
427
|
+
} else {
|
|
428
|
+
const value = getSearchDefValueByLimit(el, props.searchFieldLimit);
|
|
429
|
+
let hasValue = Array.isArray(value);
|
|
430
|
+
let advanceOptionSetting = el == null ? void 0 : el.advanceOptionSetting;
|
|
431
|
+
let optionSetting1 = String(advanceOptionSetting) == "1";
|
|
432
|
+
el.con = "DATE";
|
|
433
|
+
el.showDate = optionSetting1 || hasValue;
|
|
434
|
+
el.marginx = optionSetting1 || hasValue ? "mr" : "ml";
|
|
435
|
+
el.DATE = {
|
|
436
|
+
con: hasValue ? "IN" : null,
|
|
437
|
+
start_val: hasValue ? value[0] : null,
|
|
438
|
+
end_val: hasValue ? value[1] : null
|
|
439
|
+
};
|
|
440
|
+
let dateTeamVal = [];
|
|
441
|
+
switch (advanceOptionSetting) {
|
|
442
|
+
case "0":
|
|
443
|
+
dateTeamVal = [];
|
|
444
|
+
break;
|
|
445
|
+
case "2":
|
|
446
|
+
dateTeamVal = (dateTeam2 == null ? void 0 : dateTeam2.value) || dateTeam0.value;
|
|
447
|
+
break;
|
|
448
|
+
case "3":
|
|
449
|
+
dateTeamVal = (dateTeam3 == null ? void 0 : dateTeam3.value) || dateTeam0.value;
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
el.dateTeam = dateTeamVal;
|
|
453
|
+
}
|
|
454
|
+
} else if (el.fieldType == "TEXT") {
|
|
455
|
+
let con = isPreciseSearch == 1 ? "EQ" : "CL";
|
|
456
|
+
el.con = con;
|
|
457
|
+
el.isPreciseSearch = isPreciseSearch == 1;
|
|
458
|
+
} else if (el.fieldType == "JSONB") {
|
|
459
|
+
el.con = "EQ";
|
|
460
|
+
el.EQ = "";
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
function handleDictionDef(el) {
|
|
465
|
+
let { defaultValue, defaultValueTitle } = (el == null ? void 0 : el.dictionarieObj) || {};
|
|
466
|
+
let dictionItem = null;
|
|
467
|
+
if (defaultValue && defaultValueTitle) {
|
|
468
|
+
dictionItem = {
|
|
469
|
+
change_text: defaultValueTitle,
|
|
470
|
+
filter: [
|
|
471
|
+
{
|
|
472
|
+
con: "EQ",
|
|
473
|
+
field_key: el.columnName,
|
|
474
|
+
value: defaultValue
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
return dictionItem;
|
|
480
|
+
}
|
|
481
|
+
function checkDate(item) {
|
|
482
|
+
item.showDate = !item.showDate;
|
|
483
|
+
item.showDate ? item.marginx = "mr" : item.marginx = "ml";
|
|
484
|
+
}
|
|
485
|
+
function checkBirthDay(item) {
|
|
486
|
+
item.showDate = !item.showDate;
|
|
487
|
+
}
|
|
488
|
+
function getWordbookData(o, obj) {
|
|
489
|
+
let { id, filterKeys, wordbookType } = o;
|
|
490
|
+
fetchingWordbook.value = true;
|
|
491
|
+
let resFieldKeys = Array.isArray(filterKeys) ? JSON.stringify(filterKeys) : filterKeys;
|
|
492
|
+
let params = {
|
|
493
|
+
wordbookId: id,
|
|
494
|
+
fieldKeys: resFieldKeys,
|
|
495
|
+
wordbookType: wordbookType || "WORDBOOK",
|
|
496
|
+
asyncCount: 1,
|
|
497
|
+
...obj
|
|
498
|
+
};
|
|
499
|
+
return handleGetConfigApi(params, "requestGetWordbookData", { fields: o }, props.filterApiConfig).then((res) => {
|
|
500
|
+
fetchingWordbook.value = false;
|
|
501
|
+
if (typeof res.data === "object") {
|
|
502
|
+
res.data.reqParams = params;
|
|
503
|
+
}
|
|
504
|
+
return res;
|
|
505
|
+
}).catch(() => {
|
|
506
|
+
fetchingWordbook.value = false;
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function handleWordbookData(item, data, params) {
|
|
510
|
+
item.hasFieldList = false;
|
|
511
|
+
const { rows, hasFieldList, searchPageConfig } = wordBookutils.handleWordbookData(item, data, params);
|
|
512
|
+
item.hasFieldList = hasFieldList;
|
|
513
|
+
item.dataSource = rows;
|
|
514
|
+
item.searchPageConfig = Object.assign(item.searchPageConfig, searchPageConfig);
|
|
515
|
+
}
|
|
516
|
+
function filterChange() {
|
|
517
|
+
}
|
|
518
|
+
function maxTagPlaceholder(item) {
|
|
519
|
+
if (Array.isArray(item.value)) {
|
|
520
|
+
return item.value.length;
|
|
521
|
+
} else {
|
|
522
|
+
return 1;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
function dropdownVisibleChange(open, item) {
|
|
526
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
527
|
+
if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === "0")
|
|
528
|
+
return;
|
|
529
|
+
if (open) {
|
|
530
|
+
let obj = {};
|
|
531
|
+
if ((_b = (_a = item.setting) == null ? void 0 : _a.wordbook) == null ? void 0 : _b.params) {
|
|
532
|
+
(_e = (_d = (_c = item.setting) == null ? void 0 : _c.wordbook) == null ? void 0 : _d.params) == null ? void 0 : _e.forEach((item1) => {
|
|
533
|
+
obj[item1.p_name] = item1.p_value;
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
if (item.settingObj.wordbook) {
|
|
537
|
+
obj.autograph = item.settingObj.wordbook.autograph;
|
|
538
|
+
}
|
|
539
|
+
curWordbookData.value = (_f = item.setting) == null ? void 0 : _f.wordbook;
|
|
540
|
+
curAutograph.value = item.settingObj.wordbook && item.settingObj.wordbook.autograph;
|
|
541
|
+
searchItem.value = item;
|
|
542
|
+
getWordbookData((_g = item.setting) == null ? void 0 : _g.wordbook, obj).then(({ data }) => {
|
|
543
|
+
handleWordbookData(item, data, obj);
|
|
544
|
+
});
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function handleSearch(value, item, config = {}) {
|
|
548
|
+
var _a, _b, _c, _d, _e;
|
|
549
|
+
if (item.comType == "SelectMui" && String(item.advanceOptionSetting) === "0")
|
|
550
|
+
return;
|
|
551
|
+
let params = {
|
|
552
|
+
keyword: value,
|
|
553
|
+
autograph: curAutograph.value
|
|
554
|
+
};
|
|
555
|
+
let obj = {};
|
|
556
|
+
let p = ((_b = (_a = item == null ? void 0 : item.setting) == null ? void 0 : _a.wordbook) == null ? void 0 : _b.params) || void 0;
|
|
557
|
+
if (p) {
|
|
558
|
+
(_e = (_d = (_c = item.setting) == null ? void 0 : _c.wordbook) == null ? void 0 : _d.params) == null ? void 0 : _e.forEach((item1) => {
|
|
559
|
+
obj[item1.p_name] = item1.p_value;
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
let rp = { ...params, ...obj, ...config };
|
|
563
|
+
getWordbookData(curWordbookData.value, rp).then(({ data }) => {
|
|
564
|
+
handleWordbookData(searchItem.value, data, rp);
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
function onSave() {
|
|
568
|
+
let mergeConObj = getMergeConObj();
|
|
569
|
+
resetChangeWindow();
|
|
570
|
+
if (!validConObj(mergeConObj, props.searchFieldList, props.searchFieldLimit))
|
|
571
|
+
return false;
|
|
572
|
+
emit("onSave", mergeConObj);
|
|
573
|
+
return quickSearch.value;
|
|
574
|
+
}
|
|
575
|
+
function getMergeConObj() {
|
|
576
|
+
let conObj = getConObjParams() || [];
|
|
577
|
+
let mergeConObj = [...conObj];
|
|
578
|
+
props.quickSearchConfig.forEach((i) => {
|
|
579
|
+
let find = mergeConObj.find((j) => {
|
|
580
|
+
return i.field_key === j.field_key;
|
|
581
|
+
});
|
|
582
|
+
if (!find && !quickSearch.value.find((item) => {
|
|
583
|
+
return item.columnName === i.field_key;
|
|
584
|
+
})) {
|
|
585
|
+
mergeConObj.push(i);
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
return mergeConObj || [];
|
|
589
|
+
}
|
|
590
|
+
function getConObjParams() {
|
|
591
|
+
let conObj = getConObj(quickSearch.value) || [];
|
|
592
|
+
let realation = [];
|
|
593
|
+
relationQuickSearch.value.forEach((item) => {
|
|
594
|
+
let curQuote = getConObj(item.fieldList);
|
|
595
|
+
if (curQuote && curQuote.length) {
|
|
596
|
+
realation.push({
|
|
597
|
+
field_key: item.primaryField,
|
|
598
|
+
valueField: item.relationField,
|
|
599
|
+
con: "QUOTE_IN",
|
|
600
|
+
tableId: item.tableId,
|
|
601
|
+
parameterConversionId: item.parameterConversionId,
|
|
602
|
+
converFun: item.converFun,
|
|
603
|
+
preConObj: item.preConObj,
|
|
604
|
+
relationOrgId: item.relationOrgId,
|
|
605
|
+
preSqlExpression: item.preSqlExpression,
|
|
606
|
+
quote_con: {
|
|
607
|
+
conObj: getConObj(item.fieldList),
|
|
608
|
+
sqlExpression: ""
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
conObj.push(...realation);
|
|
614
|
+
return conObj || [];
|
|
615
|
+
}
|
|
616
|
+
function closeModal() {
|
|
617
|
+
resetChangeWindow();
|
|
618
|
+
emit("closeModal");
|
|
619
|
+
}
|
|
620
|
+
function resetChangeWindow() {
|
|
621
|
+
modalWidth.value = "700px";
|
|
622
|
+
modalHeight.value = "60vh";
|
|
623
|
+
isChangeWindow.value = false;
|
|
624
|
+
}
|
|
625
|
+
function openSaveToCalss() {
|
|
626
|
+
let conObj = getConObjParams();
|
|
627
|
+
console.log("conObj>>>>>", conObj);
|
|
628
|
+
if (!conObj)
|
|
629
|
+
return;
|
|
630
|
+
if (conObj.length > 0) {
|
|
631
|
+
if (!validConObj(conObj, props.searchFieldList, props.searchFieldLimit))
|
|
632
|
+
return;
|
|
633
|
+
showInner.value = true;
|
|
634
|
+
} else {
|
|
635
|
+
$message.warning("\u8BF7\u8BBE\u7F6E\u641C\u7D22\u6761\u4EF6");
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function getConObj(arr) {
|
|
639
|
+
var _a, _b, _c, _d, _e, _f;
|
|
640
|
+
if (!Array.isArray(arr)) {
|
|
641
|
+
return [];
|
|
642
|
+
}
|
|
643
|
+
let conObj = [];
|
|
644
|
+
for (let i = 0; i < arr.length; i++) {
|
|
645
|
+
let item = arr[i];
|
|
646
|
+
const renderConObj = getRenderSearchConObj(item);
|
|
647
|
+
if (renderConObj) {
|
|
648
|
+
conObj.push(renderConObj);
|
|
649
|
+
continue;
|
|
650
|
+
}
|
|
651
|
+
let value = "";
|
|
652
|
+
let limit_date_result = "";
|
|
653
|
+
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
654
|
+
let optionSetting0 = String(advanceOptionSetting) === "0";
|
|
655
|
+
if (item.EQ || item.CL) {
|
|
656
|
+
value = item.EQ || item.CL;
|
|
657
|
+
if (((_a = item.settingObj) == null ? void 0 : _a.attr) === "PERCENTAGE") {
|
|
658
|
+
value = Number(value) / 100;
|
|
659
|
+
}
|
|
660
|
+
if (item.EVALUATEAttr) {
|
|
661
|
+
value = item.selecteds.join("|#|");
|
|
662
|
+
}
|
|
663
|
+
} else if (item.comType == "SelectMui" && optionSetting0 && item.labelList) {
|
|
664
|
+
let i2 = item.value;
|
|
665
|
+
let c = item == null ? void 0 : item.labelList[i2];
|
|
666
|
+
if (item.con == "CONVERT") {
|
|
667
|
+
value = (c == null ? void 0 : c.filter) ? [c == null ? void 0 : c.filter] : void 0;
|
|
668
|
+
} else {
|
|
669
|
+
value = (c == null ? void 0 : c.labelName) ? [c == null ? void 0 : c.labelName] : void 0;
|
|
670
|
+
}
|
|
671
|
+
} else if (item.con == "QUOTE" && XEUtils.anyNotEmpty(item.value)) {
|
|
672
|
+
if (item.comType == "treeSelect") {
|
|
673
|
+
let cval = item.value;
|
|
674
|
+
if (typeof cval === "string") {
|
|
675
|
+
[cval] = cval.split("<&=&>");
|
|
676
|
+
value = cval;
|
|
677
|
+
} else if (Array.isArray(cval)) {
|
|
678
|
+
cval = cval.map((v) => {
|
|
679
|
+
let [k] = typeof v === "string" ? v.split("<&=&>") : [];
|
|
680
|
+
return k;
|
|
681
|
+
});
|
|
682
|
+
value = cval.join("|#|");
|
|
683
|
+
}
|
|
684
|
+
} else {
|
|
685
|
+
value = optionSetting0 ? item.value : item.value.join("|#|");
|
|
686
|
+
}
|
|
687
|
+
} else if (XEUtils.anyNotEmpty(item.CONVERT) && Array.isArray(item.CONVERT)) {
|
|
688
|
+
value = item.CONVERT.map((c_item) => {
|
|
689
|
+
if (c_item && XEUtils.isJSON(c_item)) {
|
|
690
|
+
return JSON.parse(c_item);
|
|
691
|
+
}
|
|
692
|
+
return c_item;
|
|
693
|
+
});
|
|
694
|
+
} else if (item.DATE && !item.AGEAttr) {
|
|
695
|
+
if (item.DATE.start_val || item.DATE.end_val) {
|
|
696
|
+
item.DATE.con = "IN";
|
|
697
|
+
}
|
|
698
|
+
item.tempCon = item.DATE.con;
|
|
699
|
+
item.start_val = item.DATE.start_val || null;
|
|
700
|
+
item.end_val = item.DATE.end_val || null;
|
|
701
|
+
} else if (item.BIRTHDAY) {
|
|
702
|
+
let isChange = false;
|
|
703
|
+
if (((_c = (_b = item.BIRTHDAY) == null ? void 0 : _b.limit_date) == null ? void 0 : _c.length) > 0 || item.BIRTHDAY.start_val || item.BIRTHDAY.end_val) {
|
|
704
|
+
item.BIRTHDAY.con = "IN";
|
|
705
|
+
}
|
|
706
|
+
item.tempCon = item.BIRTHDAY.con;
|
|
707
|
+
if (item.BIRTHDAY.start_val || item.BIRTHDAY.end_val) {
|
|
708
|
+
isChange = true;
|
|
709
|
+
} else {
|
|
710
|
+
isChange = false;
|
|
711
|
+
}
|
|
712
|
+
if (item.BIRTHDAY.start_val) {
|
|
713
|
+
let res2 = XEUtils.validateBirthday(
|
|
714
|
+
item.BIRTHDAY.start_val,
|
|
715
|
+
item.title,
|
|
716
|
+
item.BIRTHDAY.unit
|
|
717
|
+
);
|
|
718
|
+
if (!res2)
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
if (item.BIRTHDAY.end_val) {
|
|
722
|
+
let res2 = XEUtils.validateBirthday(
|
|
723
|
+
item.BIRTHDAY.end_val,
|
|
724
|
+
item.title,
|
|
725
|
+
item.BIRTHDAY.unit
|
|
726
|
+
);
|
|
727
|
+
if (!res2)
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
if (+item.BIRTHDAY.start_val > +item.BIRTHDAY.end_val) {
|
|
731
|
+
$message.warning(`${item.title}\u8BF7\u8F93\u5165\u6709\u6548\u8303\u56F4`);
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
limit_date_result = limit_date.value || "";
|
|
735
|
+
item.unit = isChange ? item.BIRTHDAY.unit || "" : "";
|
|
736
|
+
item.start_val = item.BIRTHDAY.start_val || null;
|
|
737
|
+
item.end_val = item.BIRTHDAY.end_val || null;
|
|
738
|
+
}
|
|
739
|
+
if (item.LABELAttr) {
|
|
740
|
+
if (Object.keys(item.labelObj || {}).length > 0 && Array.isArray(item.labelSelectList)) {
|
|
741
|
+
let valList = [];
|
|
742
|
+
item.labelSelectList.forEach((v) => {
|
|
743
|
+
valList.push(v.labelName);
|
|
744
|
+
});
|
|
745
|
+
value = valList.join("|#|");
|
|
746
|
+
} else {
|
|
747
|
+
value = item.inputVal;
|
|
748
|
+
}
|
|
749
|
+
} else if (item.EVALUATEAttr) {
|
|
750
|
+
value = item.selecteds.join("|#|");
|
|
751
|
+
} else if (item.AGEAttr) {
|
|
752
|
+
value = "";
|
|
753
|
+
} else if (item.NUMBERFiled && (item.lessValue || item.bigValue)) {
|
|
754
|
+
let lessValue = (_d = item.lessValue) != null ? _d : "";
|
|
755
|
+
let bigValue = (_e = item.bigValue) != null ? _e : "";
|
|
756
|
+
if (((_f = item.setting) == null ? void 0 : _f.attr) === "PERCENTAGE") {
|
|
757
|
+
lessValue = (lessValue || lessValue === 0) && Number(lessValue) / 100 || "";
|
|
758
|
+
bigValue = (bigValue || bigValue === 0) && Number(bigValue) / 100 || "";
|
|
759
|
+
}
|
|
760
|
+
value = `${lessValue}~${bigValue}`;
|
|
761
|
+
}
|
|
762
|
+
if (value && XEUtils.isString(value)) {
|
|
763
|
+
value = value.trim();
|
|
764
|
+
}
|
|
765
|
+
let temp = {
|
|
766
|
+
field_key: item.columnName,
|
|
767
|
+
con: item.DATE || item.BIRTHDAY ? item.tempCon : item.con,
|
|
768
|
+
value,
|
|
769
|
+
limit_date: limit_date_result || "",
|
|
770
|
+
start_val: item.start_val || null,
|
|
771
|
+
end_val: item.end_val || null,
|
|
772
|
+
unit: item.unit || "",
|
|
773
|
+
id: item.id
|
|
774
|
+
};
|
|
775
|
+
conObj.push(temp);
|
|
776
|
+
}
|
|
777
|
+
let dateCons = dateTeam.value.map((item) => item.con);
|
|
778
|
+
let res = conObj.filter(
|
|
779
|
+
(item) => item.value || item.limit_date || item.start_val || item.end_val || dateCons.includes(item.con)
|
|
780
|
+
);
|
|
781
|
+
return res;
|
|
782
|
+
}
|
|
783
|
+
function disabledDate(current) {
|
|
784
|
+
return current && current < moment().startOf("year") || current > moment().endOf("year");
|
|
785
|
+
}
|
|
786
|
+
function changeRange(date, dateString) {
|
|
787
|
+
if (dateString[0]) {
|
|
788
|
+
limit_date.value = dateString.join("~");
|
|
789
|
+
} else {
|
|
790
|
+
limit_date.value = "";
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function saveToCalss() {
|
|
794
|
+
var _a;
|
|
795
|
+
(_a = formRef.value) == null ? void 0 : _a.validate((err) => {
|
|
796
|
+
var _a2;
|
|
797
|
+
if (err)
|
|
798
|
+
return;
|
|
799
|
+
let conObj = getConObjParams();
|
|
800
|
+
if (!conObj.length) {
|
|
801
|
+
conObj = [];
|
|
802
|
+
}
|
|
803
|
+
let displayCategory = (_a2 = parentNames.value.filter((item) => item.selected)[0]) == null ? void 0 : _a2.value;
|
|
804
|
+
let params = {
|
|
805
|
+
tableId: attrs.tableId || "",
|
|
806
|
+
setting: JSON.stringify({
|
|
807
|
+
displayCategory,
|
|
808
|
+
name: formValue.value.classname,
|
|
809
|
+
conObj
|
|
810
|
+
}),
|
|
811
|
+
conditionList: JSON.stringify(props.originConditionList)
|
|
812
|
+
};
|
|
813
|
+
saveTableCondiTion(params);
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
function handleParentNamesAdd(e) {
|
|
817
|
+
var _a;
|
|
818
|
+
const nextInput = (_a = e == null ? void 0 : e.target) == null ? void 0 : _a.nextElementSibling;
|
|
819
|
+
setTimeout(() => {
|
|
820
|
+
nextInput && nextInput.focus();
|
|
821
|
+
});
|
|
822
|
+
showAdd.value = true;
|
|
823
|
+
}
|
|
824
|
+
function hanldeBlur() {
|
|
825
|
+
showAdd.value = false;
|
|
826
|
+
if (!addVal.value)
|
|
827
|
+
return;
|
|
828
|
+
parentNames.value.forEach((v) => v.selected = false);
|
|
829
|
+
parentNames.value.push({
|
|
830
|
+
disabled: true,
|
|
831
|
+
value: addVal.value,
|
|
832
|
+
selected: true,
|
|
833
|
+
isAdd: true
|
|
834
|
+
});
|
|
835
|
+
addVal.value = "";
|
|
836
|
+
}
|
|
837
|
+
function editParentName(e, item) {
|
|
838
|
+
item.disabled = false;
|
|
839
|
+
setTimeout(() => {
|
|
840
|
+
var _a;
|
|
841
|
+
(_a = e.target) == null ? void 0 : _a.focus();
|
|
842
|
+
}, 0);
|
|
843
|
+
}
|
|
844
|
+
function handleParentNameSelect(item, index) {
|
|
845
|
+
if (!item.disabled)
|
|
846
|
+
return;
|
|
847
|
+
parentNames.value.forEach((pItem, pIndex) => {
|
|
848
|
+
if (pIndex !== index) {
|
|
849
|
+
pItem.selected = false;
|
|
850
|
+
}
|
|
851
|
+
});
|
|
852
|
+
item.selected = !item.selected;
|
|
853
|
+
}
|
|
854
|
+
function handleParentNamesRemove(index, item) {
|
|
855
|
+
handleParent(index, item);
|
|
856
|
+
}
|
|
857
|
+
function handleParent(index, item) {
|
|
858
|
+
let { conditionList = [] } = props.quickSearchListObj || {};
|
|
859
|
+
if (!conditionList || conditionList && (conditionList == null ? void 0 : conditionList.length) === 0) {
|
|
860
|
+
parentNames.value.splice(index, 1);
|
|
861
|
+
return;
|
|
862
|
+
}
|
|
863
|
+
let hasItem = conditionList.filter((v) => v.displayCategory === item.value);
|
|
864
|
+
if (!hasItem || !hasItem.length) {
|
|
865
|
+
parentNames.value.splice(index, 1);
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
$message.error("\u8BE5\u5206\u7C7B\u4E0B\u6709\u5DF2\u6709\u6570\u636E\uFF0C\u8BF7\u5220\u9664\u8BE5\u5206\u7C7B\u4E0B\u7684\u7B5B\u9009\u96C6\u540E\u91CD\u8BD5\uFF01");
|
|
869
|
+
}
|
|
870
|
+
async function saveTableCondiTion(params) {
|
|
871
|
+
var _a;
|
|
872
|
+
try {
|
|
873
|
+
let res = await handleGetConfigApi(params, "requestSaveTableCondiTion", {}, props.filterApiConfig);
|
|
874
|
+
if (!res)
|
|
875
|
+
return;
|
|
876
|
+
showInner.value = false;
|
|
877
|
+
(_a = formRef.value) == null ? void 0 : _a.restoreValidation();
|
|
878
|
+
formValue.value.classname = "";
|
|
879
|
+
parentNames.value = [];
|
|
880
|
+
emit("updateTableCondiTion");
|
|
881
|
+
clearData();
|
|
882
|
+
closeModal();
|
|
883
|
+
} catch (error) {
|
|
884
|
+
console.log(error);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
function cancelSaveToCalss() {
|
|
888
|
+
showInner.value = false;
|
|
889
|
+
}
|
|
890
|
+
function clearData() {
|
|
891
|
+
handlerReset(quickSearch.value);
|
|
892
|
+
relationQuickSearch.value.forEach((item) => {
|
|
893
|
+
handlerReset(item.fieldList);
|
|
894
|
+
});
|
|
895
|
+
if (props.source === "editTable") {
|
|
896
|
+
emit("clearQuickSearchConfig");
|
|
897
|
+
return;
|
|
898
|
+
}
|
|
899
|
+
attrs == null ? void 0 : attrs.clearQuickSearchConfig();
|
|
900
|
+
}
|
|
901
|
+
function handlerReset(arr) {
|
|
902
|
+
if (!Array.isArray(arr)) {
|
|
903
|
+
return;
|
|
904
|
+
}
|
|
905
|
+
arr.forEach((item) => {
|
|
906
|
+
if (resetRenderWidgetValue(item))
|
|
907
|
+
return;
|
|
908
|
+
let advanceOptionSetting = item == null ? void 0 : item.advanceOptionSetting;
|
|
909
|
+
let optionSetting0 = String(advanceOptionSetting) === "0";
|
|
910
|
+
if (item.EQ || item.CL) {
|
|
911
|
+
item.EQ = "";
|
|
912
|
+
item.CL = "";
|
|
913
|
+
} else if (item.con == "QUOTE" && XEUtils.anyNotEmpty(item.value)) {
|
|
914
|
+
item.QUOTE = [];
|
|
915
|
+
item.value = [];
|
|
916
|
+
} else if (item.com == "SelectMui" && item.con == "CONVERT" && optionSetting0) {
|
|
917
|
+
item.CONVERT = [];
|
|
918
|
+
item.value = void 0;
|
|
919
|
+
} else if (XEUtils.anyNotEmpty(item.CONVERT)) {
|
|
920
|
+
item.CONVERT = [];
|
|
921
|
+
} else if (item.DATE) {
|
|
922
|
+
item.showDate = String(advanceOptionSetting) == "1" ? true : false;
|
|
923
|
+
item.marginx = "ml";
|
|
924
|
+
item.DATE = {
|
|
925
|
+
con: null,
|
|
926
|
+
start_val: null,
|
|
927
|
+
end_val: null
|
|
928
|
+
};
|
|
929
|
+
} else if (item.BIRTHDAY) {
|
|
930
|
+
item.showDate = false;
|
|
931
|
+
item.marginx = "ml";
|
|
932
|
+
item.BIRTHDAY = initBirthdayParams();
|
|
933
|
+
} else if (item.LABELAttr) {
|
|
934
|
+
handleClearLabel(item);
|
|
935
|
+
} else if (item.EVALUATEAttr) {
|
|
936
|
+
item.selecteds = [];
|
|
937
|
+
} else if (item.AGEAttr) {
|
|
938
|
+
handleResetAge(item);
|
|
939
|
+
} else if (item.NUMBERFiled) {
|
|
940
|
+
clearFilterNumber(item);
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
function initBirthdayParams() {
|
|
945
|
+
limit_date.value = "";
|
|
946
|
+
return {
|
|
947
|
+
con: null,
|
|
948
|
+
limit_date: [],
|
|
949
|
+
start_val: null,
|
|
950
|
+
end_val: null,
|
|
951
|
+
unit: "YEAR",
|
|
952
|
+
units: birthdayUnits.value.filter((i) => i.units === 1)
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
function clickRadioGroup(item, con) {
|
|
956
|
+
if (item) {
|
|
957
|
+
if (item.con == con) {
|
|
958
|
+
item.con = null;
|
|
959
|
+
} else {
|
|
960
|
+
if (item.con === "IN") {
|
|
961
|
+
item.start_val = null;
|
|
962
|
+
item.end_val = null;
|
|
963
|
+
}
|
|
964
|
+
item.con = con;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
function clickBirthdayRadioGroup(item, con) {
|
|
969
|
+
if (item) {
|
|
970
|
+
limit_date.value = "";
|
|
971
|
+
Object.assign(item, initBirthdayParams());
|
|
972
|
+
clickRadioGroup(item, con);
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
async function handleSetLabelOptions(labelType, el) {
|
|
976
|
+
let labelObj = {};
|
|
977
|
+
let labelList = await handleGetConfigApi(labelType, "requestedLabel", {}, props.filterApiConfig);
|
|
978
|
+
labelList.forEach((n) => {
|
|
979
|
+
n.isSelect = false;
|
|
980
|
+
if (labelObj[n.typeName]) {
|
|
981
|
+
labelObj[n.typeName].itemList.push({ ...n });
|
|
982
|
+
} else {
|
|
983
|
+
labelObj[n.typeName] = {
|
|
984
|
+
itemList: [{ ...n }],
|
|
985
|
+
showAdd: false,
|
|
986
|
+
addVal: "",
|
|
987
|
+
typeName: n.typeName,
|
|
988
|
+
typeId: n.typeId,
|
|
989
|
+
isUnfold: false,
|
|
990
|
+
isShowBtn: false
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
el.labelObj = labelObj;
|
|
995
|
+
el.labelList = labelList;
|
|
996
|
+
}
|
|
997
|
+
function handleLabelColorClass(item) {
|
|
998
|
+
var _a;
|
|
999
|
+
return ((_a = item == null ? void 0 : item.color) == null ? void 0 : _a.split("-")[1]) || "yellow";
|
|
1000
|
+
}
|
|
1001
|
+
function handleLabelChange(flag, item, options) {
|
|
1002
|
+
let selectedList = options.labelSelectList || [];
|
|
1003
|
+
if (flag) {
|
|
1004
|
+
if (selectedList.some((n) => n.labelId == item.labelId)) {
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
selectedList.push(item);
|
|
1008
|
+
} else {
|
|
1009
|
+
let fdIndex = selectedList.findIndex((n) => n.labelId == item.labelId);
|
|
1010
|
+
if (fdIndex != -1) {
|
|
1011
|
+
selectedList.splice(fdIndex, 1);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
item.isSelect = flag;
|
|
1015
|
+
options.labelSelectList = selectedList;
|
|
1016
|
+
}
|
|
1017
|
+
function handleClearLabel(v) {
|
|
1018
|
+
if (v.labelSelectList) {
|
|
1019
|
+
v.labelSelectList.length = 0;
|
|
1020
|
+
v.inputVal = "";
|
|
1021
|
+
Object.entries(v.labelObj || {}).forEach((h) => {
|
|
1022
|
+
let [, item] = h;
|
|
1023
|
+
item.itemList.forEach((l) => {
|
|
1024
|
+
l.isSelect = false;
|
|
1025
|
+
});
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
function handleLabelUpfold(v) {
|
|
1030
|
+
v.isUnfold = !v.isUnfold;
|
|
1031
|
+
}
|
|
1032
|
+
function handleEvaluateOnChange(checked, tag, item) {
|
|
1033
|
+
if (checked) {
|
|
1034
|
+
item.selecteds.push(tag.value);
|
|
1035
|
+
} else {
|
|
1036
|
+
let i = item.selecteds.findIndex((v) => v === tag.value);
|
|
1037
|
+
item.selecteds.splice(i, 1);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
function ageRangeOnChange(obj, item) {
|
|
1041
|
+
let s = obj.star_val;
|
|
1042
|
+
let e = obj.end_val;
|
|
1043
|
+
item.start_val = isNaN(s) ? null : s;
|
|
1044
|
+
item.end_val = isNaN(e) ? null : e;
|
|
1045
|
+
}
|
|
1046
|
+
function getAgeAttrDom(el) {
|
|
1047
|
+
if (el) {
|
|
1048
|
+
ageAttrDomList.value.set(el.dataName, el);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
function handleResetAge(item) {
|
|
1052
|
+
item.start_val = null;
|
|
1053
|
+
item.end_val = null;
|
|
1054
|
+
let curRef = ageAttrDomList.value.get(`${item.columnName}_AGEAttr`);
|
|
1055
|
+
if (curRef) {
|
|
1056
|
+
if (Array.isArray(curRef)) {
|
|
1057
|
+
curRef = curRef[0] || false;
|
|
1058
|
+
}
|
|
1059
|
+
curRef == null ? void 0 : curRef.reset();
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
function onResize(el, v) {
|
|
1063
|
+
let height = el.offsetHeight || 0;
|
|
1064
|
+
if (!height) {
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
if (height > 80) {
|
|
1068
|
+
v.isShowBtn = true;
|
|
1069
|
+
} else {
|
|
1070
|
+
v.isShowBtn = false;
|
|
1071
|
+
v.isUnfold = false;
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
function changeFilterNumber(item) {
|
|
1075
|
+
if (item.lessValue && item.bigValue) {
|
|
1076
|
+
const lessValue = item.lessValue;
|
|
1077
|
+
const bigValue = item.bigValue;
|
|
1078
|
+
if (bigValue < lessValue) {
|
|
1079
|
+
item.lessValue = bigValue;
|
|
1080
|
+
item.bigValue = lessValue;
|
|
1081
|
+
}
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
function clearFilterNumber(item) {
|
|
1086
|
+
item.lessValue = "";
|
|
1087
|
+
item.bigValue = "";
|
|
1088
|
+
}
|
|
1089
|
+
function disabledDatePicker(current, item, t) {
|
|
1090
|
+
var _a, _b;
|
|
1091
|
+
let f = false;
|
|
1092
|
+
if (t === "start") {
|
|
1093
|
+
const end_val = (_a = item == null ? void 0 : item.DATE) == null ? void 0 : _a.end_val;
|
|
1094
|
+
f = end_val && current > moment(end_val).valueOf();
|
|
1095
|
+
} else if (t === "end") {
|
|
1096
|
+
const start_val = (_b = item == null ? void 0 : item.DATE) == null ? void 0 : _b.start_val;
|
|
1097
|
+
f = start_val && current <= moment(start_val).valueOf();
|
|
1098
|
+
}
|
|
1099
|
+
let type = String(item == null ? void 0 : item.advanceOptionSetting);
|
|
1100
|
+
if (!["2", "3"].includes(type))
|
|
1101
|
+
return f;
|
|
1102
|
+
if (type === "2") {
|
|
1103
|
+
return current >= moment().endOf("day") || f;
|
|
1104
|
+
} else if (type === "3") {
|
|
1105
|
+
return current && current < moment().startOf("day") || f;
|
|
1106
|
+
}
|
|
1107
|
+
return f;
|
|
1108
|
+
}
|
|
1109
|
+
watch(
|
|
1110
|
+
() => props.visible,
|
|
1111
|
+
(value) => {
|
|
1112
|
+
modalVisible.value = value;
|
|
1113
|
+
setDefaultCon(props.quickSearchConfig);
|
|
1114
|
+
}
|
|
1115
|
+
);
|
|
1116
|
+
watch(
|
|
1117
|
+
() => props.searchFieldList,
|
|
1118
|
+
(val) => {
|
|
1119
|
+
if (val && val.length > 0) {
|
|
1120
|
+
relationTableList.value = attrs.relationTableList ? attrs.relationTableList : [];
|
|
1121
|
+
init();
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
{ immediate: true, deep: true }
|
|
1125
|
+
);
|
|
1126
|
+
watch(
|
|
1127
|
+
() => props.quickSearchConfig,
|
|
1128
|
+
(val) => {
|
|
1129
|
+
setDefaultCon(val);
|
|
1130
|
+
},
|
|
1131
|
+
{ deep: true }
|
|
1132
|
+
);
|
|
1133
|
+
watch(
|
|
1134
|
+
() => props.quickSearchListObj,
|
|
1135
|
+
(val) => {
|
|
1136
|
+
if (!val || !Object.keys(val).length) {
|
|
1137
|
+
parentNames.value = [];
|
|
1138
|
+
return;
|
|
1139
|
+
}
|
|
1140
|
+
handleParentName();
|
|
1141
|
+
},
|
|
1142
|
+
{ immediate: true, deep: true }
|
|
1143
|
+
);
|
|
1144
|
+
watch(
|
|
1145
|
+
() => quickSearch,
|
|
1146
|
+
() => {
|
|
1147
|
+
const conObj = getConObjParams() || [];
|
|
1148
|
+
emit("filterCountChange", conObj.length);
|
|
1149
|
+
},
|
|
1150
|
+
{ deep: true }
|
|
1151
|
+
);
|
|
1152
|
+
watch(
|
|
1153
|
+
() => props.show,
|
|
1154
|
+
(newVal) => {
|
|
1155
|
+
if (newVal && props.lastQuickSearchData.length > 0) {
|
|
1156
|
+
quickSearch.value = cloneDeep(props.lastQuickSearchData);
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
{ deep: true }
|
|
1160
|
+
);
|
|
1161
|
+
expose({
|
|
1162
|
+
openSaveToCalss,
|
|
1163
|
+
clearData,
|
|
1164
|
+
onSave
|
|
1165
|
+
});
|
|
1166
|
+
return (_ctx, _cache) => {
|
|
1167
|
+
return openBlock(), createElementBlock("div", null, [
|
|
1168
|
+
createElementVNode("div", {
|
|
1169
|
+
class: normalizeClass(["quick-search-block", { "quick-search-table": __props.source === "editTable" }])
|
|
1170
|
+
}, [
|
|
1171
|
+
__props.source === "editTable" && unref(hasRelationQuickSearch) ? (openBlock(), createElementBlock("p", _hoisted_1, "\u9AD8\u7EA7\u7B5B\u9009")) : createCommentVNode("v-if", true),
|
|
1172
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(quickSearch), (item) => {
|
|
1173
|
+
return openBlock(), createElementBlock("div", {
|
|
1174
|
+
class: normalizeClass(["quick-item", {
|
|
1175
|
+
"quick-block": item.con == "DATE" || item.con == "BIRTHDAY" || item.con == "CONVERT" || item.LABELAttr || item._isBlock
|
|
1176
|
+
}]),
|
|
1177
|
+
key: item.sid
|
|
1178
|
+
}, [
|
|
1179
|
+
createElementVNode("div", _hoisted_2, [
|
|
1180
|
+
createCommentVNode(" title "),
|
|
1181
|
+
createElementVNode("div", {
|
|
1182
|
+
class: normalizeClass(["quick-item-title", { "quick-item-title-default": __props.source !== "editTable" }])
|
|
1183
|
+
}, [
|
|
1184
|
+
createElementVNode("span", null, toDisplayString(unref(handleName)(item, "title")) + "\xA0\xA0", 1),
|
|
1185
|
+
__props.searchFieldLimit[item.columnName] && __props.searchFieldLimit[item.columnName].tips ? (openBlock(), createBlock(unref(NTooltip), { key: 0 }, {
|
|
1186
|
+
trigger: withCtx(() => [
|
|
1187
|
+
createVNode(unref(script), { "icon-class": "xitongtubiaodaohangtubiaowenti" })
|
|
1188
|
+
]),
|
|
1189
|
+
default: withCtx(() => [
|
|
1190
|
+
createTextVNode(" " + toDisplayString(__props.searchFieldLimit[item.columnName].tips), 1)
|
|
1191
|
+
]),
|
|
1192
|
+
_: 2
|
|
1193
|
+
}, 1024)) : createCommentVNode("v-if", true)
|
|
1194
|
+
], 2),
|
|
1195
|
+
createElementVNode("div", {
|
|
1196
|
+
class: normalizeClass(["quick-item-col", { "quick-item-col-default": __props.source !== "editTable" }])
|
|
1197
|
+
}, [
|
|
1198
|
+
createCommentVNode(" \u76F4\u63A5\u6E32\u67D3\u7EC4\u4EF6 "),
|
|
1199
|
+
item.isRender ? (openBlock(), createBlock(RenderWidget, {
|
|
1200
|
+
key: 0,
|
|
1201
|
+
cfg: item,
|
|
1202
|
+
modelValue: item.value,
|
|
1203
|
+
"onUpdate:modelValue": (newValue) => item.value = newValue
|
|
1204
|
+
}, null, 8, ["cfg", "modelValue", "onUpdate:modelValue"])) : item.AGEAttr ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1205
|
+
createCommentVNode(" age "),
|
|
1206
|
+
createCommentVNode(" TODO: \u6E05\u9664\uFF0C\u8DE8\u8868 "),
|
|
1207
|
+
createElementVNode("div", _hoisted_3, [
|
|
1208
|
+
createVNode(rangeAge, {
|
|
1209
|
+
ref_for: true,
|
|
1210
|
+
ref: getAgeAttrDom,
|
|
1211
|
+
dataName: `${item.columnName}_AGEAttr`,
|
|
1212
|
+
format: item.format,
|
|
1213
|
+
onChange: ($event) => ageRangeOnChange($event, item)
|
|
1214
|
+
}, null, 8, ["dataName", "format", "onChange"])
|
|
1215
|
+
])
|
|
1216
|
+
], 2112)) : item.LABELAttr ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1217
|
+
createCommentVNode(" age "),
|
|
1218
|
+
createCommentVNode(" label "),
|
|
1219
|
+
createElementVNode("div", _hoisted_4, [
|
|
1220
|
+
item.labelObj && Object.keys(item.labelObj || {}).length > 0 ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
1221
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.labelObj, (v, k) => {
|
|
1222
|
+
return openBlock(), createElementBlock("div", {
|
|
1223
|
+
key: k,
|
|
1224
|
+
class: "edit-label-content"
|
|
1225
|
+
}, [
|
|
1226
|
+
createElementVNode("div", _hoisted_5, toDisplayString(k) + "\uFF1A", 1),
|
|
1227
|
+
createElementVNode("div", {
|
|
1228
|
+
class: normalizeClass(["edit-content quickSearch_label-container", {
|
|
1229
|
+
"label-container-height": !v.isUnfold && v.itemList && v.isShowBtn
|
|
1230
|
+
}])
|
|
1231
|
+
}, [
|
|
1232
|
+
createCommentVNode(' <div class="label-content" v-resize="el => onResize(el, v)"> '),
|
|
1233
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_6, [
|
|
1234
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(v.itemList, (child, i) => {
|
|
1235
|
+
return openBlock(), createBlock(unref(NTag), {
|
|
1236
|
+
type: "success",
|
|
1237
|
+
checked: child.isSelect,
|
|
1238
|
+
checkable: "",
|
|
1239
|
+
key: i,
|
|
1240
|
+
style: normalizeStyle(handleLabelColorFn(child)),
|
|
1241
|
+
"onUpdate:checked": ($event) => handleLabelChange($event, child, item)
|
|
1242
|
+
}, {
|
|
1243
|
+
default: withCtx(() => [
|
|
1244
|
+
createVNode(unref(NTooltip), { placement: "topLeft" }, {
|
|
1245
|
+
trigger: withCtx(() => [
|
|
1246
|
+
createElementVNode("span", null, toDisplayString(child.labelName), 1)
|
|
1247
|
+
]),
|
|
1248
|
+
default: withCtx(() => [
|
|
1249
|
+
createTextVNode(" " + toDisplayString(child.labelName), 1)
|
|
1250
|
+
]),
|
|
1251
|
+
_: 2
|
|
1252
|
+
}, 1024)
|
|
1253
|
+
]),
|
|
1254
|
+
_: 2
|
|
1255
|
+
}, 1032, ["checked", "style", "onUpdate:checked"]);
|
|
1256
|
+
}), 128))
|
|
1257
|
+
])), [
|
|
1258
|
+
[unref(Resize), (el) => onResize(el, v)]
|
|
1259
|
+
])
|
|
1260
|
+
], 2),
|
|
1261
|
+
v.itemList && v.isShowBtn ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1262
|
+
createCommentVNode(" {{ v.isUnfold }} "),
|
|
1263
|
+
createElementVNode("span", {
|
|
1264
|
+
onClick: withModifiers(($event) => handleLabelUpfold(v), ["stop"])
|
|
1265
|
+
}, [
|
|
1266
|
+
v.isUnfold ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1267
|
+
_hoisted_9,
|
|
1268
|
+
createVNode(unref(NIcon), {
|
|
1269
|
+
component: unref(ChevronUp),
|
|
1270
|
+
size: "16"
|
|
1271
|
+
}, null, 8, ["component"])
|
|
1272
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1273
|
+
_hoisted_10,
|
|
1274
|
+
createVNode(unref(NIcon), {
|
|
1275
|
+
component: unref(ChevronDown),
|
|
1276
|
+
size: "16"
|
|
1277
|
+
}, null, 8, ["component"])
|
|
1278
|
+
], 64))
|
|
1279
|
+
], 8, _hoisted_8)
|
|
1280
|
+
])) : createCommentVNode("v-if", true)
|
|
1281
|
+
]);
|
|
1282
|
+
}), 128))
|
|
1283
|
+
]) : (openBlock(), createBlock(unref(NInput), {
|
|
1284
|
+
key: 1,
|
|
1285
|
+
style: { "width": "200px" },
|
|
1286
|
+
value: item.inputVal,
|
|
1287
|
+
"onUpdate:value": ($event) => item.inputVal = $event,
|
|
1288
|
+
clearable: ""
|
|
1289
|
+
}, null, 8, ["value", "onUpdate:value"]))
|
|
1290
|
+
])
|
|
1291
|
+
], 2112)) : item.EVALUATEAttr ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
1292
|
+
createCommentVNode(" label "),
|
|
1293
|
+
createCommentVNode(" EVALUATE "),
|
|
1294
|
+
createElementVNode("div", _hoisted_11, [
|
|
1295
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(EVALUATEList), (tag) => {
|
|
1296
|
+
return openBlock(), createBlock(unref(NTag), {
|
|
1297
|
+
key: tag.value,
|
|
1298
|
+
class: normalizeClass({ "ant-tag-checkable-checked": item.selecteds.indexOf(tag.value) > -1 }),
|
|
1299
|
+
checkable: "",
|
|
1300
|
+
checked: item.selecteds.indexOf(tag.value) > -1,
|
|
1301
|
+
"onUpdate:checked": ($event) => handleEvaluateOnChange($event, tag, item)
|
|
1302
|
+
}, {
|
|
1303
|
+
default: withCtx(() => [
|
|
1304
|
+
createTextVNode(toDisplayString(tag.label), 1)
|
|
1305
|
+
]),
|
|
1306
|
+
_: 2
|
|
1307
|
+
}, 1032, ["class", "checked", "onUpdate:checked"]);
|
|
1308
|
+
}), 128))
|
|
1309
|
+
])
|
|
1310
|
+
], 2112)) : item.NUMBERFiled ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
1311
|
+
createCommentVNode(" EVALUATE "),
|
|
1312
|
+
createCommentVNode(" NUMBERFiled "),
|
|
1313
|
+
createElementVNode("div", _hoisted_12, [
|
|
1314
|
+
createElementVNode("span", {
|
|
1315
|
+
class: normalizeClass(["ant-calendar-picker-input ant-input num-picker", { "num-picker-unit": item.inputUnit }])
|
|
1316
|
+
}, [
|
|
1317
|
+
withDirectives(createElementVNode("input", {
|
|
1318
|
+
"onUpdate:modelValue": ($event) => item.lessValue = $event,
|
|
1319
|
+
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1320
|
+
title: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1321
|
+
placeholder: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1322
|
+
class: "ant-calendar-range-picker-input"
|
|
1323
|
+
}, null, 40, _hoisted_13), [
|
|
1324
|
+
[vModelText, item.lessValue]
|
|
1325
|
+
]),
|
|
1326
|
+
_hoisted_14,
|
|
1327
|
+
withDirectives(createElementVNode("input", {
|
|
1328
|
+
"onUpdate:modelValue": ($event) => item.bigValue = $event,
|
|
1329
|
+
title: `\u622A\u6B62${item.alias || item.title}`,
|
|
1330
|
+
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1331
|
+
placeholder: `\u622A\u6B62${item.alias || item.title}`,
|
|
1332
|
+
class: "ant-calendar-range-picker-input"
|
|
1333
|
+
}, null, 40, _hoisted_15), [
|
|
1334
|
+
[vModelText, item.bigValue]
|
|
1335
|
+
]),
|
|
1336
|
+
item.inputUnit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1337
|
+
createTextVNode("\xA0" + toDisplayString(item.inputUnit), 1)
|
|
1338
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1339
|
+
item.lessValue || item.bigValue ? (openBlock(), createElementBlock("span", {
|
|
1340
|
+
key: 1,
|
|
1341
|
+
class: "ant-input-suffix clear-number-icon",
|
|
1342
|
+
onClick: ($event) => clearFilterNumber(item)
|
|
1343
|
+
}, _hoisted_18, 8, _hoisted_16)) : createCommentVNode("v-if", true)
|
|
1344
|
+
], 2)
|
|
1345
|
+
])
|
|
1346
|
+
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
1347
|
+
createCommentVNode(" NUMBERFiled "),
|
|
1348
|
+
createCommentVNode(" other "),
|
|
1349
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1350
|
+
item.con == "CL" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1351
|
+
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1352
|
+
key: 0,
|
|
1353
|
+
class: "CL-input",
|
|
1354
|
+
style: { "`width": "${getEleWidth(item)}`" },
|
|
1355
|
+
value: item.CL,
|
|
1356
|
+
"onUpdate:value": ($event) => item.CL = $event,
|
|
1357
|
+
min: 0,
|
|
1358
|
+
max: 100,
|
|
1359
|
+
clearable: "",
|
|
1360
|
+
placeholder: item.placeholder
|
|
1361
|
+
}, null, 8, ["value", "onUpdate:value", "placeholder"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1362
|
+
key: 1,
|
|
1363
|
+
class: normalizeClass(["CL-input", { "psw-icon": item.comAttr == "PASSWORD" }]),
|
|
1364
|
+
style: normalizeStyle({
|
|
1365
|
+
width: `${unref(getEleWidth)(item)}`,
|
|
1366
|
+
"font-family": item.PASSWORDTYPE ? "text-security-disc" : "inherit"
|
|
1367
|
+
}),
|
|
1368
|
+
value: item.CL,
|
|
1369
|
+
"onUpdate:value": ($event) => item.CL = $event,
|
|
1370
|
+
clearable: "",
|
|
1371
|
+
placeholder: item.placeholder
|
|
1372
|
+
}, {
|
|
1373
|
+
default: withCtx(() => [
|
|
1374
|
+
item.comAttr == "PASSWORD" ? (openBlock(), createBlock(unref(script), {
|
|
1375
|
+
key: 0,
|
|
1376
|
+
class: "psw-icon",
|
|
1377
|
+
onClick: ($event) => item.PASSWORDTYPE = !item.PASSWORDTYPE,
|
|
1378
|
+
"icon-class": item.PASSWORDTYPE ? "anniuyincang" : "chakan",
|
|
1379
|
+
style: { "font-size": "1em" }
|
|
1380
|
+
}, null, 8, ["onClick", "icon-class"])) : createCommentVNode("v-if", true)
|
|
1381
|
+
]),
|
|
1382
|
+
_: 2
|
|
1383
|
+
}, 1032, ["class", "style", "value", "onUpdate:value", "placeholder"]))
|
|
1384
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1385
|
+
item.con == "EQ" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1386
|
+
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1387
|
+
key: 0,
|
|
1388
|
+
class: "EQ-input",
|
|
1389
|
+
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1390
|
+
value: item.EQ,
|
|
1391
|
+
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1392
|
+
min: 0,
|
|
1393
|
+
max: 100,
|
|
1394
|
+
clearable: "",
|
|
1395
|
+
placeholder: item.placeholder
|
|
1396
|
+
}, null, 8, ["style", "value", "onUpdate:value", "placeholder"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1397
|
+
key: 1,
|
|
1398
|
+
class: normalizeClass(["EQ-input", { "psw-icon": item.comAttr == "PASSWORD" }]),
|
|
1399
|
+
style: normalizeStyle({
|
|
1400
|
+
width: `${unref(getEleWidth)(item)}`,
|
|
1401
|
+
"font-family": item.PASSWORDTYPE ? "text-security-disc" : "inherit"
|
|
1402
|
+
}),
|
|
1403
|
+
value: item.EQ,
|
|
1404
|
+
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1405
|
+
placeholder: item.placeholder || item.isPreciseSearch || item.fieldType == "JSONB" ? "" : "\u533A\u95F4\u641C\u7D20\u7528~\u5206\u5272",
|
|
1406
|
+
clearable: ""
|
|
1407
|
+
}, {
|
|
1408
|
+
default: withCtx(() => [
|
|
1409
|
+
item.comAttr == "PASSWORD" ? (openBlock(), createBlock(unref(script), {
|
|
1410
|
+
key: 0,
|
|
1411
|
+
class: "psw-icon",
|
|
1412
|
+
onClick: ($event) => item.PASSWORDTYPE = !item.PASSWORDTYPE,
|
|
1413
|
+
"icon-class": item.PASSWORDTYPE ? "anniuyincang" : "chakan",
|
|
1414
|
+
style: { "font-size": "1em" }
|
|
1415
|
+
}, null, 8, ["onClick", "icon-class"])) : createCommentVNode("v-if", true)
|
|
1416
|
+
]),
|
|
1417
|
+
_: 2
|
|
1418
|
+
}, 1032, ["class", "style", "value", "onUpdate:value", "placeholder"]))
|
|
1419
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1420
|
+
unref(showPercent)(item) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1421
|
+
createTextVNode("\xA0%")
|
|
1422
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1423
|
+
createCommentVNode(" date "),
|
|
1424
|
+
item.con == "DATE" && item.DATE ? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
1425
|
+
createVNode(unref(NRadioGroup), {
|
|
1426
|
+
value: item.DATE.con,
|
|
1427
|
+
"onUpdate:value": ($event) => item.DATE.con = $event,
|
|
1428
|
+
buttonStyle: "solid"
|
|
1429
|
+
}, {
|
|
1430
|
+
default: withCtx(() => [
|
|
1431
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.dateTeam, (date) => {
|
|
1432
|
+
return withDirectives((openBlock(), createBlock(unref(NRadioButton), {
|
|
1433
|
+
hideSplitor: item.showDate,
|
|
1434
|
+
onClick: withModifiers(($event) => clickRadioGroup(item.DATE, date.con), ["prevent"]),
|
|
1435
|
+
key: date.con,
|
|
1436
|
+
value: date.con,
|
|
1437
|
+
label: date.name
|
|
1438
|
+
}, null, 8, ["hideSplitor", "onClick", "value", "label"])), [
|
|
1439
|
+
[vShow, !item.showDate]
|
|
1440
|
+
]);
|
|
1441
|
+
}), 128))
|
|
1442
|
+
]),
|
|
1443
|
+
_: 2
|
|
1444
|
+
}, 1032, ["value", "onUpdate:value"]),
|
|
1445
|
+
withDirectives(createElementVNode("span", {
|
|
1446
|
+
class: normalizeClass(["check-date-btn", item.marginx]),
|
|
1447
|
+
onClick: ($event) => checkDate(item)
|
|
1448
|
+
}, "\u9009\u62E9\u65F6\u95F4", 10, _hoisted_20), [
|
|
1449
|
+
[vShow, item.advanceOptionSetting != "1"]
|
|
1450
|
+
]),
|
|
1451
|
+
withDirectives(createElementVNode("div", _hoisted_21, [
|
|
1452
|
+
createVNode(unref(NDatePicker), {
|
|
1453
|
+
type: "datetime",
|
|
1454
|
+
style: { "min-width": "195px", "width": "120px" },
|
|
1455
|
+
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1456
|
+
"formatted-value": item.DATE.start_val,
|
|
1457
|
+
"onUpdate:formatted-value": ($event) => item.DATE.start_val = $event,
|
|
1458
|
+
placeholder: "\u5F00\u59CB\u65F6\u95F4",
|
|
1459
|
+
"is-date-disabled": (current) => disabledDatePicker(current, item, "start"),
|
|
1460
|
+
clearable: ""
|
|
1461
|
+
}, null, 8, ["formatted-value", "onUpdate:formatted-value", "is-date-disabled"]),
|
|
1462
|
+
createTextVNode(" \xA0 "),
|
|
1463
|
+
createVNode(unref(NDatePicker), {
|
|
1464
|
+
type: "datetime",
|
|
1465
|
+
style: { "min-width": "195px", "width": "120px" },
|
|
1466
|
+
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1467
|
+
"formatted-value": item.DATE.end_val,
|
|
1468
|
+
"onUpdate:formatted-value": ($event) => item.DATE.end_val = $event,
|
|
1469
|
+
placeholder: "\u7ED3\u675F\u65F6\u95F4",
|
|
1470
|
+
"is-date-disabled": (current) => disabledDatePicker(current, item, "end"),
|
|
1471
|
+
clearable: ""
|
|
1472
|
+
}, null, 8, ["formatted-value", "onUpdate:formatted-value", "is-date-disabled"])
|
|
1473
|
+
], 512), [
|
|
1474
|
+
[vShow, item.showDate]
|
|
1475
|
+
])
|
|
1476
|
+
])) : createCommentVNode("v-if", true),
|
|
1477
|
+
createCommentVNode(" BIRTHDAY "),
|
|
1478
|
+
item.con == "BIRTHDAY" && item.BIRTHDAY ? (openBlock(), createElementBlock("div", {
|
|
1479
|
+
key: 4,
|
|
1480
|
+
class: normalizeClass({ "birthday-item": item.showDate })
|
|
1481
|
+
}, [
|
|
1482
|
+
!item.showDate ? (openBlock(), createBlock(unref(NRadioGroup), {
|
|
1483
|
+
key: 0,
|
|
1484
|
+
value: item.BIRTHDAY.con,
|
|
1485
|
+
"onUpdate:value": ($event) => item.BIRTHDAY.con = $event,
|
|
1486
|
+
buttonStyle: "solid"
|
|
1487
|
+
}, {
|
|
1488
|
+
default: withCtx(() => [
|
|
1489
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(birthdayTeam), (date) => {
|
|
1490
|
+
return openBlock(), createBlock(unref(NRadioButton), {
|
|
1491
|
+
onClick: withModifiers(($event) => clickBirthdayRadioGroup(item.BIRTHDAY, date.con), ["prevent"]),
|
|
1492
|
+
key: date.con,
|
|
1493
|
+
value: date.con,
|
|
1494
|
+
label: date.name
|
|
1495
|
+
}, null, 8, ["onClick", "value", "label"]);
|
|
1496
|
+
}), 128))
|
|
1497
|
+
]),
|
|
1498
|
+
_: 2
|
|
1499
|
+
}, 1032, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1500
|
+
createElementVNode("div", null, [
|
|
1501
|
+
createVNode(unref(NDatePicker), {
|
|
1502
|
+
value: item.BIRTHDAY.limit_date,
|
|
1503
|
+
"onUpdate:value": [($event) => item.BIRTHDAY.limit_date = $event, changeRange],
|
|
1504
|
+
type: "daterange",
|
|
1505
|
+
disabled: disabledDate,
|
|
1506
|
+
format: "MM-dd"
|
|
1507
|
+
}, null, 8, ["value", "onUpdate:value"])
|
|
1508
|
+
]),
|
|
1509
|
+
createElementVNode("div", _hoisted_22, [
|
|
1510
|
+
_hoisted_23,
|
|
1511
|
+
createVNode(unref(NInput), {
|
|
1512
|
+
style: { "width": "60px", "margin-right": "10px" },
|
|
1513
|
+
value: item.BIRTHDAY.start_val,
|
|
1514
|
+
"onUpdate:value": ($event) => item.BIRTHDAY.start_val = $event,
|
|
1515
|
+
clearable: ""
|
|
1516
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
1517
|
+
createVNode(unref(NInput), {
|
|
1518
|
+
style: { "width": "60px", "margin-right": "10px" },
|
|
1519
|
+
value: item.BIRTHDAY.end_val,
|
|
1520
|
+
"onUpdate:value": ($event) => item.BIRTHDAY.end_val = $event,
|
|
1521
|
+
clearable: ""
|
|
1522
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
1523
|
+
createVNode(unref(NSelect), {
|
|
1524
|
+
value: item.BIRTHDAY.unit,
|
|
1525
|
+
"onUpdate:value": ($event) => item.BIRTHDAY.unit = $event,
|
|
1526
|
+
"default-value": "YEAR",
|
|
1527
|
+
filterable: "",
|
|
1528
|
+
filter: filterOption,
|
|
1529
|
+
clearable: "",
|
|
1530
|
+
options: item.BIRTHDAY.units,
|
|
1531
|
+
"label-field": "name",
|
|
1532
|
+
"value-field": "con"
|
|
1533
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
1534
|
+
])
|
|
1535
|
+
], 64)),
|
|
1536
|
+
createElementVNode("span", {
|
|
1537
|
+
class: normalizeClass(["check-date-btn", item.marginx]),
|
|
1538
|
+
onClick: ($event) => checkBirthDay(item)
|
|
1539
|
+
}, "\u5207\u6362", 10, _hoisted_24)
|
|
1540
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
1541
|
+
item.con == "QUOTE" || item.com == "SelectMui" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
1542
|
+
item.comType === "treeSelect" ? (openBlock(), createBlock(cTreeSelect, {
|
|
1543
|
+
key: 0,
|
|
1544
|
+
options: item,
|
|
1545
|
+
handleGetConfigApi: unref(handleGetConfigApi),
|
|
1546
|
+
filterApiConfig: __props.filterApiConfig,
|
|
1547
|
+
style: { "margin": "0 8px 8px 0" }
|
|
1548
|
+
}, null, 8, ["options", "handleGetConfigApi", "filterApiConfig"])) : (openBlock(), createBlock(multiSelect, {
|
|
1549
|
+
key: 1,
|
|
1550
|
+
item,
|
|
1551
|
+
source: "quickSearch",
|
|
1552
|
+
maxTagPlaceholder,
|
|
1553
|
+
outFilterChange: filterChange,
|
|
1554
|
+
handleWordBookSearch: handleSearch,
|
|
1555
|
+
dropdownVisibleChange,
|
|
1556
|
+
fetchingWordbook: unref(fetchingWordbook)
|
|
1557
|
+
}, null, 8, ["item", "fetchingWordbook"]))
|
|
1558
|
+
], 64)) : item.con == "CONVERT" ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
1559
|
+
createCommentVNode(" \u591A\u9009\u9009\u9879\u7EC4 "),
|
|
1560
|
+
(item == null ? void 0 : item.advanceOptionSetting) != "0" ? (openBlock(), createBlock(unref(NCheckboxGroup), {
|
|
1561
|
+
key: 0,
|
|
1562
|
+
class: "check-box",
|
|
1563
|
+
value: item.CONVERT,
|
|
1564
|
+
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1565
|
+
}, {
|
|
1566
|
+
default: withCtx(() => [
|
|
1567
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1568
|
+
return openBlock(), createBlock(unref(NCheckbox), {
|
|
1569
|
+
key: index,
|
|
1570
|
+
value: check.value,
|
|
1571
|
+
label: check.label
|
|
1572
|
+
}, null, 8, ["value", "label"]);
|
|
1573
|
+
}), 128))
|
|
1574
|
+
]),
|
|
1575
|
+
_: 2
|
|
1576
|
+
}, 1032, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1577
|
+
createCommentVNode(" \u5355\u9009\u9009\u9879\u7EC4 "),
|
|
1578
|
+
createVNode(unref(NRadioGroup), {
|
|
1579
|
+
class: "check-box",
|
|
1580
|
+
value: item.CONVERT,
|
|
1581
|
+
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1582
|
+
}, {
|
|
1583
|
+
default: withCtx(() => [
|
|
1584
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1585
|
+
return openBlock(), createBlock(unref(NRadio), {
|
|
1586
|
+
key: index,
|
|
1587
|
+
value: check.value,
|
|
1588
|
+
label: check.label
|
|
1589
|
+
}, null, 8, ["value", "label"]);
|
|
1590
|
+
}), 128))
|
|
1591
|
+
]),
|
|
1592
|
+
_: 2
|
|
1593
|
+
}, 1032, ["value", "onUpdate:value"])
|
|
1594
|
+
], 2112))
|
|
1595
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
1596
|
+
])
|
|
1597
|
+
], 2112))
|
|
1598
|
+
], 2)
|
|
1599
|
+
])
|
|
1600
|
+
], 2);
|
|
1601
|
+
}), 128)),
|
|
1602
|
+
createCommentVNode(" \u8DE8\u8868 "),
|
|
1603
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(relationQuickSearch), (relationItem, i) => {
|
|
1604
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1605
|
+
relationItem.fieldList && relationItem.fieldList.length ? (openBlock(), createElementBlock("div", { key: i }, [
|
|
1606
|
+
createElementVNode("p", _hoisted_25, toDisplayString(relationItem == null ? void 0 : relationItem.tableName), 1),
|
|
1607
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(relationItem.fieldList, (item) => {
|
|
1608
|
+
return openBlock(), createElementBlock("div", {
|
|
1609
|
+
class: normalizeClass(["quick-item", {
|
|
1610
|
+
"quick-block": item.con == "DATE" || item.con == "BIRTHDAY" || item.con == "CONVERT" || item.LABELAttr
|
|
1611
|
+
}]),
|
|
1612
|
+
key: item.sid
|
|
1613
|
+
}, [
|
|
1614
|
+
createElementVNode("div", _hoisted_26, [
|
|
1615
|
+
createCommentVNode(" title "),
|
|
1616
|
+
createElementVNode("div", {
|
|
1617
|
+
class: normalizeClass(["quick-item-title", { "quick-item-title-default": __props.source !== "editTable" }])
|
|
1618
|
+
}, [
|
|
1619
|
+
createElementVNode("span", null, toDisplayString(unref(handleName)(item, "title")) + "\xA0\xA0", 1)
|
|
1620
|
+
], 2),
|
|
1621
|
+
createElementVNode("div", {
|
|
1622
|
+
class: normalizeClass(["quick-item-col", { "quick-item-col-default": __props.source !== "editTable" }])
|
|
1623
|
+
}, [
|
|
1624
|
+
item.LABELAttr ? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
1625
|
+
item.labelObj && Object.keys(item.labelObj || {}).length > 0 ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
1626
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.labelObj, (v, k) => {
|
|
1627
|
+
return openBlock(), createElementBlock("div", {
|
|
1628
|
+
key: k,
|
|
1629
|
+
class: "edit-label-content"
|
|
1630
|
+
}, [
|
|
1631
|
+
createElementVNode("div", _hoisted_28, toDisplayString(k) + "\uFF1A", 1),
|
|
1632
|
+
createElementVNode("div", _hoisted_29, [
|
|
1633
|
+
createElementVNode("div", _hoisted_30, [
|
|
1634
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(v.itemList, (child, i2) => {
|
|
1635
|
+
return openBlock(), createBlock(unref(NTag), {
|
|
1636
|
+
checked: child.isSelect,
|
|
1637
|
+
checkable: "",
|
|
1638
|
+
key: i2,
|
|
1639
|
+
class: normalizeClass(["label-tag-" + handleLabelColorClass(child)]),
|
|
1640
|
+
"onUpdate:checked": ($event) => handleLabelChange($event, child, item)
|
|
1641
|
+
}, {
|
|
1642
|
+
default: withCtx(() => [
|
|
1643
|
+
createVNode(unref(NTooltip), { placement: "top-start" }, {
|
|
1644
|
+
trigger: withCtx(() => [
|
|
1645
|
+
createElementVNode("span", null, toDisplayString(child.labelName), 1)
|
|
1646
|
+
]),
|
|
1647
|
+
default: withCtx(() => [
|
|
1648
|
+
createTextVNode(" " + toDisplayString(child.labelName), 1)
|
|
1649
|
+
]),
|
|
1650
|
+
_: 2
|
|
1651
|
+
}, 1024)
|
|
1652
|
+
]),
|
|
1653
|
+
_: 2
|
|
1654
|
+
}, 1032, ["checked", "class", "onUpdate:checked"]);
|
|
1655
|
+
}), 128)),
|
|
1656
|
+
createCommentVNode(" </a-checkable-tag> ")
|
|
1657
|
+
])
|
|
1658
|
+
])
|
|
1659
|
+
]);
|
|
1660
|
+
}), 128))
|
|
1661
|
+
]) : (openBlock(), createBlock(unref(NInput), {
|
|
1662
|
+
key: 1,
|
|
1663
|
+
style: { "width": "200px" },
|
|
1664
|
+
value: item.inputVal,
|
|
1665
|
+
"onUpdate:value": ($event) => item.inputVal = $event
|
|
1666
|
+
}, null, 8, ["value", "onUpdate:value"]))
|
|
1667
|
+
])) : item.EVALUATEAttr ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1668
|
+
createCommentVNode(" EVALUATE "),
|
|
1669
|
+
createElementVNode("div", _hoisted_31, [
|
|
1670
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(EVALUATEList), (tag) => {
|
|
1671
|
+
return openBlock(), createBlock(unref(NTag), {
|
|
1672
|
+
key: tag.value,
|
|
1673
|
+
class: normalizeClass({ "ant-tag-checkable-checked": item.selecteds.indexOf(tag.value) > -1 }),
|
|
1674
|
+
checkable: "",
|
|
1675
|
+
checked: item.selecteds.indexOf(tag.value) > -1,
|
|
1676
|
+
"onUpdate:checked": ($event) => handleEvaluateOnChange($event, tag, item)
|
|
1677
|
+
}, {
|
|
1678
|
+
default: withCtx(() => [
|
|
1679
|
+
createTextVNode(toDisplayString(tag.label), 1)
|
|
1680
|
+
]),
|
|
1681
|
+
_: 2
|
|
1682
|
+
}, 1032, ["class", "checked", "onUpdate:checked"]);
|
|
1683
|
+
}), 128))
|
|
1684
|
+
])
|
|
1685
|
+
], 2112)) : item.NUMBERFiled ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1686
|
+
createCommentVNode(" EVALUATE "),
|
|
1687
|
+
createCommentVNode(" NUMBERFiled "),
|
|
1688
|
+
createElementVNode("div", _hoisted_32, [
|
|
1689
|
+
createElementVNode("span", {
|
|
1690
|
+
class: normalizeClass(["ant-calendar-picker-input ant-input num-picker", { "num-picker-unit": item.inputUnit }])
|
|
1691
|
+
}, [
|
|
1692
|
+
withDirectives(createElementVNode("input", {
|
|
1693
|
+
"onUpdate:modelValue": ($event) => item.lessValue = $event,
|
|
1694
|
+
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1695
|
+
title: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1696
|
+
placeholder: `\u8D77\u59CB${item.alias || item.title}`,
|
|
1697
|
+
class: "ant-calendar-range-picker-input"
|
|
1698
|
+
}, null, 40, _hoisted_33), [
|
|
1699
|
+
[vModelText, item.lessValue]
|
|
1700
|
+
]),
|
|
1701
|
+
_hoisted_34,
|
|
1702
|
+
withDirectives(createElementVNode("input", {
|
|
1703
|
+
"onUpdate:modelValue": ($event) => item.bigValue = $event,
|
|
1704
|
+
title: `\u622A\u6B62${item.alias || item.title}`,
|
|
1705
|
+
onKeyup: withKeys(() => changeFilterNumber(item), ["enter"]),
|
|
1706
|
+
placeholder: `\u622A\u6B62${item.alias || item.title}`,
|
|
1707
|
+
class: "ant-calendar-range-picker-input"
|
|
1708
|
+
}, null, 40, _hoisted_35), [
|
|
1709
|
+
[vModelText, item.bigValue]
|
|
1710
|
+
]),
|
|
1711
|
+
item.inputUnit ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1712
|
+
createTextVNode("\xA0" + toDisplayString(item.inputUnit), 1)
|
|
1713
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1714
|
+
item.lessValue || item.bigValue ? (openBlock(), createElementBlock("span", {
|
|
1715
|
+
key: 1,
|
|
1716
|
+
class: "ant-input-suffix clear-number-icon",
|
|
1717
|
+
onClick: ($event) => clearFilterNumber(item)
|
|
1718
|
+
}, _hoisted_38, 8, _hoisted_36)) : createCommentVNode("v-if", true),
|
|
1719
|
+
_hoisted_39
|
|
1720
|
+
], 2)
|
|
1721
|
+
])
|
|
1722
|
+
], 2112)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
1723
|
+
createCommentVNode(" NUMBERFiled "),
|
|
1724
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1725
|
+
item.con == "CL" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1726
|
+
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1727
|
+
key: 0,
|
|
1728
|
+
class: "CL-input",
|
|
1729
|
+
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1730
|
+
value: item.CL,
|
|
1731
|
+
"onUpdate:value": ($event) => item.CL = $event,
|
|
1732
|
+
min: 0,
|
|
1733
|
+
max: 100,
|
|
1734
|
+
clearable: ""
|
|
1735
|
+
}, null, 8, ["style", "value", "onUpdate:value"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1736
|
+
key: 1,
|
|
1737
|
+
class: "CL-input",
|
|
1738
|
+
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1739
|
+
value: item.CL,
|
|
1740
|
+
"onUpdate:value": ($event) => item.CL = $event,
|
|
1741
|
+
clearable: ""
|
|
1742
|
+
}, null, 8, ["style", "value", "onUpdate:value"]))
|
|
1743
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1744
|
+
item.con == "EQ" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1745
|
+
unref(showPercent)(item) ? (openBlock(), createBlock(unref(NInputNumber), {
|
|
1746
|
+
key: 0,
|
|
1747
|
+
class: "EQ-input",
|
|
1748
|
+
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1749
|
+
value: item.EQ,
|
|
1750
|
+
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1751
|
+
min: 0,
|
|
1752
|
+
max: 100,
|
|
1753
|
+
clearable: ""
|
|
1754
|
+
}, null, 8, ["style", "value", "onUpdate:value"])) : (openBlock(), createBlock(unref(NInput), {
|
|
1755
|
+
key: 1,
|
|
1756
|
+
class: "EQ-input",
|
|
1757
|
+
style: normalizeStyle(`width: ${unref(getEleWidth)(item)}`),
|
|
1758
|
+
value: item.EQ,
|
|
1759
|
+
"onUpdate:value": ($event) => item.EQ = $event,
|
|
1760
|
+
placeholder: item.placeholder || item.isPreciseSearch || item.fieldType == "JSONB" ? "" : "\u533A\u95F4\u641C\u7D20\u7528~\u5206\u5272",
|
|
1761
|
+
clearable: ""
|
|
1762
|
+
}, null, 8, ["style", "value", "onUpdate:value", "placeholder"]))
|
|
1763
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1764
|
+
unref(showPercent)(item) ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
1765
|
+
createTextVNode("\xA0%")
|
|
1766
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
1767
|
+
createCommentVNode(" date "),
|
|
1768
|
+
item.con == "DATE" ? (openBlock(), createElementBlock("div", _hoisted_40, [
|
|
1769
|
+
createVNode(unref(NRadioGroup), {
|
|
1770
|
+
modelValue: item.DATE.con,
|
|
1771
|
+
"onUpdate:modelValue": ($event) => item.DATE.con = $event,
|
|
1772
|
+
buttonStyle: "solid"
|
|
1773
|
+
}, {
|
|
1774
|
+
default: withCtx(() => [
|
|
1775
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(dateTeam), (date) => {
|
|
1776
|
+
return withDirectives((openBlock(), createBlock(unref(NRadioButton), {
|
|
1777
|
+
onClick: withModifiers(($event) => clickRadioGroup(item.DATE, date.con), ["prevent"]),
|
|
1778
|
+
key: date.con,
|
|
1779
|
+
value: date.con,
|
|
1780
|
+
label: date.name
|
|
1781
|
+
}, null, 8, ["onClick", "value", "label"])), [
|
|
1782
|
+
[vShow, !item.showDate]
|
|
1783
|
+
]);
|
|
1784
|
+
}), 128))
|
|
1785
|
+
]),
|
|
1786
|
+
_: 2
|
|
1787
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
1788
|
+
createElementVNode("span", {
|
|
1789
|
+
class: normalizeClass(["check-date-btn", item.marginx]),
|
|
1790
|
+
onClick: ($event) => checkDate(item)
|
|
1791
|
+
}, "\u5F00\u59CB\u65F6\u95F4", 10, _hoisted_41),
|
|
1792
|
+
withDirectives(createElementVNode("div", _hoisted_42, [
|
|
1793
|
+
createVNode(unref(NDatePicker), {
|
|
1794
|
+
type: "datetime",
|
|
1795
|
+
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1796
|
+
"formatted-value": item.DATE.start_val,
|
|
1797
|
+
"onUpdate:formatted-value": ($event) => item.DATE.start_val = $event,
|
|
1798
|
+
placeholder: "\u8D77\u59CB\u65E5\u671F",
|
|
1799
|
+
style: { "width": "120px", "min-width": "195px" },
|
|
1800
|
+
clearable: ""
|
|
1801
|
+
}, null, 8, ["formatted-value", "onUpdate:formatted-value"]),
|
|
1802
|
+
createTextVNode(" \xA0 "),
|
|
1803
|
+
createVNode(unref(NDatePicker), {
|
|
1804
|
+
type: "datetime",
|
|
1805
|
+
"value-format": "yyyy-MM-dd HH:mm:ss",
|
|
1806
|
+
"formatted-value": item.DATE.end_val,
|
|
1807
|
+
"onUpdate:formatted-value": ($event) => item.DATE.end_val = $event,
|
|
1808
|
+
placeholder: "\u622A\u6B62\u65E5\u671F",
|
|
1809
|
+
style: { "width": "120px" },
|
|
1810
|
+
clearable: ""
|
|
1811
|
+
}, null, 8, ["formatted-value", "onUpdate:formatted-value"])
|
|
1812
|
+
], 512), [
|
|
1813
|
+
[vShow, item.showDate]
|
|
1814
|
+
])
|
|
1815
|
+
])) : createCommentVNode("v-if", true),
|
|
1816
|
+
item.con == "QUOTE" || item.com == "SelectMui" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
1817
|
+
item.comType === "treeSelect" ? (openBlock(), createBlock(cTreeSelect, {
|
|
1818
|
+
key: 0,
|
|
1819
|
+
options: item,
|
|
1820
|
+
handleGetConfigApi: unref(handleGetConfigApi),
|
|
1821
|
+
filterApiConfig: __props.filterApiConfig,
|
|
1822
|
+
style: { "margin": "0 8px 8px 0" }
|
|
1823
|
+
}, null, 8, ["options", "handleGetConfigApi", "filterApiConfig"])) : (openBlock(), createBlock(multiSelect, {
|
|
1824
|
+
key: 1,
|
|
1825
|
+
item,
|
|
1826
|
+
source: "quickSearch",
|
|
1827
|
+
maxTagPlaceholder,
|
|
1828
|
+
outFilterChange: filterChange,
|
|
1829
|
+
handleWordBookSearch: handleSearch,
|
|
1830
|
+
dropdownVisibleChange,
|
|
1831
|
+
fetchingWordbook: unref(fetchingWordbook)
|
|
1832
|
+
}, null, 8, ["item", "fetchingWordbook"]))
|
|
1833
|
+
], 64)) : item.con == "CONVERT" ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
1834
|
+
createCommentVNode(" \u591A\u9009\u9009\u9879\u7EC4 "),
|
|
1835
|
+
(item == null ? void 0 : item.advanceOptionSetting) != "0" ? (openBlock(), createBlock(unref(NCheckboxGroup), {
|
|
1836
|
+
key: 0,
|
|
1837
|
+
class: "check-box",
|
|
1838
|
+
value: item.CONVERT,
|
|
1839
|
+
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1840
|
+
}, {
|
|
1841
|
+
default: withCtx(() => [
|
|
1842
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1843
|
+
return openBlock(), createBlock(unref(NCheckbox), {
|
|
1844
|
+
key: index,
|
|
1845
|
+
value: check.value,
|
|
1846
|
+
label: check.label
|
|
1847
|
+
}, null, 8, ["value", "label"]);
|
|
1848
|
+
}), 128))
|
|
1849
|
+
]),
|
|
1850
|
+
_: 2
|
|
1851
|
+
}, 1032, ["value", "onUpdate:value"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1852
|
+
createCommentVNode(" \u5355\u9009\u9009\u9879\u7EC4 "),
|
|
1853
|
+
createVNode(unref(NRadioGroup), {
|
|
1854
|
+
class: "check-box",
|
|
1855
|
+
value: item.CONVERT,
|
|
1856
|
+
"onUpdate:value": ($event) => item.CONVERT = $event
|
|
1857
|
+
}, {
|
|
1858
|
+
default: withCtx(() => [
|
|
1859
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.setting.showSetting, (check, index) => {
|
|
1860
|
+
return openBlock(), createBlock(unref(NRadio), {
|
|
1861
|
+
key: index,
|
|
1862
|
+
value: check.value,
|
|
1863
|
+
label: check.label
|
|
1864
|
+
}, null, 8, ["value", "label"]);
|
|
1865
|
+
}), 128))
|
|
1866
|
+
]),
|
|
1867
|
+
_: 2
|
|
1868
|
+
}, 1032, ["value", "onUpdate:value"])
|
|
1869
|
+
], 2112))
|
|
1870
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
1871
|
+
])
|
|
1872
|
+
], 2112))
|
|
1873
|
+
], 2)
|
|
1874
|
+
])
|
|
1875
|
+
], 2);
|
|
1876
|
+
}), 128))
|
|
1877
|
+
])) : createCommentVNode("v-if", true)
|
|
1878
|
+
], 64);
|
|
1879
|
+
}), 256))
|
|
1880
|
+
], 2),
|
|
1881
|
+
createVNode(unref(NModal), {
|
|
1882
|
+
show: unref(showInner),
|
|
1883
|
+
maskClosable: false,
|
|
1884
|
+
"positive-text": "\u786E\u8BA4",
|
|
1885
|
+
"negative-text": "\u53D6\u6D88",
|
|
1886
|
+
onPositiveClick: saveToCalss,
|
|
1887
|
+
onNegativeClick: cancelSaveToCalss,
|
|
1888
|
+
class: "quickSearch-saveToClass-modal"
|
|
1889
|
+
}, {
|
|
1890
|
+
default: withCtx(() => [
|
|
1891
|
+
createVNode(unref(NCard), {
|
|
1892
|
+
title: "\u8BBE\u7F6E\u7B5B\u9009\u5206\u7C7B",
|
|
1893
|
+
style: { "width": "520px" },
|
|
1894
|
+
bordered: false,
|
|
1895
|
+
size: "huge",
|
|
1896
|
+
role: "dialog",
|
|
1897
|
+
"aria-modal": "true"
|
|
1898
|
+
}, {
|
|
1899
|
+
"header-extra": withCtx(() => [
|
|
1900
|
+
createElementVNode("div", _hoisted_43, [
|
|
1901
|
+
createVNode(unref(NIcon), {
|
|
1902
|
+
component: unref(CloseOutline),
|
|
1903
|
+
size: "24",
|
|
1904
|
+
onClick: cancelSaveToCalss
|
|
1905
|
+
}, null, 8, ["component"])
|
|
1906
|
+
])
|
|
1907
|
+
]),
|
|
1908
|
+
footer: withCtx(() => [
|
|
1909
|
+
createVNode(unref(NButton), { onClick: cancelSaveToCalss }, {
|
|
1910
|
+
default: withCtx(() => [
|
|
1911
|
+
createTextVNode("\u53D6\u6D88")
|
|
1912
|
+
]),
|
|
1913
|
+
_: 1
|
|
1914
|
+
}),
|
|
1915
|
+
createVNode(unref(NButton), {
|
|
1916
|
+
type: "info",
|
|
1917
|
+
onClick: saveToCalss
|
|
1918
|
+
}, {
|
|
1919
|
+
default: withCtx(() => [
|
|
1920
|
+
createTextVNode("\u786E\u8BA4")
|
|
1921
|
+
]),
|
|
1922
|
+
_: 1
|
|
1923
|
+
})
|
|
1924
|
+
]),
|
|
1925
|
+
default: withCtx(() => [
|
|
1926
|
+
createVNode(unref(NForm), {
|
|
1927
|
+
ref_key: "formRef",
|
|
1928
|
+
ref: formRef,
|
|
1929
|
+
"label-placement": "left",
|
|
1930
|
+
rules,
|
|
1931
|
+
model: formValue.value
|
|
1932
|
+
}, {
|
|
1933
|
+
default: withCtx(() => [
|
|
1934
|
+
createVNode(unref(NFormItem), {
|
|
1935
|
+
label: "\u7B5B\u9009\u96C6\u540D\u79F0",
|
|
1936
|
+
path: "classname"
|
|
1937
|
+
}, {
|
|
1938
|
+
default: withCtx(() => [
|
|
1939
|
+
createVNode(unref(NInput), {
|
|
1940
|
+
value: formValue.value.classname,
|
|
1941
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => formValue.value.classname = $event),
|
|
1942
|
+
placeholder: "\u8BF7\u8F93\u5165\u5206\u7C7B\u540D\u79F0",
|
|
1943
|
+
clearable: ""
|
|
1944
|
+
}, null, 8, ["value"])
|
|
1945
|
+
]),
|
|
1946
|
+
_: 1
|
|
1947
|
+
})
|
|
1948
|
+
]),
|
|
1949
|
+
_: 1
|
|
1950
|
+
}, 8, ["model"]),
|
|
1951
|
+
createVNode(unref(NGrid), { cols: 24 }, {
|
|
1952
|
+
default: withCtx(() => [
|
|
1953
|
+
createVNode(unref(NGridItem), {
|
|
1954
|
+
span: 5,
|
|
1955
|
+
style: { "text-align": "right", "color": "rgba(0, 0, 0, 0.85)" }
|
|
1956
|
+
}, {
|
|
1957
|
+
default: withCtx(() => [
|
|
1958
|
+
createTextVNode("\u7236\u7C7B\u540D\u79F0\uFF1A")
|
|
1959
|
+
]),
|
|
1960
|
+
_: 1
|
|
1961
|
+
}),
|
|
1962
|
+
createVNode(unref(NGridItem), { span: 18 }, {
|
|
1963
|
+
default: withCtx(() => [
|
|
1964
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(parentNames), (item, index) => {
|
|
1965
|
+
return openBlock(), createElementBlock("div", {
|
|
1966
|
+
class: normalizeClass(["edit-tag", { "edit-tag-select": item.selected && item.disabled }]),
|
|
1967
|
+
key: index,
|
|
1968
|
+
onDblclick: (e) => editParentName(e, item),
|
|
1969
|
+
onClick: ($event) => handleParentNameSelect(item, index)
|
|
1970
|
+
}, [
|
|
1971
|
+
item.disabled ? (openBlock(), createElementBlock("div", _hoisted_45, [
|
|
1972
|
+
createElementVNode("span", null, toDisplayString(item.value), 1)
|
|
1973
|
+
])) : (openBlock(), createBlock(unref(NInput), {
|
|
1974
|
+
key: 1,
|
|
1975
|
+
style: { "width": "100px" },
|
|
1976
|
+
value: item.value,
|
|
1977
|
+
"onUpdate:value": ($event) => item.value = $event,
|
|
1978
|
+
disabled: item.disabled,
|
|
1979
|
+
onBlur: () => item.disabled = true,
|
|
1980
|
+
maxLength: 10
|
|
1981
|
+
}, null, 8, ["value", "onUpdate:value", "disabled", "onBlur"])),
|
|
1982
|
+
createVNode(unref(NIcon), {
|
|
1983
|
+
component: unref(CloseOutline),
|
|
1984
|
+
class: "anticon-close",
|
|
1985
|
+
size: "20",
|
|
1986
|
+
onClick: ($event) => handleParentNamesRemove(index, item)
|
|
1987
|
+
}, null, 8, ["component", "onClick"])
|
|
1988
|
+
], 42, _hoisted_44);
|
|
1989
|
+
}), 128)),
|
|
1990
|
+
!unref(parentNamesHasAdd) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1991
|
+
withDirectives(createVNode(unref(NButton), {
|
|
1992
|
+
dashed: "",
|
|
1993
|
+
icon: "plus",
|
|
1994
|
+
class: "ant-btn",
|
|
1995
|
+
onClick: handleParentNamesAdd
|
|
1996
|
+
}, {
|
|
1997
|
+
default: withCtx(() => [
|
|
1998
|
+
createVNode(unref(NIcon), {
|
|
1999
|
+
component: unref(AddOutline),
|
|
2000
|
+
size: "20"
|
|
2001
|
+
}, null, 8, ["component"]),
|
|
2002
|
+
createTextVNode("\u6DFB\u52A0\u5206\u7C7B")
|
|
2003
|
+
]),
|
|
2004
|
+
_: 1
|
|
2005
|
+
}, 512), [
|
|
2006
|
+
[vShow, !unref(showAdd)]
|
|
2007
|
+
]),
|
|
2008
|
+
withDirectives(createVNode(unref(NInput), {
|
|
2009
|
+
style: { "width": "100px" },
|
|
2010
|
+
class: "edit-tag",
|
|
2011
|
+
value: unref(addVal),
|
|
2012
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(addVal) ? addVal.value = $event : addVal = $event),
|
|
2013
|
+
valueModifiers: { trim: true },
|
|
2014
|
+
onBlur: hanldeBlur,
|
|
2015
|
+
maxLength: 10
|
|
2016
|
+
}, null, 8, ["value"]), [
|
|
2017
|
+
[vShow, unref(showAdd)]
|
|
2018
|
+
])
|
|
2019
|
+
], 64)) : createCommentVNode("v-if", true)
|
|
2020
|
+
]),
|
|
2021
|
+
_: 1
|
|
2022
|
+
})
|
|
2023
|
+
]),
|
|
2024
|
+
_: 1
|
|
2025
|
+
})
|
|
2026
|
+
]),
|
|
2027
|
+
_: 1
|
|
2028
|
+
})
|
|
2029
|
+
]),
|
|
2030
|
+
_: 1
|
|
2031
|
+
}, 8, ["show"])
|
|
2032
|
+
]);
|
|
2033
|
+
};
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
var scriptQuickSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "QuickSearch.vue"]]);
|
|
2037
|
+
|
|
2038
|
+
export { scriptQuickSearch as default };
|