cnhis-design-vue 3.3.2-beta.1 → 3.3.2-beta.5
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/components/base-search/src/index.vue2.js +6 -6
- package/es/components/big-table/src/BigTable.vue2.js +21 -21
- package/es/components/big-table/src/components/NoData.vue2.js +4 -4
- package/es/components/big-table/src/components/edit-form/edit-date.js +2 -2
- package/es/components/big-table/src/components/edit-form/edit-input.js +2 -2
- package/es/components/big-table/src/components/edit-form/edit-select.js +2 -2
- package/es/components/big-table/src/components/edit-form/edit-time.js +4 -4
- package/es/components/big-table/src/components/input-button.vue2.js +2 -2
- package/es/components/big-table/src/hooks/useNestTable.js +4 -4
- package/es/components/big-table/src/hooks/useTableParse.js +3 -3
- package/es/components/body-select/src/index.vue2.js +4 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +7 -7
- package/es/components/button-print/src/components/EditFormat.vue2.js +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +17 -17
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +34 -34
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +11 -11
- package/es/components/button-print/src/components/Preview.vue2.js +2 -2
- package/es/components/button-print/src/utils/dialog.js +6 -6
- package/es/components/button-print/src/utils/print.js +21 -21
- package/es/components/callback/src/components/render/popupMaps.d.ts +1 -1
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +2 -2
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +4 -4
- package/es/components/card-reader-sdk-cn/src/henan/index.js +5 -5
- package/es/components/classification/src/components/search-filter/index.vue2.js +6 -6
- package/es/components/classification/src/components/set-classification/index.vue2.js +5 -5
- package/es/components/classification/src/components/table-modal/index.vue2.js +45 -45
- package/es/components/classification/src/index.vue2.js +42 -42
- package/es/components/default-page/src/constants/index.js +19 -19
- package/es/components/default-page/src/index.vue2.js +2 -2
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +10 -10
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +4 -4
- package/es/components/expand-field/src/components/PersonModal.vue2.js +6 -6
- package/es/components/expand-field/src/components/form.vue2.js +87 -87
- package/es/components/expand-field/src/index.vue2.js +16 -16
- package/es/components/expand-field/src/utils/constant.js +12 -12
- package/es/components/fabric-chart/src/components/PopupMenu.js +4 -4
- package/es/components/fabric-chart/src/constants/index.js +10 -10
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +3 -3
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +2 -2
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +5 -5
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +2 -2
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +6 -6
- package/es/components/fabric-chart/src/hooks/useCommon.js +4 -4
- package/es/components/field-editor/index.d.ts +1 -1
- package/es/components/field-editor/src/FieldEditor.vue.d.ts +1 -1
- package/es/components/field-editor/src/fields.js +30 -30
- package/es/components/field-set/src/FieldColor.vue2.js +15 -15
- package/es/components/field-set/src/FieldFilter.vue2.js +8 -8
- package/es/components/field-set/src/FieldSet.vue2.js +37 -37
- package/es/components/field-set/src/Index.vue2.js +6 -6
- package/es/components/field-set/src/TableStyle.vue2.js +9 -9
- package/es/components/field-set/src/components/condition.vue2.js +8 -8
- package/es/components/field-set/src/components/edit-dialog.vue2.js +23 -23
- package/es/components/field-set/src/components/edit-filter.vue2.js +4 -4
- package/es/components/field-set/src/components/table-row.vue2.js +25 -25
- package/es/components/field-set/src/constants/filter.js +42 -42
- package/es/components/field-set/src/constants/index.js +64 -64
- package/es/components/form-config/index.d.ts +9 -9
- package/es/components/form-config/src/FormConfig.vue.d.ts +9 -9
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +26 -26
- package/es/components/form-config/src/constants/index.js +11 -11
- package/es/components/form-config/src/hooks/useLocale.js +31 -31
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +2 -2
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +2 -2
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +2 -2
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +2 -2
- package/es/components/form-render/src/components/renderer/remoteSearch.js +2 -2
- package/es/components/form-render/src/components/renderer/switch.js +4 -4
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
- package/es/components/form-render/src/types/index.d.ts +2 -2
- package/es/components/form-render/src/utils/schema.js +4 -4
- package/es/components/iho-chat/src/Index.vue2.js +2 -2
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +16 -16
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +13 -13
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +24 -24
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +10 -10
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +10 -10
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +13 -13
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +18 -18
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +25 -25
- package/es/components/iho-chat/src/components/ContextMenu.js +7 -7
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +4 -4
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +2 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +12 -12
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +9 -9
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +2 -2
- package/es/components/iho-chat/src/components/SiderList.vue2.js +12 -12
- package/es/components/iho-chat/src/components/Video.vue2.js +5 -5
- package/es/components/iho-chat/src/hooks/useVideo.js +2 -2
- package/es/components/iho-chat/src/utils/index.js +14 -14
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +2 -2
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +9 -9
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +9 -9
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +11 -11
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +4 -4
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +13 -13
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +9 -9
- package/es/components/info-header/index.d.ts +7 -7
- package/es/components/info-header/src/InfoHeader.vue.d.ts +7 -7
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +21 -21
- package/es/components/keyboard/src/Keyboard.vue2.js +7 -7
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +6 -6
- package/es/components/map/src/Map.vue2.js +2 -2
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +4 -4
- package/es/components/quick-search/src/index.vue2.js +21 -21
- package/es/components/recommend-search/src/components/BaseSearch.js +2 -2
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +4 -4
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +3 -3
- package/es/components/scale-view/index.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +5 -5
- package/es/components/scale-view/src/components/NoData.vue2.js +4 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +2 -2
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +6 -6
- package/es/components/scale-view/src/components/formitem/r-input.js +2 -2
- package/es/components/scale-view/src/components/formitem/r-map.js +2 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +6 -6
- package/es/components/scale-view/src/components/formitem/r-select.js +2 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +7 -7
- package/es/components/scale-view/src/components/formitem/standard-modal.js +3 -3
- package/es/components/scale-view/src/hooks/scaleview-computed.js +5 -5
- package/es/components/scale-view/src/hooks/scaleview-init.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-init.js +2 -2
- package/es/components/scale-view/src/hooks/scaleview-methods.js +4 -4
- package/es/components/scale-view/src/hooks/scaleview-submit.js +3 -3
- package/es/components/scale-view/src/hooks/scaleview-validate.js +9 -9
- package/es/components/search-cascader/src/SearchCascader.vue2.js +2 -2
- package/es/components/select-label/src/LabelFormContent.vue2.js +7 -7
- package/es/components/select-label/src/SelectLabel.vue2.js +13 -13
- package/es/components/select-label/src/components/label-classify.vue2.js +5 -5
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +3 -3
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +6 -6
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +3 -3
- package/es/components/select-person/src/SelectPerson.vue2.js +16 -16
- package/es/components/select-person/src/SelectPersonType.vue2.js +13 -13
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +2 -2
- package/es/components/select-person/src/index.vue2.js +3 -3
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/slider-tree/src/index.vue2.js +3 -3
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +23 -25
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +19 -19
- package/es/components/table-export-field/src/index.vue2.js +6 -6
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +5 -5
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +34 -34
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +19 -19
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +3 -3
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +2 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +6 -6
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +5 -5
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +3 -3
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +3 -3
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +2 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +17 -17
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +4 -4
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +6 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +3 -3
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +2 -2
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +3 -3
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +3 -3
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +6 -6
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +207 -207
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +2 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +3 -3
- package/es/components/table-filter/src/tool/baseOptions.js +19 -19
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +8 -8
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +2 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +2 -2
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +4 -4
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -334,7 +334,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
334
334
|
desEnd: import("vue").ComputedRef<boolean>;
|
335
335
|
desContent: import("vue").ComputedRef<any>;
|
336
336
|
initForm: (data: import("../../../shared/types").AnyObject) => Promise<void> | undefined;
|
337
|
-
batchInjectForm: (data: import("../../../shared/types").AnyObject) => Promise<boolean>;
|
337
|
+
batchInjectForm: (data: import("../../../shared/types").AnyObject, skipValid?: boolean) => Promise<boolean>;
|
338
338
|
submitMethod: () => {
|
339
339
|
params: any;
|
340
340
|
hasCallbackItem: any;
|
@@ -254,7 +254,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
254
254
|
onClick: ($event) => unref(showEvaTipModal)(item)
|
255
255
|
}, [_hoisted_5, createTextVNode(" \u67E5\u770B\u63D0\u793A ")], 8, _hoisted_4)) : createCommentVNode("v-if", true)]),
|
256
256
|
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(item.renderCom), mergeProps(unref(propsConfig)(item, index), {
|
257
|
-
key: (item.id || item.seq) + index,
|
257
|
+
key: (item.id || item.seq) + index + (item.randomKey || 0),
|
258
258
|
onScaleChange: unref(scaleChange),
|
259
259
|
onOnChange: ($event) => unref(labelChange)($event, item),
|
260
260
|
onVodFileList: unref(vodFileList)
|
@@ -274,8 +274,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
274
274
|
onClick: cancel
|
275
275
|
}, {
|
276
276
|
default: withCtx(() => {
|
277
|
-
var _a;
|
278
|
-
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || "\u53D6\u6D88")];
|
277
|
+
var _a, _b, _c;
|
278
|
+
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88")];
|
279
279
|
}),
|
280
280
|
_: 1
|
281
281
|
})) : createCommentVNode("v-if", true), unref(isSaveBtn) ? (openBlock(), createBlock(unref(NButton), {
|
@@ -285,8 +285,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
285
285
|
type: "primary"
|
286
286
|
}, {
|
287
287
|
default: withCtx(() => {
|
288
|
-
var _a;
|
289
|
-
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || "\u4FDD\u5B58")];
|
288
|
+
var _a, _b, _c;
|
289
|
+
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58")];
|
290
290
|
}),
|
291
291
|
_: 1
|
292
292
|
}, 8, ["onClick", "disabled"])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "extendBtn")])) : createCommentVNode("v-if", true)], 64))], 64))], 64)) : createCommentVNode("v-if", true)], 2);
|
@@ -4,7 +4,7 @@ import noPermission from '../../../../shared/assets/img/no-permission.png.js';
|
|
4
4
|
import failure from '../../../../shared/assets/img/failure.png.js';
|
5
5
|
import notfound from '../../../../shared/assets/img/notfound.png.js';
|
6
6
|
|
7
|
-
var _a;
|
7
|
+
var _a, _b, _c;
|
8
8
|
const _hoisted_1 = {
|
9
9
|
class: "no-data-tip NoData-page"
|
10
10
|
};
|
@@ -17,7 +17,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
17
|
props: {
|
18
18
|
noDataTip: {
|
19
19
|
type: String,
|
20
|
-
default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || "\u6682\u65E0\u6570\u636E"
|
20
|
+
default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.445")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.445")) || "\u6682\u65E0\u6570\u636E"
|
21
21
|
},
|
22
22
|
noDataImg: {
|
23
23
|
type: String,
|
@@ -49,14 +49,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
49
|
return str;
|
50
50
|
});
|
51
51
|
const handleDesc = computed(() => {
|
52
|
-
var _a2;
|
52
|
+
var _a2, _b2, _c2;
|
53
53
|
let res = "";
|
54
54
|
switch (props.noDataImg) {
|
55
55
|
case "no-permission":
|
56
56
|
res = "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458";
|
57
57
|
break;
|
58
58
|
case "failure":
|
59
|
-
res = ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.449")) || "\u8BF7\u7A0D\u540E\u518D\u8BD5";
|
59
|
+
res = ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.449")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.449")) || "\u8BF7\u7A0D\u540E\u518D\u8BD5";
|
60
60
|
break;
|
61
61
|
}
|
62
62
|
return res;
|
@@ -110,13 +110,13 @@ var RCascader = /* @__PURE__ */ defineComponent({
|
|
110
110
|
context.emit("scaleChange", path, props.item);
|
111
111
|
};
|
112
112
|
return () => {
|
113
|
-
var _a;
|
113
|
+
var _a, _b, _c;
|
114
114
|
return createVNode(resolveComponent("n-cascader"), {
|
115
115
|
"value": state.cascaderValue,
|
116
116
|
"onUpdate:value": ($event) => state.cascaderValue = $event,
|
117
117
|
"filterable": true,
|
118
118
|
"clearable": true,
|
119
|
-
"placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9",
|
119
|
+
"placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9",
|
120
120
|
"check-strategy": "parent",
|
121
121
|
"value-field": "theUniqueKey",
|
122
122
|
"disabled": props.isLock,
|
@@ -227,9 +227,9 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
|
|
227
227
|
}, null)])]);
|
228
228
|
};
|
229
229
|
const renderPrintSpan = (o) => {
|
230
|
-
var _a2;
|
230
|
+
var _a2, _b2, _c;
|
231
231
|
const val = o ? state.optionsPreSuffixObj[o.key] : state.othersText;
|
232
|
-
const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
232
|
+
const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
233
233
|
return createVNode("span", {
|
234
234
|
"class": ["print-span", {
|
235
235
|
"print-span-disabled": isDisabled.value,
|
@@ -238,7 +238,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
|
|
238
238
|
}, [showVal]);
|
239
239
|
};
|
240
240
|
const renderPresuffix = (o) => {
|
241
|
-
var _a2;
|
241
|
+
var _a2, _b2, _c;
|
242
242
|
return createVNode("div", {
|
243
243
|
"class": "presuffix-wrap"
|
244
244
|
}, [o.prefix && createVNode("span", {
|
@@ -253,7 +253,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
|
|
253
253
|
"style": {
|
254
254
|
color: choiceColor.value(o)
|
255
255
|
},
|
256
|
-
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
256
|
+
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
257
257
|
"bordered": false,
|
258
258
|
"onInput": (val) => inputPreSuffixCheckboxChangeMethod(val, o),
|
259
259
|
"onClick": stopClick,
|
@@ -276,7 +276,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
|
|
276
276
|
}, [o.label]);
|
277
277
|
};
|
278
278
|
const renderOther = (o) => {
|
279
|
-
var _a2;
|
279
|
+
var _a2, _b2, _c;
|
280
280
|
return createVNode("div", {
|
281
281
|
"class": "choose-other",
|
282
282
|
"onClick": stopClick
|
@@ -287,7 +287,7 @@ var scriptCheckbox = /* @__PURE__ */ defineComponent({
|
|
287
287
|
"style": {
|
288
288
|
color: choiceColor.value(o)
|
289
289
|
},
|
290
|
-
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
290
|
+
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
291
291
|
"bordered": false,
|
292
292
|
"type": "textarea",
|
293
293
|
"autosize": true,
|
@@ -73,9 +73,9 @@ var RInput = /* @__PURE__ */ defineComponent({
|
|
73
73
|
emit("scaleChange", inputValue.value, props.item);
|
74
74
|
};
|
75
75
|
const renderPrintSpan = () => {
|
76
|
-
var _a2;
|
76
|
+
var _a2, _b2, _c2;
|
77
77
|
const val = inputValue.value;
|
78
|
-
const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
78
|
+
const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
79
79
|
return createVNode("div", {
|
80
80
|
"class": ["input-print-span", {
|
81
81
|
"input-print-span-disabled": props.isLock,
|
@@ -66,7 +66,7 @@ var RMap = /* @__PURE__ */ defineComponent({
|
|
66
66
|
state.mapVisible = true;
|
67
67
|
};
|
68
68
|
const renderMap = () => {
|
69
|
-
var _a;
|
69
|
+
var _a, _b, _c;
|
70
70
|
return createVNode("div", {
|
71
71
|
"class": {
|
72
72
|
"c-map-container": !props.isLock
|
@@ -76,7 +76,7 @@ var RMap = /* @__PURE__ */ defineComponent({
|
|
76
76
|
"readonly": true,
|
77
77
|
"class": "map-input",
|
78
78
|
"on-click": clickMap,
|
79
|
-
"placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9"
|
79
|
+
"placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9"
|
80
80
|
}, {
|
81
81
|
prefix: () => createVNode(resolveComponent("n-icon"), {
|
82
82
|
"size": "18",
|
@@ -192,9 +192,9 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
|
|
192
192
|
}, null)])]);
|
193
193
|
};
|
194
194
|
const renderPrintSpan = (o) => {
|
195
|
-
var _a2;
|
195
|
+
var _a2, _b2, _c;
|
196
196
|
const val = o ? state.optionsPreSuffixObj[o.key] : state.othersText;
|
197
|
-
const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
197
|
+
const showVal = val ? val : ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165";
|
198
198
|
return createVNode("span", {
|
199
199
|
"class": ["print-span", {
|
200
200
|
"print-span-disabled": isDisabled.value,
|
@@ -203,7 +203,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
|
|
203
203
|
}, [showVal]);
|
204
204
|
};
|
205
205
|
const renderPresuffix = (o) => {
|
206
|
-
var _a2;
|
206
|
+
var _a2, _b2, _c;
|
207
207
|
return createVNode("div", {
|
208
208
|
"class": "presuffix-wrap"
|
209
209
|
}, [o.prefix && createVNode("span", {
|
@@ -218,7 +218,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
|
|
218
218
|
"style": {
|
219
219
|
color: choiceColor.value(o)
|
220
220
|
},
|
221
|
-
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
221
|
+
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
222
222
|
"bordered": false,
|
223
223
|
"on-update:value": (val) => inputPreSuffixChangeMethod(val, o),
|
224
224
|
"onClick": stopClick,
|
@@ -241,7 +241,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
|
|
241
241
|
}, [o.label]);
|
242
242
|
};
|
243
243
|
const renderOther = (o) => {
|
244
|
-
var _a2;
|
244
|
+
var _a2, _b2, _c;
|
245
245
|
return createVNode("div", {
|
246
246
|
"class": "choose-other",
|
247
247
|
"onClick": stopClick
|
@@ -252,7 +252,7 @@ var scriptRadio = /* @__PURE__ */ defineComponent({
|
|
252
252
|
"style": {
|
253
253
|
color: choiceColor.value(o)
|
254
254
|
},
|
255
|
-
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
255
|
+
"placeholder": ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.383")) || ((_c = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c.call(_b2, "10010.1.383")) || "\u8BF7\u8F93\u5165",
|
256
256
|
"bordered": false,
|
257
257
|
"type": "textarea",
|
258
258
|
"autosize": true,
|
@@ -218,13 +218,13 @@ var scriptSelect = /* @__PURE__ */ defineComponent({
|
|
218
218
|
immediate: true
|
219
219
|
});
|
220
220
|
return () => {
|
221
|
-
var _a;
|
221
|
+
var _a, _b, _c;
|
222
222
|
return createVNode(resolveComponent("n-select"), {
|
223
223
|
"value": props.form[props.item.val_key],
|
224
224
|
"onUpdate:value": [($event) => props.form[props.item.val_key] = $event, handleSelectChange],
|
225
225
|
"filterable": true,
|
226
226
|
"clearable": true,
|
227
|
-
"placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9",
|
227
|
+
"placeholder": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9",
|
228
228
|
"value-field": columnKey.value,
|
229
229
|
"label-field": labelKey.value,
|
230
230
|
"multiple": isMultiple.value,
|
@@ -82,14 +82,14 @@ var RSign = /* @__PURE__ */ defineComponent({
|
|
82
82
|
});
|
83
83
|
};
|
84
84
|
const deleteImg = (index) => {
|
85
|
-
var _a, _b;
|
85
|
+
var _a, _b, _c, _d, _e, _f;
|
86
86
|
if (props.isLock)
|
87
87
|
return;
|
88
88
|
dialog.warning({
|
89
89
|
title: "\u63D0\u793A",
|
90
90
|
content: "\u786E\u8BA4\u8981\u5220\u9664\u7B7E\u540D\u5417\uFF1F",
|
91
|
-
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
|
92
|
-
negativeText: ((
|
91
|
+
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
|
92
|
+
negativeText: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.28")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.28")) || "\u53D6\u6D88",
|
93
93
|
maskClosable: false,
|
94
94
|
closable: false,
|
95
95
|
positiveButtonProps: {
|
@@ -132,8 +132,8 @@ var RSign = /* @__PURE__ */ defineComponent({
|
|
132
132
|
"onClick": cancel
|
133
133
|
}, {
|
134
134
|
default: () => {
|
135
|
-
var _a;
|
136
|
-
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || "\u53D6\u6D88")];
|
135
|
+
var _a, _b, _c;
|
136
|
+
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.28")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.28")) || "\u53D6\u6D88")];
|
137
137
|
}
|
138
138
|
}), createVNode(resolveComponent("n-button"), {
|
139
139
|
"size": "small",
|
@@ -147,8 +147,8 @@ var RSign = /* @__PURE__ */ defineComponent({
|
|
147
147
|
"type": "primary"
|
148
148
|
}, {
|
149
149
|
default: () => {
|
150
|
-
var _a;
|
151
|
-
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || "\u786E\u8BA4")];
|
150
|
+
var _a, _b, _c;
|
151
|
+
return [createTextVNode(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4")];
|
152
152
|
}
|
153
153
|
})]
|
154
154
|
})]);
|
@@ -90,7 +90,7 @@ var StandardModal = /* @__PURE__ */ defineComponent({
|
|
90
90
|
}, null) : null])]);
|
91
91
|
};
|
92
92
|
const rednerModal = () => {
|
93
|
-
var _a, _b;
|
93
|
+
var _a, _b, _c, _d, _e, _f;
|
94
94
|
const curSlot = {
|
95
95
|
...context.slots
|
96
96
|
};
|
@@ -108,8 +108,8 @@ var StandardModal = /* @__PURE__ */ defineComponent({
|
|
108
108
|
height: modalConfig.modalHeight
|
109
109
|
},
|
110
110
|
"preset": "dialog",
|
111
|
-
"positive-text": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || "\u786E\u8BA4",
|
112
|
-
"negative-text": ((
|
111
|
+
"positive-text": ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.428")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.428")) || "\u786E\u8BA4",
|
112
|
+
"negative-text": ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.28")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.28")) || "\u53D6\u6D88",
|
113
113
|
"on-positive-click": handleOk,
|
114
114
|
"on-negative-click": cancel,
|
115
115
|
"positiveButtonProps": {
|
@@ -230,10 +230,10 @@ const ScaleViewComputed = (props, state, config) => {
|
|
230
230
|
return !!props.hideBtn || !!props.isLock || state.isFinished && !canEdit.value;
|
231
231
|
});
|
232
232
|
const showEvaluateLabel = computed(() => (item) => {
|
233
|
-
var _a, _b;
|
233
|
+
var _a, _b, _c, _d, _e, _f;
|
234
234
|
const obj = {
|
235
|
-
EVALUATE_RADIO_BLOCK: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.298")) || "\u5355\u9009",
|
236
|
-
EVALUATE_CHECKBOX_BLOCK: ((
|
235
|
+
EVALUATE_RADIO_BLOCK: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.298")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.298")) || "\u5355\u9009",
|
236
|
+
EVALUATE_CHECKBOX_BLOCK: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.100")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.100")) || "\u591A\u9009"
|
237
237
|
};
|
238
238
|
return obj[item.type];
|
239
239
|
});
|
@@ -260,8 +260,8 @@ const ScaleViewComputed = (props, state, config) => {
|
|
260
260
|
return isShow && isRang <= 0;
|
261
261
|
});
|
262
262
|
const tipMsg = computed(() => {
|
263
|
-
var _a;
|
264
|
-
return props.type === "customList" ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || "\u4FDD\u5B58" : "\u63D0\u4EA4";
|
263
|
+
var _a, _b, _c;
|
264
|
+
return props.type === "customList" ? ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.244")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.244")) || "\u4FDD\u5B58" : "\u63D0\u4EA4";
|
265
265
|
});
|
266
266
|
const selectProps = computed(() => {
|
267
267
|
return {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AnyObject } from '../../../../shared/types';
|
2
2
|
export declare const ScaleViewInit: (props: any, state: any, emit: any, config: any) => {
|
3
3
|
initForm: (data: AnyObject) => Promise<void> | undefined;
|
4
|
-
batchInjectForm: (data: AnyObject) => Promise<boolean>;
|
4
|
+
batchInjectForm: (data: AnyObject, skipValid?: boolean) => Promise<boolean>;
|
5
5
|
};
|
@@ -146,12 +146,12 @@ const ScaleViewInit = (props, state, emit, config) => {
|
|
146
146
|
state.form = defaultFormValue(state.formArray);
|
147
147
|
state.rules = formatRules(state.formArray);
|
148
148
|
};
|
149
|
-
const batchInjectForm = async (data) => {
|
149
|
+
const batchInjectForm = async (data, skipValid = false) => {
|
150
150
|
const {
|
151
151
|
list = [],
|
152
152
|
map = {}
|
153
153
|
} = data;
|
154
|
-
if (data.isNotFilled || data.isLackCustomer)
|
154
|
+
if (!skipValid && (data.isNotFilled || data.isLackCustomer))
|
155
155
|
return Promise.reject();
|
156
156
|
state.config = map;
|
157
157
|
state.originConfig = JSON.parse(JSON.stringify(map));
|
@@ -115,7 +115,7 @@ const ScaleViewMethods = (props, state, emit, config) => {
|
|
115
115
|
emit("startWriteScale");
|
116
116
|
};
|
117
117
|
const closeEvaluateCountdown = () => {
|
118
|
-
var _a;
|
118
|
+
var _a, _b, _c;
|
119
119
|
state.showEvaluateCountdown = false;
|
120
120
|
if (isPreviewScale.value)
|
121
121
|
return;
|
@@ -125,12 +125,12 @@ const ScaleViewMethods = (props, state, emit, config) => {
|
|
125
125
|
title: "\u6E29\u99A8\u63D0\u793A",
|
126
126
|
content: "\u6D4B\u8BC4\u65F6\u95F4\u5230\u4E86\uFF0C\u7ED3\u675F\u6D4B\u8BC4\uFF01",
|
127
127
|
maskClosable: false,
|
128
|
-
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
|
128
|
+
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
|
129
129
|
onPositiveClick: () => ({})
|
130
130
|
});
|
131
131
|
};
|
132
132
|
const evatipConfirm = (str) => {
|
133
|
-
var _a;
|
133
|
+
var _a, _b, _c;
|
134
134
|
dialog.warning({
|
135
135
|
title: "\u63D0\u793A",
|
136
136
|
content: () => {
|
@@ -140,7 +140,7 @@ const ScaleViewMethods = (props, state, emit, config) => {
|
|
140
140
|
},
|
141
141
|
class: "c-evatip-dialog-wrap",
|
142
142
|
showIcon: false,
|
143
|
-
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
|
143
|
+
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
|
144
144
|
negativeText: "\u5173\u95ED",
|
145
145
|
maskClosable: false,
|
146
146
|
onPositiveClick() {
|
@@ -228,7 +228,7 @@ const ScaleViewSubmit = (props, state, emit, config) => {
|
|
228
228
|
});
|
229
229
|
};
|
230
230
|
const confirmSubmit = (message2) => {
|
231
|
-
var _a, _b;
|
231
|
+
var _a, _b, _c, _d, _e, _f;
|
232
232
|
dialog.warning({
|
233
233
|
title: "\u6E29\u99A8\u63D0\u793A",
|
234
234
|
content: () => h("div", {
|
@@ -236,8 +236,8 @@ const ScaleViewSubmit = (props, state, emit, config) => {
|
|
236
236
|
paddingLeft: "30px"
|
237
237
|
}
|
238
238
|
}, message2),
|
239
|
-
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || "\u786E\u5B9A",
|
240
|
-
negativeText: ((
|
239
|
+
positiveText: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.27")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.27")) || "\u786E\u5B9A",
|
240
|
+
negativeText: ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.28")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.28")) || "\u53D6\u6D88",
|
241
241
|
maskClosable: false,
|
242
242
|
closable: false,
|
243
243
|
positiveButtonProps: {
|
@@ -20,26 +20,26 @@ const ScaleViewValidate = (props, state, config) => {
|
|
20
20
|
return isAdress;
|
21
21
|
};
|
22
22
|
const checkAdress = (rule, value) => {
|
23
|
-
var _a;
|
23
|
+
var _a, _b, _c;
|
24
24
|
let {
|
25
25
|
address
|
26
26
|
} = value || {};
|
27
27
|
if (!address) {
|
28
|
-
return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B");
|
28
|
+
return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B");
|
29
29
|
}
|
30
30
|
return true;
|
31
31
|
};
|
32
32
|
const checkLabel = (rule, value) => {
|
33
|
-
var _a, _b;
|
33
|
+
var _a, _b, _c, _d, _e, _f;
|
34
34
|
if (!value || !Object.keys(value).length) {
|
35
|
-
return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B");
|
35
|
+
return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B");
|
36
36
|
}
|
37
37
|
let {
|
38
38
|
labelStr,
|
39
39
|
labels = []
|
40
40
|
} = value;
|
41
41
|
if (!labelStr || !labels.length) {
|
42
|
-
return new Error(((
|
42
|
+
return new Error(((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.248")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.248")) || "\u5FC5\u586B");
|
43
43
|
}
|
44
44
|
return true;
|
45
45
|
};
|
@@ -116,7 +116,7 @@ const ScaleViewValidate = (props, state, config) => {
|
|
116
116
|
return Object.prototype.toString.call(val);
|
117
117
|
};
|
118
118
|
const validateRequired = (rule, value) => {
|
119
|
-
var _a;
|
119
|
+
var _a, _b, _c;
|
120
120
|
let type = checkType(value);
|
121
121
|
if (type == "[object Object]") {
|
122
122
|
if (value && Object.keys(value).length)
|
@@ -131,19 +131,19 @@ const ScaleViewValidate = (props, state, config) => {
|
|
131
131
|
if (value)
|
132
132
|
return true;
|
133
133
|
}
|
134
|
-
return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B");
|
134
|
+
return new Error(((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B");
|
135
135
|
};
|
136
136
|
const filterArr = ["LABEL", "ADDRESS"];
|
137
137
|
const formatRules = (formArray) => {
|
138
138
|
const rules = {};
|
139
139
|
formArray.forEach((item) => {
|
140
|
-
var _a;
|
140
|
+
var _a, _b, _c;
|
141
141
|
let newTitle = item.val_key;
|
142
142
|
rules[newTitle] = [];
|
143
143
|
if (item.required && !filterArr.includes(item.type)) {
|
144
144
|
rules[newTitle].push({
|
145
145
|
required: item.required,
|
146
|
-
message: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || "\u5FC5\u586B",
|
146
|
+
message: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.248")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.248")) || "\u5FC5\u586B",
|
147
147
|
trigger: "change",
|
148
148
|
validator: validateRequired
|
149
149
|
});
|
@@ -14,7 +14,7 @@ import ClearIcon from './components/ClearIcon.vue.js';
|
|
14
14
|
import { InjectionSearchCascaderCheckAbleLevel, InjectionKeyboardEventBus, InjectionSearchCascaderLoadingNode, InjectionSearchCascaderValue } from './constants/index.js';
|
15
15
|
import { SearchMenu } from './components/SearchMenu.js';
|
16
16
|
|
17
|
-
var _a;
|
17
|
+
var _a, _b, _c;
|
18
18
|
const _hoisted_1 = {
|
19
19
|
style: {
|
20
20
|
"width": "100%"
|
@@ -41,7 +41,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
41
|
},
|
42
42
|
placeholder: {
|
43
43
|
type: String,
|
44
|
-
default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || "\u8BF7\u9009\u62E9"
|
44
|
+
default: ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.147")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.147")) || "\u8BF7\u9009\u62E9"
|
45
45
|
},
|
46
46
|
editPlaceholder: {
|
47
47
|
type: String,
|
@@ -4,17 +4,17 @@ import labelClassify from './components/label-classify.vue.js';
|
|
4
4
|
import { handleLabelColor } from '../../../shared/utils/vexutils.js';
|
5
5
|
import vexutilsExpand from '../../../shared/utils/vexutilsExpand.js';
|
6
6
|
|
7
|
-
var _a, _b;
|
7
|
+
var _a, _b, _c, _d, _e, _f;
|
8
8
|
const _hoisted_1 = {
|
9
9
|
key: 0,
|
10
10
|
class: "label-disable-wrap"
|
11
11
|
};
|
12
12
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("p", {
|
13
13
|
class: "label-disable-title"
|
14
|
-
}, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.516")) || "\u65E0\u53EF\u9009\u6807\u7B7E", -1);
|
14
|
+
}, ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.516")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.516")) || "\u65E0\u53EF\u9009\u6807\u7B7E", -1);
|
15
15
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("p", {
|
16
16
|
class: "label-disable-desc"
|
17
|
-
}, ((
|
17
|
+
}, ((_d = window.getLanguageByCode) == null ? void 0 : _d.call(window, "10010.1.517")) || ((_f = (_e = window.top) == null ? void 0 : _e.getLanguageByCode) == null ? void 0 : _f.call(_e, "10010.1.517")) || "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6807\u7B7E\u7BA1\u7406\u8BBE\u7F6E", -1);
|
18
18
|
const _hoisted_4 = [_hoisted_2, _hoisted_3];
|
19
19
|
const _hoisted_5 = {
|
20
20
|
style: {
|
@@ -281,7 +281,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
281
281
|
}
|
282
282
|
};
|
283
283
|
const handleDelLabel = async (v) => {
|
284
|
-
var _a2;
|
284
|
+
var _a2, _b2, _c2;
|
285
285
|
const {
|
286
286
|
status
|
287
287
|
} = await props.deleteLabel(v, props.item);
|
@@ -304,7 +304,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
304
304
|
}
|
305
305
|
emit("updateLabelData");
|
306
306
|
} else {
|
307
|
-
$message.warning(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.521")) || "\u5220\u9664\u5931\u8D25");
|
307
|
+
$message.warning(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.521")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.521")) || "\u5220\u9664\u5931\u8D25");
|
308
308
|
}
|
309
309
|
};
|
310
310
|
const labelAnchorTabsOnChange = (key) => {
|
@@ -424,14 +424,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
424
424
|
"total-right-label-wrap": __props.isChangeWindow
|
425
425
|
}])
|
426
426
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(state.labelConfig, (v, k) => {
|
427
|
-
var _a2, _b2;
|
427
|
+
var _a2, _b2, _c2, _d2, _e2, _f2;
|
428
428
|
return openBlock(), createElementBlock("div", {
|
429
429
|
key: k,
|
430
430
|
class: "edit-label-content"
|
431
431
|
}, [createElementVNode("div", {
|
432
432
|
class: "edit-label",
|
433
433
|
id: v.curKey
|
434
|
-
}, [createTextVNode(toDisplayString(k) + " ", 1), createElementVNode("span", _hoisted_8, "(" + toDisplayString(v.multipleChoice == 2 ? ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.298")) || "\u5355\u9009" : ((
|
434
|
+
}, [createTextVNode(toDisplayString(k) + " ", 1), createElementVNode("span", _hoisted_8, "(" + toDisplayString(v.multipleChoice == 2 ? ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.298")) || ((_c2 = (_b2 = window.top) == null ? void 0 : _b2.getLanguageByCode) == null ? void 0 : _c2.call(_b2, "10010.1.298")) || "\u5355\u9009" : ((_d2 = window.getLanguageByCode) == null ? void 0 : _d2.call(window, "10010.1.100")) || ((_f2 = (_e2 = window.top) == null ? void 0 : _e2.getLanguageByCode) == null ? void 0 : _f2.call(_e2, "10010.1.100")) || "\u591A\u9009") + ")", 1)], 8, _hoisted_7), createVNode(labelClassify, {
|
435
435
|
classifyItem: v,
|
436
436
|
handleLabelChange,
|
437
437
|
handleLabelColor: unref(handleLabelColor),
|