zchl-ui 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8793,6 +8793,44 @@ function initZtree(domId, callback2) {
8793
8793
  }
8794
8794
  organizationTree();
8795
8795
  }
8796
+ function initZtree_bank(domId, callback2) {
8797
+ ztree($$1);
8798
+ const setting2 = {
8799
+ view: {
8800
+ fontCss: { color: "#555", "font-size": "13px" },
8801
+ showIcon: false
8802
+ },
8803
+ data: {
8804
+ key: {
8805
+ id: "code",
8806
+ name: "text",
8807
+ children: "nodes"
8808
+ }
8809
+ },
8810
+ callback: {
8811
+ onClick: function(a2, b2, node2) {
8812
+ callback2(node2);
8813
+ }
8814
+ }
8815
+ };
8816
+ async function organizationTree() {
8817
+ const res = await axios({
8818
+ method: "get",
8819
+ url: `/common/api/bank/organizationTree`
8820
+ });
8821
+ if (res.code === 200) {
8822
+ if (res.data) {
8823
+ const treeObj = $$1.fn.zTree.init($$1("#" + domId), setting2, res.data);
8824
+ const nodes = treeObj.getNodes();
8825
+ if (nodes.length > 0) {
8826
+ treeObj.selectNode(nodes[0]);
8827
+ callback2(nodes[0]);
8828
+ }
8829
+ }
8830
+ }
8831
+ }
8832
+ organizationTree();
8833
+ }
8796
8834
  /*!
8797
8835
  * decimal.js v10.4.3
8798
8836
  * An arbitrary-precision Decimal type for JavaScript.
@@ -19356,7 +19394,7 @@ function(t2) {
19356
19394
  */
19357
19395
  function(t2) {
19358
19396
  function e2() {
19359
- return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-be4818d1.mjs")).catch(function(t3) {
19397
+ return (n.canvg ? Promise.resolve(n.canvg) : import("./index.es-7dc4e05d.mjs")).catch(function(t3) {
19360
19398
  return Promise.reject(new Error("Could not load canvg: " + t3));
19361
19399
  }).then(function(t3) {
19362
19400
  return t3.default ? t3.default : t3;
@@ -80983,7 +81021,8 @@ const install = (Vue) => {
80983
81021
  Vue.prototype.cr_ent_info_common_formatNum = window.cr_ent_info_common_formatNum = cr_ent_info_common_formatNum;
80984
81022
  Vue.prototype.cr_ent_info_common_formatIntegerDiv = window.cr_ent_info_common_formatIntegerDiv = cr_ent_info_common_formatIntegerDiv;
80985
81023
  Vue.prototype.cr_ent_info_common_safeGetProperties = window.cr_ent_info_common_safeGetProperties = cr_ent_info_common_safeGetProperties$1;
80986
- Vue.prototype.cr_ent_info_common_initZtree = window.cr_ent_info_common_initZtree = initZtree;
81024
+ Vue.prototype.initZtree = window.initZtree = initZtree;
81025
+ Vue.prototype.initZtree_bank = window.initZtree_bank = initZtree_bank;
80987
81026
  Vue.prototype.cr_ent_info_common_downloadByUrl = window.cr_ent_info_common_downloadByUrl = cr_ent_info_common_downloadByUrl;
80988
81027
  Vue.prototype.cr_ent_info_common_pdf = window.cr_ent_info_common_pdf = cr_ent_info_common_pdf;
80989
81028
  window.Message = elementUi_common.exports.Message;
@@ -81025,7 +81064,7 @@ const install = (Vue) => {
81025
81064
  Vue.prototype.$confirm = elementUi_common.exports.MessageBox.confirm;
81026
81065
  Vue.prototype.$prompt = elementUi_common.exports.MessageBox.prompt;
81027
81066
  components.forEach((component) => {
81028
- Vue.component(component.name, component);
81067
+ Vue.use(component);
81029
81068
  });
81030
81069
  };
81031
81070
  if (typeof window !== "undefined" && window.Vue) {
@@ -81072,4 +81111,4 @@ export {
81072
81111
  commonjsGlobal as c,
81073
81112
  index as i
81074
81113
  };
81075
- //# sourceMappingURL=index-76c48f4b.mjs.map
81114
+ //# sourceMappingURL=index-d8e926cf.mjs.map