liyu-pc-base 1.0.523 → 1.0.525

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.
@@ -16,7 +16,7 @@ import { t as M } from "../FieldRender2-CQ4qeeSo.js";
16
16
  import { t as N } from "../SearchRender-BnP-YQtV.js";
17
17
  import { t as ee } from "../FormRender3-HNRDGreF.js";
18
18
  import { _ as P, a as F, b as I, c as L, d as R, f as te, g as ne, h as re, i as ie, l as ae, m as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe, v as pe, y as me } from "../tablePro-BsKbAzph.js";
19
- import { n as he, r as z } from "../remotePages-C3iuG2xK.js";
19
+ import { n as he, r as z } from "../remotePages-eVCi8yYm.js";
20
20
  import { gridPageStateSymbol as ge } from "./gridPage/utils.js";
21
21
  import { Fragment as _e, KeepAlive as ve, Transition as ye, computed as B, createBlock as V, createCommentVNode as H, createElementBlock as U, createElementVNode as be, createTextVNode as xe, createVNode as W, customRef as Se, defineComponent as Ce, getCurrentInstance as we, h as Te, inject as Ee, isVNode as De, markRaw as Oe, mergeModels as ke, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeStyle as Ne, onActivated as Pe, onBeforeMount as Fe, onBeforeUnmount as Ie, onDeactivated as Le, onMounted as Re, onUnmounted as ze, openBlock as G, provide as Be, reactive as Ve, ref as K, render as He, renderList as Ue, renderSlot as We, resolveComponent as Ge, resolveDynamicComponent as Ke, shallowRef as qe, toDisplayString as Je, unref as Ye, useModel as Xe, useSlots as Ze, vShow as Qe, watch as $e, watchEffect as et, withCtx as q, withDirectives as tt, withModifiers as nt } from "vue";
22
22
  import { Modal as rt, message as it } from "ant-design-vue";
