cnhis-design-vue 3.1.41-beta.15 → 3.1.41-beta.17
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 +87 -87
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/field-set/index.d.ts +8 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +5 -0
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +213 -121
- package/es/components/info-header/src/InfoDescription.vue.d.ts +265 -0
- package/es/components/info-header/src/InfoDescription.vue.js +1 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +217 -125
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/table-filter/index.d.ts +10 -6
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +4 -2
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +2 -2
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +4 -2
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/style/index.css +1 -1
- package/es/env.d.ts +24 -24
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyObject, Func } from '../../../../es/shared/types';
|
|
2
|
-
import {
|
|
2
|
+
import { PropType, VNode } from 'vue';
|
|
3
3
|
declare type PatientTag = Partial<{
|
|
4
4
|
type?: 'warning' | 'info';
|
|
5
5
|
content: string;
|
|
@@ -132,6 +132,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
132
|
"onUpdate:compact"?: ((...args: any[]) => any) | undefined;
|
|
133
133
|
}>>;
|
|
134
134
|
emit: (event: "openPatientInfo" | "fieldSet" | "update:compact", ...args: any[]) => void;
|
|
135
|
+
infoDescriptionRef: import("vue").Ref<{
|
|
136
|
+
updateColumn: Func;
|
|
137
|
+
} | undefined>;
|
|
138
|
+
updateColumn: () => any;
|
|
135
139
|
toggleCompact: () => Promise<void>;
|
|
136
140
|
openPatientInfo: () => void;
|
|
137
141
|
fieldSet: () => void;
|
|
@@ -156,136 +160,114 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
156
160
|
textColor?: string | undefined;
|
|
157
161
|
} | undefined;
|
|
158
162
|
}>[]>;
|
|
159
|
-
|
|
160
|
-
getEllipsisStyle: (index: number, { bold, contentStyle }?: AnyObject) => CSSProperties;
|
|
161
|
-
needHidden: (item: AnyObject) => boolean;
|
|
162
|
-
infoRef: import("vue").Ref<HTMLElement | undefined>;
|
|
163
|
-
columnNum: import("vue").Ref<number>;
|
|
164
|
-
maxColumnWidth: import("vue").Ref<number>;
|
|
165
|
-
descriptionWidthList: import("vue").Ref<{
|
|
166
|
-
toString: (radix?: number | undefined) => string;
|
|
167
|
-
toFixed: (fractionDigits?: number | undefined) => string;
|
|
168
|
-
toExponential: (fractionDigits?: number | undefined) => string;
|
|
169
|
-
toPrecision: (precision?: number | undefined) => string;
|
|
170
|
-
valueOf: () => number;
|
|
171
|
-
toLocaleString: {
|
|
172
|
-
(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
|
|
173
|
-
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
|
|
174
|
-
};
|
|
175
|
-
}[]>;
|
|
176
|
-
updateColumn: () => Promise<void>;
|
|
177
|
-
timer: any;
|
|
178
|
-
stopInterval: () => void;
|
|
179
|
-
startInterval: () => void;
|
|
180
|
-
NDescriptions: any;
|
|
181
|
-
NDescriptionsItem: import("vue").DefineComponent<{
|
|
182
|
-
readonly label: StringConstructor;
|
|
183
|
-
readonly span: {
|
|
184
|
-
readonly type: NumberConstructor;
|
|
185
|
-
readonly default: 1;
|
|
186
|
-
};
|
|
187
|
-
readonly labelStyle: PropType<string | CSSProperties>;
|
|
188
|
-
readonly contentStyle: PropType<string | CSSProperties>;
|
|
189
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
190
|
-
readonly label: StringConstructor;
|
|
191
|
-
readonly span: {
|
|
192
|
-
readonly type: NumberConstructor;
|
|
193
|
-
readonly default: 1;
|
|
194
|
-
};
|
|
195
|
-
readonly labelStyle: PropType<string | CSSProperties>;
|
|
196
|
-
readonly contentStyle: PropType<string | CSSProperties>;
|
|
197
|
-
}>>, {
|
|
198
|
-
readonly span: number;
|
|
199
|
-
}>;
|
|
200
|
-
NTag: any;
|
|
201
|
-
NScrollbar: any;
|
|
163
|
+
NEllipsis: any;
|
|
202
164
|
NImage: any;
|
|
203
165
|
NPopover: any;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
type:
|
|
208
|
-
required:
|
|
209
|
-
|
|
210
|
-
rootSlots: {
|
|
211
|
-
type: PropType<Record<string, Func<any[], any>>>;
|
|
212
|
-
};
|
|
213
|
-
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
214
|
-
renderer: {
|
|
215
|
-
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
216
|
-
required: true;
|
|
166
|
+
NTag: any;
|
|
167
|
+
InfoDescription: import("vue").DefineComponent<{
|
|
168
|
+
compact: {
|
|
169
|
+
type: BooleanConstructor;
|
|
170
|
+
required: false;
|
|
171
|
+
default: boolean;
|
|
217
172
|
};
|
|
218
|
-
|
|
219
|
-
type:
|
|
173
|
+
infoList: {
|
|
174
|
+
type: ArrayConstructor;
|
|
175
|
+
required: false;
|
|
176
|
+
default: () => never[];
|
|
220
177
|
};
|
|
221
|
-
|
|
222
|
-
InfoEllipsis: import("vue").DefineComponent<{
|
|
223
|
-
content: {
|
|
178
|
+
labelField: {
|
|
224
179
|
type: StringConstructor;
|
|
180
|
+
required: false;
|
|
225
181
|
default: string;
|
|
226
182
|
};
|
|
227
|
-
|
|
228
|
-
type: StringConstructor;
|
|
229
|
-
};
|
|
230
|
-
contentStyle: {
|
|
231
|
-
type: PropType<CSSProperties>;
|
|
232
|
-
default: () => {};
|
|
233
|
-
};
|
|
234
|
-
}, {
|
|
235
|
-
NEllipsis: any;
|
|
236
|
-
NTooltip: any;
|
|
237
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
238
|
-
content: {
|
|
183
|
+
valueField: {
|
|
239
184
|
type: StringConstructor;
|
|
185
|
+
required: false;
|
|
240
186
|
default: string;
|
|
241
187
|
};
|
|
242
|
-
|
|
243
|
-
type: StringConstructor;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
type: PropType<CSSProperties>;
|
|
247
|
-
default: () => {};
|
|
248
|
-
};
|
|
249
|
-
}>>, {
|
|
250
|
-
content: string;
|
|
251
|
-
contentStyle: CSSProperties;
|
|
252
|
-
}>;
|
|
253
|
-
HiddenContent: import("vue").DefineComponent<{
|
|
254
|
-
content: {
|
|
255
|
-
type: StringConstructor;
|
|
256
|
-
default: string;
|
|
188
|
+
minColumnWidth: {
|
|
189
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
190
|
+
required: false;
|
|
191
|
+
default: number;
|
|
257
192
|
};
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
193
|
+
rowHeight: {
|
|
194
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
195
|
+
required: false;
|
|
196
|
+
default: number;
|
|
261
197
|
};
|
|
262
|
-
|
|
263
|
-
type:
|
|
264
|
-
|
|
198
|
+
rootSlot: {
|
|
199
|
+
type: ObjectConstructor;
|
|
200
|
+
required: true;
|
|
265
201
|
};
|
|
266
202
|
}, {
|
|
267
|
-
props:
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
203
|
+
props: {
|
|
204
|
+
compact: boolean;
|
|
205
|
+
infoList: AnyObject[];
|
|
206
|
+
labelField: string;
|
|
207
|
+
valueField: string;
|
|
208
|
+
minColumnWidth: string | number;
|
|
209
|
+
rowHeight: string | number;
|
|
210
|
+
rootSlot: Record<string, Func<any[], any>>;
|
|
211
|
+
};
|
|
212
|
+
getDescriptionItemStyle: ({ bold, contentStyle }?: AnyObject) => import("vue").CSSProperties;
|
|
213
|
+
getEllipsisStyle: (index: number, { bold, contentStyle }?: AnyObject) => import("vue").CSSProperties;
|
|
214
|
+
needHidden: (item: AnyObject) => boolean;
|
|
215
|
+
columnNum: import("vue").Ref<number>;
|
|
216
|
+
infoRef: import("vue").Ref<HTMLElement | undefined>;
|
|
217
|
+
maxColumnWidth: import("vue").Ref<number>;
|
|
218
|
+
descriptionWidthList: import("vue").Ref<{
|
|
219
|
+
toString: (radix?: number | undefined) => string;
|
|
220
|
+
toFixed: (fractionDigits?: number | undefined) => string;
|
|
221
|
+
toExponential: (fractionDigits?: number | undefined) => string;
|
|
222
|
+
toPrecision: (precision?: number | undefined) => string;
|
|
223
|
+
valueOf: () => number;
|
|
224
|
+
toLocaleString: {
|
|
225
|
+
(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): string;
|
|
226
|
+
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions | undefined): string;
|
|
271
227
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
228
|
+
}[]>;
|
|
229
|
+
updateColumn: () => Promise<void>;
|
|
230
|
+
timer: any;
|
|
231
|
+
stopInterval: () => void;
|
|
232
|
+
startInterval: () => void;
|
|
233
|
+
NDescriptions: any;
|
|
234
|
+
NDescriptionsItem: import("vue").DefineComponent<{
|
|
235
|
+
readonly label: StringConstructor;
|
|
236
|
+
readonly span: {
|
|
237
|
+
readonly type: NumberConstructor;
|
|
238
|
+
readonly default: 1;
|
|
275
239
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
240
|
+
readonly labelStyle: PropType<string | import("vue").CSSProperties>;
|
|
241
|
+
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
242
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
243
|
+
readonly label: StringConstructor;
|
|
244
|
+
readonly span: {
|
|
245
|
+
readonly type: NumberConstructor;
|
|
246
|
+
readonly default: 1;
|
|
279
247
|
};
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
maxWidth: string;
|
|
285
|
-
width: string;
|
|
248
|
+
readonly labelStyle: PropType<string | import("vue").CSSProperties>;
|
|
249
|
+
readonly contentStyle: PropType<string | import("vue").CSSProperties>;
|
|
250
|
+
}>>, {
|
|
251
|
+
readonly span: number;
|
|
286
252
|
}>;
|
|
287
|
-
|
|
288
|
-
|
|
253
|
+
NScrollbar: any;
|
|
254
|
+
SlotRender: import("vue").DefineComponent<{
|
|
255
|
+
renderer: {
|
|
256
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
257
|
+
required: true;
|
|
258
|
+
};
|
|
259
|
+
rootSlots: {
|
|
260
|
+
type: PropType<Record<string, Func<any[], any>>>;
|
|
261
|
+
};
|
|
262
|
+
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
263
|
+
renderer: {
|
|
264
|
+
type: PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
265
|
+
required: true;
|
|
266
|
+
};
|
|
267
|
+
rootSlots: {
|
|
268
|
+
type: PropType<Record<string, Func<any[], any>>>;
|
|
269
|
+
};
|
|
270
|
+
}>>, {}>;
|
|
289
271
|
InfoEllipsis: import("vue").DefineComponent<{
|
|
290
272
|
content: {
|
|
291
273
|
type: StringConstructor;
|
|
@@ -295,7 +277,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
277
|
type: StringConstructor;
|
|
296
278
|
};
|
|
297
279
|
contentStyle: {
|
|
298
|
-
type: PropType<CSSProperties>;
|
|
280
|
+
type: PropType<import("vue").CSSProperties>;
|
|
299
281
|
default: () => {};
|
|
300
282
|
};
|
|
301
283
|
}, {
|
|
@@ -310,29 +292,139 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
310
292
|
type: StringConstructor;
|
|
311
293
|
};
|
|
312
294
|
contentStyle: {
|
|
313
|
-
type: PropType<CSSProperties>;
|
|
295
|
+
type: PropType<import("vue").CSSProperties>;
|
|
296
|
+
default: () => {};
|
|
297
|
+
};
|
|
298
|
+
}>>, {
|
|
299
|
+
content: string;
|
|
300
|
+
contentStyle: import("vue").CSSProperties;
|
|
301
|
+
}>;
|
|
302
|
+
HiddenContent: import("vue").DefineComponent<{
|
|
303
|
+
content: {
|
|
304
|
+
type: StringConstructor;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
tip: StringConstructor;
|
|
308
|
+
width: {
|
|
309
|
+
type: NumberConstructor;
|
|
310
|
+
};
|
|
311
|
+
contentStyle: {
|
|
312
|
+
type: PropType<import("vue").CSSProperties>;
|
|
313
|
+
default: () => {};
|
|
314
|
+
};
|
|
315
|
+
}, {
|
|
316
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
317
|
+
content: {
|
|
318
|
+
type: StringConstructor;
|
|
319
|
+
default: string;
|
|
320
|
+
};
|
|
321
|
+
tip: StringConstructor;
|
|
322
|
+
width: {
|
|
323
|
+
type: NumberConstructor;
|
|
324
|
+
};
|
|
325
|
+
contentStyle: {
|
|
326
|
+
type: PropType<import("vue").CSSProperties>;
|
|
327
|
+
default: () => {};
|
|
328
|
+
};
|
|
329
|
+
}>> & {}>>;
|
|
330
|
+
hidden: import("vue").Ref<boolean>;
|
|
331
|
+
toggleHidden: () => void;
|
|
332
|
+
wrapperStyle: import("vue").ComputedRef<{
|
|
333
|
+
maxWidth: string;
|
|
334
|
+
width: string;
|
|
335
|
+
}>;
|
|
336
|
+
parsedContentStyle: import("vue").ComputedRef<{}>;
|
|
337
|
+
displayContent: import("vue").ComputedRef<string>;
|
|
338
|
+
InfoEllipsis: import("vue").DefineComponent<{
|
|
339
|
+
content: {
|
|
340
|
+
type: StringConstructor;
|
|
341
|
+
default: string;
|
|
342
|
+
};
|
|
343
|
+
tip: {
|
|
344
|
+
type: StringConstructor;
|
|
345
|
+
};
|
|
346
|
+
contentStyle: {
|
|
347
|
+
type: PropType<import("vue").CSSProperties>;
|
|
348
|
+
default: () => {};
|
|
349
|
+
};
|
|
350
|
+
}, {
|
|
351
|
+
NEllipsis: any;
|
|
352
|
+
NTooltip: any;
|
|
353
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
354
|
+
content: {
|
|
355
|
+
type: StringConstructor;
|
|
356
|
+
default: string;
|
|
357
|
+
};
|
|
358
|
+
tip: {
|
|
359
|
+
type: StringConstructor;
|
|
360
|
+
};
|
|
361
|
+
contentStyle: {
|
|
362
|
+
type: PropType<import("vue").CSSProperties>;
|
|
363
|
+
default: () => {};
|
|
364
|
+
};
|
|
365
|
+
}>>, {
|
|
366
|
+
content: string;
|
|
367
|
+
contentStyle: import("vue").CSSProperties;
|
|
368
|
+
}>;
|
|
369
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
370
|
+
content: {
|
|
371
|
+
type: StringConstructor;
|
|
372
|
+
default: string;
|
|
373
|
+
};
|
|
374
|
+
tip: StringConstructor;
|
|
375
|
+
width: {
|
|
376
|
+
type: NumberConstructor;
|
|
377
|
+
};
|
|
378
|
+
contentStyle: {
|
|
379
|
+
type: PropType<import("vue").CSSProperties>;
|
|
314
380
|
default: () => {};
|
|
315
381
|
};
|
|
316
382
|
}>>, {
|
|
317
383
|
content: string;
|
|
318
|
-
contentStyle: CSSProperties;
|
|
384
|
+
contentStyle: import("vue").CSSProperties;
|
|
319
385
|
}>;
|
|
320
386
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
321
|
-
|
|
387
|
+
compact: {
|
|
388
|
+
type: BooleanConstructor;
|
|
389
|
+
required: false;
|
|
390
|
+
default: boolean;
|
|
391
|
+
};
|
|
392
|
+
infoList: {
|
|
393
|
+
type: ArrayConstructor;
|
|
394
|
+
required: false;
|
|
395
|
+
default: () => never[];
|
|
396
|
+
};
|
|
397
|
+
labelField: {
|
|
398
|
+
type: StringConstructor;
|
|
399
|
+
required: false;
|
|
400
|
+
default: string;
|
|
401
|
+
};
|
|
402
|
+
valueField: {
|
|
322
403
|
type: StringConstructor;
|
|
404
|
+
required: false;
|
|
323
405
|
default: string;
|
|
324
406
|
};
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
407
|
+
minColumnWidth: {
|
|
408
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
409
|
+
required: false;
|
|
410
|
+
default: number;
|
|
328
411
|
};
|
|
329
|
-
|
|
330
|
-
type:
|
|
331
|
-
|
|
412
|
+
rowHeight: {
|
|
413
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
414
|
+
required: false;
|
|
415
|
+
default: number;
|
|
416
|
+
};
|
|
417
|
+
rootSlot: {
|
|
418
|
+
type: ObjectConstructor;
|
|
419
|
+
required: true;
|
|
332
420
|
};
|
|
333
421
|
}>>, {
|
|
334
|
-
|
|
335
|
-
|
|
422
|
+
compact: boolean;
|
|
423
|
+
infoList: unknown[];
|
|
424
|
+
labelField: string;
|
|
425
|
+
valueField: string;
|
|
426
|
+
minColumnWidth: string | number;
|
|
427
|
+
rowHeight: string | number;
|
|
336
428
|
}>;
|
|
337
429
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("openPatientInfo" | "fieldSet" | "update:compact")[], "openPatientInfo" | "fieldSet" | "update:compact", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
338
430
|
compact: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
1
|
+
import{defineComponent as e,ref as t,computed as n,openBlock as a,createElementBlock as i,normalizeClass as o,createElementVNode as r,createCommentVNode as s,renderSlot as l,Fragment as f,createVNode as c,unref as d,withCtx as p,mergeProps as u,toDisplayString as v,renderList as g,createBlock as m,resolveDynamicComponent as h,createTextVNode as y,h as I,nextTick as _}from"vue";import{isString as b,isArray as k}from"lodash-es";import{NPopover as w,NImage as x,NTag as $,NEllipsis as S}from"naive-ui";import z from"./InfoDescription.vue.js";import H from"../../../_virtual/plugin-vue_export-helper.js";const P={class:"c-info-header__operation"},j={key:0,class:"c-info-header__divider"},C={class:"c-info-header__patient"},L={class:"c-info-header__patientHeader"},F={key:0,class:"c-info-header__patientHeader--name"},M={key:1,class:"c-info-header__patientHeader--sex"},q={key:2,class:"c-info-header__patientHeader--age"},A={class:"c-info-header__setting"},D=["onClick"];var N=H(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},separator:{type:String,default:":"},patientInfo:{type:Object,default:()=>({})},infoList:{type:Array,required:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:32},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]}},emits:["openPatientInfo","fieldSet","update:compact"],setup(e,{expose:H,emit:N}){const B=e,O=t();function R(){var e;return null==(e=O.value)?void 0:e.updateColumn()}const U={patientInfo:{event:function(){N("openPatientInfo")},render:()=>[I("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){N("fieldSet")},render:()=>[I("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){N("update:compact",!B.compact),await _(),await R()},render:()=>[I("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},W=n((()=>B.settingIcons.map((e=>(b(e)?U[e]:e)||{}))));function E({type:e="warning"}){return{color:{warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"}[e],textColor:{warning:"#fff",info:"#2563F4"}[e]}}const G=n((()=>B.patientInfo&&k(B.patientInfo.tagList)?B.patientInfo.tagList.filter((e=>e.render||b(e.content)&&e.content)):[]));return H({update:R}),(t,n)=>(a(),i("div",{class:o(["c-info-header",{"is-compact":e.compact}])},[r("section",P,[s(" 操作区插槽 "),l(t.$slots,"operation")]),t.$slots.operation?(a(),i("div",j)):s("v-if",!0),r("section",C,[s(" 患者信息区插槽 "),l(t.$slots,"patientModule"),s(" 头像区插槽 "),l(t.$slots,"avatarModule",{},(()=>[t.$slots.avatarModule?s("v-if",!0):(a(),i(f,{key:0},[s(" 头像插槽 "),l(t.$slots,"avatar",{},(()=>[c(d(w),null,{trigger:p((()=>[c(d(x),u({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:p((()=>[c(d(x),u({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),r("section",null,[r("header",L,[e.patientInfo.name?(a(),i("div",F,v(e.patientInfo.name),1)):s("v-if",!0),e.patientInfo.sex?(a(),i("div",M,"/ "+v(e.patientInfo.sex),1)):s("v-if",!0),null!=e.patientInfo.age?(a(),i("div",q," / "+v(e.patientInfo.age)+v(e.patientInfo.ageUnit||"岁"),1)):s("v-if",!0),s(" tag区插槽 "),l(t.$slots,"tags",{tagList:d(G)},(()=>[(a(!0),i(f,null,g(e.patientInfo.tagList||[],(e=>(a(),m(d($),u({key:e.content,size:"medium",bordered:!1,color:E(e)},e),{default:p((()=>[e.render?(a(),m(h(e.render),{key:0})):(a(),m(d(S),{key:1,style:{"max-width":"96px"}},{default:p((()=>[y(v(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),s(" 头像信息区插槽 "),l(t.$slots,"avatarInfo")])],64))]))]),c(z,u({ref_key:"infoDescriptionRef",ref:O,"root-slot":t.$slots},t.$props),null,16,["root-slot"]),r("section",A,[s(" 设置区插槽 "),l(t.$slots,"setting"),t.$slots.setting?s("v-if",!0):(a(!0),i(f,{key:0},g(d(W),(e=>(a(),i("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(a(),m(h(e.render)))],8,D)))),128))])],2))}}),[["__file","InfoHeader.vue"]]);export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as m,mergeProps as v,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as V,NFormItem as F,NButton as K}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:me,hasScore:ve,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,scaleEdit:Se}=_(Q,z,{query:ne}),{initForm:Ee}=A(Q,z,H,{query:ne}),{submitMethod:_e}=j(Q,z,H,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:je}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const Te=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{Ee(o)}))}),{immediate:!0});const De=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Oe=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,_e(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},Le=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},xe=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,Ae(e,o,z.formArray),je(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),Ae(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Ie=(e,o)=>{console.log(o),z.form[o.val_key]=e},Pe=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},Ne=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void qe("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value||Se.value)return void qe("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}qe(a)},qe=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Me()},onNegativeClick(){}})},Me=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}_e()}))},Be=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:Ne,cancel:Be}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),m(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),m(N,v({key:0},r(Ce),{onWriteGuage:De}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),m(P,v({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Oe}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(ve)?(n(),m(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(V),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),m(r(F),{key:0,path:e.val_key,"show-label":!r(D)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(me)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void Le(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,Le(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),m(C(e.renderCom),v(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:xe,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Pe(e)})(o,e),onVodFileList:Ie}),null,16,["onOnChange"])),r(ke)(e)?(n(),m(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),m(r(K),{key:0,onClick:Be},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),m(r(K),{key:1,onClick:Ne,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
|
|
1
|
+
import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as m,mergeProps as v,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as V,NFormItem as F,NButton as K}from"naive-ui";import H from"../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:me,hasScore:ve,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,scaleEdit:Se}=_(Q,z,{query:ne}),{initForm:Ee}=A(Q,z,H,{query:ne}),{submitMethod:_e}=j(Q,z,H,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:je}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const Te=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Te(e):e.guage_id&&Te(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{Ee(o)}))}),{immediate:!0});const De=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Oe=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,_e(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},Le=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},xe=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,Ae(e,o,z.formArray),je(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),Ae(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Ie=(e,o)=>{console.log(o),z.form[o.val_key]=e},Pe=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},Ne=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void qe("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value||Se.value)return void qe("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}qe(a)},qe=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Me()},onNegativeClick(){}})},Me=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}_e()}))},Be=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:Ne,cancel:Be}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),m(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),m(N,v({key:0},r(Ce),{onWriteGuage:De}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),m(P,v({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Oe}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(ve)?(n(),m(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(V),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),m(r(F),{key:0,path:e.val_key,"show-label":!r(D)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(me)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void Le(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,Le(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),m(C(e.renderCom),v(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:xe,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Pe(e)})(o,e),onVodFileList:Ie}),null,16,["onOnChange"])),r(ke)(e)?(n(),m(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),m(r(K),{key:0,onClick:Be},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),m(r(K),{key:1,onClick:Ne,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
|
|
@@ -81,8 +81,9 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
81
81
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
82
82
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
83
83
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
84
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
84
85
|
}>>;
|
|
85
|
-
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", ...args: any[]) => void;
|
|
86
|
+
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", ...args: any[]) => void;
|
|
86
87
|
baseLeftWidth: import("vue").Ref<number>;
|
|
87
88
|
classificationWidth: import("vue").Ref<number>;
|
|
88
89
|
quickSearchWidth: import("vue").Ref<number>;
|
|
@@ -329,7 +330,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
329
330
|
title: string;
|
|
330
331
|
iconClass: string;
|
|
331
332
|
}>;
|
|
332
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
333
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
333
334
|
showSettings: {
|
|
334
335
|
type: import("vue").PropType<import("./src/types").IsettingsType>;
|
|
335
336
|
default: () => {};
|
|
@@ -350,6 +351,7 @@ declare const CBaseSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
350
351
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
351
352
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
352
353
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
354
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
353
355
|
}, {
|
|
354
356
|
showSettings: import("./src/types").IsettingsType;
|
|
355
357
|
searchFieldList: import("./src/types").IApiServerType[];
|
|
@@ -447,12 +449,13 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
447
449
|
};
|
|
448
450
|
}>> & {
|
|
449
451
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
452
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
450
453
|
onFilterCountChange?: ((...args: any[]) => any) | undefined;
|
|
451
454
|
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
452
455
|
onUpdateTableCondiTion?: ((...args: any[]) => any) | undefined;
|
|
453
456
|
onClearQuickSearchConfig?: ((...args: any[]) => any) | undefined;
|
|
454
457
|
}>>;
|
|
455
|
-
emit: (event: "onSave" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", ...args: any[]) => void;
|
|
458
|
+
emit: (event: "onSave" | "getParam" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", ...args: any[]) => void;
|
|
456
459
|
ageAttrDomList: any;
|
|
457
460
|
formRef: any;
|
|
458
461
|
formValue: import("vue").Ref<{
|
|
@@ -1121,7 +1124,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1121
1124
|
}>> & {
|
|
1122
1125
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1123
1126
|
}, {}>;
|
|
1124
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig")[], "onSave" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1127
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "getParam" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig")[], "onSave" | "getParam" | "filterCountChange" | "closeModal" | "updateTableCondiTion" | "clearQuickSearchConfig", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1125
1128
|
searchFieldList: {
|
|
1126
1129
|
type: import("vue").PropType<import("./src/types").IApiServerType[]>;
|
|
1127
1130
|
default: () => never[];
|
|
@@ -1143,6 +1146,7 @@ declare const CQuickSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1143
1146
|
};
|
|
1144
1147
|
}>> & {
|
|
1145
1148
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
1149
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
1146
1150
|
onFilterCountChange?: ((...args: any[]) => any) | undefined;
|
|
1147
1151
|
onCloseModal?: ((...args: any[]) => any) | undefined;
|
|
1148
1152
|
onUpdateTableCondiTion?: ((...args: any[]) => any) | undefined;
|
|
@@ -2033,8 +2037,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2033
2037
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
2034
2038
|
}>>;
|
|
2035
2039
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
2036
|
-
valueCp: import("vue").WritableComputedRef<
|
|
2037
|
-
presetValCp: import("vue").WritableComputedRef<
|
|
2040
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
2041
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
2038
2042
|
widgetType: import("vue").ComputedRef<any>;
|
|
2039
2043
|
optionSetting: import("vue").ComputedRef<any>;
|
|
2040
2044
|
mappingConfig: import("vue").ComputedRef<any>;
|
|
@@ -80,8 +80,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
80
80
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
81
81
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
82
82
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
83
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
83
84
|
}>>;
|
|
84
|
-
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", ...args: any[]) => void;
|
|
85
|
+
emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", ...args: any[]) => void;
|
|
85
86
|
baseLeftWidth: import("vue").Ref<number>;
|
|
86
87
|
classificationWidth: import("vue").Ref<number>;
|
|
87
88
|
quickSearchWidth: import("vue").Ref<number>;
|
|
@@ -328,7 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
328
329
|
title: string;
|
|
329
330
|
iconClass: string;
|
|
330
331
|
}>;
|
|
331
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
332
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
332
333
|
showSettings: {
|
|
333
334
|
type: PropType<IsettingsType>;
|
|
334
335
|
default: () => {};
|
|
@@ -349,6 +350,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
349
350
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
350
351
|
onHandleReset?: ((...args: any[]) => any) | undefined;
|
|
351
352
|
onOutSearchInit?: ((...args: any[]) => any) | undefined;
|
|
353
|
+
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
352
354
|
}, {
|
|
353
355
|
showSettings: IsettingsType;
|
|
354
356
|
searchFieldList: IApiServerType[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as i,watch as a,openBlock as
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,watch as a,openBlock as l,createElementBlock as n,createElementVNode as r,withDirectives as o,renderSlot as u,unref as s,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as m,createCommentVNode as v,Fragment as h,renderList as p}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import S from"../components/render-widget/index.vue.js";import x from"../hooks/useMixins.js";import b from"../hooks/useAdvanced.js";import k from"../hooks/useRenderWidget.js";import{NButton as j,NIcon as I}from"naive-ui";import{Search as _}from"@vicons/ionicons5";import C from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import{cloneDeep as R}from"lodash-es";import q from"../../../../_virtual/plugin-vue_export-helper.js";const V={class:"base-search-block"},A={class:"base-container"},O={class:"base-ul"},Q={key:1,class:"baseli"},z={key:2,class:"baseli"};var F=q(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onSave","handleReset","outSearchInit","getParam"],setup(e,{emit:q}){const F=e,{outQuickSearchFn:L}=x(),{isRender:W,getRenderSearchConObj:w,isExistDefValByRenderWidget:B,resetRenderWidgetValue:D}=k(),{transformData:E}=b(),N=t(null),P=t(null),U=t(0),$=t(0),M=t(0),T=t(0),G=t(!1),H=t(!1),J=t([]),K=i((()=>{var e;return e="hideQuickSearch",0==F.showSettings[e]}));function X(e){var t;if(H.value)return;let i=N.value;if(!i)return;H.value=!0,U.value=i.clientWidth,$.value=2===F.classificationIndex?160:0,M.value=(null==(t=P.value)?void 0:t.clientWidth)||0;let a=$.value+M.value,l=U.value-a;T.value=l,e.type&&"resize"===e.type&&function(){if(J.value.length>0)return;H.value=!1}()}function Y(){g.debounce(X({type:"resize"}),300)}function Z(){q("foldQuickSearch",!0)}function ee(e={}){!function(e,t=!1,i={}){let a=[];J.value.length>0&&(a=R(J.value));q("onSave",e,t,a,i)}(te()||[],!0,e)}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let a=e[i];const l=w(a);l&&t.push(l)}return t.filter((e=>e.value))}(J.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{D(e)})),L.handlerInitSearchItem(e)}(J.value),q("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>F.searchFieldList),(e=>{e&&e.length>0&&function(e={}){J.value=[];let t=R(E(F.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));J.value=t,L.handlerInitSearchItem(J.value),J.value.some((e=>W(e)?B(e):!!e.explicitDefaultVal))&&(q("outSearchInit"),"reset"!=(null==e?void 0:e.type)&&ee({type:"outSearchInit"}))}()}),{immediate:!0,deep:!0}),a((()=>J),(()=>{const e=te()||[];q("getParam",e),G.value=!!e.length}),{immediate:!0,deep:!0}),(t,i)=>(l(),n("div",V,[r("div",A,[o((l(),n("div",{class:"bease-left",ref_key:"baseLeft",ref:N},[r("ul",O,[u(t.$slots,"classification"),s(K)?(l(),n("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:P},[c(s(j),{class:"search-default",type:"default",onClick:Z},{default:f((()=>[c(s(C),{"icon-class":"anniushaixuan",style:{color:"inherit","margin-right":"6px"}}),d(" 筛选 "+m(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):v("v-if",!0),v(" start--筛选外显--start "),(l(!0),n(h,null,p(J.value,(e=>(l(),n(h,null,[e.isRender?(l(),n("li",{class:"baseli outQuickSearch-li",key:e._frontId},[c(S,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):v("v-if",!0)],64)))),256)),v(" end--筛选外显--end "),v(" 查询按钮 "),J.value&&J.value.length>0?(l(),n("li",Q,[c(s(j),{type:"primary",onClick:ee,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(I),{component:s(_),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):v("v-if",!0),v(" 重置按钮 "),G.value?(l(),n("li",z,[c(s(j),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(C),{"icon-class":"xitongtubiaoliebiaocaozuoanniushanchu",style:{"margin-right":"6px"}}),d(" 重置 ")])),_:1})])):v("v-if",!0)])])),[[s(y),Y]])])]))}}),[["__file","BaseSearch.vue"]]);export{F as default};
|
|
@@ -880,8 +880,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
880
880
|
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
881
881
|
}>>;
|
|
882
882
|
emit: (event: "update:modelValue" | "update:presetVal", ...args: any[]) => void;
|
|
883
|
-
valueCp: import("vue").WritableComputedRef<
|
|
884
|
-
presetValCp: import("vue").WritableComputedRef<
|
|
883
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
884
|
+
presetValCp: import("vue").WritableComputedRef<string>;
|
|
885
885
|
widgetType: import("vue").ComputedRef<any>;
|
|
886
886
|
optionSetting: import("vue").ComputedRef<any>;
|
|
887
887
|
mappingConfig: import("vue").ComputedRef<any>;
|