cnhis-design-vue 3.1.43-release.1 → 3.1.43-release.3

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.
Files changed (127) hide show
  1. package/README.md +87 -87
  2. package/es/components/base-search/index.d.ts +50 -114
  3. package/es/components/base-search/src/index.vue.d.ts +50 -114
  4. package/es/components/base-search/src/index.vue.js +1 -1
  5. package/es/components/base-search/style/index.css +1 -1
  6. package/es/components/classification/index.d.ts +9 -6
  7. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -0
  8. package/es/components/classification/src/components/set-classification/index.vue.d.ts +8 -5
  9. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  10. package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
  11. package/es/components/classification/src/index.vue.d.ts +9 -6
  12. package/es/components/fabric-chart/index.d.ts +1 -1
  13. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  14. package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
  15. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +2 -1
  16. package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -4
  17. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  18. package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
  19. package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
  20. package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
  21. package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +3 -2
  23. package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
  24. package/es/components/form-config/index.d.ts +8 -8
  25. package/es/components/form-config/src/FormConfig.vue.d.ts +8 -8
  26. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
  27. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
  28. package/es/components/form-render/index.d.ts +4 -4
  29. package/es/components/form-render/src/FormRender.vue.d.ts +4 -4
  30. package/es/components/form-render/src/FormRender.vue.js +1 -1
  31. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
  32. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
  33. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  34. package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
  35. package/es/components/form-render/src/components/renderer/select.js +1 -1
  36. package/es/components/form-render/src/hooks/useAnchor.js +1 -1
  37. package/es/components/form-render/style/index.css +1 -1
  38. package/es/components/guide/index.d.ts +2 -0
  39. package/es/components/guide/index.js +1 -0
  40. package/es/components/guide/src/renderer.d.ts +37 -0
  41. package/es/components/guide/src/renderer.js +1 -0
  42. package/es/components/guide/src/types/index.d.ts +40 -0
  43. package/es/components/guide/src/useGuide.d.ts +6 -0
  44. package/es/components/guide/src/useGuide.js +1 -0
  45. package/es/components/guide/src/utils/index.d.ts +14 -0
  46. package/es/components/guide/src/utils/index.js +1 -0
  47. package/es/components/iho-table/index.d.ts +9 -2
  48. package/es/components/iho-table/src/IhoTable.vue.d.ts +9 -2
  49. package/es/components/iho-table/src/IhoTable.vue.js +1 -1
  50. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  51. package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
  52. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +4 -1
  53. package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
  54. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
  55. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
  56. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
  57. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  58. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  59. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
  60. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -3
  61. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
  62. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
  63. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -0
  64. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  65. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -0
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  67. package/es/components/iho-table/src/types/index.d.ts +4 -1
  68. package/es/components/iho-table/style/iconfont.ttf +0 -0
  69. package/es/components/iho-table/style/index.css +1 -1
  70. package/es/components/index.css +1 -1
  71. package/es/components/index.d.ts +1 -0
  72. package/es/components/index.js +1 -1
  73. package/es/components/info-header/index.d.ts +8 -8
  74. package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -8
  75. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -4
  76. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
  77. package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
  78. package/es/components/quick-search/index.d.ts +54 -224
  79. package/es/components/quick-search/src/index.vue.d.ts +54 -224
  80. package/es/components/quick-search/src/index.vue.js +1 -1
  81. package/es/components/quick-search/style/index.css +1 -1
  82. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  83. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  84. package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
  85. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  86. package/es/components/shortcut-setter/index.d.ts +4 -4
  87. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -4
  88. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +3 -0
  89. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -0
  90. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  91. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  92. package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +84 -0
  93. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  94. package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.d.ts +118 -0
  95. package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +1 -0
  96. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
  97. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
  98. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +26 -7
  99. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  100. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -2
  101. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  102. package/es/components/table-filter/src/components/render-widget/enums.d.ts +17 -0
  103. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  104. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +5 -0
  105. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  106. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +13 -3
  107. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  108. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +240 -15
  109. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  110. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
  111. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  112. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  113. package/es/components/table-filter/src/types/enums.d.ts +3 -0
  114. package/es/components/table-filter/src/types/enums.js +1 -1
  115. package/es/components/table-filter/src/types/index.d.ts +27 -87
  116. package/es/env.d.ts +25 -25
  117. package/es/shared/package.json.js +1 -1
  118. package/package.json +2 -2
  119. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  120. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  121. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  122. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  123. package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
  124. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
  125. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  126. package/es/shared/utils/tapable/index.d.ts +0 -139
  127. /package/es/components/{iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js → guide/src/types/index.js} +0 -0
