@witlink/usercenter 1.2.66 → 1.2.67

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.
@@ -8,7 +8,7 @@ import { useI18n } from "vue-i18n";
8
8
  import { defineStore, createPinia } from "pinia";
9
9
  import Axios from "axios";
10
10
  import { notification, message, App, Drawer, Button, ConfigProvider, Modal, Checkbox as Checkbox$1, Divider as Divider$1 } from "ant-design-vue";
11
- import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode, createTextVNode, toDisplayString, createBlock, Fragment, renderList, normalizeClass, normalizeStyle, mergeProps, onBeforeMount, withDirectives, vShow, useSlots, createSlots, renderSlot, normalizeProps, guardReactiveProps, withModifiers, watchEffect, mergeModels, useModel, resolveDirective } from "vue";
11
+ import { ref, render, h, reactive, inject, computed, provide, createCommentVNode, defineComponent, watch, onMounted, nextTick, onUnmounted, TransitionGroup, Teleport, resolveComponent, onActivated, onDeactivated, onBeforeUnmount, openBlock, createElementBlock, createVNode, withCtx, unref, createBlock, createElementVNode, createTextVNode, toDisplayString, Fragment, renderList, normalizeClass, normalizeStyle, mergeProps, onBeforeMount, withDirectives, vShow, useSlots, createSlots, renderSlot, normalizeProps, guardReactiveProps, withModifiers, watchEffect, mergeModels, useModel, resolveDirective } from "vue";
12
12
  import { getUserInfo as getUserInfo$1, hasPermission } from "@witlink/components/utils";
13
13
  import en_US from "ant-design-vue/es/locale/en_US";
14
14
  import zh_CN from "ant-design-vue/es/locale/zh_CN";
@@ -32137,7 +32137,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32137
32137
  url: "",
32138
32138
  parentId: null,
32139
32139
  selects: [],
32140
- options: []
32140
+ options: [],
32141
+ helperId: null
32141
32142
  });
32142
32143
  const parentMenuOptions = ref([]);
32143
32144
  const handleCancel = () => {
@@ -32162,6 +32163,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32162
32163
  })) || [];
32163
32164
  };
32164
32165
  onMounted(() => {
32166
+ var _a;
32165
32167
  init2();
32166
32168
  formState.value = {
32167
32169
  funName: props.data.funName,
@@ -32169,7 +32171,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32169
32171
  url: props.data.url,
32170
32172
  parentId: props.data.parentId,
32171
32173
  selects: props.data.selects,
32172
- options: props.data.options
32174
+ options: props.data.options,
32175
+ helperId: ((_a = props.data) == null ? void 0 : _a.helperId) || null
32173
32176
  };
32174
32177
  });
32175
32178
  return (_ctx, _cache) => {
@@ -32228,6 +32231,22 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32228
32231
  ]),
32229
32232
  _: 1
32230
32233
  }, 8, ["label", "rules"]),
32234
+ createCommentVNode(" \u5E2E\u52A9\u4E2D\u5FC3\u5173\u8054id "),
32235
+ __props.systemId == "cis" ? (openBlock(), createBlock(_component_a_form_item, {
32236
+ key: 0,
32237
+ label: _ctx.$t("uc_fun.ucHelpLinkID"),
32238
+ name: "helperId"
32239
+ }, {
32240
+ default: withCtx(() => [
32241
+ createVNode(_component_a_input, {
32242
+ placeholder: _ctx.$t("uc_common.plsEnter"),
32243
+ value: formState.value.helperId,
32244
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.helperId = $event),
32245
+ autocomplete: "off"
32246
+ }, null, 8, ["placeholder", "value"])
32247
+ ]),
32248
+ _: 1
32249
+ }, 8, ["label"])) : createCommentVNode("v-if", true),
32231
32250
  createVNode(_component_a_form_item, {
32232
32251
  label: _ctx.$t("uc_fun.image"),
32233
32252
  name: "image"
@@ -32236,7 +32255,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32236
32255
  createVNode(_component_a_input, {
32237
32256
  placeholder: _ctx.$t("uc_common.plsEnter"),
32238
32257
  value: formState.value.image,
32239
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => formState.value.image = $event),
32258
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.image = $event),
32240
32259
  autocomplete: "off"
32241
32260
  }, null, 8, ["placeholder", "value"])
32242
32261
  ]),
@@ -32253,7 +32272,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32253
32272
  disabled: props.isEdit,
32254
32273
  options: parentMenuOptions.value,
32255
32274
  value: formState.value.parentId,
32256
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => formState.value.parentId = $event)
32275
+ "onUpdate:value": _cache[4] || (_cache[4] = ($event) => formState.value.parentId = $event)
32257
32276
  }, null, 8, ["placeholder", "disabled", "options", "value"])
32258
32277
  ]),
32259
32278
  _: 1
@@ -32266,7 +32285,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
32266
32285
  createVNode(_component_a_checkbox_group, {
32267
32286
  options: formState.value.options,
32268
32287
  value: formState.value.selects,
32269
- "onUpdate:value": _cache[4] || (_cache[4] = ($event) => formState.value.selects = $event)
32288
+ "onUpdate:value": _cache[5] || (_cache[5] = ($event) => formState.value.selects = $event)
32270
32289
  }, null, 8, ["options", "value"])
32271
32290
  ])
32272
32291
  ]),
@@ -32484,6 +32503,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
32484
32503
  modalStore.drawerDestroy();
32485
32504
  },
32486
32505
  onSubmit: async (data) => {
32506
+ var _a2, _b;
32487
32507
  if (!row) {
32488
32508
  const { result } = await setFunctionsInsert({
32489
32509
  funName: data.funName,
@@ -32491,7 +32511,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
32491
32511
  url: data.url,
32492
32512
  systemId: selectedSys.value,
32493
32513
  parentId: data.parentId ? data.parentId : rowData.parentId,
32494
- actions: data.selects.join(",")
32514
+ actions: data.selects.join(","),
32515
+ helperId: (_a2 = data.helperId) != null ? _a2 : void 0
32495
32516
  });
32496
32517
  if (result) {
32497
32518
  message.success(t2("uc_fun.create_success"));
@@ -32506,7 +32527,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
32506
32527
  code: rowData.code,
32507
32528
  systemId: selectedSys.value,
32508
32529
  parentId: data.parentId ? data.parentId : rowData.parentId,
32509
- actions: data.selects.join(",")
32530
+ actions: data.selects.join(","),
32531
+ helperId: (_b = data.helperId) != null ? _b : void 0
32510
32532
  });
32511
32533
  if (result) {
32512
32534
  message.success(t2("uc_fun.edit_success"));