cnhis-design-vue 3.3.2-beta.6 → 3.3.2-release.2
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/audio-sdk/index.d.ts +173 -146
- package/es/components/audio-sdk/src/Index.vue.d.ts +174 -147
- package/es/components/audio-sdk/src/Index.vue2.js +131 -53
- package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
- package/es/components/audio-sdk/src/audioSDK.js +123 -42
- package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +138 -10
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +139 -11
- package/es/components/audio-sdk/src/components/recording.vue2.js +318 -74
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
- package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
- package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
- package/es/components/audio-sdk/src/types/index.d.ts +42 -0
- package/es/components/audio-sdk/src/types/index.js +10 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
- package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/src/index.vue2.js +27 -15
- package/es/components/big-table/src/BigTable.vue2.js +189 -131
- package/es/components/big-table/src/components/NoData.vue2.js +16 -4
- package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
- package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
- package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
- package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
- package/es/components/big-table/src/components/input-button.vue2.js +7 -3
- package/es/components/big-table/src/hooks/useNestTable.js +18 -4
- package/es/components/big-table/src/hooks/useTableParse.js +16 -3
- package/es/components/body-select/src/index.vue2.js +24 -4
- package/es/components/button-print/index.d.ts +12 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
- package/es/components/button-print/src/components/EditFormat.vue2.js +14 -6
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +100 -45
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +244 -95
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
- package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
- package/es/components/button-print/src/components/Preview.vue2.js +14 -4
- package/es/components/button-print/src/utils/dialog.js +26 -8
- package/es/components/button-print/src/utils/print.d.ts +5 -5
- package/es/components/button-print/src/utils/print.js +108 -21
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
- package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
- package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
- package/es/components/classification/src/components/set-classification/index.vue2.js +23 -6
- package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
- package/es/components/classification/src/index.vue2.js +261 -69
- package/es/components/default-page/src/constants/index.js +144 -19
- package/es/components/default-page/src/index.vue2.js +8 -2
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
- package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
- package/es/components/expand-field/src/components/form.vue2.js +783 -412
- package/es/components/expand-field/src/index.vue2.js +88 -22
- package/es/components/expand-field/src/utils/constant.js +88 -12
- package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
- package/es/components/fabric-chart/src/constants/index.js +72 -10
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +18 -4
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +63 -41
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +19 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -2
- package/es/components/field-editor/src/fields.js +232 -30
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldColor.vue2.js +88 -21
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue2.js +28 -12
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +210 -57
- package/es/components/field-set/src/Index.vue2.js +40 -6
- package/es/components/field-set/src/TableStyle.vue2.js +48 -13
- package/es/components/field-set/src/components/condition.vue2.js +27 -11
- package/es/components/field-set/src/components/edit-dialog.vue2.js +149 -69
- package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue2.js +123 -42
- package/es/components/field-set/src/constants/filter.js +328 -42
- package/es/components/field-set/src/constants/index.js +504 -64
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
- package/es/components/form-config/src/constants/index.js +80 -11
- package/es/components/form-config/src/hooks/useLocale.js +240 -31
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +7 -3
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +7 -3
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
- package/es/components/form-render/src/components/renderer/input.js +2 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +7 -3
- package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
- package/es/components/form-render/src/components/renderer/switch.js +24 -4
- package/es/components/form-render/src/components/renderer/textarea.js +4 -3
- package/es/components/form-render/src/utils/schema.js +26 -6
- package/es/components/iho-chat/src/Index.vue2.js +42 -38
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +35 -15
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +54 -22
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +309 -211
- package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +66 -11
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
- package/es/components/iho-chat/src/components/SiderList.vue2.js +70 -40
- package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
- package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
- package/es/components/iho-chat/src/utils/index.js +79 -14
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +14 -6
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +45 -18
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +20 -14
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +142 -23
- package/es/components/keyboard/src/Keyboard.vue2.js +21 -9
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +49 -35
- package/es/components/map/src/Map.vue2.js +7 -3
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +14 -6
- package/es/components/quick-search/src/index.vue2.js +177 -132
- package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +14 -6
- package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
- package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
- package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +30 -9
- package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
- package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
- package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
- package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
- package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
- package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
- package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
- package/es/components/select-label/src/SelectLabel.vue2.js +85 -55
- package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
- package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
- package/es/components/select-person/src/SelectPersonType.vue2.js +130 -105
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
- package/es/components/select-person/src/index.vue2.js +20 -7
- package/es/components/slider-tree/src/index.vue2.js +16 -3
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +186 -112
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
- package/es/components/table-export-field/src/index.vue2.js +28 -12
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +13 -7
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +7 -3
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
- package/es/components/table-filter/src/tool/baseOptions.js +144 -19
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +28 -12
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +7 -3
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +14 -6
- package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
@@ -14,7 +14,6 @@ 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, _b, _c;
|
18
17
|
const _hoisted_1 = {
|
19
18
|
style: {
|
20
19
|
"width": "100%"
|
@@ -41,7 +40,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
41
40
|
},
|
42
41
|
placeholder: {
|
43
42
|
type: String,
|
44
|
-
default: (
|
43
|
+
default: function() {
|
44
|
+
var _a, _b, _c;
|
45
|
+
try {
|
46
|
+
return ((_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";
|
47
|
+
} catch (e) {
|
48
|
+
return "\u8BF7\u9009\u62E9";
|
49
|
+
}
|
50
|
+
}()
|
45
51
|
},
|
46
52
|
editPlaceholder: {
|
47
53
|
type: String,
|
@@ -105,14 +111,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
105
111
|
emitValue([]);
|
106
112
|
}
|
107
113
|
function onClick(evt) {
|
108
|
-
var
|
109
|
-
if (((
|
114
|
+
var _a;
|
115
|
+
if (((_a = evt.target) == null ? void 0 : _a.tagName) !== "INPUT")
|
110
116
|
return;
|
111
117
|
openMenu();
|
112
118
|
}
|
113
119
|
const onKeydown = (evt) => {
|
114
|
-
var
|
115
|
-
if (((
|
120
|
+
var _a;
|
121
|
+
if (((_a = evt.target) == null ? void 0 : _a.tagName) === "INPUT" && evt.code === "Enter") {
|
116
122
|
if (!show.value) {
|
117
123
|
openMenu();
|
118
124
|
return;
|
@@ -167,20 +173,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
167
173
|
search();
|
168
174
|
}
|
169
175
|
async function closeMenu() {
|
170
|
-
var
|
176
|
+
var _a;
|
171
177
|
show.value = false;
|
172
|
-
(
|
178
|
+
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
173
179
|
}
|
174
180
|
const inputRef = ref();
|
175
181
|
onClickOutside(inputRef, (evt) => {
|
176
|
-
var
|
182
|
+
var _a;
|
177
183
|
if (!show.value)
|
178
184
|
return;
|
179
185
|
const _evt = evt;
|
180
186
|
if (!_evt.target)
|
181
187
|
return closeMenu();
|
182
188
|
if (isInPopper(_evt.target)) {
|
183
|
-
(
|
189
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
184
190
|
return;
|
185
191
|
}
|
186
192
|
closeMenu();
|
@@ -204,7 +210,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
204
210
|
provide(InjectionSearchCascaderLoadingNode, loadingNode);
|
205
211
|
provide(InjectionSearchCascaderValue, computed(() => props.value));
|
206
212
|
const search = useDebounceFn(async (payload, keyword) => {
|
207
|
-
var
|
213
|
+
var _a;
|
208
214
|
const {
|
209
215
|
type,
|
210
216
|
node,
|
@@ -224,7 +230,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
224
230
|
} finally {
|
225
231
|
loadingNode.value = null;
|
226
232
|
await nextTick();
|
227
|
-
(
|
233
|
+
(_a = popoverRef.value) == null ? void 0 : _a.syncPosition();
|
228
234
|
}
|
229
235
|
}, 400);
|
230
236
|
const changeCursorNode = (node) => {
|
@@ -237,10 +243,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
237
243
|
});
|
238
244
|
expose({
|
239
245
|
getWidth() {
|
240
|
-
var
|
246
|
+
var _a;
|
241
247
|
if (!inputRef.value)
|
242
248
|
return 0;
|
243
|
-
const ele = (
|
249
|
+
const ele = (_a = inputRef.value) == null ? void 0 : _a.$el;
|
244
250
|
if (!ele)
|
245
251
|
return;
|
246
252
|
return ele.clientWidth;
|
@@ -4,17 +4,30 @@ 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, _c, _d, _e, _f;
|
8
7
|
const _hoisted_1 = {
|
9
8
|
key: 0,
|
10
9
|
class: "label-disable-wrap"
|
11
10
|
};
|
12
11
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("p", {
|
13
12
|
class: "label-disable-title"
|
14
|
-
}, (
|
13
|
+
}, function() {
|
14
|
+
var _a, _b, _c;
|
15
|
+
try {
|
16
|
+
return ((_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";
|
17
|
+
} catch (e) {
|
18
|
+
return "\u65E0\u53EF\u9009\u6807\u7B7E";
|
19
|
+
}
|
20
|
+
}(), -1);
|
15
21
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("p", {
|
16
22
|
class: "label-disable-desc"
|
17
|
-
}, (
|
23
|
+
}, function() {
|
24
|
+
var _a, _b, _c;
|
25
|
+
try {
|
26
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.517")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.517")) || "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6807\u7B7E\u7BA1\u7406\u8BBE\u7F6E";
|
27
|
+
} catch (e) {
|
28
|
+
return "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6807\u7B7E\u7BA1\u7406\u8BBE\u7F6E";
|
29
|
+
}
|
30
|
+
}(), -1);
|
18
31
|
const _hoisted_4 = [_hoisted_2, _hoisted_3];
|
19
32
|
const _hoisted_5 = {
|
20
33
|
style: {
|
@@ -120,12 +133,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
120
133
|
}, []);
|
121
134
|
};
|
122
135
|
const handleLabelInit = () => {
|
123
|
-
var
|
136
|
+
var _a;
|
124
137
|
if (props.isLock)
|
125
138
|
return;
|
126
139
|
const copy = JSON.parse(JSON.stringify(props.labelOptions));
|
127
140
|
for (let key in copy) {
|
128
|
-
let typeId = ((
|
141
|
+
let typeId = ((_a = copy[key]) == null ? void 0 : _a.typeId) || "";
|
129
142
|
Object.assign(copy[key], {
|
130
143
|
curKey: `${key}_${typeId}}`
|
131
144
|
});
|
@@ -146,8 +159,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
146
159
|
if (typeof state.labelConfig === "object") {
|
147
160
|
let keys = Object.keys(state.labelConfig || {});
|
148
161
|
keys.forEach((k) => {
|
149
|
-
var
|
150
|
-
let itemList = ((
|
162
|
+
var _a;
|
163
|
+
let itemList = ((_a = state.labelConfig[k]) == null ? void 0 : _a.itemList) || [];
|
151
164
|
if (itemList.length) {
|
152
165
|
itemList.forEach((v) => {
|
153
166
|
if (selectLabelId.value.includes(v.labelId)) {
|
@@ -193,8 +206,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
193
206
|
item.showAdd = true;
|
194
207
|
const nextInput = $event.target.nextElementSibling;
|
195
208
|
nextTick(() => {
|
196
|
-
var
|
197
|
-
(
|
209
|
+
var _a;
|
210
|
+
(_a = nextInput == null ? void 0 : nextInput.firstChild) == null ? void 0 : _a.focus();
|
198
211
|
});
|
199
212
|
};
|
200
213
|
const handleLabelForm = (cb) => {
|
@@ -215,7 +228,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
215
228
|
v.showAdd = false;
|
216
229
|
};
|
217
230
|
const handleReqSaveLabel = async (v) => {
|
218
|
-
var
|
231
|
+
var _a;
|
219
232
|
let privateLabel = v.itemList.filter((item) => {
|
220
233
|
return !(item.isPublic && item.isPublic == 1);
|
221
234
|
});
|
@@ -227,7 +240,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
227
240
|
return false;
|
228
241
|
}
|
229
242
|
let parentColor = "";
|
230
|
-
if ((
|
243
|
+
if ((_a = v.itemList) == null ? void 0 : _a.length) {
|
231
244
|
parentColor = v.itemList[0].parentColor || v.parentColor || "";
|
232
245
|
} else {
|
233
246
|
parentColor = (v == null ? void 0 : v.parentColor) || "";
|
@@ -247,10 +260,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
247
260
|
}
|
248
261
|
};
|
249
262
|
const handleLabelChange = (value, d, labelGroup, v) => {
|
250
|
-
var
|
263
|
+
var _a;
|
251
264
|
const list = labelGroup.itemList;
|
252
265
|
const multipleChoice = labelGroup.multipleChoice;
|
253
|
-
let selectedList = ((
|
266
|
+
let selectedList = ((_a = state.labelSelectedEdit) == null ? void 0 : _a.length) && vexutilsExpand.clone(state.labelSelectedEdit, true) || [];
|
254
267
|
if (value) {
|
255
268
|
if (selectedList.some((n) => n.labelId == d.labelId)) {
|
256
269
|
return;
|
@@ -281,7 +294,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
281
294
|
}
|
282
295
|
};
|
283
296
|
const handleDelLabel = async (v) => {
|
284
|
-
var _a2, _b2, _c2;
|
285
297
|
const {
|
286
298
|
status
|
287
299
|
} = await props.deleteLabel(v, props.item);
|
@@ -304,7 +316,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
304
316
|
}
|
305
317
|
emit("updateLabelData");
|
306
318
|
} else {
|
307
|
-
$message.warning((
|
319
|
+
$message.warning(function() {
|
320
|
+
var _a, _b, _c;
|
321
|
+
try {
|
322
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.521")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.521")) || "\u5220\u9664\u5931\u8D25";
|
323
|
+
} catch (e) {
|
324
|
+
return "\u5220\u9664\u5931\u8D25";
|
325
|
+
}
|
326
|
+
}());
|
308
327
|
}
|
309
328
|
};
|
310
329
|
const labelAnchorTabsOnChange = (key) => {
|
@@ -328,8 +347,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
328
347
|
state.cacheAnchorKey = curLink;
|
329
348
|
};
|
330
349
|
const anchorGetContainer = () => {
|
331
|
-
var
|
332
|
-
return (
|
350
|
+
var _a;
|
351
|
+
return (_a = labelFormContent.value) == null ? void 0 : _a.querySelector(".right-label-wrap");
|
333
352
|
};
|
334
353
|
const handleResetOptions = () => {
|
335
354
|
};
|
@@ -337,8 +356,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
337
356
|
if (typeof state.labelConfig === "object") {
|
338
357
|
let keys = Object.keys(state.labelConfig || {});
|
339
358
|
keys.forEach((k) => {
|
340
|
-
var
|
341
|
-
let itemList = ((
|
359
|
+
var _a;
|
360
|
+
let itemList = ((_a = state.labelConfig[k]) == null ? void 0 : _a.itemList) || [];
|
342
361
|
if (itemList.length) {
|
343
362
|
itemList.forEach((v) => {
|
344
363
|
if (id == v.labelId) {
|
@@ -424,14 +443,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
424
443
|
"total-right-label-wrap": __props.isChangeWindow
|
425
444
|
}])
|
426
445
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(state.labelConfig, (v, k) => {
|
427
|
-
var _a2, _b2, _c2, _d2, _e2, _f2;
|
428
446
|
return openBlock(), createElementBlock("div", {
|
429
447
|
key: k,
|
430
448
|
class: "edit-label-content"
|
431
449
|
}, [createElementVNode("div", {
|
432
450
|
class: "edit-label",
|
433
451
|
id: v.curKey
|
434
|
-
}, [createTextVNode(toDisplayString(k) + " ", 1), createElementVNode("span", _hoisted_8, "(" + toDisplayString(v.multipleChoice == 2 ? (
|
452
|
+
}, [createTextVNode(toDisplayString(k) + " ", 1), createElementVNode("span", _hoisted_8, "(" + toDisplayString(v.multipleChoice == 2 ? function() {
|
453
|
+
var _a, _b, _c;
|
454
|
+
try {
|
455
|
+
return ((_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";
|
456
|
+
} catch (e) {
|
457
|
+
return "\u5355\u9009";
|
458
|
+
}
|
459
|
+
}() : function() {
|
460
|
+
var _a, _b, _c;
|
461
|
+
try {
|
462
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.100")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.100")) || "\u591A\u9009";
|
463
|
+
} catch (e) {
|
464
|
+
return "\u591A\u9009";
|
465
|
+
}
|
466
|
+
}()) + ")", 1)], 8, _hoisted_7), createVNode(labelClassify, {
|
435
467
|
classifyItem: v,
|
436
468
|
handleLabelChange,
|
437
469
|
handleLabelColor: unref(handleLabelColor),
|
@@ -5,16 +5,29 @@ import scriptFormContent from './LabelFormContent.vue.js';
|
|
5
5
|
import { handleLabelColor } from '../../../shared/utils/vexutils.js';
|
6
6
|
import vexutilsExpand from '../../../shared/utils/vexutilsExpand.js';
|
7
7
|
|
8
|
-
var _a, _b, _c, _d, _e, _f;
|
9
8
|
const _hoisted_1 = {
|
10
9
|
class: "c-select-label"
|
11
10
|
};
|
12
|
-
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, (
|
11
|
+
const _hoisted_2 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
12
|
+
var _a, _b, _c;
|
13
|
+
try {
|
14
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.522")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.522")) || "\u5E38\u7528";
|
15
|
+
} catch (e) {
|
16
|
+
return "\u5E38\u7528";
|
17
|
+
}
|
18
|
+
}(), -1);
|
13
19
|
const _hoisted_3 = {
|
14
20
|
key: 2,
|
15
21
|
class: "outexplicit"
|
16
22
|
};
|
17
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", null, (
|
23
|
+
const _hoisted_4 = /* @__PURE__ */ createElementVNode("span", null, function() {
|
24
|
+
var _a, _b, _c;
|
25
|
+
try {
|
26
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.518")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.518")) || "\u9009\u62E9\u6807\u7B7E";
|
27
|
+
} catch (e) {
|
28
|
+
return "\u9009\u62E9\u6807\u7B7E";
|
29
|
+
}
|
30
|
+
}(), -1);
|
18
31
|
const _hoisted_5 = {
|
19
32
|
class: "svg-wrap"
|
20
33
|
};
|
@@ -104,11 +117,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
117
|
return (item.is_edit == 1 || item.isShow) && !props.isDetail;
|
105
118
|
});
|
106
119
|
const curSelectedList = computed(() => {
|
107
|
-
var
|
108
|
-
let key = (
|
120
|
+
var _a, _b;
|
121
|
+
let key = (_a = props.item) == null ? void 0 : _a.val_key;
|
109
122
|
if (!key || !props.selectedListObj)
|
110
123
|
return props.selectedList;
|
111
|
-
let rList = (
|
124
|
+
let rList = (_b = props.selectedListObj) == null ? void 0 : _b[key];
|
112
125
|
if (!rList)
|
113
126
|
return props.selectedList;
|
114
127
|
return rList;
|
@@ -122,13 +135,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
122
135
|
});
|
123
136
|
};
|
124
137
|
const getCommonlabelsList = async (type) => {
|
125
|
-
var
|
138
|
+
var _a;
|
126
139
|
let {
|
127
140
|
data = {}
|
128
141
|
} = await props.queryCommonlabels(type) || {};
|
129
142
|
if (data.result !== "SUCCESS")
|
130
143
|
return;
|
131
|
-
let commonLabelList = ((
|
144
|
+
let commonLabelList = ((_a = data.map) == null ? void 0 : _a.rows) || [];
|
132
145
|
hadleCommonlabels(commonLabelList, state.labelSelectedList);
|
133
146
|
state.commonLabelList = commonLabelList;
|
134
147
|
};
|
@@ -171,10 +184,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
171
184
|
handleGetLabelData(props.item);
|
172
185
|
};
|
173
186
|
const handleLabelCancel = () => {
|
174
|
-
var
|
187
|
+
var _a;
|
175
188
|
if (props.explicit)
|
176
189
|
return;
|
177
|
-
(
|
190
|
+
(_a = labelFormContentRef.value) == null ? void 0 : _a.resetShowAdd();
|
178
191
|
state.editLabelItem.showAdd = false;
|
179
192
|
state.editLabelItem = {};
|
180
193
|
state.inited = false;
|
@@ -192,8 +205,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
192
205
|
state.maxHeight = state.modalHeight === "auto" ? "404px" : "none";
|
193
206
|
};
|
194
207
|
const handleSaveLabel = () => {
|
195
|
-
var
|
196
|
-
(
|
208
|
+
var _a;
|
209
|
+
(_a = labelFormContentRef.value) == null ? void 0 : _a.handleLabelForm((selectList) => {
|
197
210
|
emit("onChange", [...selectList]);
|
198
211
|
state.labelSelectedList = selectList;
|
199
212
|
hadleCommonlabels(state.commonLabelList, selectList);
|
@@ -256,7 +269,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
256
269
|
state.multipleChoiceConfig = multipleChoiceConfig;
|
257
270
|
}
|
258
271
|
keys.forEach((key) => {
|
259
|
-
var
|
272
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
260
273
|
if (key === "typeList")
|
261
274
|
return;
|
262
275
|
if (key === "emptyTypes") {
|
@@ -284,19 +297,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
284
297
|
itemList: false,
|
285
298
|
typeId: "",
|
286
299
|
typeName: key,
|
287
|
-
allowCreateByPersonal: (
|
300
|
+
allowCreateByPersonal: (_a = choiceTypes[key]) == null ? void 0 : _a.allowCreateByPersonal
|
288
301
|
},
|
289
302
|
...choiceTypes[key] || {}
|
290
303
|
};
|
291
304
|
} else {
|
292
305
|
state.editLabelItem.labelObj[key].isNoAdd = true;
|
293
|
-
state.editLabelItem.labelObj[key].multipleChoice = (
|
294
|
-
state.editLabelItem.labelObj[key].allowCreateByPersonal = (
|
295
|
-
state.editLabelItem.labelObj[key].parentColor = (
|
306
|
+
state.editLabelItem.labelObj[key].multipleChoice = (_b = choiceTypes[key]) == null ? void 0 : _b.multipleChoice;
|
307
|
+
state.editLabelItem.labelObj[key].allowCreateByPersonal = (_c = choiceTypes[key]) == null ? void 0 : _c.allowCreateByPersonal;
|
308
|
+
state.editLabelItem.labelObj[key].parentColor = (_d = choiceTypes[key]) == null ? void 0 : _d.parentColor;
|
296
309
|
}
|
297
310
|
} else {
|
298
|
-
state.editLabelItem.labelObj[key].multipleChoice = (
|
299
|
-
state.editLabelItem.labelObj[key].allowCreateByPersonal = (
|
311
|
+
state.editLabelItem.labelObj[key].multipleChoice = (_e = choiceTypes[key]) == null ? void 0 : _e.multipleChoice;
|
312
|
+
state.editLabelItem.labelObj[key].allowCreateByPersonal = (_f = choiceTypes[key]) == null ? void 0 : _f.allowCreateByPersonal;
|
300
313
|
state.editLabelItem.labelObj[key].parentColor = (_g = choiceTypes[key]) == null ? void 0 : _g.parentColor;
|
301
314
|
}
|
302
315
|
});
|
@@ -310,8 +323,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
310
323
|
const hanldeSetLabelItem = (id, state2) => {
|
311
324
|
if (props.explicit) {
|
312
325
|
nextTick(() => {
|
313
|
-
var
|
314
|
-
(
|
326
|
+
var _a;
|
327
|
+
(_a = labelFormContentRef.value) == null ? void 0 : _a.hanldeSetLabelItem(id, state2);
|
315
328
|
});
|
316
329
|
}
|
317
330
|
};
|
@@ -346,8 +359,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
346
359
|
deep: true
|
347
360
|
});
|
348
361
|
watch(() => {
|
349
|
-
var
|
350
|
-
return (
|
362
|
+
var _a;
|
363
|
+
return (_a = props.item) == null ? void 0 : _a.label_type;
|
351
364
|
}, (val) => {
|
352
365
|
if (!val || props.sourceType != "form")
|
353
366
|
return;
|
@@ -357,42 +370,45 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
357
370
|
deep: true
|
358
371
|
});
|
359
372
|
return (_ctx, _cache) => {
|
360
|
-
var _a2, _b2, _c2, _d2, _e2, _f2;
|
361
373
|
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", _hoisted_1, [!__props.explicit ? (openBlock(), createBlock(unref(NSpace), {
|
362
374
|
key: 0,
|
363
375
|
align: "center"
|
364
376
|
}, {
|
365
|
-
default: withCtx(() => {
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
377
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(state.labelSelectedList, (v) => {
|
378
|
+
return openBlock(), createBlock(unref(NTag), {
|
379
|
+
bordered: false,
|
380
|
+
key: v.labelId,
|
381
|
+
style: normalizeStyle(unref(handleLabelColor)(v, true)),
|
382
|
+
closable: unref(item_is_edit) && !__props.isLock,
|
383
|
+
onClose: ($event) => closeTag(v),
|
384
|
+
size: "small"
|
385
|
+
}, {
|
386
|
+
default: withCtx(() => [createVNode(unref(NTooltip), {
|
387
|
+
placement: "top-start"
|
375
388
|
}, {
|
376
|
-
|
377
|
-
|
378
|
-
}, {
|
379
|
-
trigger: withCtx(() => [createElementVNode("span", null, toDisplayString(v.labelName), 1)]),
|
380
|
-
default: withCtx(() => [createElementVNode("span", null, toDisplayString(v.labelName), 1)]),
|
381
|
-
_: 2
|
382
|
-
}, 1024)]),
|
389
|
+
trigger: withCtx(() => [createElementVNode("span", null, toDisplayString(v.labelName), 1)]),
|
390
|
+
default: withCtx(() => [createElementVNode("span", null, toDisplayString(v.labelName), 1)]),
|
383
391
|
_: 2
|
384
|
-
},
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
}
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
392
|
+
}, 1024)]),
|
393
|
+
_: 2
|
394
|
+
}, 1032, ["style", "closable", "onClose"]);
|
395
|
+
}), 128)), !__props.explicit && !__props.isLock ? withDirectives((openBlock(), createElementBlock("span", {
|
396
|
+
key: 0,
|
397
|
+
class: normalizeClass(["form-add-icon form-add-icon-label", {
|
398
|
+
disable: __props.isLock
|
399
|
+
}]),
|
400
|
+
onClick: handleEditLabel
|
401
|
+
}, [createVNode(unref(NIcon), {
|
402
|
+
class: "add-icon",
|
403
|
+
component: unref(AddCircleOutline)
|
404
|
+
}, null, 8, ["component"]), createTextVNode(function() {
|
405
|
+
var _a, _b, _c;
|
406
|
+
try {
|
407
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.279")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.279")) || "\u65B0\u589E";
|
408
|
+
} catch (e) {
|
409
|
+
return "\u65B0\u589E";
|
410
|
+
}
|
411
|
+
}())], 2)), [[vShow, unref(item_is_edit)]]) : createCommentVNode("v-if", true)]),
|
396
412
|
_: 1
|
397
413
|
})) : createCommentVNode("v-if", true), __props.sourceType == "form" && state.commonLabelList.length && unref(item_is_edit) && !__props.explicit ? (openBlock(), createBlock(unref(NSpace), {
|
398
414
|
key: 1,
|
@@ -443,8 +459,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
443
459
|
"mask-closable": false,
|
444
460
|
"close-on-esc": false,
|
445
461
|
"show-icon": false,
|
446
|
-
"negative-text": (
|
447
|
-
|
462
|
+
"negative-text": function() {
|
463
|
+
var _a, _b, _c;
|
464
|
+
try {
|
465
|
+
return ((_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";
|
466
|
+
} catch (e) {
|
467
|
+
return "\u53D6\u6D88";
|
468
|
+
}
|
469
|
+
}(),
|
470
|
+
"positive-text": function() {
|
471
|
+
var _a, _b, _c;
|
472
|
+
try {
|
473
|
+
return ((_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";
|
474
|
+
} catch (e) {
|
475
|
+
return "\u786E\u5B9A";
|
476
|
+
}
|
477
|
+
}(),
|
448
478
|
style: normalizeStyle({
|
449
479
|
width: state.modalWidth
|
450
480
|
})
|
@@ -2,7 +2,6 @@ import { createElementVNode, defineComponent, ref, watch, openBlock, createEleme
|
|
2
2
|
import { NTag, NTooltip, NIcon, NButton, NInput } from 'naive-ui';
|
3
3
|
import { Close, Add } from '@vicons/ionicons5';
|
4
4
|
|
5
|
-
var _a, _b, _c, _d, _e, _f;
|
6
5
|
const _hoisted_1 = {
|
7
6
|
class: "edit-content"
|
8
7
|
};
|
@@ -12,10 +11,24 @@ const _hoisted_2 = {
|
|
12
11
|
};
|
13
12
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("p", {
|
14
13
|
class: "label-disable-title"
|
15
|
-
}, (
|
14
|
+
}, function() {
|
15
|
+
var _a, _b, _c;
|
16
|
+
try {
|
17
|
+
return ((_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";
|
18
|
+
} catch (e) {
|
19
|
+
return "\u65E0\u53EF\u9009\u6807\u7B7E";
|
20
|
+
}
|
21
|
+
}(), -1);
|
16
22
|
const _hoisted_4 = /* @__PURE__ */ createElementVNode("p", {
|
17
23
|
class: "label-disable-desc"
|
18
|
-
}, (
|
24
|
+
}, function() {
|
25
|
+
var _a, _b, _c;
|
26
|
+
try {
|
27
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.517")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.517")) || "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6807\u7B7E\u7BA1\u7406\u8BBE\u7F6E";
|
28
|
+
} catch (e) {
|
29
|
+
return "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6807\u7B7E\u7BA1\u7406\u8BBE\u7F6E";
|
30
|
+
}
|
31
|
+
}(), -1);
|
19
32
|
const _hoisted_5 = [_hoisted_3, _hoisted_4];
|
20
33
|
const _hoisted_6 = {
|
21
34
|
class: "label-content"
|
@@ -71,9 +84,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
71
84
|
sourceType: null
|
72
85
|
},
|
73
86
|
setup(__props) {
|
74
|
-
var
|
87
|
+
var _a;
|
75
88
|
const props = __props;
|
76
|
-
let itemList = ref(((
|
89
|
+
let itemList = ref(((_a = props.classifyItem) == null ? void 0 : _a.itemList) || []);
|
77
90
|
const onHandleLabelChange = (value, item, classifyItem) => {
|
78
91
|
item.isSelect = value;
|
79
92
|
props.handleLabelChange(value, item, classifyItem);
|
@@ -120,12 +133,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
120
133
|
class: "label-add",
|
121
134
|
onClick: _cache[0] || (_cache[0] = ($event) => __props.handleAddLabel($event, __props.classifyItem))
|
122
135
|
}, {
|
123
|
-
default: withCtx(() => {
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
136
|
+
default: withCtx(() => [__props.classifyItem.addVal ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(__props.classifyItem.addVal), 1)) : (openBlock(), createElementBlock("span", _hoisted_8, [createVNode(unref(NIcon), {
|
137
|
+
component: unref(Add)
|
138
|
+
}, null, 8, ["component"]), createTextVNode(function() {
|
139
|
+
var _a2, _b, _c;
|
140
|
+
try {
|
141
|
+
return ((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.297")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.297")) || "\u6807\u7B7E";
|
142
|
+
} catch (e) {
|
143
|
+
return "\u6807\u7B7E";
|
144
|
+
}
|
145
|
+
}())]))]),
|
129
146
|
_: 1
|
130
147
|
}, 512)), [[vShow, !__props.classifyItem.showAdd]]) : createCommentVNode("v-if", true), createCommentVNode(" \u662F\u5426\u5141\u8BB8\u65B0\u589E\u4E2A\u4EBA\u6807\u7B7E allowCreateByPersonal "), __props.isEdit && !__props.classifyItem.isNoAdd && __props.sourceType != "guage" ? withDirectives((openBlock(), createBlock(unref(NInput), {
|
131
148
|
key: 1,
|
@@ -2,17 +2,30 @@ import { createElementVNode, defineComponent, ref, watch, openBlock, createEleme
|
|
2
2
|
import { NAnchor, NAnchorLink } from 'naive-ui';
|
3
3
|
import IhoLabelClassify from './iho-label-classify.vue.js';
|
4
4
|
|
5
|
-
var _a, _b, _c, _d, _e, _f;
|
6
5
|
const _hoisted_1 = {
|
7
6
|
key: 0,
|
8
7
|
class: "label-disable-wrap"
|
9
8
|
};
|
10
9
|
const _hoisted_2 = /* @__PURE__ */ createElementVNode("p", {
|
11
10
|
class: "label-disable-title"
|
12
|
-
}, (
|
11
|
+
}, function() {
|
12
|
+
var _a, _b, _c;
|
13
|
+
try {
|
14
|
+
return ((_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";
|
15
|
+
} catch (e) {
|
16
|
+
return "\u65E0\u53EF\u9009\u6807\u7B7E";
|
17
|
+
}
|
18
|
+
}(), -1);
|
13
19
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("p", {
|
14
20
|
class: "label-disable-desc"
|
15
|
-
}, (
|
21
|
+
}, function() {
|
22
|
+
var _a, _b, _c;
|
23
|
+
try {
|
24
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.517")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.517")) || "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6807\u7B7E\u7BA1\u7406\u8BBE\u7F6E";
|
25
|
+
} catch (e) {
|
26
|
+
return "\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\u8FDB\u884C\u6807\u7B7E\u7BA1\u7406\u8BBE\u7F6E";
|
27
|
+
}
|
28
|
+
}(), -1);
|
16
29
|
const _hoisted_4 = [_hoisted_2, _hoisted_3];
|
17
30
|
const _hoisted_5 = {
|
18
31
|
style: {
|
@@ -52,8 +65,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
65
|
const curSelectedList = ref();
|
53
66
|
const labelFormContent = ref(null);
|
54
67
|
const anchorGetContainer = () => {
|
55
|
-
var
|
56
|
-
return (
|
68
|
+
var _a;
|
69
|
+
return (_a = labelFormContent.value) == null ? void 0 : _a.querySelector(".right-label-wrap");
|
57
70
|
};
|
58
71
|
const handleAnchorClick = (e) => {
|
59
72
|
e.preventDefault();
|