@@ -30,7 +30,6 @@ declare const _default: import("vue").DefineComponent<{
30
30
  outQuickSearchFn: {
31
31
  handlerInitSearchItem(arr: ISearchType[]): void;
32
32
  };
33
- getDefValByRenderWidget: (cfg: ISearchType) => any;
34
33
  getRenderSearchConObj: (cfg: ISearchType) => {
35
34
  field_key: string;
36
35
  con: string | undefined;
@@ -46,15 +45,19 @@ declare const _default: import("vue").DefineComponent<{
46
45
  setting: string;
47
46
  widgetCfg: {
48
47
  isRender: boolean;
48
+ isInit: boolean;
49
49
  widgetType: string | null;
50
50
  valueList: {
51
51
  value: any;
52
- label: string;
52
+ label: any;
53
53
  }[] | undefined;
54
54
  defaultValue: any;
55
55
  defValueUnit: any;
56
56
  multiple: boolean;
57
+ manualMapping: boolean | null | undefined;
58
+ dynamicOptionInfo: import("../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
57
59
  };
60
+ rangeFilter: boolean | undefined;
58
61
  title: string;
59
62
  alias: string | undefined;
60
63
  isShowSearch: number;
@@ -62,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
62
65
  explicitRequired: number;
63
66
  advanceOptionSetting: string;
64
67
  placeholder: string | undefined;
65
- advanceColWidth: string;
68
+ advanceColWidth: number | null | undefined;
66
69
  }[];
67
70
  getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
68
71
  transformParams: (paramsList: any) => {};
@@ -94,120 +97,28 @@ declare const _default: import("vue").DefineComponent<{
94
97
  }>;
95
98
  showInner: import("vue").Ref<boolean>;
96
99
  quickSearch: import("vue").Ref<{
100
+ isShowSearch?: number | undefined;
101
+ filterExplicit?: number | undefined;
102
+ explicitRequired?: number | undefined;
103
+ advanceOptionSetting?: string | undefined;
104
+ explicitDefaultVal?: string | undefined;
105
+ advanceColWidth?: string | undefined;
106
+ fieldType?: string | undefined;
97
107
  columnName: string;
98
108
  title: string;
99
- fieldType?: string | undefined;
100
- filterExplicit?: number | undefined;
101
- isShowSearch?: number | undefined;
102
- setting?: any;
103
- settingObj?: any;
104
109
  placeholder?: string | undefined;
105
- AGEAttr?: boolean | undefined;
106
- CL?: string | undefined;
107
- CONVERT?: any;
108
- EVALUATEAttr?: boolean | undefined;
109
- EQ?: string | undefined;
110
- LABELAttr?: boolean | undefined;
111
- _isBlock?: boolean | undefined;
110
+ settingObj?: any;
111
+ setting?: any;
112
+ widgetCfg?: any;
113
+ rangeFilter?: boolean | undefined;
112
114
  _frontId?: any;
113
- NUMBERFiled?: boolean | undefined;
114
- PASSWORDTYPE?: boolean | undefined;
115
- advanceColWidth?: string | undefined;
116
- advanceOptionSetting?: string | undefined;
117
- alias?: string | undefined;
118
- ageObj?: any;
119
- attr?: string | undefined;
120
- bigValue?: string | number | undefined;
121
- classify?: string | undefined;
122
- colWidth?: number | undefined;
123
- columnFullName?: string | undefined;
124
- com?: string | undefined;
125
- comType?: string | undefined;
126
- comAttr?: string | undefined;
127
- con?: string | undefined;
128
- dataSource?: any;
129
- dictionarieObj?: any;
130
- explicitRequired?: number | undefined;
131
- explicitDefaultVal?: string | undefined;
132
- extraField?: boolean | undefined;
133
- fieldSetting?: string | undefined;
134
- format?: string | undefined;
135
- i18n?: string | undefined;
136
- id?: string | undefined;
137
- inputVal?: string | undefined;
138
- inputUnit?: string | undefined;
139
- isAvg?: number | undefined;
140
- isEdit?: number | undefined;
141
- isFixed?: number | undefined;
142
- isFixedShow?: number | undefined;
143
- isFontWeight?: number | undefined;
144
- isMerge?: number | undefined;
145
- isOrder?: number | undefined;
146
- isPreciseSearch?: boolean | undefined;
147
115
  isRender?: boolean | undefined;
148
- isSearch?: number | undefined;
149
- isShow?: number | undefined;
150
- isSort?: number | undefined;
151
- isSum?: number | undefined;
152
- labelObj?: any;
153
- labelList?: {
154
- labelId?: string | undefined;
155
- change_text: string;
156
- field_key: string;
157
- filter: {
158
- con: string;
159
- conName?: string | undefined;
160
- field_key: string;
161
- key?: string | undefined;
162
- value: string;
163
- }[];
164
- label: string;
165
- labelName: string;
166
- sqlExpression: string;
167
- value: string;
168
- isSelect?: boolean | undefined;
169
- }[] | undefined;
170
- labelSelectList?: {
171
- labelId?: string | undefined;
172
- change_text: string;
173
- field_key: string;
174
- filter: {
175
- con: string;
176
- conName?: string | undefined;
177
- field_key: string;
178
- key?: string | undefined;
179
- value: string;
180
- }[];
181
- label: string;
182
- labelName: string;
183
- sqlExpression: string;
184
- value: string;
185
- isSelect?: boolean | undefined;
186
- }[] | undefined;
187
- lessValue?: string | number | undefined;
188
- marginx?: string | undefined;
189
- notParticipatingSearch?: number | undefined;
190
- order?: string | undefined;
191
- QUOTE?: any;
192
- searchPageConfig?: any;
193
- selecteds?: any;
194
- sequence?: number | undefined;
195
- showDate?: boolean | undefined;
196
- showFormat?: string | undefined;
197
- showTime?: boolean | undefined;
198
- sid?: string | undefined;
199
- start_val?: number | null | undefined;
200
- end_val?: number | null | undefined;
201
- tempCon?: any;
202
- tableId?: string | undefined;
203
- value?: any;
204
- unit?: string | undefined;
205
- widgetCfg?: any;
206
- formTitle?: string | undefined;
207
- random_key?: string | undefined;
208
116
  widgetType?: any;
209
- hasFieldList?: any;
210
- search_DefaultValue?: any;
117
+ con?: string | undefined;
118
+ _isBlock?: boolean | undefined;
119
+ value?: any;
120
+ sid?: string | undefined;
121
+ alias?: string | undefined;
211
122
  }[]>;
212
123
  parentNames: import("vue").Ref<{
213
124
  disabled: boolean;
@@ -221,120 +132,28 @@ declare const _default: import("vue").DefineComponent<{
221
132
  handleName: import("vue").ComputedRef<(item: ISearchType, key?: string) => any>;
222
133
  init: () => void;
223
134
  onFilterSearch: () => {
135
+ isShowSearch?: number | undefined;
136
+ filterExplicit?: number | undefined;
137
+ explicitRequired?: number | undefined;
138
+ advanceOptionSetting?: string | undefined;
139
+ explicitDefaultVal?: string | undefined;
140
+ advanceColWidth?: string | undefined;
141
+ fieldType?: string | undefined;
224
142
  columnName: string;
225
143
  title: string;
226
- fieldType?: string | undefined;
227
- filterExplicit?: number | undefined;
228
- isShowSearch?: number | undefined;
229
- setting?: any;
230
- settingObj?: any;
231
144
  placeholder?: string | undefined;
232
- AGEAttr?: boolean | undefined;
233
- CL?: string | undefined;
234
- CONVERT?: any;
235
- EVALUATEAttr?: boolean | undefined;
236
- EQ?: string | undefined;
237
- LABELAttr?: boolean | undefined;
238
- _isBlock?: boolean | undefined;
145
+ settingObj?: any;
146
+ setting?: any;
147
+ widgetCfg?: any;
148
+ rangeFilter?: boolean | undefined;
239
149
  _frontId?: any;
240
- NUMBERFiled?: boolean | undefined;
241
- PASSWORDTYPE?: boolean | undefined;
242
- advanceColWidth?: string | undefined;
243
- advanceOptionSetting?: string | undefined;
244
- alias?: string | undefined;
245
- ageObj?: any;
246
- attr?: string | undefined;
247
- bigValue?: string | number | undefined;
248
- classify?: string | undefined;
249
- colWidth?: number | undefined;
250
- columnFullName?: string | undefined;
251
- com?: string | undefined;
252
- comType?: string | undefined;
253
- comAttr?: string | undefined;
254
- con?: string | undefined;
255
- dataSource?: any;
256
- dictionarieObj?: any;
257
- explicitRequired?: number | undefined;
258
- explicitDefaultVal?: string | undefined;
259
- extraField?: boolean | undefined;
260
- fieldSetting?: string | undefined;
261
- format?: string | undefined;
262
- i18n?: string | undefined;
263
- id?: string | undefined;
264
- inputVal?: string | undefined;
265
- inputUnit?: string | undefined;
266
- isAvg?: number | undefined;
267
- isEdit?: number | undefined;
268
- isFixed?: number | undefined;
269
- isFixedShow?: number | undefined;
270
- isFontWeight?: number | undefined;
271
- isMerge?: number | undefined;
272
- isOrder?: number | undefined;
273
- isPreciseSearch?: boolean | undefined;
274
150
  isRender?: boolean | undefined;
275
- isSearch?: number | undefined;
276
- isShow?: number | undefined;
277
- isSort?: number | undefined;
278
- isSum?: number | undefined;
279
- labelObj?: any;
280
- labelList?: {
281
- labelId?: string | undefined;
282
- change_text: string;
283
- field_key: string;
284
- filter: {
285
- con: string;
286
- conName?: string | undefined;
287
- field_key: string;
288
- key?: string | undefined;
289
- value: string;
290
- }[];
291
- label: string;
292
- labelName: string;
293
- sqlExpression: string;
294
- value: string;
295
- isSelect?: boolean | undefined;
296
- }[] | undefined;
297
- labelSelectList?: {
298
- labelId?: string | undefined;
299
- change_text: string;
300
- field_key: string;
301
- filter: {
302
- con: string;
303
- conName?: string | undefined;
304
- field_key: string;
305
- key?: string | undefined;
306
- value: string;
307
- }[];
308
- label: string;
309
- labelName: string;
310
- sqlExpression: string;
311
- value: string;
312
- isSelect?: boolean | undefined;
313
- }[] | undefined;
314
- lessValue?: string | number | undefined;
315
- marginx?: string | undefined;
316
- notParticipatingSearch?: number | undefined;
317
- order?: string | undefined;
318
- QUOTE?: any;
319
- searchPageConfig?: any;
320
- selecteds?: any;
321
- sequence?: number | undefined;
322
- showDate?: boolean | undefined;
323
- showFormat?: string | undefined;
324
- showTime?: boolean | undefined;
325
- sid?: string | undefined;
326
- start_val?: number | null | undefined;
327
- end_val?: number | null | undefined;
328
- tempCon?: any;
329
- tableId?: string | undefined;
330
- value?: any;
331
- unit?: string | undefined;
332
- widgetCfg?: any;
333
- formTitle?: string | undefined;
334
- random_key?: string | undefined;
335
151
  widgetType?: any;
336
- hasFieldList?: any;
337
- search_DefaultValue?: any;
152
+ con?: string | undefined;
153
+ _isBlock?: boolean | undefined;
154
+ value?: any;
155
+ sid?: string | undefined;
156
+ alias?: string | undefined;
338
157
  }[];
339
158
  getMergeConObj: () => ISearchParamsType[];
340
159
  getConObjParams: () => ISearchParamsType[];
@@ -345,8 +164,8 @@ declare const _default: import("vue").DefineComponent<{
345
164
  hanldeBlur: () => void;
346
165
  editParentName: (e: Event, item: IParentNamesType) => void;
347
166
  handleParentNameSelect: (item: IParentNamesType, index: number) => void;
348
- handleParentNamesRemove: (index: number, item: IParentNamesType) => void;
349
- handleParent: (index: number, item: IParentNamesType) => void;
167
+ handleParentNamesRemove: (index: number) => void;
168
+ handleParent: (index: number) => void;
350
169
  saveTableCondiTion: (params: ISaveType) => Promise<void>;
351
170
  cancelSaveToCalss: () => void;
352
171
  clearData: () => void;
@@ -653,6 +472,7 @@ declare const _default: import("vue").DefineComponent<{
653
472
  NIcon: any;
654
473
  NInput: any;
655
474
  NButton: any;
475
+ NPopover: any;
656
476
  CloseOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
657
477
  AddOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
658
478
  RenderWidget: import("vue").DefineComponent<{
@@ -663,19 +483,25 @@ declare const _default: import("vue").DefineComponent<{
663
483
  modelValue: {
664
484
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
665
485
  };
486
+ filterApiConfig: {
487
+ type: ObjectConstructor;
488
+ };
666
489
  }, any, {
667
490
  initialProps: {};
668
491
  }, {
669
492
  valueCp(): any;
670
493
  }, {
671
494
  search(): void;
672
- getEleWidth(cfg: any): string | undefined;
495
+ getEleWidth(cfg: any): {
496
+ width: string;
497
+ } | undefined;
673
498
  initComponentProps(cfg: any): void;
674
499
  generateWidget(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
675
500
  [key: string]: any;
676
501
  }> | null;
677
- handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
678
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
502
+ handleUpdate(val: any): void;
503
+ handleChangeInitState(_frontId: any, bool: any): void;
504
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange" | "changeInit")[], "update:modelValue" | "outFilterChange" | "changeInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
679
505
  cfg: {
680
506
  type: ObjectConstructor;
681
507
  required: true;
@@ -683,9 +509,13 @@ declare const _default: import("vue").DefineComponent<{
683
509
  modelValue: {
684
510
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
685
511
  };
512
+ filterApiConfig: {
513
+ type: ObjectConstructor;
514
+ };
686
515
  }>> & {
687
516
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
688
517
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
518
+ onChangeInit?: ((...args: any[]) => any) | undefined;
689
519
  }, {}>;
690
520
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onFilterSearch" | "getFilterParam" | "clearQuickSearchConfig")[], "onFilterSearch" | "getFilterParam" | "clearQuickSearchConfig", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
691
521
  searchFieldList: {
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,computed as a,watch as t,onMounted as i,openBlock as n,createElementBlock as o,createElementVNode as s,Fragment as r,renderList as u,unref as c,normalizeClass as d,createCommentVNode as v,toDisplayString as f,createBlock as m,createVNode as p,withCtx as h,createTextVNode as g,withDirectives as k,vShow as b,isRef as y}from"vue";import{useMessage as C,NModal as S,NCard as _,NIcon as x,NButton as q,NForm as A,NFormItem as w,NInput as F}from"naive-ui";import{CloseOutline as j,AddOutline as I}from"@vicons/ionicons5";import R from"../../table-filter/src/hooks/useMixins.js";import V from"../../table-filter/src/hooks/useRenderWidget.js";import D from"../../table-filter/src/hooks/useAdvanced.js";import E from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as L}from"lodash-es";import U from"../../../_virtual/plugin-vue_export-helper.js";const z={class:"quick-search-block quick-search-table"},B={class:"quick-row"},T={class:"quick-item-title"},N={class:"quick-item-col"},O={class:"svg-wrap"},P={class:"flex_right"},Q={class:"class-filter-content"},W={class:"quickSearch-content"},M=s("span",{class:"label"},"父类名称:",-1),G=["onDblclick","onClick"],J={key:0,class:"s-content"};var H=U(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:U,emit:H}){const K=e,X={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},Y=C(),{handleGetConfigApi:Z,outQuickSearchFn:$}=R(),{getDefValByRenderWidget:ee,getRenderSearchConObj:le,resetRenderWidgetValue:ae,isRender:te}=V(),{transformData:ie,getCacheDef:ne,transformParams:oe}=D(),se=l(null),re=l({classname:""});let ue=l(!1),ce=l([]),de=l([]),ve=l(!1),fe=l(""),me=a((()=>!!de.value.length&&de.value.some((e=>e.isAdd)))),pe=a((()=>(e,l="name")=>e.alias||e[l]));function he(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=le(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ce.value)||[]}function ge(){var e;null==(e=se.value)||e.validate((e=>{var l;if(e)return;let a=he();a.length||(a=[]);let t=null==(l=de.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await Z(e,"requestSaveTableCondiTion",{},K.filterApiConfig))return;ue.value=!1,null==(l=se.value)||l.restoreValidation(),re.value.classname="",de.value=[],Se()}catch(e){console.log(e)}}({tableId:K.tableId||"",setting:JSON.stringify({displayCategory:t,name:re.value.classname,conObj:a}),conditionList:"[]"})}))}function ke(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),ve.value=!0}function be(){ve.value=!1,fe.value&&(de.value.forEach((e=>e.selected=!1)),de.value.push({disabled:!0,value:fe.value,selected:!0,isAdd:!0}),fe.value="")}function ye(e,l){!function(e,l){de.value.splice(e,1)}(e)}function Ce(){ue.value=!1}function Se(){_e(ce.value),H("clearQuickSearchConfig")}function _e(e){Array.isArray(e)&&(e.forEach((e=>{ae(e)})),$.handlerInitSearchItem(ce.value))}return t((()=>K.searchFieldList),(e=>{e&&e.length>0&&function(){let e=L(ie(K.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ce.value=e||[],$.handlerInitSearchItem(ce.value)}()}),{immediate:!0,deep:!0}),t((()=>ce),(()=>{const e=he()||[],l=oe(e);H("getFilterParam",e,l)}),{deep:!0}),i((()=>{const e=K.quickSearchConfig;if(e&&e.length>0)return l=e,void ce.value.forEach(((e,a)=>{var t;if(te(e)){const a=l.find((l=>l.field_key===e.columnName));a&&(null==(t=a.value)?void 0:t.length)>0&&(e.value=ne(e,a.value))}}));var l;_e(ce.value)})),U({openSaveToCalss:function(){let e=he();e&&(e.length>0?ue.value=!0:Y.warning("请设置搜索条件"))},clearData:Se,onFilterSearch:function(){let e=he()||[];const l=oe(e);return H("onFilterSearch",e,l,!1),ce.value}}),(e,l)=>(n(),o("div",null,[s("div",z,[(n(!0),o(r,null,u(c(ce),(e=>(n(),o("div",{class:d(["quick-item",{"quick-block":e._isBlock}]),key:e.sid||e.columnName},[s("div",B,[v(" title "),s("div",T,[s("span",null,f(c(pe)(e,"title"))+"  ",1)]),v(" content "),s("div",N,[v(" 直接渲染组件 "),e.isRender?(n(),m(E,{key:0,cfg:e,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l},null,8,["cfg","modelValue","onUpdate:modelValue"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),p(c(S),{show:c(ue),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:ge,onNegativeClick:Ce,class:"classification-modal-block"},{default:h((()=>[p(c(_),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":h((()=>[s("div",O,[p(c(x),{component:c(j),size:"24",onClick:Ce},null,8,["component"])])])),footer:h((()=>[s("div",P,[p(c(q),{onClick:Ce},{default:h((()=>[g("取消")])),_:1}),p(c(q),{type:"info",onClick:ge},{default:h((()=>[g("确认")])),_:1})])])),default:h((()=>[s("div",Q,[p(c(A),{ref_key:"formRef",ref:se,"label-placement":"left",rules:X,model:re.value},{default:h((()=>[p(c(w),{label:"筛选集名称",path:"classname"},{default:h((()=>[p(c(F),{value:re.value.classname,"onUpdate:value":l[0]||(l[0]=e=>re.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),s("div",W,[M,(n(!0),o(r,null,u(c(de),((e,l)=>(n(),o("div",{class:d(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(de.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(n(),o("div",J,[s("span",null,f(e.value),1)])):(n(),m(c(F),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),p(c(x),{component:c(j),class:"anticon-close",size:"20",onClick:e=>ye(l)},null,8,["component","onClick"])],42,G)))),128)),c(me)?v("v-if",!0):(n(),o(r,{key:0},[k(p(c(q),{dashed:"",icon:"plus",class:"ant-btn",onClick:ke},{default:h((()=>[p(c(x),{component:c(I),size:"20"},null,8,["component"]),g("添加分类 ")])),_:1},512),[[b,!c(ve)]]),k(p(c(F),{style:{width:"100px"},class:"edit-tag",value:c(fe),"onUpdate:value":l[1]||(l[1]=e=>y(fe)?fe.value=e:fe=e),valueModifiers:{trim:!0},onBlur:be,maxLength:10},null,8,["value"]),[[b,c(ve)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{H as default};
1
+ import{defineComponent as e,ref as l,computed as a,watch as t,onMounted as i,openBlock as n,createElementBlock as o,createElementVNode as r,Fragment as s,renderList as u,unref as c,normalizeClass as d,createCommentVNode as v,createVNode as f,withCtx as m,createTextVNode as p,toDisplayString as h,createBlock as g,withDirectives as k,vShow as b,isRef as y}from"vue";import{useMessage as C,NPopover as _,NModal as S,NCard as x,NIcon as A,NButton as q,NForm as w,NFormItem as F,NInput as j}from"naive-ui";import{CloseOutline as I,AddOutline as E}from"@vicons/ionicons5";import L from"../../table-filter/src/hooks/useMixins.js";import R from"../../table-filter/src/hooks/useRenderWidget.js";import U from"../../table-filter/src/hooks/useAdvanced.js";import V from"../../table-filter/src/components/render-widget/index.vue.js";import"moment/locale/zh-cn";import{cloneDeep as z}from"lodash-es";import D from"../../../_virtual/plugin-vue_export-helper.js";const T={class:"quick-search-block quick-search-table"},B={class:"quick-row"},N={class:"quick-item-title"},O={class:"quick-item-col"},P={class:"svg-wrap"},Q={class:"flex_right"},M={class:"class-filter-content"},W={class:"quickSearch-content"},G=r("span",{class:"label"},"父类名称:",-1),J=["onDblclick","onClick"],H={key:0,class:"s-content"};var K=D(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},quickSearchConfig:{type:Array,default:()=>[]},tableId:{type:String,default:""},filterApiConfig:{type:Object}},emits:["getFilterParam","onFilterSearch","clearQuickSearchConfig"],setup(e,{expose:D,emit:K}){const X=e,Y={classname:{required:!0,message:"请输入分类名称",trigger:["input","blur"]}},Z=C(),{handleGetConfigApi:$,outQuickSearchFn:ee}=L(),{getRenderSearchConObj:le,resetRenderWidgetValue:ae,isRender:te}=R(),{transformData:ie,getCacheDef:ne,transformParams:oe}=U(),re=l(null),se=l({classname:""});let ue=l(!1),ce=l([]),de=l([]),ve=l(!1),fe=l(""),me=a((()=>!!de.value.length&&de.value.some((e=>e.isAdd)))),pe=a((()=>(e,l="name")=>e.alias||e[l]));function he(){return function(e){if(!Array.isArray(e))return[];let l=[];for(let a=0;a<e.length;a++){let t=e[a];const i=le(t);!l.find((e=>e.field_key===i.field_key))&&i&&l.push(i)}return l.filter((e=>e.value))}(ce.value)||[]}function ge(){var e;null==(e=re.value)||e.validate((e=>{var l;if(e)return;let a=he();a.length||(a=[]);let t=null==(l=de.value.filter((e=>e.selected))[0])?void 0:l.value;!async function(e){var l;try{if(!await $(e,"requestSaveTableCondiTion",{},X.filterApiConfig))return;ue.value=!1,null==(l=re.value)||l.restoreValidation(),se.value.classname="",de.value=[],_e()}catch(e){console.log(e)}}({tableId:X.tableId||"",setting:JSON.stringify({displayCategory:t,name:se.value.classname,conObj:a}),conditionList:"[]"})}))}function ke(e){var l;const a=null==(l=null==e?void 0:e.target)?void 0:l.nextElementSibling;setTimeout((()=>{a&&a.focus()})),ve.value=!0}function be(){ve.value=!1,fe.value&&(de.value.forEach((e=>e.selected=!1)),de.value.push({disabled:!0,value:fe.value,selected:!0,isAdd:!0}),fe.value="")}function ye(e){!function(e){de.value.splice(e,1)}(e)}function Ce(){ue.value=!1}function _e(){Se(ce.value),K("clearQuickSearchConfig")}function Se(e){Array.isArray(e)&&(e.forEach((e=>{ae(e)})),ee.handlerInitSearchItem(ce.value))}return t((()=>X.searchFieldList),(e=>{e&&e.length>0&&function(){let e=z(ie(X.searchFieldList)).filter((e=>1==e.isShowSearch&&1!=e.filterExplicit))||[];ce.value=e||[],ee.handlerInitSearchItem(ce.value)}()}),{immediate:!0,deep:!0}),t((()=>ce),(()=>{const e=he()||[],l=oe(e);K("getFilterParam",e,l)}),{deep:!0}),i((()=>{const e=X.quickSearchConfig;if(e&&e.length>0)return l=e,void ce.value.forEach((e=>{var a;if(te(e)){const t=l.find((l=>l.field_key===e.columnName));t&&(null==(a=t.value)?void 0:a.length)>0&&(e.value=ne(e,t.value))}}));var l;Se(ce.value)})),D({openSaveToCalss:function(){let e=he();e&&(e.length>0?ue.value=!0:Z.warning("请设置搜索条件"))},clearData:_e,onFilterSearch:function(){let e=he()||[];const l=oe(e);return K("onFilterSearch",e,l,!1),ce.value}}),(l,a)=>(n(),o("div",null,[r("div",T,[(n(!0),o(s,null,u(c(ce),(l=>(n(),o("div",{class:d(["quick-item",{"quick-block":l._isBlock}]),key:l.sid||l.columnName},[r("div",B,[v(" title "),r("div",N,[f(c(_),{trigger:"hover"},{trigger:m((()=>[p(h(c(pe)(l,"title")),1)])),default:m((()=>[r("span",null,h(c(pe)(l,"title")),1)])),_:2},1024)]),v(" content "),r("div",O,[v(" 直接渲染组件 "),l.isRender?(n(),g(V,{key:0,cfg:l,modelValue:l.value,filterApiConfig:e.filterApiConfig,"onUpdate:modelValue":e=>l.value=e},null,8,["cfg","modelValue","filterApiConfig","onUpdate:modelValue"])):v("v-if",!0)])])],2)))),128))]),v(" 保存到分类的弹窗 "),f(c(S),{show:c(ue),maskClosable:!1,"positive-text":"确认","negative-text":"取消",onPositiveClick:ge,onNegativeClick:Ce,class:"classification-modal-block"},{default:m((()=>[f(c(x),{title:"设置筛选分类",style:{width:"520px"},bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":m((()=>[r("div",P,[f(c(A),{component:c(I),size:"24",onClick:Ce},null,8,["component"])])])),footer:m((()=>[r("div",Q,[f(c(q),{onClick:Ce},{default:m((()=>[p("取消")])),_:1}),f(c(q),{type:"info",onClick:ge},{default:m((()=>[p("确认")])),_:1})])])),default:m((()=>[r("div",M,[f(c(w),{ref_key:"formRef",ref:re,"label-placement":"left",rules:Y,model:se.value},{default:m((()=>[f(c(F),{label:"筛选集名称",path:"classname"},{default:m((()=>[f(c(j),{value:se.value.classname,"onUpdate:value":a[0]||(a[0]=e=>se.value.classname=e),placeholder:"请输入分类名称",clearable:""},null,8,["value"])])),_:1})])),_:1},8,["model"]),r("div",W,[G,(n(!0),o(s,null,u(c(de),((e,l)=>(n(),o("div",{class:d(["edit-tag",{"edit-tag-select":e.selected&&e.disabled}]),key:l,onDblclick:l=>function(e,l){l.disabled=!1,setTimeout((()=>{var l;null==(l=e.target)||l.focus()}),0)}(l,e),onClick:a=>function(e,l){e.disabled&&(de.value.forEach(((e,a)=>{a!==l&&(e.selected=!1)})),e.selected=!e.selected)}(e,l)},[e.disabled?(n(),o("div",H,[r("span",null,h(e.value),1)])):(n(),g(c(j),{key:1,style:{width:"100px"},value:e.value,"onUpdate:value":l=>e.value=l,disabled:e.disabled,onBlur:()=>e.disabled=!0,maxLength:10},null,8,["value","onUpdate:value","disabled","onBlur"])),f(c(A),{component:c(I),class:"anticon-close",size:"20",onClick:e=>ye(l)},null,8,["component","onClick"])],42,J)))),128)),c(me)?v("v-if",!0):(n(),o(s,{key:0},[k(f(c(q),{dashed:"",icon:"plus",class:"ant-btn",onClick:ke},{default:m((()=>[f(c(A),{component:c(E),size:"20"},null,8,["component"]),p("添加分类 ")])),_:1},512),[[b,!c(ve)]]),k(f(c(j),{style:{width:"100px"},class:"edit-tag",value:c(fe),"onUpdate:value":a[1]||(a[1]=e=>y(fe)?fe.value=e:fe=e),valueModifiers:{trim:!0},onBlur:be,maxLength:10},null,8,["value"]),[[b,c(ve)]])],64))])])])),_:1})])),_:1},8,["show"])]))}}),[["__file","index.vue"]]);export{K as default};
@@ -1 +1 @@
1
- .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{line-height:32px;min-width:80px;padding-left:12px;text-align:right}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 12px}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block}
1
+ .classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter{cursor:pointer;font-size:18px}.classification-modal-block .n-card-header .svg-wrap .iconfont-table-filter:last-child{margin-left:16px}.classification-modal-block .n-card-header .svg-wrap .n-icon{cursor:pointer}.classification-modal-block .n-card__content{overflow-y:auto}.classification-modal-block .n-card__content .table-modal-list .list-title{background-color:#f2f2f4;border:1px solid #e1dfdf;display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-title .list-title-item{font-weight:700;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content{padding:0}.classification-modal-block .n-card__content .table-modal-list .list-content li{display:flex;height:52px;line-height:52px}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item{align-items:center;display:flex;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:25%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-item .n-icon{cursor:pointer;margin-right:8px}.classification-modal-block .n-card__content .table-modal-list .list-content li.checked,.classification-modal-block .n-card__content .table-modal-list .list-content li.checked .text{background-color:#f2f2f2}.classification-modal-block .n-card__content .table-modal-list .list-content li .text{background-color:#fff;display:inline-block;padding:0 10px;position:relative}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line{position:relative;text-align:center;width:75%}.classification-modal-block .n-card__content .table-modal-list .list-content li .list-content-line:before{border:1px solid #e8e8e8;content:"";left:0;margin-top:20px;position:absolute;width:100%}.classification-modal-block .n-card__content .table-modal-list .list-title-item{margin-left:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item{border-bottom:1px solid #e1dfdf;margin-left:-1px;margin-top:-1px;padding:0 10px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch{height:16px;min-width:28px;width:28px}.classification-modal-block .n-card__content .table-modal-list .list-content-item .ant-switch:after{height:12px;width:12px}.classification-modal-block .n-card__content .table-modal-list .list-content-radio,.classification-modal-block .n-card__content .table-modal-list .list-content-switch{text-align:center}.classification-modal-block .n-card__content .table-modal-list .anticon+.anticon{margin-left:8px}.classification-modal-block .n-card__content .class-filter-content .item-name{display:flex;height:32px;line-height:32px;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .item-name .label{text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .item-name .addAction{align-items:center;cursor:pointer;display:flex}.classification-modal-block .n-card__content .class-filter-content .item-name .blue{color:#2d7aff;margin-right:8px}.classification-modal-block .n-card__content .class-filter-content .n-form-item-label{width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content{align-items:center;display:flex;flex-wrap:wrap;line-height:32px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .label{display:inline-block;height:32px;line-height:32px;margin-bottom:10px;text-align:right;width:120px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn-dashed{border-color:#a6a6a6;color:#a6a6a6}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag{margin-bottom:10px;margin-right:10px;position:relative}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .anticon-close{color:#2d7aff;cursor:pointer;line-height:36px;position:absolute;right:5px;top:2px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content{align-items:center;background-color:rgba(45,122,255,.1);border:1px solid #2d7aff;border-radius:3px;box-sizing:border-box;color:#2d7aff;cursor:pointer;display:flex;justify-content:center;opacity:1;padding:0 10px;width:100px}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag .s-content span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .ant-input-disabled,.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .s-content{background-color:#2d7aff;color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .edit-tag.edit-tag-select .anticon-close{color:#fff}.classification-modal-block .n-card__content .class-filter-content .quickSearch-content .ant-btn{margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list{border-top:1px solid #e6e6e6;margin-bottom:6px;margin-top:16px;padding-top:12px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li{align-items:center;display:flex;list-style:none;margin-bottom:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .index-span{display:inline-block;width:30px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item{margin-right:10px;width:120px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .form-item.n-date-picker{width:auto}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper{display:flex;flex-wrap:wrap}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .value-cfg_wrapper .form-item{margin-right:10px}.classification-modal-block .n-card__content .class-filter-content .select-item-list li .delete-item-icon{color:red;cursor:pointer;font-size:18px}.classification-modal-block .n-card__footer{padding-top:10px}.classification-modal-block .n-card__footer .flex_between{display:flex;justify-content:space-between}.classification-modal-block .n-card__footer .flex_right{display:flex;justify-content:right}.classification-modal-block .n-card__footer .n-button{margin-left:8px}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.n-base-select-option__content{width:100%}.n-base-select-option__content .select-widget-dynamic-option{display:flex;flex-wrap:nowrap;width:100%}.n-base-select-option__content .select-widget-dynamic-option .select-widget-dynamic-item{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.quick-search-block .quick-item{margin-bottom:10px;min-width:32px;width:20%}.quick-search-block .quick-item .quick-row{align-items:center;display:flex}.quick-search-block .quick-item .quick-row .quick-item-title{box-sizing:border-box;flex-basis:134px;line-height:32px;min-width:130px;overflow:hidden;padding-left:4px;padding-right:4px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.quick-search-block .quick-item .quick-row .quick-item-col{align-items:center;display:flex;padding:0 4px;width:calc(100% - 134px)}.quick-search-block .quick-item .quick-row .quick-item-title-default{width:25%}.quick-search-block .quick-item .quick-row .quick-item-col-default{width:75%}.quick-search-block.quick-search-table .quick-item{display:inline-block}.quick-search-block.quick-search-table .quick-item.quick-block{display:block;width:100%}
@@ -1 +1 @@
1
- import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as l,createElementBlock as n,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import h from"./hooks/use-noData.js";import{getScaleViewState as w}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as _}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as A}from"./hooks/scaleview-submit.js";import{handleQueryParams as O,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";import K from"../../../_virtual/plugin-vue_export-helper.js";const V={class:"c-scale-view-block"},H=["innerHTML"],U={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),X={key:1,class:"footer"};var G=K(e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:K,emit:G}){const Q=e,{ScaleViewState:Z}=w(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ie,resetNodata:le}=h(),ne=O(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:he,skipCover:we,scaleEdit:Ee}=E(Q,$,{query:ne}),{initForm:_e}=_(Q,$,G,{query:ne}),{submitMethod:Ae}=A(Q,$,G,{query:ne}),{nextLogicEvent:Oe,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=ne;e&&($.shareId=e)})();const Te=e=>{try{le(),_e(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ie(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{_e(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Ae(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,Oe(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&($.choiceComObj[t.val_key]=o),Oe(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Oe(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},i=o.field,l=o.message,n=$.formArray.find((e=>e.databaseTitle===i));return n&&(i=n.title),ee.error(i+l),e(!1),!1}{const t=Ae();e(t)}}))})),Me=()=>{G("onCloseSetting")};return K({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(l(),n("div",V,[s(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),$.spinning||$.hasFrontAddress?s("v-if",!0):(l(),n(r,{key:0},[u(oe).noData?(l(),c(P,{key:0,noDataImg:u(oe).noDataImg,noDataTip:u(oe).noDataTip},null,8,["noDataImg","noDataTip"])):(l(),n(r,{key:1},[u(fe)&&!u(we)?(l(),c(F,p({key:0},u(Se),{onWriteGuage:Le}),null,16)):(l(),n(r,{key:1},[u(ge)?(l(),c(D,p({key:0,ref_key:"countdownDom",ref:te},u(he),{onCloseEvaluateCountdown:Pe}),null,16)):s("v-if",!0),d("div",{class:m(["scale-container",{"scale-container-nopadding":u(ce),"scale-container-hasfooter":u(ye)}]),style:v(u(ue))},[u(me)?(l(),c(u(N),{key:0,config:$.config,maxScore:$.maxScore},null,8,["config","maxScore"])):s("v-if",!0),f(u(q),{ref_key:"formRef",ref:ae,model:$.form,rules:$.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(l(!0),n(r,null,y($.formArray,((e,t)=>(l(),n(r,{key:(e.id||e.seq)+t},[u(pe)(e)?(l(),c(u(M),{key:0,path:e.val_key,"show-label":!u(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[d("span",{class:m({"scale-label-required":u(re)(e)}),innerHTML:u(de)(e)},null,10,H),u(re)(e)?(l(),n("span",U,"(必填)")):s("v-if",!0),u(be)(e)?(l(),n("span",W,b(u(be)(e)),1)):s("v-if",!0),u(se)(e)?(l(),n("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if($.evatipMap[e.id])return void De($.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=Q.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void ee.error(`${a} Is not a function`);let i=await o(e.id);i&&($.evatipMap[e.id]||($.evatipMap[e.id]=i,De(i)))})(e)},[Y,k(" 查看提示 ")],8,J)):s("v-if",!0)])),default:g((()=>[(l(),c(C(e.renderCom),p(u(Ce)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Fe,onOnChange:t=>((e,t)=>{$.form[t.val_key]=Ne(e)})(t,e),onVodFileList:Be}),null,16,["onOnChange"])),u(ke)(e)?(l(),c(B,{key:0,item:e},null,8,["item"])):s("v-if",!0)])),_:2},1032,["path","show-label"])):s("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),u(ye)?(l(),n("div",X,[s(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(l(),c(u(R),{key:0,onClick:Me},{default:g((()=>[k("取消")])),_:1})):s("v-if",!0),Q.isLock?s("v-if",!0):(l(),c(u(R),{key:1,onClick:xe,disabled:$.banSubmit,type:"primary"},{default:g((()=>[k("保存")])),_:1},8,["disabled"]))])):s("v-if",!0)],64))],64))],64))]))}}),[["__file","ScaleView.vue"]]);export{G as default};
1
+ import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as l,createElementBlock as n,createCommentVNode as s,Fragment as r,unref as u,createBlock as c,mergeProps as p,createElementVNode as d,normalizeClass as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as C,h as S}from"vue";import h from"./hooks/use-noData.js";import{getScaleViewState as w}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as _}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as A}from"./hooks/scaleview-submit.js";import{handleQueryParams as O,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import P from"./components/NoData.vue.js";import D from"./components/EvaluateCountdown.vue.js";import F from"./components/EvaluatePage.vue.js";import B from"./components/AnswerParse.vue.js";import N from"./components/ScaleScore.js";import{useDialog as x,useMessage as I,NForm as q,NFormItem as M,NButton as R}from"naive-ui";import K from"../../../_virtual/plugin-vue_export-helper.js";const V={class:"c-scale-view-block"},H=["innerHTML"],U={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y=d("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),X={key:1,class:"footer"};var G=K(e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:K,emit:G}){const Q=e,{ScaleViewState:Z}=w(),$=t(Z),z=x(),ee=I(),te=a(null),ae=a(null),{noDataState:oe,setNoData:ie,resetNodata:le}=h(),ne=O(),{showEvatip:se,isFormBoldOpen:re,scaleStyle:ue,handlePageClass:ce,isShowItem:pe,handleShowQuestionNumber:de,hasScore:me,isPreviewScale:ve,showEvaluateEntry:fe,showEvaluateCoundownPage:ge,showSaveBtn:ye,showEvaluateLabel:be,showAnswerParse:ke,propsConfig:Ce,evaluatePageProps:Se,evaluateCountdownProps:he,skipCover:we,scaleEdit:Ee}=E(Q,$,{query:ne}),{initForm:_e}=_(Q,$,G,{query:ne}),{submitMethod:Ae}=A(Q,$,G,{query:ne}),{nextLogicEvent:Oe,handleDynamicDataRelation:je}=L(Q,$);(()=>{let{id:e}=ne;e&&($.shareId=e)})();const Te=e=>{try{le(),_e(e)}catch(e){console.log(e,"--error"),$.spinning=!1,$.hasFrontAddress=!1,ie(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>Q.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),o((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;$.form={},$.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{_e(t)}))}),{immediate:!0});const Le=e=>{$.showEvaluateSettingWrap=!1,$.showEvaluateCountdown=!!e,G("startWriteScale")},Pe=()=>{console.log("----closeEvaluateCountdown"),$.showEvaluateCountdown=!1,ve.value||($.banSubmit=!0,Ae(),z.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{z.warning({title:"提示",content:()=>S("div",{class:"evatip-container"},[S("span","答案解析:"),S("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Fe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||($.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;$.form[t.val_key]=a,Oe(e,t,$.formArray),je(o,t,$.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&($.choiceComObj[t.val_key]=o),Oe(e,t,$.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Oe(e,t,$.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":$.submitForm[t.val_key]=e}},Be=(e,t)=>{console.log(t),$.form[t.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),$.labelSelectedList=t,{labelStr:a.join(","),labels:o}},xe=()=>{var e;if(!$.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=$.config;if(!t||!Object.keys(t).length&&!fe.value||Ee.value)return void Ie("确认要结束测评吗?");if("formIframe"==Q.openType&&fe.value)return void G("submitNoRequest");let a="确定要提前结束测评吗?";if(ge.value&&(null==(e=te.value)?void 0:e.getCountdownObj)){const e=te.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==$?void 0:$.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Ie(a)},Ie=e=>{z.warning({title:"温馨提示",content:()=>S("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:async()=>{const e=await qe();G("onSubmit",e)},onNegativeClick(){}})},qe=()=>new Promise(((e,t)=>{var a;null==(a=ae.value)||a.validate((t=>{var a;if(t){console.log(t);let o=(null==(a=t[0])?void 0:a[0])||{},i=o.field,l=o.message,n=$.formArray.find((e=>e.databaseTitle===i));return n&&(i=n.title),ee.error(i+l),e(!1),!1}{const t=Ae();e(t)}}))})),Me=()=>{G("onCloseSetting")};return K({getScaleData:()=>({...$}),onSubmitForm:qe,cancel:Me}),(e,t)=>(l(),n("div",V,[s(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),$.spinning||$.hasFrontAddress?s("v-if",!0):(l(),n(r,{key:0},[u(oe).noData?(l(),c(P,{key:0,noDataImg:u(oe).noDataImg,noDataTip:u(oe).noDataTip},null,8,["noDataImg","noDataTip"])):(l(),n(r,{key:1},[u(fe)&&!u(we)?(l(),c(F,p({key:0},u(Se),{onWriteGuage:Le}),null,16)):(l(),n(r,{key:1},[u(ge)?(l(),c(D,p({key:0,ref_key:"countdownDom",ref:te},u(he),{onCloseEvaluateCountdown:Pe}),null,16)):s("v-if",!0),d("div",{class:m(["scale-container",{"scale-container-nopadding":u(ce),"scale-container-hasfooter":u(ye)}]),style:v(u(ue))},[u(me)?(l(),c(u(N),{key:0,config:$.config,maxScore:$.maxScore},null,8,["config","maxScore"])):s("v-if",!0),f(u(q),{ref_key:"formRef",ref:ae,model:$.form,rules:$.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(l(!0),n(r,null,y($.formArray,((e,t)=>(l(),n(r,{key:(e.id||e.seq)+t},[u(pe)(e)?(l(),c(u(M),{key:0,path:e.val_key,"show-label":!u(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[d("span",{class:m({"scale-label-required":u(re)(e)}),innerHTML:u(de)(e)},null,10,H),u(re)(e)?(l(),n("span",U,"(必填)")):s("v-if",!0),u(be)(e)?(l(),n("span",W,b(u(be)(e)),1)):s("v-if",!0),u(se)(e)?(l(),n("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if($.evatipMap[e.id])return void De($.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=Q.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void ee.error(`${a} Is not a function`);let i=await o(e.id);i&&($.evatipMap[e.id]||($.evatipMap[e.id]=i,De(i)))})(e)},[Y,k(" 查看提示 ")],8,J)):s("v-if",!0)])),default:g((()=>[(l(),c(C(e.renderCom),p(u(Ce)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Fe,onOnChange:t=>((e,t)=>{$.form[t.val_key]=Ne(e)})(t,e),onVodFileList:Be}),null,16,["onOnChange"])),u(ke)(e)?(l(),c(B,{key:0,item:e},null,8,["item"])):s("v-if",!0)])),_:2},1032,["path","show-label"])):s("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),u(ye)?(l(),n("div",X,[s(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(l(),c(u(R),{key:0,onClick:Me},{default:g((()=>[k("取消")])),_:1})):s("v-if",!0),Q.isLock?s("v-if",!0):(l(),c(u(R),{key:1,onClick:xe,disabled:$.banSubmit,type:"primary"},{default:g((()=>[k("保存")])),_:1},8,["disabled"]))])):s("v-if",!0)],64))],64))],64))]))}}),[["__file","ScaleView.vue"]]);export{G as default};
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
74
74
  modalWidth: string;
75
75
  modalHeight: string;
76
76
  handleOk: Function;
77
- changeSize: boolean;
78
77
  cancel: Function;
78
+ changeSize: boolean;
79
79
  }>;
80
80
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../_virtual/plugin-vue_export-helper.js";import A from"../../../shared/utils/vexutilsExpand.js";const O={key:0,class:"label-disable-wrap"},j=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},k={class:"label-wrap"},T=["id"],_={class:"edit-label-type"};var B=x(t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:x,emit:B}){const D=t,F=L(),V=e(null),P=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!P.inited)return!1;let t=P.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(...P.labelSelectedEdit,...D.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(P.labelSelectedEdit=$.value,"object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=P.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await D.saveLabelItem(a,t);i&&(F.success("添加成功!"),B("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=P.labelSelectedEdit)?void 0:i.length)&&A.clone(P.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}P.labelSelectedEdit=[...d],N.value++,D.explicit&&B("explicitOnChange",[...P.labelSelectedEdit])},X=async t=>{const{status:e}=await D.deleteLabel(t,D.item);if(e){F.success("删除成功!");for(const e in P.labelConfig){const l=P.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&P.labelConfig[e].itemList.splice(l,1)}const e=P.labelSelectedEdit||[],l=D.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),B("change",[...l],D.item)}B("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=V.value.querySelector("a[href='"+l+"']"),e&&e.click(),P.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);P.cacheAnchorKey=e},et=()=>{var t;return null==(t=V.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>D.labelOptions),(t=>{t&&(()=>{var t;if(D.isLock)return;const e=JSON.parse(JSON.stringify(D.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}P.labelConfig=e,C((()=>{let t;R(),D.explicit&&P.inited&&(t=P.labelAnchorKey),z(P.labelConfig,t),P.inited=!0}))})()}),{immediate:!0,deep:!0}),x({resetShowAdd:()=>{let{labelObj:t}=P.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([...P.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=P.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(P.labelSelectedEdit)){const e=P.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&P.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:V},[d(W)?(n(),s("div",O,j)):o("v-if",!0),r(c("div",K,[c("div",k,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(P.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(P.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",_,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,T),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!d(W)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{B as default};
1
+ import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as r,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../_virtual/plugin-vue_export-helper.js";import A from"../../../shared/utils/vexutilsExpand.js";const O={key:0,class:"label-disable-wrap"},j=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},k={class:"label-wrap"},T=["id"],_={class:"edit-label-type"};var B=x(t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:x,emit:B}){const D=t,F=L(),V=e(null),P=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!P.inited)return!1;let t=P.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(...P.labelSelectedEdit,...D.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(P.labelSelectedEdit=$.value,"object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=P.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await D.saveLabelItem(a,t);i&&(F.success("添加成功!"),B("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let r=(null==(i=P.labelSelectedEdit)?void 0:i.length)&&A.clone(P.labelSelectedEdit,!0)||[];if(t){if(r.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;r=r.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}r.push(e)}else{const t=r.findIndex((t=>t.labelId==e.labelId));-1!=t&&r.splice(t,1)}P.labelSelectedEdit=[...r],N.value++,D.explicit&&B("explicitOnChange",[...P.labelSelectedEdit])},X=async t=>{const{status:e}=await D.deleteLabel(t,D.item);if(e){F.success("删除成功!");for(const e in P.labelConfig){const l=P.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&P.labelConfig[e].itemList.splice(l,1)}const e=P.labelSelectedEdit||[],l=D.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),B("change",[...l],D.item)}B("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=V.value.querySelector("a[href='"+l+"']"),e&&e.click(),P.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);P.cacheAnchorKey=e},et=()=>{var t;return null==(t=V.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>D.labelOptions),(t=>{t&&(()=>{var t;if(D.isLock)return;const e=JSON.parse(JSON.stringify(D.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}P.labelConfig=e,C((()=>{let t;R(),D.explicit&&P.inited&&(t=P.labelAnchorKey),z(P.labelConfig,t),P.inited=!0}))})()}),{immediate:!0,deep:!0}),x({resetShowAdd:()=>{let{labelObj:t}=P.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([...P.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=P.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(P.labelSelectedEdit)){const e=P.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&P.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:V},[r(W)?(n(),s("div",O,j)):d("v-if",!0),o(c("div",K,[c("div",k,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(r(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(P.labelConfig,((t,e)=>(n(),y(r(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(P.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",_,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,T),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:r(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!r(W)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{B as default};
@@ -95,6 +95,12 @@ declare const _default: import("vue").DefineComponent<{
95
95
  };
96
96
  readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
97
97
  actionType: "check" | "uncheck";
98
+ /**
99
+ * 取消勾选树节点
100
+ * baseKeys:基准值
101
+ * currentTree:当前树节点
102
+ * value:树节点的key值
103
+ */
98
104
  value: string | number;
99
105
  }) => void>>;
100
106
  readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
@@ -1869,7 +1869,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
1869
1869
  type: BooleanConstructor;
1870
1870
  };
1871
1871
  bordered: {
1872
- type: BooleanConstructor;
1872
+ type: (BooleanConstructor | StringConstructor)[];
1873
1873
  default: boolean;
1874
1874
  };
1875
1875
  }, {
@@ -2001,7 +2001,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2001
2001
  type: BooleanConstructor;
2002
2002
  };
2003
2003
  bordered: {
2004
- type: BooleanConstructor;
2004
+ type: (BooleanConstructor | StringConstructor)[];
2005
2005
  default: boolean;
2006
2006
  };
2007
2007
  }>> & {
@@ -2449,7 +2449,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2449
2449
  type: BooleanConstructor;
2450
2450
  };
2451
2451
  bordered: {
2452
- type: BooleanConstructor;
2452
+ type: (BooleanConstructor | StringConstructor)[];
2453
2453
  default: boolean;
2454
2454
  };
2455
2455
  }>> & {
@@ -2467,7 +2467,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
2467
2467
  consumer: boolean;
2468
2468
  enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
2469
2469
  linebarAutoHidden: boolean;
2470
- bordered: boolean;
2470
+ bordered: string | boolean;
2471
2471
  }>;
2472
2472
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2473
2473
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{