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