cnhis-design-vue 3.1.16-beta.0 → 3.1.16-beta.11
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/es/packages/big-table/index.d.ts +652 -430
- package/es/packages/big-table/src/BigTable.vue.d.ts +655 -457
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +106 -112
- package/es/packages/big-table/src/bigTableProps.d.ts +4 -0
- package/es/packages/big-table/src/bigTableProps.js +2 -1
- package/es/packages/big-table/src/bigTableState.d.ts +2 -0
- package/es/packages/big-table/src/bigTableState.js +3 -1
- package/es/packages/big-table/src/components/edit-form/edit-time.js +1 -1
- package/es/packages/big-table/src/hooks/index.d.ts +9 -0
- package/es/packages/big-table/src/hooks/index.js +9 -0
- package/es/packages/big-table/src/hooks/useAnchor.d.ts +7 -0
- package/es/packages/big-table/src/hooks/useAnchor.js +49 -0
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +24 -8
- package/es/packages/big-table/src/hooks/useEdit.js +1 -1
- package/es/packages/big-table/src/hooks/useEvent.d.ts +1 -1
- package/es/packages/big-table/src/hooks/useEvent.js +3 -2
- package/es/packages/big-table/style/index.css +1 -2
- package/es/packages/button-print/index.d.ts +6 -3
- package/es/packages/button-print/src/ButtonPrint.vue.d.ts +6 -3
- package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.js +2 -1
- package/es/packages/button-print/src/components/IdentityVerification.js +5 -7
- package/es/packages/button-print/src/components/IdentityVerification.vue.d.ts +6 -3
- package/es/packages/drag-layout/index.d.ts +2 -2
- package/es/packages/drag-layout/src/DragLayout.vue.d.ts +2 -2
- package/es/packages/fabric-chart/src/FabricChart.js +2 -1
- package/es/packages/fabric-chart/src/hooks/constant.js +5 -5
- package/es/packages/fabric-chart/src/hooks/useCenter.js +20 -23
- package/es/packages/fabric-chart/src/hooks/useDraw.js +11 -4
- package/es/packages/fabric-chart/src/hooks/useEvent.js +11 -3
- package/es/packages/fabric-chart/src/hooks/useLeft.js +8 -4
- package/es/packages/fabric-chart/src/hooks/useOther.js +63 -13
- package/es/packages/fabric-chart/src/hooks/useTop.js +5 -8
- package/es/packages/field-set/index.d.ts +1 -1
- package/es/packages/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/packages/form-config/index.d.ts +110 -3367
- package/es/packages/form-config/src/FormConfig.js +42 -34
- package/es/packages/form-config/src/FormConfig.vue.d.ts +147 -3404
- package/es/packages/form-config/src/components/FormConfigCreator.js +13 -11
- package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +23 -22
- package/es/packages/form-config/src/components/FormConfigEdit.js +2 -2
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +75 -49
- package/es/packages/form-config/src/constants/index.d.ts +58 -24
- package/es/packages/form-config/src/constants/index.js +52 -23
- package/es/packages/form-config/src/hooks/index.d.ts +1 -0
- package/es/packages/form-config/src/hooks/index.js +1 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.d.ts +2 -1
- package/es/packages/form-config/src/hooks/useConfigurationField.js +29 -80
- package/es/packages/form-config/src/hooks/usePresetRenderer.d.ts +2 -3
- package/es/packages/form-config/src/hooks/usePresetRenderer.js +16 -19
- package/es/packages/form-config/src/hooks/useSortable.js +1 -1
- package/es/packages/form-config/src/types/index.d.ts +22 -4
- package/es/packages/form-config/src/utils/index.d.ts +2 -0
- package/es/packages/form-config/src/utils/index.js +15 -0
- package/es/packages/form-config/style/index.css +27 -3
- package/es/packages/form-render/index.d.ts +13 -15
- package/es/packages/form-render/src/FormRender.js +10 -7
- package/es/packages/form-render/src/FormRender.vue.d.ts +14 -16
- package/es/packages/form-render/src/components/renderer/cascader.d.ts +2 -14
- package/es/packages/form-render/src/components/renderer/cascader.js +3 -3
- package/es/packages/form-render/src/components/renderer/checkbox.js +1 -1
- package/es/packages/form-render/src/components/renderer/combination/index.js +2 -1
- package/es/packages/form-render/src/components/renderer/complex.js +1 -1
- package/es/packages/form-render/src/components/renderer/date.d.ts +20 -4
- package/es/packages/form-render/src/components/renderer/date.js +36 -20
- package/es/packages/form-render/src/components/renderer/input.js +2 -1
- package/es/packages/form-render/src/components/renderer/inputNumber.js +2 -1
- package/es/packages/form-render/src/components/renderer/linebar.js +1 -4
- package/es/packages/form-render/src/components/renderer/radio.js +1 -1
- package/es/packages/form-render/src/components/renderer/select.d.ts +1 -10
- package/es/packages/form-render/src/components/renderer/select.js +26 -17
- package/es/packages/form-render/src/components/renderer/slider.d.ts +8 -344
- package/es/packages/form-render/src/components/renderer/slider.js +24 -2
- package/es/packages/form-render/src/components/renderer/switch.js +1 -1
- package/es/packages/form-render/src/components/renderer/textarea.js +1 -1
- package/es/packages/form-render/src/hooks/useAnchor.js +7 -4
- package/es/packages/form-render/src/hooks/useBusinessBinding.d.ts +15 -9
- package/es/packages/form-render/src/hooks/useBusinessBinding.js +62 -58
- package/es/packages/form-render/src/hooks/useChangeContext.d.ts +4 -2
- package/es/packages/form-render/src/hooks/useChangeContext.js +4 -7
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +17 -7
- package/es/packages/form-render/src/hooks/useFormContext.d.ts +2 -1
- package/es/packages/form-render/src/hooks/useFormContext.js +2 -2
- package/es/packages/form-render/src/hooks/useFormValidator.js +13 -3
- package/es/packages/form-render/src/hooks/useInitialData.d.ts +1 -1
- package/es/packages/form-render/src/hooks/useInitialData.js +9 -4
- package/es/packages/form-render/src/hooks/useTypeNormalize.js +1 -1
- package/es/packages/form-render/src/types/fieldItem.d.ts +11 -12
- package/es/packages/form-render/src/types/index.d.ts +7 -8
- package/es/packages/form-render/src/utils/business.d.ts +12 -0
- package/es/packages/form-render/src/utils/business.js +78 -0
- package/es/packages/form-render/src/utils/dom.d.ts +6 -0
- package/es/packages/form-render/src/utils/dom.js +14 -0
- package/es/packages/form-render/src/utils/index.d.ts +6 -26
- package/es/packages/form-render/src/utils/index.js +9 -138
- package/es/packages/form-render/src/utils/schema.d.ts +16 -0
- package/es/packages/form-render/src/utils/schema.js +94 -0
- package/es/packages/index.css +28 -5
- package/es/packages/scale-view/src/hooks/scaleview-init.js +35 -35
- package/es/packages/scale-view/src/hooks/use-component.d.ts +7 -7
- package/es/packages/select-label/index.d.ts +10 -10
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +3 -3
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +7 -7
- package/es/packages/shortcut-setter/index.d.ts +3452 -1
- package/es/packages/shortcut-setter/src/ShortcutSetter.js +5 -2
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +3456 -1
- package/es/packages/time-line/index.d.ts +2 -2
- package/es/packages/time-line/src/TimeLine.vue.d.ts +2 -2
- package/global.d.ts +8 -8
- package/package.json +1 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { isField } from '@formily/core';
|
|
2
|
+
import { isObject } from '@vue/shared';
|
|
3
|
+
import { isString, isArray } from 'lodash-es';
|
|
4
|
+
|
|
5
|
+
function traverseSchema(schema, handler) {
|
|
6
|
+
handler(schema);
|
|
7
|
+
if (isObject(schema.properties)) {
|
|
8
|
+
Object.values(schema.properties).forEach((_s) => {
|
|
9
|
+
traverseSchema(_s, handler);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
function fieldKeyEscape(fieldList) {
|
|
14
|
+
return fieldList.map((f) => f.val_key).join("-").replace(/[.]/g, "_");
|
|
15
|
+
}
|
|
16
|
+
function elementIdEscape(id) {
|
|
17
|
+
return id.replace(".", "-");
|
|
18
|
+
}
|
|
19
|
+
function createLinebarId(id) {
|
|
20
|
+
return elementIdEscape(`id-${id}`);
|
|
21
|
+
}
|
|
22
|
+
function traverseDependKey(dependKeys, handler) {
|
|
23
|
+
if (!dependKeys)
|
|
24
|
+
return;
|
|
25
|
+
createDependKeyMap().forEach((valueKey, dependKey) => {
|
|
26
|
+
if (isString(valueKey))
|
|
27
|
+
return handler(dependKey, valueKey);
|
|
28
|
+
handler(dependKey, valueKey.key, valueKey.required);
|
|
29
|
+
});
|
|
30
|
+
Object.entries(createDependKeyMap()).forEach(([dependKey, valueKey]) => {
|
|
31
|
+
handler(dependKey, valueKey);
|
|
32
|
+
});
|
|
33
|
+
function createDependKeyMap() {
|
|
34
|
+
const result = /* @__PURE__ */ new Map();
|
|
35
|
+
if (isArray(dependKeys)) {
|
|
36
|
+
dependKeys.forEach((k) => {
|
|
37
|
+
var _a;
|
|
38
|
+
if (isObject(k)) {
|
|
39
|
+
result.set(k.paramName, { key: (_a = k.paramName) != null ? _a : k.paramValue, required: k.required });
|
|
40
|
+
} else {
|
|
41
|
+
result.set(k, k);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
} else if (isObject(dependKeys)) {
|
|
45
|
+
Object.entries(dependKeys).forEach(([k, v]) => {
|
|
46
|
+
result.set(k, v);
|
|
47
|
+
});
|
|
48
|
+
} else if (isString(dependKeys)) {
|
|
49
|
+
result.set(dependKeys, dependKeys);
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function getParentLinebar(key, fieldList) {
|
|
55
|
+
let result = null;
|
|
56
|
+
for (const fieldItem of fieldList) {
|
|
57
|
+
if (fieldItem.val_key === key) {
|
|
58
|
+
if (isLinebar(fieldItem))
|
|
59
|
+
result = null;
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
if (isLinebar(fieldItem)) {
|
|
63
|
+
result = fieldItem.val_key;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
function isLinebar(field) {
|
|
68
|
+
return field.html_type === "LINEBAR";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function assignUpdateValue(props, field) {
|
|
72
|
+
const _props = { ...props };
|
|
73
|
+
if (isField(field)) {
|
|
74
|
+
Object.assign(_props, {
|
|
75
|
+
"onUpdate:value"(value) {
|
|
76
|
+
field.setValue(value);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return _props;
|
|
81
|
+
}
|
|
82
|
+
function traverseFieldList(fieldList, handler) {
|
|
83
|
+
function traverse(fieldList2) {
|
|
84
|
+
if (!isArray(fieldList2))
|
|
85
|
+
return;
|
|
86
|
+
fieldList2.forEach((field) => {
|
|
87
|
+
handler(field);
|
|
88
|
+
traverse(field.properties);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
traverse(fieldList);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { assignUpdateValue, createLinebarId, elementIdEscape, fieldKeyEscape, getParentLinebar, traverseDependKey, traverseFieldList, traverseSchema };
|
package/es/packages/index.css
CHANGED
|
@@ -282,7 +282,7 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
282
282
|
height: 30px;
|
|
283
283
|
line-height: 30px;
|
|
284
284
|
}
|
|
285
|
-
.custom-big-table .vxe-table .vxe-cell--checkbox
|
|
285
|
+
.custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label {
|
|
286
286
|
display: none;
|
|
287
287
|
}
|
|
288
288
|
.custom-big-table .filter-box {
|
|
@@ -307,7 +307,6 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
307
307
|
}
|
|
308
308
|
.custom-big-table .disabled-checked-tips {
|
|
309
309
|
position: absolute;
|
|
310
|
-
left: 6px;
|
|
311
310
|
top: 50%;
|
|
312
311
|
bottom: 0;
|
|
313
312
|
right: 0;
|
|
@@ -3185,6 +3184,7 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
3185
3184
|
.form-config__material {
|
|
3186
3185
|
padding: 16px;
|
|
3187
3186
|
box-sizing: border-box;
|
|
3187
|
+
flex-shrink: 0;
|
|
3188
3188
|
width: 200px;
|
|
3189
3189
|
background: white;
|
|
3190
3190
|
}
|
|
@@ -3195,8 +3195,12 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
3195
3195
|
height: 40px;
|
|
3196
3196
|
}
|
|
3197
3197
|
.form-config__materialContent {
|
|
3198
|
-
padding:
|
|
3199
|
-
|
|
3198
|
+
padding: 16px;
|
|
3199
|
+
box-sizing: border-box;
|
|
3200
|
+
flex-shrink: 0;
|
|
3201
|
+
overflow-y: auto;
|
|
3202
|
+
max-height: var(--max-height);
|
|
3203
|
+
min-height: 200px;
|
|
3200
3204
|
display: flex;
|
|
3201
3205
|
flex-direction: column;
|
|
3202
3206
|
gap: 8px;
|
|
@@ -3213,6 +3217,8 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
3213
3217
|
.form-config__displayWrapper {
|
|
3214
3218
|
padding: 16px;
|
|
3215
3219
|
box-sizing: border-box;
|
|
3220
|
+
flex-shrink: 0;
|
|
3221
|
+
min-width: 400px;
|
|
3216
3222
|
flex: 1;
|
|
3217
3223
|
padding: 16px 0;
|
|
3218
3224
|
}
|
|
@@ -3225,6 +3231,9 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
3225
3231
|
.form-config__displayContent {
|
|
3226
3232
|
padding: 16px;
|
|
3227
3233
|
box-sizing: border-box;
|
|
3234
|
+
flex-shrink: 0;
|
|
3235
|
+
overflow-y: auto;
|
|
3236
|
+
max-height: var(--max-height);
|
|
3228
3237
|
height: fit-content;
|
|
3229
3238
|
background: #eeeeee;
|
|
3230
3239
|
display: grid !important;
|
|
@@ -3238,9 +3247,23 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
3238
3247
|
.form-config__config {
|
|
3239
3248
|
padding: 16px;
|
|
3240
3249
|
box-sizing: border-box;
|
|
3241
|
-
|
|
3250
|
+
flex-shrink: 0;
|
|
3251
|
+
width: 240px;
|
|
3242
3252
|
background: white;
|
|
3243
3253
|
}
|
|
3254
|
+
.form-config__configHeader {
|
|
3255
|
+
display: flex;
|
|
3256
|
+
align-items: center;
|
|
3257
|
+
justify-content: space-between;
|
|
3258
|
+
height: 40px;
|
|
3259
|
+
}
|
|
3260
|
+
.form-config__configContent {
|
|
3261
|
+
padding: 16px;
|
|
3262
|
+
box-sizing: border-box;
|
|
3263
|
+
flex-shrink: 0;
|
|
3264
|
+
overflow-y: auto;
|
|
3265
|
+
max-height: var(--max-height);
|
|
3266
|
+
}
|
|
3244
3267
|
.form-config__renderer--default {
|
|
3245
3268
|
display: flex;
|
|
3246
3269
|
align-items: center;
|
|
@@ -14,7 +14,7 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
14
14
|
const { formatRules } = ScaleViewValidate(props, state, config);
|
|
15
15
|
const { nextLogicEvent } = useEvent(props, state);
|
|
16
16
|
const setEvaluateStartTime = (evaluateResultSetting) => {
|
|
17
|
-
|
|
17
|
+
const evaluateStartTime = evaluateResultSetting == null ? void 0 : evaluateResultSetting.evaluateStartTime;
|
|
18
18
|
if (!evaluateStartTime)
|
|
19
19
|
return;
|
|
20
20
|
if (!vexutils.isValidDate(new Date(evaluateStartTime)) && vexutils.isValidDate(new Date(Number(evaluateStartTime)))) {
|
|
@@ -57,12 +57,12 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
57
57
|
state.showEvaluateCountdownWrap = true;
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
const { evaluateResultSetting = {} } = state.config;
|
|
61
61
|
if (!evaluateResultSetting || !Object.keys(evaluateResultSetting).length)
|
|
62
62
|
return;
|
|
63
63
|
state.showEvaluateCountdownWrap = true;
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
const { evaluateStartTime } = evaluateResultSetting;
|
|
65
|
+
const { evaluateName } = ((_a = state.originConfig) == null ? void 0 : _a.evaluateResultSetting) || {};
|
|
66
66
|
if (!evaluateStartTime) {
|
|
67
67
|
state.showEvaluatePage = true;
|
|
68
68
|
return;
|
|
@@ -76,7 +76,7 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
76
76
|
const initForm = (data) => {
|
|
77
77
|
var _a;
|
|
78
78
|
let { list = [], map = {}, isFinished = false } = data;
|
|
79
|
-
|
|
79
|
+
const curUrl = handleFrontAddress(list);
|
|
80
80
|
if (curUrl) {
|
|
81
81
|
window.location.href = curUrl;
|
|
82
82
|
return;
|
|
@@ -112,13 +112,13 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
112
112
|
}
|
|
113
113
|
state.originConfig = JSON.parse(JSON.stringify(state.config));
|
|
114
114
|
if (props.params && Object.keys(props.params).length) {
|
|
115
|
-
|
|
115
|
+
const res = handleBtnParamsEvaluate(props.params);
|
|
116
116
|
res && Object.keys(res).length && (state.paramsEvaluate = res);
|
|
117
117
|
}
|
|
118
118
|
handleEvaluateParams(state.config.evaluateResultSetting);
|
|
119
119
|
handleShowEvaluate();
|
|
120
120
|
state.defaultFormArray = JSON.parse(JSON.stringify(list));
|
|
121
|
-
|
|
121
|
+
const filterArr = state.filterArr;
|
|
122
122
|
list = list.filter((v) => !filterArr.includes(v.type));
|
|
123
123
|
state.formArray = formatArray(list || []);
|
|
124
124
|
state.form = defaultFormValue(state.formArray);
|
|
@@ -128,13 +128,13 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
128
128
|
state.hasFrontAddress = false;
|
|
129
129
|
};
|
|
130
130
|
const replaceConditionItem = (options, value) => {
|
|
131
|
-
|
|
131
|
+
const matchOption = options.find((v) => value === v.value);
|
|
132
132
|
if (!matchOption)
|
|
133
133
|
return value;
|
|
134
134
|
return matchOption.key;
|
|
135
135
|
};
|
|
136
136
|
const isRadioOrCheckBox = (options, type) => {
|
|
137
|
-
|
|
137
|
+
const typeArr = ["RADIO_BLOCK", "CHECKBOX_BLOCK"];
|
|
138
138
|
if (!typeArr.includes(type))
|
|
139
139
|
return;
|
|
140
140
|
if (!options)
|
|
@@ -147,10 +147,10 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
147
147
|
return true;
|
|
148
148
|
};
|
|
149
149
|
const handLenextLogic = (item) => {
|
|
150
|
-
|
|
150
|
+
const { nextLogic, options, type } = item || {};
|
|
151
151
|
if (!nextLogic || !isRadioOrCheckBox(options, type))
|
|
152
152
|
return;
|
|
153
|
-
|
|
153
|
+
const { condition } = nextLogic || {};
|
|
154
154
|
if (!condition || !condition.length)
|
|
155
155
|
return;
|
|
156
156
|
condition.forEach((c) => {
|
|
@@ -166,12 +166,12 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
168
|
const handleRelationLogic = (list, item) => {
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
const relationLogicObj = vexutils.isString(item.relationLogic) ? JSON.parse(item.relationLogic) : item.relationLogic;
|
|
170
|
+
const { condition } = relationLogicObj || {};
|
|
171
171
|
if (!condition || !condition.length)
|
|
172
172
|
return;
|
|
173
173
|
condition.forEach((c) => {
|
|
174
|
-
|
|
174
|
+
const matchItem = list.find((f) => f.seq == c.subject_seq);
|
|
175
175
|
if (!matchItem)
|
|
176
176
|
return;
|
|
177
177
|
if (!isRadioOrCheckBox(matchItem.options, matchItem.type))
|
|
@@ -192,10 +192,10 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
192
192
|
var _a, _b;
|
|
193
193
|
if (!list || !list.length)
|
|
194
194
|
return;
|
|
195
|
-
|
|
195
|
+
const query = handleQueryParams();
|
|
196
196
|
if ((props == null ? void 0 : props.noBtn) || (query == null ? void 0 : query.noBtn))
|
|
197
197
|
return;
|
|
198
|
-
|
|
198
|
+
const matchItem = list.find((item) => item.type === "FRONT_ADDRESS");
|
|
199
199
|
if (!matchItem || !Object.keys(matchItem).length)
|
|
200
200
|
return;
|
|
201
201
|
let setting;
|
|
@@ -206,22 +206,22 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
206
206
|
return;
|
|
207
207
|
if ((query == null ? void 0 : query.redirect) == 1 || ((_a = props.params) == null ? void 0 : _a.redirect) == 1 || query.isEdit == 3 || ((_b = props.params) == null ? void 0 : _b.isEdit) == 3)
|
|
208
208
|
return;
|
|
209
|
-
|
|
209
|
+
const { frontAddress } = setting;
|
|
210
210
|
if (frontAddress) {
|
|
211
|
-
|
|
211
|
+
const urlHref = window.location.href;
|
|
212
212
|
let preStr = "?";
|
|
213
213
|
if (frontAddress.includes("?")) {
|
|
214
214
|
preStr = "&";
|
|
215
215
|
}
|
|
216
|
-
|
|
216
|
+
const curUrl = `${frontAddress}${preStr}redirect_url=${encodeURIComponent(urlHref)}`;
|
|
217
217
|
return curUrl;
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
const handleBtnParamsEvaluate = (params) => {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
for (
|
|
224
|
-
|
|
221
|
+
const defaultVariable = ["evaname", "evadesc", "evast", "evadur", "evaan"];
|
|
222
|
+
const res = {};
|
|
223
|
+
for (const key in params) {
|
|
224
|
+
const value = params[key];
|
|
225
225
|
if (defaultVariable.includes(key) && value) {
|
|
226
226
|
res[key] = value;
|
|
227
227
|
}
|
|
@@ -235,18 +235,18 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
235
235
|
if (hasparamsEvaluate.value) {
|
|
236
236
|
query = state.paramsEvaluate;
|
|
237
237
|
}
|
|
238
|
-
|
|
238
|
+
const obj = {
|
|
239
239
|
evaluateName: "evaname",
|
|
240
240
|
evaluateExplain: "evadesc",
|
|
241
241
|
evaluateStartTime: "evast",
|
|
242
242
|
evaluateTime: "evadur",
|
|
243
243
|
evaluateAnswer: "evaan"
|
|
244
244
|
};
|
|
245
|
-
for (
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
for (const key in evaluateResultSetting) {
|
|
246
|
+
const value = evaluateResultSetting[key];
|
|
247
|
+
const isParseKey = value && key != "evaluateAnswer" && typeof value === "string" && value.includes("${");
|
|
248
248
|
if (isParseKey) {
|
|
249
|
-
|
|
249
|
+
const parseValue = value.replace(/\$\{([^}]+)\}/g, (_v, $1) => {
|
|
250
250
|
let param;
|
|
251
251
|
if ($1.startsWith("form.")) {
|
|
252
252
|
param = query[$1.split(".")[1]];
|
|
@@ -263,8 +263,8 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
if (hasDefault.value) {
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
const defaultVariable = ["evaname", "evadesc", "evast", "evadur", "evaan"];
|
|
267
|
+
const defObj = {
|
|
268
268
|
evaname: "evaluateName",
|
|
269
269
|
evadesc: "evaluateExplain",
|
|
270
270
|
evast: "evaluateStartTime",
|
|
@@ -272,7 +272,7 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
272
272
|
evaan: "evaluateAnswer"
|
|
273
273
|
};
|
|
274
274
|
defaultVariable.forEach((item) => {
|
|
275
|
-
|
|
275
|
+
const key = defObj[item];
|
|
276
276
|
if (!evaluateResultSetting[key]) {
|
|
277
277
|
let val = query[item];
|
|
278
278
|
if (item == "evaan") {
|
|
@@ -354,12 +354,12 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
|
354
354
|
defValue = item.dbValue;
|
|
355
355
|
} else {
|
|
356
356
|
if (((_a = item.setting) == null ? void 0 : _a.defValType) == 3) {
|
|
357
|
-
|
|
357
|
+
const urlKey = (_c = (_b = item.setting) == null ? void 0 : _b.outDefaultValue) == null ? void 0 : _c.urlKey;
|
|
358
358
|
if (urlKey) {
|
|
359
|
-
|
|
359
|
+
const list = urlKey.split(",");
|
|
360
360
|
if (list.length > 1) {
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
const val2 = list.map((l) => {
|
|
362
|
+
const tempV = getQueryVariable(l, state, props.params);
|
|
363
363
|
if (tempV)
|
|
364
364
|
return decodeURIComponent(tempV);
|
|
365
365
|
return null;
|
|
@@ -1471,7 +1471,7 @@ export declare const componentMap: {
|
|
|
1471
1471
|
type: BooleanConstructor;
|
|
1472
1472
|
default: boolean;
|
|
1473
1473
|
};
|
|
1474
|
-
preset: import("vue").PropType<"dialog" | "
|
|
1474
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
1475
1475
|
to: import("vue").PropType<string | HTMLElement>;
|
|
1476
1476
|
displayDirective: {
|
|
1477
1477
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -2433,7 +2433,7 @@ export declare const componentMap: {
|
|
|
2433
2433
|
type: BooleanConstructor;
|
|
2434
2434
|
default: boolean;
|
|
2435
2435
|
};
|
|
2436
|
-
preset: import("vue").PropType<"dialog" | "
|
|
2436
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
2437
2437
|
to: import("vue").PropType<string | HTMLElement>;
|
|
2438
2438
|
displayDirective: {
|
|
2439
2439
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -3329,7 +3329,7 @@ export declare const componentMap: {
|
|
|
3329
3329
|
closeOnEsc: boolean;
|
|
3330
3330
|
}>;
|
|
3331
3331
|
NSpace: import("vue").DefineComponent<{
|
|
3332
|
-
readonly align: import("vue").PropType<"
|
|
3332
|
+
readonly align: import("vue").PropType<"start" | "end" | "center" | "stretch" | "baseline" | "flex-end" | "flex-start">;
|
|
3333
3333
|
readonly justify: {
|
|
3334
3334
|
readonly type: import("vue").PropType<import("naive-ui/es/space/src/Space").Justify>;
|
|
3335
3335
|
readonly default: "start";
|
|
@@ -3377,7 +3377,7 @@ export declare const componentMap: {
|
|
|
3377
3377
|
vertical: number;
|
|
3378
3378
|
}>;
|
|
3379
3379
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3380
|
-
readonly align: import("vue").PropType<"
|
|
3380
|
+
readonly align: import("vue").PropType<"start" | "end" | "center" | "stretch" | "baseline" | "flex-end" | "flex-start">;
|
|
3381
3381
|
readonly justify: {
|
|
3382
3382
|
readonly type: import("vue").PropType<import("naive-ui/es/space/src/Space").Justify>;
|
|
3383
3383
|
readonly default: "start";
|
|
@@ -3548,7 +3548,7 @@ export declare const componentMap: {
|
|
|
3548
3548
|
readonly default: "bar";
|
|
3549
3549
|
};
|
|
3550
3550
|
readonly closable: BooleanConstructor;
|
|
3551
|
-
readonly justifyContent: import("vue").PropType<"
|
|
3551
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
3552
3552
|
readonly size: {
|
|
3553
3553
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
3554
3554
|
readonly default: "medium";
|
|
@@ -3824,7 +3824,7 @@ export declare const componentMap: {
|
|
|
3824
3824
|
addTabFixed: import("vue").Ref<boolean>;
|
|
3825
3825
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
3826
3826
|
display: string;
|
|
3827
|
-
justifyContent: "
|
|
3827
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
3828
3828
|
} | undefined>;
|
|
3829
3829
|
handleNavResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
3830
3830
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -3880,7 +3880,7 @@ export declare const componentMap: {
|
|
|
3880
3880
|
readonly default: "bar";
|
|
3881
3881
|
};
|
|
3882
3882
|
readonly closable: BooleanConstructor;
|
|
3883
|
-
readonly justifyContent: import("vue").PropType<"
|
|
3883
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
3884
3884
|
readonly size: {
|
|
3885
3885
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
3886
3886
|
readonly default: "medium";
|
|
@@ -974,7 +974,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
974
974
|
type: BooleanConstructor;
|
|
975
975
|
default: boolean;
|
|
976
976
|
};
|
|
977
|
-
preset: import("vue").PropType<"dialog" | "
|
|
977
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
978
978
|
to: import("vue").PropType<string | HTMLElement>;
|
|
979
979
|
displayDirective: {
|
|
980
980
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -1936,7 +1936,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1936
1936
|
type: BooleanConstructor;
|
|
1937
1937
|
default: boolean;
|
|
1938
1938
|
};
|
|
1939
|
-
preset: import("vue").PropType<"dialog" | "
|
|
1939
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
1940
1940
|
to: import("vue").PropType<string | HTMLElement>;
|
|
1941
1941
|
displayDirective: {
|
|
1942
1942
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -2832,7 +2832,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2832
2832
|
closeOnEsc: boolean;
|
|
2833
2833
|
}>;
|
|
2834
2834
|
NSpace: import("vue").DefineComponent<{
|
|
2835
|
-
readonly align: import("vue").PropType<"
|
|
2835
|
+
readonly align: import("vue").PropType<"start" | "end" | "center" | "stretch" | "baseline" | "flex-end" | "flex-start">;
|
|
2836
2836
|
readonly justify: {
|
|
2837
2837
|
readonly type: import("vue").PropType<import("naive-ui/es/space/src/Space").Justify>;
|
|
2838
2838
|
readonly default: "start";
|
|
@@ -2880,7 +2880,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2880
2880
|
vertical: number;
|
|
2881
2881
|
}>;
|
|
2882
2882
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2883
|
-
readonly align: import("vue").PropType<"
|
|
2883
|
+
readonly align: import("vue").PropType<"start" | "end" | "center" | "stretch" | "baseline" | "flex-end" | "flex-start">;
|
|
2884
2884
|
readonly justify: {
|
|
2885
2885
|
readonly type: import("vue").PropType<import("naive-ui/es/space/src/Space").Justify>;
|
|
2886
2886
|
readonly default: "start";
|
|
@@ -3051,7 +3051,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3051
3051
|
readonly default: "bar";
|
|
3052
3052
|
};
|
|
3053
3053
|
readonly closable: BooleanConstructor;
|
|
3054
|
-
readonly justifyContent: import("vue").PropType<"
|
|
3054
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
3055
3055
|
readonly size: {
|
|
3056
3056
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
3057
3057
|
readonly default: "medium";
|
|
@@ -3327,7 +3327,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3327
3327
|
addTabFixed: import("vue").Ref<boolean>;
|
|
3328
3328
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
3329
3329
|
display: string;
|
|
3330
|
-
justifyContent: "
|
|
3330
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
3331
3331
|
} | undefined>;
|
|
3332
3332
|
handleNavResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
3333
3333
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -3383,7 +3383,7 @@ declare const SelectLabel: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
3383
3383
|
readonly default: "bar";
|
|
3384
3384
|
};
|
|
3385
3385
|
readonly closable: BooleanConstructor;
|
|
3386
|
-
readonly justifyContent: import("vue").PropType<"
|
|
3386
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
3387
3387
|
readonly size: {
|
|
3388
3388
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
3389
3389
|
readonly default: "medium";
|
|
@@ -7718,7 +7718,7 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7718
7718
|
readonly default: "bar";
|
|
7719
7719
|
};
|
|
7720
7720
|
readonly closable: BooleanConstructor;
|
|
7721
|
-
readonly justifyContent: import("vue").PropType<"
|
|
7721
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
7722
7722
|
readonly size: {
|
|
7723
7723
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
7724
7724
|
readonly default: "medium";
|
|
@@ -7994,7 +7994,7 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7994
7994
|
addTabFixed: import("vue").Ref<boolean>;
|
|
7995
7995
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
7996
7996
|
display: string;
|
|
7997
|
-
justifyContent: "
|
|
7997
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
7998
7998
|
} | undefined>;
|
|
7999
7999
|
handleNavResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
8000
8000
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -8050,7 +8050,7 @@ declare const LabelFormContent: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8050
8050
|
readonly default: "bar";
|
|
8051
8051
|
};
|
|
8052
8052
|
readonly closable: BooleanConstructor;
|
|
8053
|
-
readonly justifyContent: import("vue").PropType<"
|
|
8053
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
8054
8054
|
readonly size: {
|
|
8055
8055
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
8056
8056
|
readonly default: "medium";
|
|
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
123
|
readonly default: "bar";
|
|
124
124
|
};
|
|
125
125
|
readonly closable: BooleanConstructor;
|
|
126
|
-
readonly justifyContent: import("vue").PropType<"
|
|
126
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
127
127
|
readonly size: {
|
|
128
128
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
129
129
|
readonly default: "medium";
|
|
@@ -402,7 +402,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
402
402
|
addTabFixed: import("vue").Ref<boolean>;
|
|
403
403
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
404
404
|
display: string;
|
|
405
|
-
justifyContent: "
|
|
405
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
406
406
|
} | undefined>;
|
|
407
407
|
handleNavResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
408
408
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -458,7 +458,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
458
458
|
readonly default: "bar";
|
|
459
459
|
};
|
|
460
460
|
readonly closable: BooleanConstructor;
|
|
461
|
-
readonly justifyContent: import("vue").PropType<"
|
|
461
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
462
462
|
readonly size: {
|
|
463
463
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
464
464
|
readonly default: "medium";
|
|
@@ -975,7 +975,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
975
975
|
type: BooleanConstructor;
|
|
976
976
|
default: boolean;
|
|
977
977
|
};
|
|
978
|
-
preset: import("vue").PropType<"dialog" | "
|
|
978
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
979
979
|
to: import("vue").PropType<string | HTMLElement>;
|
|
980
980
|
displayDirective: {
|
|
981
981
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -1937,7 +1937,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1937
1937
|
type: BooleanConstructor;
|
|
1938
1938
|
default: boolean;
|
|
1939
1939
|
};
|
|
1940
|
-
preset: import("vue").PropType<"dialog" | "
|
|
1940
|
+
preset: import("vue").PropType<"dialog" | "card" | "confirm">;
|
|
1941
1941
|
to: import("vue").PropType<string | HTMLElement>;
|
|
1942
1942
|
displayDirective: {
|
|
1943
1943
|
type: import("vue").PropType<"show" | "if">;
|
|
@@ -2833,7 +2833,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2833
2833
|
closeOnEsc: boolean;
|
|
2834
2834
|
}>;
|
|
2835
2835
|
NSpace: import("vue").DefineComponent<{
|
|
2836
|
-
readonly align: import("vue").PropType<"
|
|
2836
|
+
readonly align: import("vue").PropType<"start" | "end" | "center" | "stretch" | "baseline" | "flex-end" | "flex-start">;
|
|
2837
2837
|
readonly justify: {
|
|
2838
2838
|
readonly type: import("vue").PropType<import("naive-ui/es/space/src/Space").Justify>;
|
|
2839
2839
|
readonly default: "start";
|
|
@@ -2881,7 +2881,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2881
2881
|
vertical: number;
|
|
2882
2882
|
}>;
|
|
2883
2883
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2884
|
-
readonly align: import("vue").PropType<"
|
|
2884
|
+
readonly align: import("vue").PropType<"start" | "end" | "center" | "stretch" | "baseline" | "flex-end" | "flex-start">;
|
|
2885
2885
|
readonly justify: {
|
|
2886
2886
|
readonly type: import("vue").PropType<import("naive-ui/es/space/src/Space").Justify>;
|
|
2887
2887
|
readonly default: "start";
|
|
@@ -3052,7 +3052,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3052
3052
|
readonly default: "bar";
|
|
3053
3053
|
};
|
|
3054
3054
|
readonly closable: BooleanConstructor;
|
|
3055
|
-
readonly justifyContent: import("vue").PropType<"
|
|
3055
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
3056
3056
|
readonly size: {
|
|
3057
3057
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
3058
3058
|
readonly default: "medium";
|
|
@@ -3328,7 +3328,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3328
3328
|
addTabFixed: import("vue").Ref<boolean>;
|
|
3329
3329
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
3330
3330
|
display: string;
|
|
3331
|
-
justifyContent: "
|
|
3331
|
+
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly" | "center";
|
|
3332
3332
|
} | undefined>;
|
|
3333
3333
|
handleNavResize: import("lodash").DebouncedFunc<(entry: ResizeObserverEntry) => void>;
|
|
3334
3334
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
@@ -3384,7 +3384,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3384
3384
|
readonly default: "bar";
|
|
3385
3385
|
};
|
|
3386
3386
|
readonly closable: BooleanConstructor;
|
|
3387
|
-
readonly justifyContent: import("vue").PropType<"
|
|
3387
|
+
readonly justifyContent: import("vue").PropType<"start" | "end" | "space-around" | "space-between" | "space-evenly" | "center">;
|
|
3388
3388
|
readonly size: {
|
|
3389
3389
|
readonly type: import("vue").PropType<"small" | "medium" | "large">;
|
|
3390
3390
|
readonly default: "medium";
|