@@ -3772,7 +3772,7 @@ var cr = /* @__PURE__ */ Ce({
3772
3772
  class: "config-container"
3773
3773
  }, Ar = /*#__PURE__*/ m(/* @__PURE__ */ Ce({
3774
3774
  __name: "leftLayout",
3775
- props: {
3775
+ props: /*@__PURE__*/ ke({
3776
3776
  open: {
3777
3777
  type: Boolean,
3778
3778
  default: !0
@@ -3784,38 +3784,51 @@ var cr = /* @__PURE__ */ Ce({
3784
3784
  tableMode: {
3785
3785
  type: String,
3786
3786
  default: "normal"
3787
+ },
3788
+ pageConfig: {
3789
+ type: Object,
3790
+ default: () => null
3787
3791
  }
3788
- },
3789
- emits: [
3792
+ }, {
3793
+ tableMode: {},
3794
+ tableModeModifiers: {}
3795
+ }),
3796
+ emits: /*@__PURE__*/ ke([
3790
3797
  "update:open",
3791
3798
  "columnsChange",
3792
3799
  "update:tableMode"
3793
- ],
3800
+ ], ["update:tableMode"]),
3794
3801
  setup(e, { emit: t }) {
3795
- let n = e, r = t, i = K("views");
3802
+ let n = e, r = t, i = B(() => n.pageConfig?.enable_view_types || []), a = Xe(e, "tableMode"), o = B({
3803
+ get: () => {
3804
+ if (!n.pageConfig?.enable_view_types?.length) return;
3805
+ let e = n.tableMode || n.pageConfig?.default_view_type || "normal";
3806
+ return n.pageConfig?.enable_view_types?.includes(e) ? e : n.pageConfig?.enable_view_types[0];
3807
+ },
3808
+ set: (e) => {
3809
+ r("update:tableMode", e);
3810
+ }
3811
+ });
3796
3812
  $e(() => n.tableMode, (e) => {
3797
- e === "pivot" ? i.value = "pivot" : e === "pivot_charts" ? i.value = "pivotcharts" : i.value = "views";
3813
+ e === "pivot" ? o.value = "pivot" : e === "pivot_charts" ? o.value = "pivot_charts" : o.value = "normal";
3798
3814
  }, { immediate: !0 });
3799
- let a = (e) => {
3800
- e === "pivot" ? r("update:tableMode", "pivot") : e === "pivotcharts" ? r("update:tableMode", "pivot_charts") : r("update:tableMode", "normal");
3801
- }, o = Ee("tableProStateProxy"), s = B(() => `table_pro_${o.value?.config?.key}`);
3815
+ let s = Ee("tableProStateProxy"), c = B(() => `table_pro_${s.value?.config?.key}`);
3802
3816
  return (t, n) => {
3803
- let r = Ge("a-tab-pane"), c = Ge("a-tabs");
3804
- return e.open ? (G(), U("div", kr, [W(c, {
3805
- activeKey: i.value,
3806
- "onUpdate:activeKey": n[0] ||= (e) => i.value = e,
3807
- onChange: a
3817
+ let r = Ge("a-tab-pane"), l = Ge("a-tabs");
3818
+ return e.open ? (G(), U("div", kr, [W(l, {
3819
+ activeKey: o.value,
3820
+ "onUpdate:activeKey": n[0] ||= (e) => o.value = e
3808
3821
  }, {
3809
3822
  default: q(() => [
3810
- W(r, {
3811
- key: "views",
3823
+ i.value.includes("normal") ? (G(), V(r, {
3824
+ key: "normal",
3812
3825
  tab: "标准"
3813
3826
  }, {
3814
- default: q(() => [Ye(o)?.config && e.tableMode === "normal" ? (G(), V(Or, {
3827
+ default: q(() => [Ye(s)?.config && a.value === "normal" ? (G(), V(Or, {
3815
3828
  key: 0,
3816
- view_key: s.value,
3817
- view_flag_name: Ye(o).config.title,
3818
- tableProState: Ye(o),
3829
+ view_key: c.value,
3830
+ view_flag_name: Ye(s).config.title,
3831
+ tableProState: Ye(s),
3819
3832
  eventBus: e.eventBus,
3820
3833
  hashPrefix: ""
3821
3834
  }, null, 8, [
@@ -3825,16 +3838,16 @@ var cr = /* @__PURE__ */ Ce({
3825
3838
  "eventBus"
3826
3839
  ])) : H("", !0)]),
3827
3840
  _: 1
3828
- }),
3829
- W(r, {
3841
+ })) : H("", !0),
3842
+ i.value.includes("pivot") ? (G(), V(r, {
3830
3843
  key: "pivot",
3831
3844
  tab: "透视表"
3832
3845
  }, {
3833
- default: q(() => [Ye(o)?.config && e.tableMode === "pivot" ? (G(), V(Or, {
3846
+ default: q(() => [Ye(s)?.config && a.value === "pivot" ? (G(), V(Or, {
3834
3847
  key: 0,
3835
- view_key: s.value,
3836
- view_flag_name: Ye(o).config.title,
3837
- tableProState: Ye(o),
3848
+ view_key: c.value,
3849
+ view_flag_name: Ye(s).config.title,
3850
+ tableProState: Ye(s),
3838
3851
  eventBus: e.eventBus,
3839
3852
  hashPrefix: "pivot:"
3840
3853
  }, null, 8, [
@@ -3844,16 +3857,16 @@ var cr = /* @__PURE__ */ Ce({
3844
3857
  "eventBus"
3845
3858
  ])) : H("", !0)]),
3846
3859
  _: 1
3847
- }),
3848
- W(r, {
3849
- key: "pivotcharts",
3860
+ })) : H("", !0),
3861
+ i.value.includes("pivot_charts") ? (G(), V(r, {
3862
+ key: "pivot_charts",
3850
3863
  tab: "透视图"
3851
3864
  }, {
3852
- default: q(() => [Ye(o)?.config && e.tableMode === "pivot_charts" ? (G(), V(Or, {
3865
+ default: q(() => [Ye(s)?.config && a.value === "pivot_charts" ? (G(), V(Or, {
3853
3866
  key: 0,
3854
- view_key: s.value,
3855
- view_flag_name: Ye(o).config.title,
3856
- tableProState: Ye(o),
3867
+ view_key: c.value,
3868
+ view_flag_name: Ye(s).config.title,
3869
+ tableProState: Ye(s),
3857
3870
  eventBus: e.eventBus,
3858
3871
  hashPrefix: "pivotcharts:"
3859
3872
  }, null, 8, [
@@ -3863,13 +3876,13 @@ var cr = /* @__PURE__ */ Ce({
3863
3876
  "eventBus"
3864
3877
  ])) : H("", !0)]),
3865
3878
  _: 1
3866
- })
3879
+ })) : H("", !0)
3867
3880
  ]),
3868
3881
  _: 1
3869
3882
  }, 8, ["activeKey"])])) : H("", !0);
3870
3883
  };
3871
3884
  }
3872
- }), [["__scopeId", "data-v-08fdf8bb"]]), jr = class e {
3885
+ }), [["__scopeId", "data-v-681bc6f1"]]), jr = class e {
3873
3886
  static GenAutoIncrementId() {
3874
3887
  return e.auto_increment_id++;
3875
3888
  }
@@ -98714,18 +98727,18 @@ var oQ = function(e, t, n, r) {
98714
98727
  }, _ = B(() => r.value?.activeTableRef);
98715
98728
  Be("tableProStateProxy", _);
98716
98729
  let v = async () => {
98717
- let e = window.location.hash.substring(1);
98718
- e.startsWith("pivotcharts:") ? o.value = "pivot_charts" : e.startsWith("pivot:") ? o.value = "pivot" : o.value = "normal";
98719
- let n = await he({
98730
+ let e = await he({
98720
98731
  org_id: f.id,
98721
98732
  app_flag: g.app_flag,
98722
98733
  modalType: g.modalType
98723
98734
  });
98724
- c.value = z(g.app_flag, g.modalType, n, d, {
98735
+ c.value = z(g.app_flag, g.modalType, e, d, {
98725
98736
  use_store: !0,
98726
98737
  to_i18n: !0,
98727
98738
  enable_btn: !1
98728
98739
  }), c.value?.isView ? c.value?.default_hide_view ? t.value = !1 : t.value = !0 : t.value = !1, c.value?.required_condition && m.set_required_condition(g.modalType, c.value.required_condition);
98740
+ let n = window.location.hash.substring(1), r;
98741
+ n && (r = n.startsWith("pivotcharts:") ? "pivot_charts" : n.startsWith("pivot:") ? "pivot" : "normal"), c.value?.enable_view_types?.length ? (r = r || c.value?.default_view_type || "normal", c.value?.enable_view_types?.includes(r) || (r = c.value?.enable_view_types[0])) : r = void 0, o.value = r;
98729
98742
  }, y = () => {
98730
98743
  v(), _.value?.init();
98731
98744
  }, b = () => {
@@ -98744,12 +98757,14 @@ var oQ = function(e, t, n, r) {
98744
98757
  }), (e, a) => (G(), V(En, null, {
98745
98758
  default: q(() => [n.value ? (G(), U("div", wQ, [be("div", TQ, [W(ye, { name: "left-slide" }, {
98746
98759
  default: q(() => [t.value ? (G(), U("div", EQ, [be("div", DQ, [W(Ar, {
98760
+ pageConfig: c.value,
98747
98761
  open: t.value,
98748
98762
  "onUpdate:open": a[0] ||= (e) => t.value = e,
98749
98763
  eventBus: Ye(i),
98750
98764
  tableMode: o.value,
98751
98765
  "onUpdate:tableMode": a[1] ||= (e) => o.value = e
98752
98766
  }, null, 8, [
98767
+ "pageConfig",
98753
98768
  "open",
98754
98769
  "eventBus",
98755
98770
  "tableMode"
@@ -98776,6 +98791,6 @@ var oQ = function(e, t, n, r) {
98776
98791
  _: 1
98777
98792
  }));
98778
98793
  }
98779
- }), [["__scopeId", "data-v-5f0fe2a3"]]);
98794
+ }), [["__scopeId", "data-v-b3b0ca5e"]]);
98780
98795
  //#endregion
98781
98796
  export { zt as AddConditionGroupModal, p as BoldMatcher, A as CodeEditor, D as FieldRender, M as FieldRender2, Qt as FormRender, tn as FormRender2, ee as FormRender3, Yt as GeneralFilter, j as IconSelect, T as JsonObj, C as RemoteModal, w as RemoteSelectPro, O as RemoteTreeSelectPro, N as SearchRender, Cn as SideSearchRender, I as SmallTableSerarchField, bn as ViewManage, k as debugCode, En as fullLayout, f as getFormConfig, vr as gridPage, kQ as remotePagesV2, de as tablePro };