@fmdeui/fmui 1.0.75 → 1.0.76

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.75 */
1
+ /*! fmdeui-fmui v1.0.76 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('vue-router'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'vue-router', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -19779,7 +19779,7 @@
19779
19779
  app.use(VxeUITable);
19780
19780
  };
19781
19781
 
19782
- var _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
19782
+ var _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
19783
19783
  ...{
19784
19784
  name: "FButton"
19785
19785
  },
@@ -19849,7 +19849,7 @@
19849
19849
  }
19850
19850
  });
19851
19851
 
19852
- const FButton = _sfc_main$F;
19852
+ const FButton = _sfc_main$G;
19853
19853
 
19854
19854
  const buildTranslator = (locale) => (path, option) => translate(path, option, vue.unref(locale));
19855
19855
  const translate = (path, option, locale) => lodashEs.get(locale, path, path).replace(
@@ -20420,9 +20420,9 @@
20420
20420
  return null;
20421
20421
  }
20422
20422
 
20423
- const _hoisted_1$r = { key: 0 };
20423
+ const _hoisted_1$s = { key: 0 };
20424
20424
  const _hoisted_2$i = { key: 0 };
20425
- var _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
20425
+ var _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
20426
20426
  ...{
20427
20427
  name: "FInput"
20428
20428
  },
@@ -20629,7 +20629,7 @@
20629
20629
  fn: vue.withCtx(() => [
20630
20630
  __props.inputType === "amount" ? (vue.openBlock(), vue.createElementBlock(
20631
20631
  "span",
20632
- _hoisted_1$r,
20632
+ _hoisted_1$s,
20633
20633
  vue.toDisplayString(appendTitleText.value),
20634
20634
  1
20635
20635
  /* TEXT */
@@ -20675,13 +20675,13 @@
20675
20675
  }
20676
20676
  });
20677
20677
 
20678
- const FInput = _sfc_main$E;
20678
+ const FInput = _sfc_main$F;
20679
20679
 
20680
- const _hoisted_1$q = {
20680
+ const _hoisted_1$r = {
20681
20681
  key: 0,
20682
20682
  class: "back_to_top"
20683
20683
  };
20684
- var _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
20684
+ var _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
20685
20685
  ...{
20686
20686
  name: "FLayoutPage"
20687
20687
  },
@@ -20743,7 +20743,7 @@
20743
20743
  },
20744
20744
  [
20745
20745
  vue.renderSlot(_ctx.$slots, "default"),
20746
- __props.showGoTopButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [
20746
+ __props.showGoTopButton ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [
20747
20747
  isShowGoTopButton.value ? (vue.openBlock(), vue.createElementBlock("div", {
20748
20748
  key: 0,
20749
20749
  onClick: backToTop
@@ -20771,9 +20771,9 @@
20771
20771
  }
20772
20772
  });
20773
20773
 
20774
- const FLayoutPage = _sfc_main$D;
20774
+ const FLayoutPage = _sfc_main$E;
20775
20775
 
20776
- var _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
20776
+ var _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
20777
20777
  ...{
20778
20778
  name: "FLayoutPageItem"
20779
20779
  },
@@ -20801,7 +20801,7 @@
20801
20801
  }
20802
20802
  });
20803
20803
 
20804
- const FLayoutPageItem = _sfc_main$C;
20804
+ const FLayoutPageItem = _sfc_main$D;
20805
20805
 
20806
20806
  function debounce(func, delay = 500, immediate, resultCallback) {
20807
20807
  let timer = null;
@@ -20844,8 +20844,8 @@
20844
20844
  return name.replace(/([A-Z])/g, "_$1").toLowerCase();
20845
20845
  }
20846
20846
 
20847
- const _hoisted_1$p = ["id"];
20848
- var _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
20847
+ const _hoisted_1$q = ["id"];
20848
+ var _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
20849
20849
  ...{
20850
20850
  name: "FChart"
20851
20851
  },
@@ -20929,7 +20929,7 @@
20929
20929
  id: __props.id,
20930
20930
  ref_key: "echartRef",
20931
20931
  ref: echartRef
20932
- }, null, 8, _hoisted_1$p), [
20932
+ }, null, 8, _hoisted_1$q), [
20933
20933
  [vue.vShow, !formatEmpty.value]
20934
20934
  ]),
20935
20935
  formatEmpty.value ? vue.renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
@@ -20944,13 +20944,13 @@
20944
20944
  }
20945
20945
  });
20946
20946
 
20947
- const FChart = _sfc_main$B;
20947
+ const FChart = _sfc_main$C;
20948
20948
 
20949
- const _hoisted_1$o = {
20949
+ const _hoisted_1$p = {
20950
20950
  key: 1,
20951
20951
  class: "f_select__pagination"
20952
20952
  };
20953
- var _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
20953
+ var _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
20954
20954
  ...{
20955
20955
  name: "FSelect"
20956
20956
  },
@@ -21163,7 +21163,7 @@
21163
21163
  128
21164
21164
  /* KEYED_FRAGMENT */
21165
21165
  )),
21166
- __props.isShowPagination && filteredOptionsCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
21166
+ __props.isShowPagination && filteredOptionsCount.value > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [
21167
21167
  vue.createVNode(_component_el_pagination, vue.mergeProps({
21168
21168
  "current-page": __props.paginationOption.currentPage,
21169
21169
  "onUpdate:currentPage": _cache[1] || (_cache[1] = ($event) => __props.paginationOption.currentPage = $event),
@@ -21201,9 +21201,9 @@
21201
21201
  }
21202
21202
  });
21203
21203
 
21204
- const FSelect = _sfc_main$A;
21204
+ const FSelect = _sfc_main$B;
21205
21205
 
21206
- var _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
21206
+ var _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
21207
21207
  ...{
21208
21208
  name: "RenderComp"
21209
21209
  },
@@ -21223,12 +21223,12 @@
21223
21223
  }
21224
21224
  });
21225
21225
 
21226
- const _hoisted_1$n = { class: "inside_box" };
21226
+ const _hoisted_1$o = { class: "inside_box" };
21227
21227
  const _hoisted_2$h = { class: "inside_box_title" };
21228
21228
  const _hoisted_3$a = { class: "check-box" };
21229
21229
  const _hoisted_4$7 = { class: "more_dropdown_icon" };
21230
21230
  const _hoisted_5$6 = { class: "out_box" };
21231
- var _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
21231
+ var _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
21232
21232
  ...{
21233
21233
  name: "MoreChoose"
21234
21234
  },
@@ -21366,7 +21366,7 @@
21366
21366
  ])
21367
21367
  ]),
21368
21368
  default: vue.withCtx(() => [
21369
- vue.createElementVNode("div", _hoisted_1$n, [
21369
+ vue.createElementVNode("div", _hoisted_1$o, [
21370
21370
  vue.createElementVNode("div", _hoisted_2$h, [
21371
21371
  vue.createElementVNode(
21372
21372
  "div",
@@ -21543,7 +21543,7 @@
21543
21543
  };
21544
21544
  }
21545
21545
 
21546
- var _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
21546
+ var _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
21547
21547
  ...{
21548
21548
  name: "FQueryCondition"
21549
21549
  },
@@ -21962,7 +21962,7 @@
21962
21962
  opt.labelRender ? {
21963
21963
  name: "label",
21964
21964
  fn: vue.withCtx(() => [
21965
- vue.createVNode(_sfc_main$z, {
21965
+ vue.createVNode(_sfc_main$A, {
21966
21966
  form: vue.unref(queryState).form,
21967
21967
  render: opt.labelRender
21968
21968
  }, null, 8, ["form", "render"])
@@ -22058,7 +22058,7 @@
22058
22058
  _: 1
22059
22059
  /* STABLE */
22060
22060
  })) : vue.createCommentVNode("v-if", true),
22061
- vue.createVNode(_sfc_main$y, {
22061
+ vue.createVNode(_sfc_main$z, {
22062
22062
  isDropDownSelectMore: __props.isDropDownSelectMore,
22063
22063
  moreCheckList: __props.moreCheckList,
22064
22064
  popoverAttrsBind: popoverAttrsBind.value,
@@ -22084,7 +22084,7 @@
22084
22084
  }
22085
22085
  });
22086
22086
 
22087
- var _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
22087
+ var _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
22088
22088
  ...{
22089
22089
  name: "RenderCol"
22090
22090
  },
@@ -22240,7 +22240,7 @@
22240
22240
  };
22241
22241
  }
22242
22242
 
22243
- const _hoisted_1$m = {
22243
+ const _hoisted_1$n = {
22244
22244
  key: 0,
22245
22245
  class: "table_query_condition"
22246
22246
  };
@@ -22250,7 +22250,7 @@
22250
22250
  key: 0,
22251
22251
  class: "f-table-select__page"
22252
22252
  };
22253
- var _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
22253
+ var _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
22254
22254
  ...{
22255
22255
  name: "FSelectTable"
22256
22256
  },
@@ -22872,9 +22872,9 @@
22872
22872
  style: vue.normalizeStyle({ width: __props.tableWidth ? `${__props.tableWidth}px` : "100%" })
22873
22873
  },
22874
22874
  [
22875
- __props.isShowQuery ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
22875
+ __props.isShowQuery ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
22876
22876
  vue.createVNode(
22877
- _sfc_main$x,
22877
+ _sfc_main$y,
22878
22878
  vue.mergeProps({
22879
22879
  ref_key: "fQueryConditionRef",
22880
22880
  ref: fQueryConditionRef,
@@ -23000,7 +23000,7 @@
23000
23000
  fixed: item.fixed
23001
23001
  }, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
23002
23002
  default: vue.withCtx((scope) => [
23003
- item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
23003
+ item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
23004
23004
  key: 0,
23005
23005
  column: item,
23006
23006
  row: scope.row,
@@ -23063,11 +23063,11 @@
23063
23063
  }
23064
23064
  });
23065
23065
 
23066
- const FSelectTable = _sfc_main$v;
23066
+ const FSelectTable = _sfc_main$w;
23067
23067
 
23068
- const FQueryCondition = _sfc_main$x;
23068
+ const FQueryCondition = _sfc_main$y;
23069
23069
 
23070
- var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
23070
+ var _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
23071
23071
  ...{
23072
23072
  name: "RenderComp"
23073
23073
  },
@@ -23087,7 +23087,7 @@
23087
23087
  }
23088
23088
  });
23089
23089
 
23090
- var _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
23090
+ var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
23091
23091
  ...{
23092
23092
  name: "RenderBtn"
23093
23093
  },
@@ -23107,12 +23107,12 @@
23107
23107
  }
23108
23108
  });
23109
23109
 
23110
- const _hoisted_1$l = {
23110
+ const _hoisted_1$m = {
23111
23111
  key: 1,
23112
23112
  class: "text_show"
23113
23113
  };
23114
23114
  const _hoisted_2$f = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
23115
- var _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
23115
+ var _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
23116
23116
  ...{
23117
23117
  name: "FForm"
23118
23118
  },
@@ -23363,7 +23363,7 @@
23363
23363
  }) : vue.createCommentVNode("v-if", true),
23364
23364
  item.textShow ? (vue.openBlock(), vue.createElementBlock(
23365
23365
  "span",
23366
- _hoisted_1$l,
23366
+ _hoisted_1$m,
23367
23367
  vue.toDisplayString(item.textValue || __props.formOpts.formData[item.value]),
23368
23368
  1
23369
23369
  /* TEXT */
@@ -23483,7 +23483,7 @@
23483
23483
  item.labelSlotName || item.labelRender ? {
23484
23484
  name: "label",
23485
23485
  fn: vue.withCtx(() => [
23486
- item.labelRender ? (vue.openBlock(), vue.createBlock(_sfc_main$u, {
23486
+ item.labelRender ? (vue.openBlock(), vue.createBlock(_sfc_main$v, {
23487
23487
  key: 0,
23488
23488
  render: item.labelRender,
23489
23489
  item
@@ -23515,7 +23515,7 @@
23515
23515
  vue.Fragment,
23516
23516
  null,
23517
23517
  [
23518
- val.render ? (vue.openBlock(), vue.createBlock(_sfc_main$t, {
23518
+ val.render ? (vue.openBlock(), vue.createBlock(_sfc_main$u, {
23519
23519
  key: index,
23520
23520
  item: val,
23521
23521
  render: val.render
@@ -23562,10 +23562,10 @@
23562
23562
  }
23563
23563
  });
23564
23564
 
23565
- const FForm = _sfc_main$s;
23565
+ const FForm = _sfc_main$t;
23566
23566
 
23567
- const _hoisted_1$k = ["src"];
23568
- var _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
23567
+ const _hoisted_1$l = ["src"];
23568
+ var _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
23569
23569
  ...{
23570
23570
  name: "svgIcon"
23571
23571
  },
@@ -23636,7 +23636,7 @@
23636
23636
  vue.createElementVNode("img", {
23637
23637
  src: getIconName.value,
23638
23638
  style: vue.normalizeStyle(setIconSvgInsStyle.value)
23639
- }, null, 12, _hoisted_1$k)
23639
+ }, null, 12, _hoisted_1$l)
23640
23640
  ],
23641
23641
  4
23642
23642
  /* STYLE */
@@ -23663,13 +23663,13 @@
23663
23663
  }
23664
23664
  }
23665
23665
  if (!app._context.components[`SvgIcon`]) {
23666
- app.component("SvgIcon", _sfc_main$r);
23666
+ app.component("SvgIcon", _sfc_main$s);
23667
23667
  }
23668
23668
  }
23669
23669
 
23670
23670
  const emitter = mitt();
23671
23671
 
23672
- var _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
23672
+ var _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
23673
23673
  ...{
23674
23674
  name: "FLayout"
23675
23675
  },
@@ -23755,7 +23755,7 @@
23755
23755
  }
23756
23756
  });
23757
23757
 
23758
- const FLayout = _sfc_main$q;
23758
+ const FLayout = _sfc_main$r;
23759
23759
 
23760
23760
  function commonFunction() {
23761
23761
  const { copy, isSupported } = core.useClipboard();
@@ -24032,7 +24032,7 @@
24032
24032
  // },
24033
24033
  };
24034
24034
 
24035
- const _hoisted_1$j = { class: "layout-breadcrumb-seting" };
24035
+ const _hoisted_1$k = { class: "layout-breadcrumb-seting" };
24036
24036
  const _hoisted_2$e = { class: "layout-breadcrumb-seting-bar-flex" };
24037
24037
  const _hoisted_3$8 = { class: "layout-breadcrumb-seting-bar-flex-label" };
24038
24038
  const _hoisted_4$5 = { class: "layout-breadcrumb-seting-bar-flex-value" };
@@ -24157,7 +24157,7 @@
24157
24157
  class: "traditionalColors-chines",
24158
24158
  style: { "cursor": "grab", "color": "gray" }
24159
24159
  };
24160
- var _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
24160
+ var _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
24161
24161
  ...{
24162
24162
  name: "FSettings"
24163
24163
  },
@@ -24421,7 +24421,7 @@
24421
24421
  const _component_el_col = vue.resolveComponent("el-col");
24422
24422
  const _component_el_row = vue.resolveComponent("el-row");
24423
24423
  const _component_el_dialog = vue.resolveComponent("el-dialog");
24424
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$j, [
24424
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [
24425
24425
  vue.createVNode(_component_el_drawer, {
24426
24426
  title: _ctx.$t("message.layout.configTitle"),
24427
24427
  modelValue: getThemeConfig.value.isDrawer,
@@ -25920,9 +25920,9 @@
25920
25920
  }
25921
25921
  });
25922
25922
 
25923
- const FSettings = _sfc_main$p;
25923
+ const FSettings = _sfc_main$q;
25924
25924
 
25925
- var _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
25925
+ var _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
25926
25926
  ...{
25927
25927
  name: "FModifyRecord"
25928
25928
  },
@@ -26185,7 +26185,7 @@
26185
26185
  }
26186
26186
  });
26187
26187
 
26188
- const FModifyRecord = _sfc_main$o;
26188
+ const FModifyRecord = _sfc_main$p;
26189
26189
 
26190
26190
  const makeInstaller = (components = []) => {
26191
26191
  const install = (app) => {
@@ -26206,12 +26206,12 @@
26206
26206
  };
26207
26207
  };
26208
26208
 
26209
- const _hoisted_1$i = { style: { "padding": "5px" } };
26209
+ const _hoisted_1$j = { style: { "padding": "5px" } };
26210
26210
  const _hoisted_2$d = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
26211
26211
  const _hoisted_3$7 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
26212
26212
  const _hoisted_4$4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
26213
26213
  const _hoisted_5$4 = { style: { "margin-bottom": "45px" } };
26214
- var _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
26214
+ var _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
26215
26215
  ...{
26216
26216
  name: "FmTree"
26217
26217
  },
@@ -26405,7 +26405,7 @@
26405
26405
  style: { "height": "100%" }
26406
26406
  }, {
26407
26407
  header: vue.withCtx(() => [
26408
- vue.createElementVNode("div", _hoisted_1$i, [
26408
+ vue.createElementVNode("div", _hoisted_1$j, [
26409
26409
  vue.createElementVNode("div", _hoisted_2$d, [
26410
26410
  vue.createElementVNode("div", _hoisted_3$7, [
26411
26411
  vue.createVNode(_component_el_input, {
@@ -26545,7 +26545,132 @@
26545
26545
  }
26546
26546
  });
26547
26547
 
26548
- const FmTree = _sfc_main$n;
26548
+ const FmTree = _sfc_main$o;
26549
+
26550
+ const _hoisted_1$i = { key: 0 };
26551
+ var _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
26552
+ ...{
26553
+ name: "FmCascader"
26554
+ },
26555
+ __name: "index",
26556
+ props: /* @__PURE__ */ vue.mergeModels({
26557
+ orgData: {
26558
+ type: Array,
26559
+ default: () => []
26560
+ },
26561
+ cascaderProps: {
26562
+ type: Object,
26563
+ default: () => ({ emitPath: false, value: "id", label: "name", expandTrigger: "hover" })
26564
+ },
26565
+ placeholder: {
26566
+ type: String,
26567
+ default: "\u8BF7\u9009\u62E9\u7236\u8282"
26568
+ },
26569
+ vId: {
26570
+ type: String,
26571
+ default: "opOrgId"
26572
+ },
26573
+ vCmpId: {
26574
+ type: String,
26575
+ default: "opCmpId"
26576
+ },
26577
+ vDetId: {
26578
+ type: String,
26579
+ default: "opDetId"
26580
+ },
26581
+ vGroupId: {
26582
+ type: String,
26583
+ default: "opGroupId"
26584
+ }
26585
+ }, {
26586
+ "modelValue": {},
26587
+ "modelModifiers": {}
26588
+ }),
26589
+ emits: ["update:modelValue"],
26590
+ setup(__props) {
26591
+ const modeValue = vue.useModel(__props, "modelValue");
26592
+ const props = __props;
26593
+ const handelchangeOrg = (val) => {
26594
+ modeValue.value[props.vId] = val;
26595
+ const node = findNode(val);
26596
+ if (node) {
26597
+ if (node.pid == 0) {
26598
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vCmpId))
26599
+ modeValue.value[props.vCmpId] = node.id;
26600
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vDetId))
26601
+ modeValue.value[props.vDetId] = 0;
26602
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vGroupId))
26603
+ modeValue.value[props.vGroupId] = 0;
26604
+ } else if (node.level == 2) {
26605
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vDetId))
26606
+ modeValue.value[props.vDetId] = node.id;
26607
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vCmpId))
26608
+ modeValue.value[props.vCmpId] = node.pid;
26609
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vGroupId))
26610
+ modeValue.value[props.vGroupId] = 0;
26611
+ } else if (node.level == 3) {
26612
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vGroupId))
26613
+ modeValue.value[props.vGroupId] = node.id;
26614
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vDetId))
26615
+ modeValue.value[props.vDetId] = node.pid;
26616
+ let top = findNode(node.pid);
26617
+ if (top) {
26618
+ if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vCmpId))
26619
+ modeValue.value[props.vCmpId] = top.id;
26620
+ }
26621
+ }
26622
+ }
26623
+ };
26624
+ const findNode = (id) => {
26625
+ const search = (nodes) => {
26626
+ var _a;
26627
+ for (const node of nodes) {
26628
+ if (node.id === id) return node;
26629
+ if ((_a = node.children) == null ? void 0 : _a.length) {
26630
+ const found = search(node.children);
26631
+ if (found) return found;
26632
+ }
26633
+ }
26634
+ return null;
26635
+ };
26636
+ return search(props.orgData || []);
26637
+ };
26638
+ return (_ctx, _cache) => {
26639
+ const _component_el_cascader = vue.resolveComponent("el-cascader");
26640
+ return vue.openBlock(), vue.createBlock(_component_el_cascader, {
26641
+ options: props.orgData,
26642
+ props: __props.cascaderProps,
26643
+ placeholder: __props.placeholder,
26644
+ filterable: "",
26645
+ class: "w100",
26646
+ modelValue: modeValue.value[__props.vId],
26647
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValue.value[__props.vId] = $event),
26648
+ onChange: handelchangeOrg
26649
+ }, {
26650
+ default: vue.withCtx(({ node, data }) => [
26651
+ vue.createElementVNode(
26652
+ "span",
26653
+ null,
26654
+ vue.toDisplayString(node.label),
26655
+ 1
26656
+ /* TEXT */
26657
+ ),
26658
+ !node.isLeaf ? (vue.openBlock(), vue.createElementBlock(
26659
+ "span",
26660
+ _hoisted_1$i,
26661
+ " (" + vue.toDisplayString(data.children.length) + ") ",
26662
+ 1
26663
+ /* TEXT */
26664
+ )) : vue.createCommentVNode("v-if", true)
26665
+ ]),
26666
+ _: 1
26667
+ /* STABLE */
26668
+ }, 8, ["options", "props", "placeholder", "modelValue"]);
26669
+ };
26670
+ }
26671
+ });
26672
+
26673
+ const FmCascader = _sfc_main$n;
26549
26674
 
26550
26675
  const plugins = [
26551
26676
  FButton,
@@ -26560,7 +26685,8 @@
26560
26685
  FLayout,
26561
26686
  FSettings,
26562
26687
  FModifyRecord,
26563
- FmTree
26688
+ FmTree,
26689
+ FmCascader
26564
26690
  ];
26565
26691
 
26566
26692
  var installer = makeInstaller([...plugins]);