cd-form 2.0.30 → 2.0.31
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/dist/cd-form.js +699 -698
- package/dist/cd-form.umd.cjs +12 -12
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cd-form.js
CHANGED
|
@@ -4590,11 +4590,11 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4590
4590
|
const t = e, r = de(((Ke = t.field.__config__) == null ? void 0 : Ke.active) || ((Bt = (Je = (Vt = t.field.__config__) == null ? void 0 : Vt.children) == null ? void 0 : Je[0]) == null ? void 0 : Bt.name) || "1"), n = de(((Ge = t.field.__config__) == null ? void 0 : Ge.active) || []), i = de(), s = de(!1), l = Le(() => {
|
|
4591
4591
|
var Ce;
|
|
4592
4592
|
if (M.value !== "vxeSubGrid") return [];
|
|
4593
|
-
const
|
|
4594
|
-
return !Array.isArray(
|
|
4593
|
+
const se = t.field.btnsList || ((Ce = t.field.__config__) == null ? void 0 : Ce.btnsList) || [];
|
|
4594
|
+
return !Array.isArray(se) || se.length === 0 ? [
|
|
4595
4595
|
{ value: "add", label: "新增", show: !0 },
|
|
4596
4596
|
{ value: "delete", label: "删除", show: !0 }
|
|
4597
|
-
] :
|
|
4597
|
+
] : se.filter((Ue) => Ue.show !== !1 && Ue.allow !== !1);
|
|
4598
4598
|
}), o = de({
|
|
4599
4599
|
isEdit: !0,
|
|
4600
4600
|
isArrow: !0,
|
|
@@ -4605,8 +4605,8 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4605
4605
|
isEsc: !0,
|
|
4606
4606
|
isLastEnterAppendRow: !0
|
|
4607
4607
|
}), f = Le(() => {
|
|
4608
|
-
const
|
|
4609
|
-
return Array.isArray(
|
|
4608
|
+
const se = t.field.children || t.field.__config__.children || [];
|
|
4609
|
+
return Array.isArray(se) ? se.map((ae) => {
|
|
4610
4610
|
const Ce = ae.__vModel__ || ae.field;
|
|
4611
4611
|
return {
|
|
4612
4612
|
...ae,
|
|
@@ -4617,8 +4617,8 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4617
4617
|
}
|
|
4618
4618
|
};
|
|
4619
4619
|
}) : [];
|
|
4620
|
-
}), c = (
|
|
4621
|
-
switch (
|
|
4620
|
+
}), c = (se) => {
|
|
4621
|
+
switch (se) {
|
|
4622
4622
|
case "add":
|
|
4623
4623
|
case "copy":
|
|
4624
4624
|
return "primary";
|
|
@@ -4631,18 +4631,18 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4631
4631
|
}
|
|
4632
4632
|
}, u = Le({
|
|
4633
4633
|
get() {
|
|
4634
|
-
const
|
|
4635
|
-
if (!
|
|
4636
|
-
const ae = t.formModel[
|
|
4634
|
+
const se = t.field.__vModel__;
|
|
4635
|
+
if (!se || M.value !== "table") return [];
|
|
4636
|
+
const ae = t.formModel[se];
|
|
4637
4637
|
return Array.isArray(ae) ? ae : [];
|
|
4638
4638
|
},
|
|
4639
|
-
set(
|
|
4639
|
+
set(se) {
|
|
4640
4640
|
const ae = t.field.__vModel__;
|
|
4641
|
-
ae && V("change", ae,
|
|
4641
|
+
ae && V("change", ae, se);
|
|
4642
4642
|
}
|
|
4643
4643
|
}), d = Le(() => {
|
|
4644
4644
|
if (M.value !== "table") return [];
|
|
4645
|
-
const
|
|
4645
|
+
const se = (t.field.__config__.children || []).map((ae) => ({
|
|
4646
4646
|
colKey: ae.__vModel__,
|
|
4647
4647
|
title: ae.__config__.label,
|
|
4648
4648
|
width: ae.width || "auto",
|
|
@@ -4650,32 +4650,32 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4650
4650
|
// 使用自定义单元格插槽
|
|
4651
4651
|
cell: `cell-${ae.__vModel__}`
|
|
4652
4652
|
}));
|
|
4653
|
-
return N.value ||
|
|
4653
|
+
return N.value || se.push({
|
|
4654
4654
|
colKey: "action",
|
|
4655
4655
|
title: "操作",
|
|
4656
4656
|
width: 80,
|
|
4657
4657
|
align: "center",
|
|
4658
4658
|
cell: "cell-action"
|
|
4659
|
-
}),
|
|
4659
|
+
}), se;
|
|
4660
4660
|
}), m = Le(() => {
|
|
4661
4661
|
if (M.value !== "table") return [];
|
|
4662
|
-
const
|
|
4663
|
-
return !Array.isArray(
|
|
4662
|
+
const se = t.field.btnsList || [];
|
|
4663
|
+
return !Array.isArray(se) || se.length === 0 ? [
|
|
4664
4664
|
{ value: "copy", label: "复制", show: !0, position: "row" },
|
|
4665
4665
|
{ value: "remove", label: "删除", show: !0, btnType: "error", btnIcon: "ri-delete-bin-line", showConfirm: !0, position: "row" }
|
|
4666
|
-
] :
|
|
4666
|
+
] : se.filter((ae) => ae.show !== !1 && ae.position === "row");
|
|
4667
4667
|
}), p = Le(() => {
|
|
4668
4668
|
if (M.value !== "table") return [];
|
|
4669
|
-
const
|
|
4670
|
-
return !Array.isArray(
|
|
4669
|
+
const se = t.field.btnsList || [];
|
|
4670
|
+
return !Array.isArray(se) || se.length === 0 ? [
|
|
4671
4671
|
{ value: "add", label: "添加", show: !0, btnType: "primary", btnIcon: "ri-add-line", position: "footer" },
|
|
4672
4672
|
{ value: "batchRemove", label: "批量删除", show: !0, btnType: "danger", btnIcon: "ri-delete-bin-line", showConfirm: !0, position: "footer" }
|
|
4673
|
-
] :
|
|
4673
|
+
] : se.filter((ae) => ae.show !== !1 && ae.position === "footer");
|
|
4674
4674
|
}), v = Le({
|
|
4675
4675
|
get() {
|
|
4676
|
-
const
|
|
4677
|
-
if (!
|
|
4678
|
-
const ae = t.formModel[
|
|
4676
|
+
const se = t.field.__vModel__;
|
|
4677
|
+
if (!se || M.value !== "vxeSubGrid") return [];
|
|
4678
|
+
const ae = t.formModel[se], Ce = Array.isArray(ae) ? ae : [];
|
|
4679
4679
|
if (!N.value) {
|
|
4680
4680
|
const Ue = [...Ce], Be = Ue[Ue.length - 1];
|
|
4681
4681
|
if (!(Be && Be._isEmpty)) {
|
|
@@ -4692,21 +4692,21 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4692
4692
|
}
|
|
4693
4693
|
return Ce;
|
|
4694
4694
|
},
|
|
4695
|
-
set(
|
|
4695
|
+
set(se) {
|
|
4696
4696
|
const ae = t.field.__vModel__;
|
|
4697
|
-
ae && V("change", ae,
|
|
4697
|
+
ae && V("change", ae, se);
|
|
4698
4698
|
}
|
|
4699
4699
|
}), x = Le(() => {
|
|
4700
4700
|
if (M.value !== "vxeSubGrid") return [];
|
|
4701
|
-
const
|
|
4702
|
-
if (!Array.isArray(
|
|
4701
|
+
const se = t.field.children || t.field.__config__.children || [];
|
|
4702
|
+
if (!Array.isArray(se) || se.length === 0) return [];
|
|
4703
4703
|
const ae = [];
|
|
4704
4704
|
return N.value || ae.push({
|
|
4705
4705
|
type: "checkbox",
|
|
4706
4706
|
width: 60,
|
|
4707
4707
|
fixed: "left",
|
|
4708
4708
|
align: "center"
|
|
4709
|
-
}),
|
|
4709
|
+
}), se.forEach((Ce) => {
|
|
4710
4710
|
const Ue = Ce.__config__;
|
|
4711
4711
|
if (!Ue || Ue.noShow) return;
|
|
4712
4712
|
const Be = Ce.__vModel__ || Ce.field;
|
|
@@ -4738,7 +4738,7 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4738
4738
|
}), S = Le(() => {
|
|
4739
4739
|
var Ce;
|
|
4740
4740
|
if (M.value !== "vxeSubGrid") return {};
|
|
4741
|
-
const
|
|
4741
|
+
const se = t.field.__config__, ae = {
|
|
4742
4742
|
border: t.field.border !== !1,
|
|
4743
4743
|
stripe: t.field.stripe !== !1,
|
|
4744
4744
|
showOverflow: !0,
|
|
@@ -4771,17 +4771,17 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4771
4771
|
// 数据量大于10条时启用虚拟滚动
|
|
4772
4772
|
}
|
|
4773
4773
|
};
|
|
4774
|
-
return (Ce =
|
|
4774
|
+
return (Ce = se.treeConfig) != null && Ce.enabled && (ae.treeConfig = {
|
|
4775
4775
|
transform: !0,
|
|
4776
4776
|
rowField: "_X_ROW_KEY",
|
|
4777
4777
|
parentField: "_X_PARENT_KEY",
|
|
4778
|
-
childrenField:
|
|
4779
|
-
indent:
|
|
4780
|
-
showLine:
|
|
4781
|
-
expandAll:
|
|
4782
|
-
accordion:
|
|
4783
|
-
trigger:
|
|
4784
|
-
showIcon:
|
|
4778
|
+
childrenField: se.treeConfig.children || se.treeConfig.childrenField || "children",
|
|
4779
|
+
indent: se.treeConfig.indent || 20,
|
|
4780
|
+
showLine: se.treeConfig.line !== !1 || se.treeConfig.showLine !== !1,
|
|
4781
|
+
expandAll: se.treeConfig.expandAll || !1,
|
|
4782
|
+
accordion: se.treeConfig.accordion || !1,
|
|
4783
|
+
trigger: se.treeConfig.trigger || "default",
|
|
4784
|
+
showIcon: se.treeConfig.showIcon !== !1
|
|
4785
4785
|
}), N.value || (ae.editConfig = {
|
|
4786
4786
|
trigger: "click",
|
|
4787
4787
|
// 单击触发编辑
|
|
@@ -4798,12 +4798,12 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4798
4798
|
// return true;
|
|
4799
4799
|
// }
|
|
4800
4800
|
}), ae;
|
|
4801
|
-
}), C = (
|
|
4802
|
-
v.value =
|
|
4803
|
-
}, g = (
|
|
4804
|
-
|
|
4805
|
-
}, D = (
|
|
4806
|
-
switch (typeof
|
|
4801
|
+
}), C = (se) => {
|
|
4802
|
+
v.value = se;
|
|
4803
|
+
}, g = (se) => {
|
|
4804
|
+
se && se.value && D(se.value);
|
|
4805
|
+
}, D = (se) => {
|
|
4806
|
+
switch (typeof se == "string" ? se : se.value) {
|
|
4807
4807
|
case "add":
|
|
4808
4808
|
y();
|
|
4809
4809
|
break;
|
|
@@ -4822,8 +4822,8 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4822
4822
|
break;
|
|
4823
4823
|
}
|
|
4824
4824
|
}, y = () => {
|
|
4825
|
-
const
|
|
4826
|
-
if (!
|
|
4825
|
+
const se = t.field.__vModel__;
|
|
4826
|
+
if (!se) return;
|
|
4827
4827
|
const ae = Array.isArray(v.value) ? v.value.filter((Be) => !Be._isEmpty) : [], Ce = {
|
|
4828
4828
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
4829
4829
|
};
|
|
@@ -4859,24 +4859,24 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4859
4859
|
default:
|
|
4860
4860
|
Ce[mt] = null;
|
|
4861
4861
|
}
|
|
4862
|
-
}), ae.push(Ce), V("change",
|
|
4862
|
+
}), ae.push(Ce), V("change", se, ae);
|
|
4863
4863
|
}, w = async () => {
|
|
4864
4864
|
if (!i.value) return;
|
|
4865
|
-
const
|
|
4866
|
-
if (!
|
|
4865
|
+
const se = i.value.getCheckboxRecords();
|
|
4866
|
+
if (!se || se.length === 0)
|
|
4867
4867
|
return;
|
|
4868
4868
|
const ae = t.field.__vModel__;
|
|
4869
4869
|
if (!ae) return;
|
|
4870
4870
|
const Ue = (Array.isArray(v.value) ? v.value.filter((Be) => !Be._isEmpty) : []).filter(
|
|
4871
|
-
(Be) => !
|
|
4871
|
+
(Be) => !se.includes(Be) && !Be._isEmpty
|
|
4872
4872
|
);
|
|
4873
4873
|
V("change", ae, Ue), await i.value.clearCheckboxRow();
|
|
4874
4874
|
}, k = async () => {
|
|
4875
4875
|
if (!i.value) return;
|
|
4876
|
-
const
|
|
4877
|
-
if (!
|
|
4876
|
+
const se = i.value.getCheckboxRecords();
|
|
4877
|
+
if (!se || se.length === 0 || !t.field.__vModel__) return;
|
|
4878
4878
|
const Ce = Array.isArray(v.value) ? [...v.value] : [];
|
|
4879
|
-
|
|
4879
|
+
se.forEach((Ue) => {
|
|
4880
4880
|
const Be = {
|
|
4881
4881
|
...Ue,
|
|
4882
4882
|
_X_ROW_KEY: `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
|
|
@@ -4885,56 +4885,56 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4885
4885
|
}), v.value = Ce, await i.value.clearCheckboxRow();
|
|
4886
4886
|
}, O = () => {
|
|
4887
4887
|
if (!i.value) return;
|
|
4888
|
-
const
|
|
4889
|
-
!
|
|
4890
|
-
}, F = ({ row:
|
|
4891
|
-
if (
|
|
4888
|
+
const se = i.value.getCheckboxRecords();
|
|
4889
|
+
!se || se.length;
|
|
4890
|
+
}, F = ({ row: se }) => {
|
|
4891
|
+
if (se._isEmpty && Object.keys(se).some((Ce) => Ce === "_X_ROW_KEY" || Ce === "_isEmpty" ? !1 : se[Ce] !== null && se[Ce] !== void 0 && se[Ce] !== "")) {
|
|
4892
4892
|
const Ce = t.field.__vModel__;
|
|
4893
4893
|
if (!Ce) return;
|
|
4894
|
-
const Ue = Array.isArray(v.value) ? v.value.filter((mt) => !mt._isEmpty) : [], Be = { ...
|
|
4894
|
+
const Ue = Array.isArray(v.value) ? v.value.filter((mt) => !mt._isEmpty) : [], Be = { ...se };
|
|
4895
4895
|
delete Be._isEmpty, Be._X_ROW_KEY = `row_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, Ue.push(Be), V("change", Ce, Ue);
|
|
4896
4896
|
}
|
|
4897
|
-
}, re = (
|
|
4897
|
+
}, re = (se) => {
|
|
4898
4898
|
if (!t.field.__vModel__) return;
|
|
4899
4899
|
const Ce = Array.isArray(v.value) ? [...v.value] : [];
|
|
4900
|
-
|
|
4900
|
+
se.forEach((Ue) => {
|
|
4901
4901
|
Ce.push(Ue);
|
|
4902
4902
|
}), v.value = Ce;
|
|
4903
|
-
}, te = (
|
|
4903
|
+
}, te = (se) => {
|
|
4904
4904
|
}, N = Le(() => t.field.__config__.cdkey === "calculate" ? !0 : t.disabled), V = a, M = Le(() => {
|
|
4905
|
-
const
|
|
4906
|
-
if (
|
|
4907
|
-
const ae =
|
|
4905
|
+
const se = t.field.__config__;
|
|
4906
|
+
if (se.cdkey === "calculate") {
|
|
4907
|
+
const ae = se.type || t.field.type;
|
|
4908
4908
|
if (ae)
|
|
4909
4909
|
return ae;
|
|
4910
4910
|
}
|
|
4911
|
-
return
|
|
4911
|
+
return se.cdkey;
|
|
4912
4912
|
}), L = Le({
|
|
4913
4913
|
get() {
|
|
4914
|
-
const
|
|
4914
|
+
const se = t.field.__vModel__, ae = se ? t.formModel[se] : null;
|
|
4915
4915
|
return M.value === "tag" ? Array.isArray(ae) ? ae : ae == null || ae === "" ? [] : [ae] : (M.value === "select" || M.value === "checkbox") && t.field.multiple ? Array.isArray(ae) ? ae : ae == null || ae === "" ? [] : [ae] : ae;
|
|
4916
4916
|
},
|
|
4917
|
-
set(
|
|
4917
|
+
set(se) {
|
|
4918
4918
|
const ae = t.field.__vModel__;
|
|
4919
|
-
ae && V("change", ae,
|
|
4919
|
+
ae && V("change", ae, se);
|
|
4920
4920
|
}
|
|
4921
4921
|
}), ue = Le(() => {
|
|
4922
4922
|
if (M.value !== "relationFormAttr") return "";
|
|
4923
|
-
const
|
|
4923
|
+
const se = t.field.relationField, ae = t.field.showField, Ce = t.field.aggregation;
|
|
4924
4924
|
if (console.log("[RenderFormItem displayValue] 关联表单属性字段:", {
|
|
4925
4925
|
vModel: t.field.__vModel__,
|
|
4926
|
-
relationField:
|
|
4926
|
+
relationField: se,
|
|
4927
4927
|
showField: ae,
|
|
4928
4928
|
aggregation: Ce
|
|
4929
|
-
}), !
|
|
4930
|
-
const Ue =
|
|
4929
|
+
}), !se || !ae) return "";
|
|
4930
|
+
const Ue = se + "_data";
|
|
4931
4931
|
let Be = t.formModel[Ue];
|
|
4932
4932
|
if (console.log("[RenderFormItem displayValue] 查找 _data 字段:", {
|
|
4933
4933
|
dataKey: Ue,
|
|
4934
4934
|
found: !!Be,
|
|
4935
4935
|
relationData: Be
|
|
4936
|
-
}), Be || (Be = t.formModel[
|
|
4937
|
-
relationField:
|
|
4936
|
+
}), Be || (Be = t.formModel[se], console.log("[RenderFormItem displayValue] 从关联字段本身获取:", {
|
|
4937
|
+
relationField: se,
|
|
4938
4938
|
found: !!Be,
|
|
4939
4939
|
relationData: Be
|
|
4940
4940
|
})), !Be)
|
|
@@ -4969,8 +4969,8 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4969
4969
|
}), mt;
|
|
4970
4970
|
}
|
|
4971
4971
|
return console.log("[RenderFormItem displayValue] 直接返回关联数据:", Be), Be || "";
|
|
4972
|
-
}), fe = (
|
|
4973
|
-
switch (
|
|
4972
|
+
}), fe = (se) => {
|
|
4973
|
+
switch (se) {
|
|
4974
4974
|
case "datetime":
|
|
4975
4975
|
return "YYYY-MM-DD HH:mm:ss";
|
|
4976
4976
|
case "date":
|
|
@@ -4983,83 +4983,83 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
4983
4983
|
return "YYYY-MM-DD";
|
|
4984
4984
|
}
|
|
4985
4985
|
}, xe = () => {
|
|
4986
|
-
const
|
|
4987
|
-
if (
|
|
4986
|
+
const se = t.field.__vModel__;
|
|
4987
|
+
if (se) {
|
|
4988
4988
|
const ae = L.value;
|
|
4989
|
-
V("change",
|
|
4989
|
+
V("change", se, ae);
|
|
4990
4990
|
}
|
|
4991
|
-
}, W = (
|
|
4991
|
+
}, W = (se) => {
|
|
4992
4992
|
var Ce;
|
|
4993
4993
|
console.log("[RenderFormItem handleChange] 收到变化:", {
|
|
4994
4994
|
vModel: t.field.__vModel__,
|
|
4995
4995
|
cdkey: (Ce = t.field.__config__) == null ? void 0 : Ce.cdkey,
|
|
4996
|
-
val:
|
|
4997
|
-
valType: typeof
|
|
4998
|
-
isObject: typeof
|
|
4999
|
-
keys:
|
|
4996
|
+
val: se,
|
|
4997
|
+
valType: typeof se,
|
|
4998
|
+
isObject: typeof se == "object",
|
|
4999
|
+
keys: se && typeof se == "object" ? Object.keys(se) : []
|
|
5000
5000
|
});
|
|
5001
5001
|
const ae = t.field.__vModel__ || "";
|
|
5002
|
-
V("change", ae,
|
|
5003
|
-
}, he = (
|
|
5002
|
+
V("change", ae, se);
|
|
5003
|
+
}, he = (se) => {
|
|
5004
5004
|
const ae = t.field.__vModel__ || "", Ce = L.value;
|
|
5005
5005
|
V("change", ae, Ce);
|
|
5006
5006
|
}, ee = () => {
|
|
5007
|
-
const
|
|
5008
|
-
V("change",
|
|
5007
|
+
const se = t.field.__vModel__ || "";
|
|
5008
|
+
V("change", se, "");
|
|
5009
5009
|
}, b = () => {
|
|
5010
|
-
const
|
|
5010
|
+
const se = t.field.__vModel__ || "";
|
|
5011
5011
|
V("i18n-click", {
|
|
5012
|
-
field:
|
|
5012
|
+
field: se,
|
|
5013
5013
|
value: L.value,
|
|
5014
5014
|
i18nValue: t.field.i18nValue || ""
|
|
5015
5015
|
});
|
|
5016
|
-
}, z = (
|
|
5017
|
-
V("change", `__btn_${
|
|
5016
|
+
}, z = (se) => {
|
|
5017
|
+
V("change", `__btn_${se.__vModel__ || se.value || "click"}__`, { field: se });
|
|
5018
5018
|
}, G = () => {
|
|
5019
5019
|
N.value || V("change", `__sign_${t.field.__vModel__ || "sign"}__`, { field: t.field, type: "sign" });
|
|
5020
5020
|
}, Z = () => {
|
|
5021
5021
|
N.value || V("change", `__signature_${t.field.__vModel__ || "signature"}__`, { field: t.field, type: "signature" });
|
|
5022
|
-
}, q = (
|
|
5022
|
+
}, q = (se) => {
|
|
5023
5023
|
const ae = t.field;
|
|
5024
|
-
ae.startField && ae.endField && Array.isArray(
|
|
5024
|
+
ae.startField && ae.endField && Array.isArray(se) && (V("change", ae.startField, se[0] || null), V("change", ae.endField, se[1] || null)), V("change", ae.__vModel__ || "", se);
|
|
5025
5025
|
}, Q = () => {
|
|
5026
|
-
const
|
|
5027
|
-
if (!
|
|
5028
|
-
const ae =
|
|
5029
|
-
return t.formModel[ae] || t.formModel[
|
|
5026
|
+
const se = t.field.__vModel__;
|
|
5027
|
+
if (!se) return "";
|
|
5028
|
+
const ae = se.replace(/Id$/, "Name");
|
|
5029
|
+
return t.formModel[ae] || t.formModel[se] || "";
|
|
5030
5030
|
}, we = () => {
|
|
5031
|
-
const
|
|
5032
|
-
if (!
|
|
5031
|
+
const se = t.field.__vModel__;
|
|
5032
|
+
if (!se)
|
|
5033
5033
|
return;
|
|
5034
5034
|
const ae = {
|
|
5035
5035
|
cdkey: M.value,
|
|
5036
|
-
field:
|
|
5036
|
+
field: se,
|
|
5037
5037
|
label: t.field.__config__.label,
|
|
5038
5038
|
multiple: t.field.multiple || !1,
|
|
5039
|
-
currentValue: t.formModel[
|
|
5039
|
+
currentValue: t.formModel[se]
|
|
5040
5040
|
};
|
|
5041
5041
|
V("select-org-data", ae);
|
|
5042
5042
|
}, oe = () => {
|
|
5043
|
-
const
|
|
5044
|
-
if (!
|
|
5045
|
-
V("change",
|
|
5046
|
-
const ae =
|
|
5043
|
+
const se = t.field.__vModel__;
|
|
5044
|
+
if (!se) return;
|
|
5045
|
+
V("change", se, null);
|
|
5046
|
+
const ae = se.replace(/Id$/, "Name");
|
|
5047
5047
|
t.formModel[ae] !== void 0 && V("change", ae, "");
|
|
5048
|
-
}, X = _s("relationFormHandlers", null), Y = _s("dynamicFieldOptions", de({})), P = (
|
|
5048
|
+
}, X = _s("relationFormHandlers", null), Y = _s("dynamicFieldOptions", de({})), P = (se) => {
|
|
5049
5049
|
var Ce;
|
|
5050
|
-
const ae = (Ce = Y.value) == null ? void 0 : Ce[
|
|
5051
|
-
return Array.isArray(ae) && ae.length > 0 ? ae : Array.isArray(
|
|
5052
|
-
}, ze = (
|
|
5053
|
-
const Ce = { field:
|
|
5050
|
+
const ae = (Ce = Y.value) == null ? void 0 : Ce[se.__vModel__];
|
|
5051
|
+
return Array.isArray(ae) && ae.length > 0 ? ae : Array.isArray(se.options) ? se.options : [];
|
|
5052
|
+
}, ze = (se, ae) => {
|
|
5053
|
+
const Ce = { field: se.__vModel__, releaseId: se.releaseId, keyword: ae };
|
|
5054
5054
|
X != null && X.search ? X.search(Ce) : V("relation-form-search", Ce);
|
|
5055
|
-
}, Re = (
|
|
5056
|
-
const ae = { field:
|
|
5055
|
+
}, Re = (se) => {
|
|
5056
|
+
const ae = { field: se.__vModel__, releaseId: se.releaseId };
|
|
5057
5057
|
X != null && X.advanced ? X.advanced(ae) : V("relation-form-advanced", ae);
|
|
5058
|
-
}, pe = (
|
|
5059
|
-
const Ce = { field:
|
|
5058
|
+
}, pe = (se, ae) => {
|
|
5059
|
+
const Ce = { field: se.__vModel__, releaseId: se.releaseId, filters: ae };
|
|
5060
5060
|
X != null && X.dialogSearch ? X.dialogSearch(Ce) : V("relation-form-dialog-search", Ce);
|
|
5061
|
-
}, ke = (
|
|
5062
|
-
const Ce = { field:
|
|
5061
|
+
}, ke = (se, ae) => {
|
|
5062
|
+
const Ce = { field: se.__vModel__, releaseId: se.releaseId, pagination: ae };
|
|
5063
5063
|
X != null && X.pageChange ? X.pageChange(Ce) : V("relation-form-page-change", Ce);
|
|
5064
5064
|
}, De = () => {
|
|
5065
5065
|
if (!t.field.__vModel__) return;
|
|
@@ -5088,23 +5088,23 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
5088
5088
|
});
|
|
5089
5089
|
const Ce = Array.isArray(u.value) ? [...u.value] : [];
|
|
5090
5090
|
Ce.push(ae), u.value = Ce;
|
|
5091
|
-
}, Ze = (
|
|
5091
|
+
}, Ze = (se) => {
|
|
5092
5092
|
const ae = Array.isArray(u.value) ? [...u.value] : [];
|
|
5093
|
-
ae.splice(
|
|
5094
|
-
}, Qe = (
|
|
5093
|
+
ae.splice(se, 1), u.value = ae;
|
|
5094
|
+
}, Qe = (se) => {
|
|
5095
5095
|
const ae = Array.isArray(u.value) ? [...u.value] : [];
|
|
5096
|
-
if (ae[
|
|
5097
|
-
const Ce = { ...ae[
|
|
5098
|
-
ae.splice(
|
|
5096
|
+
if (ae[se]) {
|
|
5097
|
+
const Ce = { ...ae[se] };
|
|
5098
|
+
ae.splice(se + 1, 0, Ce), u.value = ae;
|
|
5099
5099
|
}
|
|
5100
|
-
}, et = (
|
|
5100
|
+
}, et = (se, ae, Ce) => {
|
|
5101
5101
|
const Ue = Array.isArray(u.value) ? [...u.value] : [];
|
|
5102
|
-
Ue[
|
|
5103
|
-
}, Wt = (
|
|
5104
|
-
|
|
5102
|
+
Ue[se] && (Ue[se][ae] = Ce, u.value = Ue);
|
|
5103
|
+
}, Wt = (se) => {
|
|
5104
|
+
se.value === "batchRemove" && (u.value = []), V("change", `__btn_${se.value}__`, { btn: se, data: u.value });
|
|
5105
5105
|
};
|
|
5106
|
-
return (
|
|
5107
|
-
const Ce = ce("t-input"), Ue = ce("t-textarea"), Be = ce("t-input-number"), mt = ce("t-select"), st = ce("t-date-picker"), Dt = ce("t-date-range-picker"), qt = ce("t-time-picker"), mr = ce("t-time-range-picker"), Jr = ce("t-switch"), Dr = ce("vxe-rate"), Zr = ce("t-radio"), Qr = ce("t-radio-group"), en = ce("t-checkbox"), bn = ce("t-checkbox-group"), pr = ce("t-cascader"), En = ce("t-tree-select"), Cn = ce("t-auto-complete"), xr = ce("t-upload"), $a = ce("t-button"), tn = ce("t-color-picker"), Tn = ce("t-slider"), Sn = ce("t-progress"), Fn = ce("t-alert"), qa = ce("t-link"), An = ce("t-tag-input"), an = ce("t-dropdown-item"), Dn = ce("t-dropdown-menu"), T = ce("t-dropdown"), H = ce("vxe-grid"), B = ce("render-form-item", !0), U = ce("t-row"), j = ce("t-divider"),
|
|
5106
|
+
return (se, ae) => {
|
|
5107
|
+
const Ce = ce("t-input"), Ue = ce("t-textarea"), Be = ce("t-input-number"), mt = ce("t-select"), st = ce("t-date-picker"), Dt = ce("t-date-range-picker"), qt = ce("t-time-picker"), mr = ce("t-time-range-picker"), Jr = ce("t-switch"), Dr = ce("vxe-rate"), Zr = ce("t-radio"), Qr = ce("t-radio-group"), en = ce("t-checkbox"), bn = ce("t-checkbox-group"), pr = ce("t-cascader"), En = ce("t-tree-select"), Cn = ce("t-auto-complete"), xr = ce("t-upload"), $a = ce("t-button"), tn = ce("t-color-picker"), Tn = ce("t-slider"), Sn = ce("t-progress"), Fn = ce("t-alert"), qa = ce("t-link"), An = ce("t-tag-input"), an = ce("t-dropdown-item"), Dn = ce("t-dropdown-menu"), T = ce("t-dropdown"), H = ce("vxe-grid"), B = ce("render-form-item", !0), U = ce("t-row"), j = ce("t-divider"), K = ce("t-tab-panel"), _e = ce("t-tabs"), Ie = ce("t-collapse-panel"), ge = ce("t-collapse"), ye = ce("t-popconfirm"), be = ce("t-space"), Ve = ce("t-table");
|
|
5108
5108
|
return e.field.__config__.layout === "colFormItem" ? (_(), Te(of(e.tableMode ? "div" : "t-form-item"), Kn({
|
|
5109
5109
|
key: 0,
|
|
5110
5110
|
class: e.tableMode ? "table-cell-editor" : ""
|
|
@@ -5655,7 +5655,7 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
5655
5655
|
"form-model": e.formModel,
|
|
5656
5656
|
"form-conf": e.formConf,
|
|
5657
5657
|
disabled: N.value,
|
|
5658
|
-
onChange: ae[32] || (ae[32] = (Ne, me) =>
|
|
5658
|
+
onChange: ae[32] || (ae[32] = (Ne, me) => se.$emit("change", Ne, me))
|
|
5659
5659
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"])
|
|
5660
5660
|
]),
|
|
5661
5661
|
_: 2
|
|
@@ -5688,7 +5688,7 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
5688
5688
|
size: "medium"
|
|
5689
5689
|
}, {
|
|
5690
5690
|
default: A(() => [
|
|
5691
|
-
(_(!0), I($e, null, qe(e.field.__config__.children, (Se) => (_(), Te(
|
|
5691
|
+
(_(!0), I($e, null, qe(e.field.__config__.children, (Se) => (_(), Te(K, {
|
|
5692
5692
|
key: Se.name,
|
|
5693
5693
|
value: Se.name,
|
|
5694
5694
|
label: Se.title
|
|
@@ -5713,7 +5713,7 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
5713
5713
|
"form-model": e.formModel,
|
|
5714
5714
|
"form-conf": e.formConf,
|
|
5715
5715
|
disabled: N.value,
|
|
5716
|
-
onChange: ae[33] || (ae[33] = (me, Xe) =>
|
|
5716
|
+
onChange: ae[33] || (ae[33] = (me, Xe) => se.$emit("change", me, Xe))
|
|
5717
5717
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"])
|
|
5718
5718
|
]),
|
|
5719
5719
|
_: 2
|
|
@@ -5756,7 +5756,7 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
5756
5756
|
"form-model": e.formModel,
|
|
5757
5757
|
"form-conf": e.formConf,
|
|
5758
5758
|
disabled: N.value,
|
|
5759
|
-
onChange: ae[35] || (ae[35] = (Pt, It) =>
|
|
5759
|
+
onChange: ae[35] || (ae[35] = (Pt, It) => se.$emit("change", Pt, It))
|
|
5760
5760
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"]))
|
|
5761
5761
|
], 64))), 128))
|
|
5762
5762
|
], 4))), 128))
|
|
@@ -5798,7 +5798,7 @@ const lp = { class: "cd-relation-form" }, op = { class: "input-wrapper" }, cp =
|
|
|
5798
5798
|
"form-model": e.formModel,
|
|
5799
5799
|
"form-conf": e.formConf,
|
|
5800
5800
|
disabled: N.value,
|
|
5801
|
-
onChange: ae[36] || (ae[36] = (me, Xe) =>
|
|
5801
|
+
onChange: ae[36] || (ae[36] = (me, Xe) => se.$emit("change", me, Xe))
|
|
5802
5802
|
}, null, 8, ["field", "form-model", "form-conf", "disabled"])
|
|
5803
5803
|
]),
|
|
5804
5804
|
_: 2
|
|
@@ -7627,8 +7627,8 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7627
7627
|
var a = {};
|
|
7628
7628
|
a.version = "1.2.1";
|
|
7629
7629
|
function t(T, H) {
|
|
7630
|
-
for (var B = T.split("/"), U = H.split("/"), j = 0,
|
|
7631
|
-
if (
|
|
7630
|
+
for (var B = T.split("/"), U = H.split("/"), j = 0, K = 0, _e = Math.min(B.length, U.length); j < _e; ++j) {
|
|
7631
|
+
if (K = B[j].length - U[j].length) return K;
|
|
7632
7632
|
if (B[j] != U[j]) return B[j] < U[j] ? -1 : 1;
|
|
7633
7633
|
}
|
|
7634
7634
|
return B.length - U.length;
|
|
@@ -7653,8 +7653,8 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7653
7653
|
function s(T) {
|
|
7654
7654
|
var H = T.read_shift(2) & 65535, B = T.read_shift(2) & 65535, U = /* @__PURE__ */ new Date(), j = B & 31;
|
|
7655
7655
|
B >>>= 5;
|
|
7656
|
-
var
|
|
7657
|
-
B >>>= 4, U.setMilliseconds(0), U.setFullYear(B + 1980), U.setMonth(
|
|
7656
|
+
var K = B & 15;
|
|
7657
|
+
B >>>= 4, U.setMilliseconds(0), U.setFullYear(B + 1980), U.setMonth(K - 1), U.setDate(j);
|
|
7658
7658
|
var _e = H & 31;
|
|
7659
7659
|
H >>>= 5;
|
|
7660
7660
|
var Ie = H & 63;
|
|
@@ -7666,13 +7666,13 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7666
7666
|
/*::(*/
|
|
7667
7667
|
{}
|
|
7668
7668
|
), B = 0; T.l <= T.length - 4; ) {
|
|
7669
|
-
var U = T.read_shift(2), j = T.read_shift(2),
|
|
7669
|
+
var U = T.read_shift(2), j = T.read_shift(2), K = T.l + j, _e = {};
|
|
7670
7670
|
switch (U) {
|
|
7671
7671
|
case 21589:
|
|
7672
7672
|
B = T.read_shift(1), B & 1 && (_e.mtime = T.read_shift(4)), j > 5 && (B & 2 && (_e.atime = T.read_shift(4)), B & 4 && (_e.ctime = T.read_shift(4))), _e.mtime && (_e.mt = new Date(_e.mtime * 1e3));
|
|
7673
7673
|
break;
|
|
7674
7674
|
}
|
|
7675
|
-
T.l =
|
|
7675
|
+
T.l = K, H[U] = _e;
|
|
7676
7676
|
}
|
|
7677
7677
|
return H;
|
|
7678
7678
|
}
|
|
@@ -7684,7 +7684,7 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7684
7684
|
if (T[0] == 80 && T[1] == 75) return Qr(T, H);
|
|
7685
7685
|
if ((T[0] | 32) == 109 && (T[1] | 32) == 105) return Tn(T, H);
|
|
7686
7686
|
if (T.length < 512) throw new Error("CFB file size " + T.length + " < 512");
|
|
7687
|
-
var B = 3, U = 512, j = 0,
|
|
7687
|
+
var B = 3, U = 512, j = 0, K = 0, _e = 0, Ie = 0, ge = 0, ye = [], be = (
|
|
7688
7688
|
/*::(*/
|
|
7689
7689
|
T.slice(0, 512)
|
|
7690
7690
|
);
|
|
@@ -7712,11 +7712,11 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7712
7712
|
d(be, B);
|
|
7713
7713
|
var Ne = be.read_shift(4, "i");
|
|
7714
7714
|
if (B === 3 && Ne !== 0) throw new Error("# Directory Sectors: Expected 0 saw " + Ne);
|
|
7715
|
-
be.l += 4, _e = be.read_shift(4, "i"), be.l += 4, be.chk("00100000", "Mini Stream Cutoff Size: "), Ie = be.read_shift(4, "i"), j = be.read_shift(4, "i"), ge = be.read_shift(4, "i"),
|
|
7715
|
+
be.l += 4, _e = be.read_shift(4, "i"), be.l += 4, be.chk("00100000", "Mini Stream Cutoff Size: "), Ie = be.read_shift(4, "i"), j = be.read_shift(4, "i"), ge = be.read_shift(4, "i"), K = be.read_shift(4, "i");
|
|
7716
7716
|
for (var me = -1, Xe = 0; Xe < 109 && (me = be.read_shift(4, "i"), !(me < 0)); ++Xe)
|
|
7717
7717
|
ye[Xe] = me;
|
|
7718
7718
|
var lt = m(T, U);
|
|
7719
|
-
x(ge,
|
|
7719
|
+
x(ge, K, lt, U, ye);
|
|
7720
7720
|
var Pt = C(lt, _e, ye, U);
|
|
7721
7721
|
Pt[_e].name = "!Directory", j > 0 && Ie !== V && (Pt[Ie].name = "!MiniFAT"), Pt[ye[0]].name = "!FAT", Pt.fat_addrs = ye, Pt.ssz = U;
|
|
7722
7722
|
var It = {}, sa = [], Ir = [], za = [];
|
|
@@ -7752,11 +7752,11 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7752
7752
|
return U[B - 1] = T.slice(B * H), U;
|
|
7753
7753
|
}
|
|
7754
7754
|
function p(T, H, B) {
|
|
7755
|
-
for (var U = 0, j = 0,
|
|
7755
|
+
for (var U = 0, j = 0, K = 0, _e = 0, Ie = 0, ge = B.length, ye = [], be = []; U < ge; ++U)
|
|
7756
7756
|
ye[U] = be[U] = U, H[U] = B[U];
|
|
7757
7757
|
for (; Ie < be.length; ++Ie)
|
|
7758
|
-
U = be[Ie], j = T[U].L,
|
|
7759
|
-
for (U = 1; U < ge; ++U) ye[U] === U && (
|
|
7758
|
+
U = be[Ie], j = T[U].L, K = T[U].R, _e = T[U].C, ye[U] === U && (j !== -1 && ye[j] !== j && (ye[U] = ye[j]), K !== -1 && ye[K] !== K && (ye[U] = ye[K])), _e !== -1 && (ye[_e] = U), j !== -1 && U != ye[U] && (ye[j] = ye[U], be.lastIndexOf(j) < Ie && be.push(j)), K !== -1 && U != ye[U] && (ye[K] = ye[U], be.lastIndexOf(K) < Ie && be.push(K));
|
|
7759
|
+
for (U = 1; U < ge; ++U) ye[U] === U && (K !== -1 && ye[K] !== K ? ye[U] = ye[K] : j !== -1 && ye[j] !== j && (ye[U] = ye[j]));
|
|
7760
7760
|
for (U = 1; U < ge; ++U)
|
|
7761
7761
|
if (T[U].type !== 0) {
|
|
7762
7762
|
if (Ie = U, Ie != ye[Ie]) do
|
|
@@ -7768,37 +7768,37 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7768
7768
|
T[U].type !== 2 && (H[U] += "/");
|
|
7769
7769
|
}
|
|
7770
7770
|
function v(T, H, B) {
|
|
7771
|
-
for (var U = T.start, j = T.size,
|
|
7772
|
-
|
|
7773
|
-
return
|
|
7771
|
+
for (var U = T.start, j = T.size, K = [], _e = U; B && j > 0 && _e >= 0; )
|
|
7772
|
+
K.push(H.slice(_e * N, _e * N + N)), j -= N, _e = Rr(B, _e * 4);
|
|
7773
|
+
return K.length === 0 ? Ae(0) : oa(K).slice(0, T.size);
|
|
7774
7774
|
}
|
|
7775
7775
|
function x(T, H, B, U, j) {
|
|
7776
|
-
var
|
|
7776
|
+
var K = V;
|
|
7777
7777
|
if (T === V) {
|
|
7778
7778
|
if (H !== 0) throw new Error("DIFAT chain shorter than expected");
|
|
7779
7779
|
} else if (T !== -1) {
|
|
7780
7780
|
var _e = B[T], Ie = (U >>> 2) - 1;
|
|
7781
7781
|
if (!_e) return;
|
|
7782
|
-
for (var ge = 0; ge < Ie && (
|
|
7783
|
-
j.push(
|
|
7782
|
+
for (var ge = 0; ge < Ie && (K = Rr(_e, ge * 4)) !== V; ++ge)
|
|
7783
|
+
j.push(K);
|
|
7784
7784
|
x(Rr(_e, U - 4), H - 1, B, U, j);
|
|
7785
7785
|
}
|
|
7786
7786
|
}
|
|
7787
7787
|
function S(T, H, B, U, j) {
|
|
7788
|
-
var
|
|
7788
|
+
var K = [], _e = [];
|
|
7789
7789
|
j || (j = []);
|
|
7790
7790
|
var Ie = U - 1, ge = 0, ye = 0;
|
|
7791
7791
|
for (ge = H; ge >= 0; ) {
|
|
7792
|
-
j[ge] = !0,
|
|
7792
|
+
j[ge] = !0, K[K.length] = ge, _e.push(T[ge]);
|
|
7793
7793
|
var be = B[Math.floor(ge * 4 / U)];
|
|
7794
7794
|
if (ye = ge * 4 & Ie, U < 4 + ye) throw new Error("FAT boundary crossed: " + ge + " 4 " + U);
|
|
7795
7795
|
if (!T[be]) break;
|
|
7796
7796
|
ge = Rr(T[be], ye);
|
|
7797
7797
|
}
|
|
7798
|
-
return { nodes:
|
|
7798
|
+
return { nodes: K, data: Xl([_e]) };
|
|
7799
7799
|
}
|
|
7800
7800
|
function C(T, H, B, U) {
|
|
7801
|
-
var j = T.length,
|
|
7801
|
+
var j = T.length, K = [], _e = [], Ie = [], ge = [], ye = U - 1, be = 0, Ve = 0, Se = 0, Ne = 0;
|
|
7802
7802
|
for (be = 0; be < j; ++be)
|
|
7803
7803
|
if (Ie = [], Se = be + H, Se >= j && (Se -= j), !_e[Se]) {
|
|
7804
7804
|
ge = [];
|
|
@@ -7809,11 +7809,11 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7809
7809
|
if (Ne = Ve * 4 & ye, U < 4 + Ne) throw new Error("FAT boundary crossed: " + Ve + " 4 " + U);
|
|
7810
7810
|
if (!T[Xe] || (Ve = Rr(T[Xe], Ne), me[Ve])) break;
|
|
7811
7811
|
}
|
|
7812
|
-
|
|
7812
|
+
K[Se] = { nodes: Ie, data: Xl([ge]) };
|
|
7813
7813
|
}
|
|
7814
|
-
return
|
|
7814
|
+
return K;
|
|
7815
7815
|
}
|
|
7816
|
-
function g(T, H, B, U, j,
|
|
7816
|
+
function g(T, H, B, U, j, K, _e, Ie) {
|
|
7817
7817
|
for (var ge = 0, ye = U.length ? 2 : 0, be = H[T].data, Ve = 0, Se = 0, Ne; Ve < be.length; Ve += 128) {
|
|
7818
7818
|
var me = (
|
|
7819
7819
|
/*::(*/
|
|
@@ -7834,7 +7834,7 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7834
7834
|
}, lt = me.read_shift(2) + me.read_shift(2) + me.read_shift(2) + me.read_shift(2);
|
|
7835
7835
|
lt !== 0 && (Xe.ct = D(me, me.l - 8));
|
|
7836
7836
|
var Pt = me.read_shift(2) + me.read_shift(2) + me.read_shift(2) + me.read_shift(2);
|
|
7837
|
-
Pt !== 0 && (Xe.mt = D(me, me.l - 8)), Xe.start = me.read_shift(4, "i"), Xe.size = me.read_shift(4, "i"), Xe.size < 0 && Xe.start < 0 && (Xe.size = Xe.type = 0, Xe.start = V, Xe.name = ""), Xe.type === 5 ? (ge = Xe.start, j > 0 && ge !== V && (H[ge].name = "!StreamData")) : Xe.size >= 4096 ? (Xe.storage = "fat", H[Xe.start] === void 0 && (H[Xe.start] = S(B, Xe.start, H.fat_addrs, H.ssz)), H[Xe.start].name = Xe.name, Xe.content = H[Xe.start].data.slice(0, Xe.size)) : (Xe.storage = "minifat", Xe.size < 0 ? Xe.size = 0 : ge !== V && Xe.start !== V && H[ge] && (Xe.content = v(Xe, H[ge].data, (H[Ie] || {}).data))), Xe.content && ua(Xe.content, 0),
|
|
7837
|
+
Pt !== 0 && (Xe.mt = D(me, me.l - 8)), Xe.start = me.read_shift(4, "i"), Xe.size = me.read_shift(4, "i"), Xe.size < 0 && Xe.start < 0 && (Xe.size = Xe.type = 0, Xe.start = V, Xe.name = ""), Xe.type === 5 ? (ge = Xe.start, j > 0 && ge !== V && (H[ge].name = "!StreamData")) : Xe.size >= 4096 ? (Xe.storage = "fat", H[Xe.start] === void 0 && (H[Xe.start] = S(B, Xe.start, H.fat_addrs, H.ssz)), H[Xe.start].name = Xe.name, Xe.content = H[Xe.start].data.slice(0, Xe.size)) : (Xe.storage = "minifat", Xe.size < 0 ? Xe.size = 0 : ge !== V && Xe.start !== V && H[ge] && (Xe.content = v(Xe, H[ge].data, (H[Ie] || {}).data))), Xe.content && ua(Xe.content, 0), K[Ne] = Xe, _e.push(Xe);
|
|
7838
7838
|
}
|
|
7839
7839
|
}
|
|
7840
7840
|
function D(T, H) {
|
|
@@ -7874,15 +7874,15 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7874
7874
|
function F(T, H) {
|
|
7875
7875
|
k(T);
|
|
7876
7876
|
for (var B = !1, U = !1, j = T.FullPaths.length - 1; j >= 0; --j) {
|
|
7877
|
-
var
|
|
7878
|
-
switch (
|
|
7877
|
+
var K = T.FileIndex[j];
|
|
7878
|
+
switch (K.type) {
|
|
7879
7879
|
case 0:
|
|
7880
7880
|
U ? B = !0 : (T.FileIndex.pop(), T.FullPaths.pop());
|
|
7881
7881
|
break;
|
|
7882
7882
|
case 1:
|
|
7883
7883
|
case 2:
|
|
7884
7884
|
case 5:
|
|
7885
|
-
U = !0, isNaN(
|
|
7885
|
+
U = !0, isNaN(K.R * K.L * K.C) && (B = !0), K.R > -1 && K.L > -1 && K.R == K.L && (B = !0);
|
|
7886
7886
|
break;
|
|
7887
7887
|
default:
|
|
7888
7888
|
B = !0;
|
|
@@ -7939,55 +7939,55 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
7939
7939
|
for (var sa = Ne.FullPaths.length + 3 >> 2, Ir = me + 7 >> 3, za = me + 127 >> 7, gr = Ir + Xe + sa + za, nr = gr + 127 >> 7, rn = nr <= 109 ? 0 : Math.ceil((nr - 109) / 127); gr + nr + rn + 127 >> 7 > nr; ) rn = ++nr <= 109 ? 0 : Math.ceil((nr - 109) / 127);
|
|
7940
7940
|
var Wa = [1, rn, nr, za, sa, Xe, me, 0];
|
|
7941
7941
|
return Ne.FileIndex[0].size = me << 6, Wa[7] = (Ne.FileIndex[0].start = Wa[0] + Wa[1] + Wa[2] + Wa[3] + Wa[4] + Wa[5]) + (Wa[6] + 7 >> 3), Wa;
|
|
7942
|
-
}(T), j = Ae(U[7] << 9),
|
|
7942
|
+
}(T), j = Ae(U[7] << 9), K = 0, _e = 0;
|
|
7943
7943
|
{
|
|
7944
|
-
for (
|
|
7945
|
-
for (
|
|
7946
|
-
for (j.write_shift(2, 62), j.write_shift(2, 3), j.write_shift(2, 65534), j.write_shift(2, 9), j.write_shift(2, 6),
|
|
7947
|
-
for (j.write_shift(4, 0), j.write_shift(4, U[2]), j.write_shift(4, U[0] + U[1] + U[2] + U[3] - 1), j.write_shift(4, 0), j.write_shift(4, 4096), j.write_shift(4, U[3] ? U[0] + U[1] + U[2] - 1 : V), j.write_shift(4, U[3]), j.write_shift(-4, U[1] ? U[0] - 1 : V), j.write_shift(4, U[1]),
|
|
7944
|
+
for (K = 0; K < 8; ++K) j.write_shift(1, L[K]);
|
|
7945
|
+
for (K = 0; K < 8; ++K) j.write_shift(2, 0);
|
|
7946
|
+
for (j.write_shift(2, 62), j.write_shift(2, 3), j.write_shift(2, 65534), j.write_shift(2, 9), j.write_shift(2, 6), K = 0; K < 3; ++K) j.write_shift(2, 0);
|
|
7947
|
+
for (j.write_shift(4, 0), j.write_shift(4, U[2]), j.write_shift(4, U[0] + U[1] + U[2] + U[3] - 1), j.write_shift(4, 0), j.write_shift(4, 4096), j.write_shift(4, U[3] ? U[0] + U[1] + U[2] - 1 : V), j.write_shift(4, U[3]), j.write_shift(-4, U[1] ? U[0] - 1 : V), j.write_shift(4, U[1]), K = 0; K < 109; ++K) j.write_shift(-4, K < U[2] ? U[1] + K : -1);
|
|
7948
7948
|
}
|
|
7949
7949
|
if (U[1])
|
|
7950
7950
|
for (_e = 0; _e < U[1]; ++_e) {
|
|
7951
|
-
for (;
|
|
7951
|
+
for (; K < 236 + _e * 127; ++K) j.write_shift(-4, K < U[2] ? U[1] + K : -1);
|
|
7952
7952
|
j.write_shift(-4, _e === U[1] - 1 ? V : _e + 1);
|
|
7953
7953
|
}
|
|
7954
7954
|
var Ie = function(Ne) {
|
|
7955
|
-
for (_e += Ne;
|
|
7956
|
-
Ne && (++
|
|
7955
|
+
for (_e += Ne; K < _e - 1; ++K) j.write_shift(-4, K + 1);
|
|
7956
|
+
Ne && (++K, j.write_shift(-4, V));
|
|
7957
7957
|
};
|
|
7958
|
-
for (_e =
|
|
7959
|
-
for (_e += U[2];
|
|
7958
|
+
for (_e = K = 0, _e += U[1]; K < _e; ++K) j.write_shift(-4, fe.DIFSECT);
|
|
7959
|
+
for (_e += U[2]; K < _e; ++K) j.write_shift(-4, fe.FATSECT);
|
|
7960
7960
|
Ie(U[3]), Ie(U[4]);
|
|
7961
7961
|
for (var ge = 0, ye = 0, be = T.FileIndex[0]; ge < T.FileIndex.length; ++ge)
|
|
7962
7962
|
be = T.FileIndex[ge], be.content && (ye = be.content.length, !(ye < 4096) && (be.start = _e, Ie(ye + 511 >> 9)));
|
|
7963
7963
|
for (Ie(U[6] + 7 >> 3); j.l & 511; ) j.write_shift(-4, fe.ENDOFCHAIN);
|
|
7964
|
-
for (_e =
|
|
7964
|
+
for (_e = K = 0, ge = 0; ge < T.FileIndex.length; ++ge)
|
|
7965
7965
|
be = T.FileIndex[ge], be.content && (ye = be.content.length, !(!ye || ye >= 4096) && (be.start = _e, Ie(ye + 63 >> 6)));
|
|
7966
7966
|
for (; j.l & 511; ) j.write_shift(-4, fe.ENDOFCHAIN);
|
|
7967
|
-
for (
|
|
7968
|
-
var Ve = T.FullPaths[
|
|
7967
|
+
for (K = 0; K < U[4] << 2; ++K) {
|
|
7968
|
+
var Ve = T.FullPaths[K];
|
|
7969
7969
|
if (!Ve || Ve.length === 0) {
|
|
7970
7970
|
for (ge = 0; ge < 17; ++ge) j.write_shift(4, 0);
|
|
7971
7971
|
for (ge = 0; ge < 3; ++ge) j.write_shift(4, -1);
|
|
7972
7972
|
for (ge = 0; ge < 12; ++ge) j.write_shift(4, 0);
|
|
7973
7973
|
continue;
|
|
7974
7974
|
}
|
|
7975
|
-
be = T.FileIndex[
|
|
7976
|
-
var Se =
|
|
7975
|
+
be = T.FileIndex[K], K === 0 && (be.start = be.size ? be.start - 1 : V);
|
|
7976
|
+
var Se = K === 0 && B.root || be.name;
|
|
7977
7977
|
if (ye = 2 * (Se.length + 1), j.write_shift(64, Se, "utf16le"), j.write_shift(2, ye), j.write_shift(1, be.type), j.write_shift(1, be.color), j.write_shift(-4, be.L), j.write_shift(-4, be.R), j.write_shift(-4, be.C), be.clsid) j.write_shift(16, be.clsid, "hex");
|
|
7978
7978
|
else for (ge = 0; ge < 4; ++ge) j.write_shift(4, 0);
|
|
7979
7979
|
j.write_shift(4, be.state || 0), j.write_shift(4, 0), j.write_shift(4, 0), j.write_shift(4, 0), j.write_shift(4, 0), j.write_shift(4, be.start), j.write_shift(4, be.size), j.write_shift(4, 0);
|
|
7980
7980
|
}
|
|
7981
|
-
for (
|
|
7982
|
-
if (be = T.FileIndex[
|
|
7981
|
+
for (K = 1; K < T.FileIndex.length; ++K)
|
|
7982
|
+
if (be = T.FileIndex[K], be.size >= 4096)
|
|
7983
7983
|
if (j.l = be.start + 1 << 9, gt && Buffer.isBuffer(be.content))
|
|
7984
7984
|
be.content.copy(j, j.l, 0, be.size), j.l += be.size + 511 & -512;
|
|
7985
7985
|
else {
|
|
7986
7986
|
for (ge = 0; ge < be.size; ++ge) j.write_shift(1, be.content[ge]);
|
|
7987
7987
|
for (; ge & 511; ++ge) j.write_shift(1, 0);
|
|
7988
7988
|
}
|
|
7989
|
-
for (
|
|
7990
|
-
if (be = T.FileIndex[
|
|
7989
|
+
for (K = 1; K < T.FileIndex.length; ++K)
|
|
7990
|
+
if (be = T.FileIndex[K], be.size > 0 && be.size < 4096)
|
|
7991
7991
|
if (gt && Buffer.isBuffer(be.content))
|
|
7992
7992
|
be.content.copy(j, j.l, 0, be.size), j.l += be.size + 63 & -64;
|
|
7993
7993
|
else {
|
|
@@ -8008,11 +8008,11 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8008
8008
|
return ye[ye.length - (ge.slice(-1) == "/" ? 2 : 1)];
|
|
8009
8009
|
}), j = !1;
|
|
8010
8010
|
H.charCodeAt(0) === 47 ? (j = !0, H = B[0].slice(0, -1) + H) : j = H.indexOf("/") !== -1;
|
|
8011
|
-
var
|
|
8011
|
+
var K = H.toUpperCase(), _e = j === !0 ? B.indexOf(K) : U.indexOf(K);
|
|
8012
8012
|
if (_e !== -1) return T.FileIndex[_e];
|
|
8013
|
-
var Ie = !
|
|
8014
|
-
for (
|
|
8015
|
-
if ((Ie ? B[_e].replace(Bn, "!") : B[_e]).replace(ba, "") ==
|
|
8013
|
+
var Ie = !K.match(Bn);
|
|
8014
|
+
for (K = K.replace(ba, ""), Ie && (K = K.replace(Bn, "!")), _e = 0; _e < B.length; ++_e)
|
|
8015
|
+
if ((Ie ? B[_e].replace(Bn, "!") : B[_e]).replace(ba, "") == K || (Ie ? U[_e].replace(Bn, "!") : U[_e]).replace(ba, "") == K) return T.FileIndex[_e];
|
|
8016
8016
|
return null;
|
|
8017
8017
|
}
|
|
8018
8018
|
var N = 64, V = -2, M = "d0cf11e0a1b11ae1", L = [208, 207, 17, 224, 161, 177, 26, 225], ue = "00000000000000000000000000000000", fe = {
|
|
@@ -8105,8 +8105,8 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8105
8105
|
return (T[U] | (B <= 1 ? 0 : T[U + 1] << 8)) >>> B & 127;
|
|
8106
8106
|
}
|
|
8107
8107
|
function Ze(T, H, B) {
|
|
8108
|
-
var U = H & 7, j = H >>> 3,
|
|
8109
|
-
return B < 8 - U || (_e |= T[j + 1] << 8 - U, B < 16 - U) || (_e |= T[j + 2] << 16 - U, B < 24 - U) || (_e |= T[j + 3] << 24 - U), _e &
|
|
8108
|
+
var U = H & 7, j = H >>> 3, K = (1 << B) - 1, _e = T[j] >>> U;
|
|
8109
|
+
return B < 8 - U || (_e |= T[j + 1] << 8 - U, B < 16 - U) || (_e |= T[j + 2] << 16 - U, B < 24 - U) || (_e |= T[j + 3] << 24 - U), _e & K;
|
|
8110
8110
|
}
|
|
8111
8111
|
function Qe(T, H, B) {
|
|
8112
8112
|
var U = H & 7, j = H >>> 3;
|
|
@@ -8128,10 +8128,10 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8128
8128
|
var B = T.length, U = 2 * B > H ? 2 * B : H + 5, j = 0;
|
|
8129
8129
|
if (B >= H) return T;
|
|
8130
8130
|
if (gt) {
|
|
8131
|
-
var
|
|
8132
|
-
if (T.copy) T.copy(
|
|
8133
|
-
else for (; j < T.length; ++j)
|
|
8134
|
-
return
|
|
8131
|
+
var K = Sl(U);
|
|
8132
|
+
if (T.copy) T.copy(K);
|
|
8133
|
+
else for (; j < T.length; ++j) K[j] = T[j];
|
|
8134
|
+
return K;
|
|
8135
8135
|
} else if (oe) {
|
|
8136
8136
|
var _e = new Uint8Array(U);
|
|
8137
8137
|
if (_e.set) _e.set(T);
|
|
@@ -8145,31 +8145,31 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8145
8145
|
return H;
|
|
8146
8146
|
}
|
|
8147
8147
|
function Bt(T, H, B) {
|
|
8148
|
-
var U = 1, j = 0,
|
|
8149
|
-
for (
|
|
8150
|
-
for (
|
|
8148
|
+
var U = 1, j = 0, K = 0, _e = 0, Ie = 0, ge = T.length, ye = oe ? new Uint16Array(32) : Je(32);
|
|
8149
|
+
for (K = 0; K < 32; ++K) ye[K] = 0;
|
|
8150
|
+
for (K = ge; K < B; ++K) T[K] = 0;
|
|
8151
8151
|
ge = T.length;
|
|
8152
8152
|
var be = oe ? new Uint16Array(ge) : Je(ge);
|
|
8153
|
-
for (
|
|
8154
|
-
ye[j = T[
|
|
8155
|
-
for (ye[0] = 0,
|
|
8156
|
-
for (
|
|
8157
|
-
Ie = T[
|
|
8153
|
+
for (K = 0; K < ge; ++K)
|
|
8154
|
+
ye[j = T[K]]++, U < j && (U = j), be[K] = 0;
|
|
8155
|
+
for (ye[0] = 0, K = 1; K <= U; ++K) ye[K + 16] = Ie = Ie + ye[K - 1] << 1;
|
|
8156
|
+
for (K = 0; K < ge; ++K)
|
|
8157
|
+
Ie = T[K], Ie != 0 && (be[K] = ye[Ie + 16]++);
|
|
8158
8158
|
var Ve = 0;
|
|
8159
|
-
for (
|
|
8160
|
-
if (Ve = T[
|
|
8161
|
-
for (Ie = P(be[
|
|
8162
|
-
H[Ie | _e << Ve] = Ve & 15 |
|
|
8159
|
+
for (K = 0; K < ge; ++K)
|
|
8160
|
+
if (Ve = T[K], Ve != 0)
|
|
8161
|
+
for (Ie = P(be[K], U) >> U - Ve, _e = (1 << U + 4 - Ve) - 1; _e >= 0; --_e)
|
|
8162
|
+
H[Ie | _e << Ve] = Ve & 15 | K << 4;
|
|
8163
8163
|
return U;
|
|
8164
8164
|
}
|
|
8165
|
-
var Ge = oe ? new Uint16Array(512) : Je(512),
|
|
8165
|
+
var Ge = oe ? new Uint16Array(512) : Je(512), se = oe ? new Uint16Array(32) : Je(32);
|
|
8166
8166
|
if (!oe) {
|
|
8167
8167
|
for (var ae = 0; ae < 512; ++ae) Ge[ae] = 0;
|
|
8168
|
-
for (ae = 0; ae < 32; ++ae)
|
|
8168
|
+
for (ae = 0; ae < 32; ++ae) se[ae] = 0;
|
|
8169
8169
|
}
|
|
8170
8170
|
(function() {
|
|
8171
8171
|
for (var T = [], H = 0; H < 32; H++) T.push(5);
|
|
8172
|
-
Bt(T,
|
|
8172
|
+
Bt(T, se, 32);
|
|
8173
8173
|
var B = [];
|
|
8174
8174
|
for (H = 0; H <= 143; H++) B.push(8);
|
|
8175
8175
|
for (; H <= 255; H++) B.push(9);
|
|
@@ -8184,7 +8184,7 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8184
8184
|
var j = oe ? new Uint8Array(259) : [];
|
|
8185
8185
|
for (B = 0, U = 0; B < q.length - 1; ++B)
|
|
8186
8186
|
for (; U < q[B + 1]; ++U) j[U] = B;
|
|
8187
|
-
function
|
|
8187
|
+
function K(Ie, ge) {
|
|
8188
8188
|
for (var ye = 0; ye < Ie.length; ) {
|
|
8189
8189
|
var be = Math.min(65535, Ie.length - ye), Ve = ye + be == Ie.length;
|
|
8190
8190
|
for (ge.write_shift(1, +Ve), ge.write_shift(2, be), ge.write_shift(2, ~be & 65535); be-- > 0; ) ge[ge.l++] = Ie[ye++];
|
|
@@ -8226,7 +8226,7 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8226
8226
|
return ge.l = (ye + 7) / 8 | 0, ge.l;
|
|
8227
8227
|
}
|
|
8228
8228
|
return function(ge, ye) {
|
|
8229
|
-
return ge.length < 8 ?
|
|
8229
|
+
return ge.length < 8 ? K(ge, ye) : _e(ge, ye);
|
|
8230
8230
|
};
|
|
8231
8231
|
}();
|
|
8232
8232
|
function Ue(T) {
|
|
@@ -8241,8 +8241,8 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8241
8241
|
H += 5;
|
|
8242
8242
|
var j = pe(T, H) + 4;
|
|
8243
8243
|
H += 4;
|
|
8244
|
-
for (var
|
|
8245
|
-
_e[Z[Se]] =
|
|
8244
|
+
for (var K = 0, _e = oe ? new Uint8Array(19) : Je(19), Ie = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ge = 1, ye = oe ? new Uint8Array(8) : Je(8), be = oe ? new Uint8Array(8) : Je(8), Ve = _e.length, Se = 0; Se < j; ++Se)
|
|
8245
|
+
_e[Z[Se]] = K = Re(T, H), ge < K && (ge = K), ye[K]++, H += 3;
|
|
8246
8246
|
var Ne = 0;
|
|
8247
8247
|
for (ye[0] = 0, Se = 1; Se <= ge; ++Se) be[Se] = Ne = Ne + ye[Se - 1] << 1;
|
|
8248
8248
|
for (Se = 0; Se < Ve; ++Se) (Ne = _e[Se]) != 0 && (Ie[Se] = be[Ne]++);
|
|
@@ -8256,13 +8256,13 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8256
8256
|
for (ge = 1; lt.length < B + U; )
|
|
8257
8257
|
switch (Ne = st[De(T, H)], H += Ne & 7, Ne >>>= 3) {
|
|
8258
8258
|
case 16:
|
|
8259
|
-
for (
|
|
8259
|
+
for (K = 3 + ze(T, H), H += 2, Ne = lt[lt.length - 1]; K-- > 0; ) lt.push(Ne);
|
|
8260
8260
|
break;
|
|
8261
8261
|
case 17:
|
|
8262
|
-
for (
|
|
8262
|
+
for (K = 3 + Re(T, H), H += 3; K-- > 0; ) lt.push(0);
|
|
8263
8263
|
break;
|
|
8264
8264
|
case 18:
|
|
8265
|
-
for (
|
|
8265
|
+
for (K = 11 + De(T, H), H += 7; K-- > 0; ) lt.push(0);
|
|
8266
8266
|
break;
|
|
8267
8267
|
default:
|
|
8268
8268
|
lt.push(Ne), ge < Ne && (ge = Ne);
|
|
@@ -8276,35 +8276,35 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8276
8276
|
function Jr(T, H) {
|
|
8277
8277
|
if (T[0] == 3 && !(T[1] & 3))
|
|
8278
8278
|
return [br(H), 2];
|
|
8279
|
-
for (var B = 0, U = 0, j = Sl(H || 1 << 18),
|
|
8279
|
+
for (var B = 0, U = 0, j = Sl(H || 1 << 18), K = 0, _e = j.length >>> 0, Ie = 0, ge = 0; !(U & 1); ) {
|
|
8280
8280
|
if (U = Re(T, B), B += 3, U >>> 1)
|
|
8281
8281
|
U >> 1 == 1 ? (Ie = 9, ge = 5) : (B = mr(T, B), Ie = Dt, ge = qt);
|
|
8282
8282
|
else {
|
|
8283
8283
|
B & 7 && (B += 8 - (B & 7));
|
|
8284
8284
|
var ye = T[B >>> 3] | T[(B >>> 3) + 1] << 8;
|
|
8285
8285
|
if (B += 32, ye > 0)
|
|
8286
|
-
for (!H && _e <
|
|
8287
|
-
j[
|
|
8286
|
+
for (!H && _e < K + ye && (j = Vt(j, K + ye), _e = j.length); ye-- > 0; )
|
|
8287
|
+
j[K++] = T[B >>> 3], B += 8;
|
|
8288
8288
|
continue;
|
|
8289
8289
|
}
|
|
8290
8290
|
for (; ; ) {
|
|
8291
|
-
!H && _e <
|
|
8291
|
+
!H && _e < K + 32767 && (j = Vt(j, K + 32767), _e = j.length);
|
|
8292
8292
|
var be = Ze(T, B, Ie), Ve = U >>> 1 == 1 ? Ge[be] : Be[be];
|
|
8293
|
-
if (B += Ve & 15, Ve >>>= 4, !(Ve >>> 8 & 255)) j[
|
|
8293
|
+
if (B += Ve & 15, Ve >>>= 4, !(Ve >>> 8 & 255)) j[K++] = Ve;
|
|
8294
8294
|
else {
|
|
8295
8295
|
if (Ve == 256) break;
|
|
8296
8296
|
Ve -= 257;
|
|
8297
8297
|
var Se = Ve < 8 ? 0 : Ve - 4 >> 2;
|
|
8298
8298
|
Se > 5 && (Se = 0);
|
|
8299
|
-
var Ne =
|
|
8300
|
-
Se > 0 && (Ne += Ze(T, B, Se), B += Se), be = Ze(T, B, ge), Ve = U >>> 1 == 1 ?
|
|
8299
|
+
var Ne = K + q[Ve];
|
|
8300
|
+
Se > 0 && (Ne += Ze(T, B, Se), B += Se), be = Ze(T, B, ge), Ve = U >>> 1 == 1 ? se[be] : mt[be], B += Ve & 15, Ve >>>= 4;
|
|
8301
8301
|
var me = Ve < 4 ? 0 : Ve - 2 >> 1, Xe = Q[Ve];
|
|
8302
|
-
for (me > 0 && (Xe += Ze(T, B, me), B += me), !H && _e < Ne && (j = Vt(j, Ne + 100), _e = j.length);
|
|
8303
|
-
j[
|
|
8302
|
+
for (me > 0 && (Xe += Ze(T, B, me), B += me), !H && _e < Ne && (j = Vt(j, Ne + 100), _e = j.length); K < Ne; )
|
|
8303
|
+
j[K] = j[K - Xe], ++K;
|
|
8304
8304
|
}
|
|
8305
8305
|
}
|
|
8306
8306
|
}
|
|
8307
|
-
return H ? [j, B + 7 >>> 3] : [j.slice(0,
|
|
8307
|
+
return H ? [j, B + 7 >>> 3] : [j.slice(0, K), B + 7 >>> 3];
|
|
8308
8308
|
}
|
|
8309
8309
|
function Dr(T, H) {
|
|
8310
8310
|
var B = T.slice(T.l || 0), U = Jr(B, H);
|
|
@@ -8321,11 +8321,11 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8321
8321
|
T
|
|
8322
8322
|
);
|
|
8323
8323
|
ua(B, 0);
|
|
8324
|
-
var U = [], j = [],
|
|
8324
|
+
var U = [], j = [], K = {
|
|
8325
8325
|
FileIndex: U,
|
|
8326
8326
|
FullPaths: j
|
|
8327
8327
|
};
|
|
8328
|
-
k(
|
|
8328
|
+
k(K, { root: H.root });
|
|
8329
8329
|
for (var _e = B.length - 4; (B[_e] != 80 || B[_e + 1] != 75 || B[_e + 2] != 5 || B[_e + 3] != 6) && _e >= 0; ) --_e;
|
|
8330
8330
|
B.l = _e + 4, B.l += 4;
|
|
8331
8331
|
var Ie = B.read_shift(2);
|
|
@@ -8342,14 +8342,14 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8342
8342
|
);
|
|
8343
8343
|
B.l += Ve + Se + Ne;
|
|
8344
8344
|
var lt = B.l;
|
|
8345
|
-
B.l = me + 4, en(B, ye, be,
|
|
8345
|
+
B.l = me + 4, en(B, ye, be, K, Xe), B.l = lt;
|
|
8346
8346
|
}
|
|
8347
|
-
return
|
|
8347
|
+
return K;
|
|
8348
8348
|
}
|
|
8349
8349
|
function en(T, H, B, U, j) {
|
|
8350
8350
|
T.l += 2;
|
|
8351
|
-
var
|
|
8352
|
-
if (
|
|
8351
|
+
var K = T.read_shift(2), _e = T.read_shift(2), Ie = s(T);
|
|
8352
|
+
if (K & 8257) throw new Error("Unsupported ZIP encryption");
|
|
8353
8353
|
for (var ge = T.read_shift(4), ye = T.read_shift(4), be = T.read_shift(4), Ve = T.read_shift(2), Se = T.read_shift(2), Ne = "", me = 0; me < Ve; ++me) Ne += String.fromCharCode(T[T.l++]);
|
|
8354
8354
|
if (Se) {
|
|
8355
8355
|
var Xe = l(
|
|
@@ -8371,10 +8371,10 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8371
8371
|
throw new Error("Unsupported ZIP Compression method " + _e);
|
|
8372
8372
|
}
|
|
8373
8373
|
var Pt = !1;
|
|
8374
|
-
|
|
8374
|
+
K & 8 && (ge = T.read_shift(4), ge == 134695760 && (ge = T.read_shift(4), Pt = !0), ye = T.read_shift(4), be = T.read_shift(4)), ye != H && Zr(Pt, "Bad compressed size: " + H + " != " + ye), be != B && Zr(Pt, "Bad uncompressed size: " + B + " != " + be), qa(U, Ne, lt, { unsafe: !0, mt: Ie });
|
|
8375
8375
|
}
|
|
8376
8376
|
function bn(T, H) {
|
|
8377
|
-
var B = H || {}, U = [], j = [],
|
|
8377
|
+
var B = H || {}, U = [], j = [], K = Ae(1), _e = B.compression ? 8 : 0, Ie = 0, ge = 0, ye = 0, be = 0, Ve = 0, Se = T.FullPaths[0], Ne = Se, me = T.FileIndex[0], Xe = [], lt = 0;
|
|
8378
8378
|
for (ge = 1; ge < T.FullPaths.length; ++ge)
|
|
8379
8379
|
if (Ne = T.FullPaths[ge].slice(Se.length), me = T.FileIndex[ge], !(!me.size || !me.content || Ne == "Sh33tJ5")) {
|
|
8380
8380
|
var Pt = be, It = Ae(Ne.length);
|
|
@@ -8385,17 +8385,17 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8385
8385
|
0
|
|
8386
8386
|
);
|
|
8387
8387
|
var sa = me.content;
|
|
8388
|
-
_e == 8 && (sa = G(sa)),
|
|
8388
|
+
_e == 8 && (sa = G(sa)), K = Ae(30), K.write_shift(4, 67324752), K.write_shift(2, 20), K.write_shift(2, Ie), K.write_shift(2, _e), me.mt ? i(K, me.mt) : K.write_shift(4, 0), K.write_shift(-4, Xe[Ve]), K.write_shift(4, sa.length), K.write_shift(
|
|
8389
8389
|
4,
|
|
8390
8390
|
/*::(*/
|
|
8391
8391
|
me.content.length
|
|
8392
|
-
),
|
|
8392
|
+
), K.write_shift(2, It.length), K.write_shift(2, 0), be += K.length, U.push(K), be += It.length, U.push(It), be += sa.length, U.push(sa), K = Ae(46), K.write_shift(4, 33639248), K.write_shift(2, 0), K.write_shift(2, 20), K.write_shift(2, Ie), K.write_shift(2, _e), K.write_shift(4, 0), K.write_shift(-4, Xe[Ve]), K.write_shift(4, sa.length), K.write_shift(
|
|
8393
8393
|
4,
|
|
8394
8394
|
/*::(*/
|
|
8395
8395
|
me.content.length
|
|
8396
|
-
),
|
|
8396
|
+
), K.write_shift(2, It.length), K.write_shift(2, 0), K.write_shift(2, 0), K.write_shift(2, 0), K.write_shift(2, 0), K.write_shift(4, 0), K.write_shift(4, Pt), lt += K.l, j.push(K), lt += It.length, j.push(It), ++Ve;
|
|
8397
8397
|
}
|
|
8398
|
-
return
|
|
8398
|
+
return K = Ae(22), K.write_shift(4, 101010256), K.write_shift(2, 0), K.write_shift(2, 0), K.write_shift(2, Ve), K.write_shift(2, Ve), K.write_shift(4, lt), K.write_shift(4, be), K.write_shift(2, 0), oa([oa(U), oa(j), K]);
|
|
8399
8399
|
}
|
|
8400
8400
|
var pr = {
|
|
8401
8401
|
htm: "text/html",
|
|
@@ -8428,14 +8428,14 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8428
8428
|
=0A`).replace(/([^\r\n])\n/mg, "$1=0A");
|
|
8429
8429
|
for (var B = [], U = H.split(`\r
|
|
8430
8430
|
`), j = 0; j < U.length; ++j) {
|
|
8431
|
-
var
|
|
8432
|
-
if (
|
|
8431
|
+
var K = U[j];
|
|
8432
|
+
if (K.length == 0) {
|
|
8433
8433
|
B.push("");
|
|
8434
8434
|
continue;
|
|
8435
8435
|
}
|
|
8436
|
-
for (var _e = 0; _e <
|
|
8437
|
-
var Ie = 76, ge =
|
|
8438
|
-
ge.charAt(Ie - 1) == "=" ? Ie-- : ge.charAt(Ie - 2) == "=" ? Ie -= 2 : ge.charAt(Ie - 3) == "=" && (Ie -= 3), ge =
|
|
8436
|
+
for (var _e = 0; _e < K.length; ) {
|
|
8437
|
+
var Ie = 76, ge = K.slice(_e, _e + Ie);
|
|
8438
|
+
ge.charAt(Ie - 1) == "=" ? Ie-- : ge.charAt(Ie - 2) == "=" ? Ie -= 2 : ge.charAt(Ie - 3) == "=" && (Ie -= 3), ge = K.slice(_e, _e + Ie), _e += Ie, _e < K.length && (ge += "="), B.push(ge);
|
|
8439
8439
|
}
|
|
8440
8440
|
}
|
|
8441
8441
|
return B.join(`\r
|
|
@@ -8446,14 +8446,14 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8446
8446
|
for (var U = T[B]; B <= T.length && U.charAt(U.length - 1) == "="; ) U = U.slice(0, U.length - 1) + T[++B];
|
|
8447
8447
|
H.push(U);
|
|
8448
8448
|
}
|
|
8449
|
-
for (var j = 0; j < H.length; ++j) H[j] = H[j].replace(/[=][0-9A-Fa-f]{2}/g, function(
|
|
8450
|
-
return String.fromCharCode(parseInt(
|
|
8449
|
+
for (var j = 0; j < H.length; ++j) H[j] = H[j].replace(/[=][0-9A-Fa-f]{2}/g, function(K) {
|
|
8450
|
+
return String.fromCharCode(parseInt(K.slice(1), 16));
|
|
8451
8451
|
});
|
|
8452
8452
|
return Aa(H.join(`\r
|
|
8453
8453
|
`));
|
|
8454
8454
|
}
|
|
8455
8455
|
function tn(T, H, B) {
|
|
8456
|
-
for (var U = "", j = "",
|
|
8456
|
+
for (var U = "", j = "", K = "", _e, Ie = 0; Ie < 10; ++Ie) {
|
|
8457
8457
|
var ge = H[Ie];
|
|
8458
8458
|
if (!ge || ge.match(/^\s*$/)) break;
|
|
8459
8459
|
var ye = ge.match(/^(.*?):\s*([^\s].*)$/);
|
|
@@ -8462,7 +8462,7 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8462
8462
|
U = ye[2].trim();
|
|
8463
8463
|
break;
|
|
8464
8464
|
case "content-type":
|
|
8465
|
-
|
|
8465
|
+
K = ye[2].trim();
|
|
8466
8466
|
break;
|
|
8467
8467
|
case "content-transfer-encoding":
|
|
8468
8468
|
j = ye[2].trim();
|
|
@@ -8480,15 +8480,15 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8480
8480
|
throw new Error("Unsupported Content-Transfer-Encoding " + j);
|
|
8481
8481
|
}
|
|
8482
8482
|
var be = qa(T, U.slice(B.length), _e, { unsafe: !0 });
|
|
8483
|
-
|
|
8483
|
+
K && (be.ctype = K);
|
|
8484
8484
|
}
|
|
8485
8485
|
function Tn(T, H) {
|
|
8486
8486
|
if (W(T.slice(0, 13)).toLowerCase() != "mime-version:") throw new Error("Unsupported MAD header");
|
|
8487
8487
|
var B = H && H.root || "", U = (gt && Buffer.isBuffer(T) ? T.toString("binary") : W(T)).split(`\r
|
|
8488
|
-
`), j = 0,
|
|
8488
|
+
`), j = 0, K = "";
|
|
8489
8489
|
for (j = 0; j < U.length; ++j)
|
|
8490
|
-
if (
|
|
8491
|
-
for (; B.length > 0 && (B = B.slice(0, B.length - 1), B = B.slice(0, B.lastIndexOf("/") + 1),
|
|
8490
|
+
if (K = U[j], !!/^Content-Location:/i.test(K) && (K = K.slice(K.indexOf("file")), B || (B = K.slice(0, K.lastIndexOf("/") + 1)), K.slice(0, B.length) != B))
|
|
8491
|
+
for (; B.length > 0 && (B = B.slice(0, B.length - 1), B = B.slice(0, B.lastIndexOf("/") + 1), K.slice(0, B.length) != B); )
|
|
8492
8492
|
;
|
|
8493
8493
|
var _e = (U[1] || "").match(/boundary="(.*?)"/);
|
|
8494
8494
|
if (!_e) throw new Error("MAD cannot find boundary");
|
|
@@ -8513,8 +8513,8 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8513
8513
|
"",
|
|
8514
8514
|
"",
|
|
8515
8515
|
""
|
|
8516
|
-
],
|
|
8517
|
-
if (_e = T.FullPaths[ge].slice(
|
|
8516
|
+
], K = T.FullPaths[0], _e = K, Ie = T.FileIndex[0], ge = 1; ge < T.FullPaths.length; ++ge)
|
|
8517
|
+
if (_e = T.FullPaths[ge].slice(K.length), Ie = T.FileIndex[ge], !(!Ie.size || !Ie.content || _e == "Sh33tJ5")) {
|
|
8518
8518
|
_e = _e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(lt) {
|
|
8519
8519
|
return "_x" + lt.charCodeAt(0).toString(16) + "_";
|
|
8520
8520
|
}).replace(/[\u0080-\uFFFF]/g, function(lt) {
|
|
@@ -8535,12 +8535,12 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
8535
8535
|
function qa(T, H, B, U) {
|
|
8536
8536
|
var j = U && U.unsafe;
|
|
8537
8537
|
j || k(T);
|
|
8538
|
-
var
|
|
8539
|
-
if (!
|
|
8538
|
+
var K = !j && it.find(T, H);
|
|
8539
|
+
if (!K) {
|
|
8540
8540
|
var _e = T.FullPaths[0];
|
|
8541
|
-
H.slice(0, _e.length) == _e ? _e = H : (_e.slice(-1) != "/" && (_e += "/"), _e = (_e + H).replace("//", "/")),
|
|
8541
|
+
H.slice(0, _e.length) == _e ? _e = H : (_e.slice(-1) != "/" && (_e += "/"), _e = (_e + H).replace("//", "/")), K = { name: n(H), type: 2 }, T.FileIndex.push(K), T.FullPaths.push(_e), j || it.utils.cfb_gc(T);
|
|
8542
8542
|
}
|
|
8543
|
-
return
|
|
8543
|
+
return K.content = B, K.size = B ? B.length : 0, U && (U.CLSID && (K.clsid = U.CLSID), U.mt && (K.mt = U.mt), U.ct && (K.ct = U.ct)), K;
|
|
8544
8544
|
}
|
|
8545
8545
|
function An(T, H) {
|
|
8546
8546
|
k(T);
|
|
@@ -21518,8 +21518,8 @@ function IE(e, a) {
|
|
|
21518
21518
|
{
|
|
21519
21519
|
if (N.biff <= 5 && N.biff >= 2) break;
|
|
21520
21520
|
m = a.dense ? (n[P[0].r] || [])[P[0].c] : n[ft(P[0])];
|
|
21521
|
-
var
|
|
21522
|
-
m || (a.dense ? (n[P[0].r] || (n[P[0].r] = []), m = n[P[0].r][P[0].c] = { t: "z" }) : m = n[ft(P[0])] = { t: "z" }, s.e.r = Math.max(s.e.r, P[0].r), s.s.r = Math.min(s.s.r, P[0].r), s.e.c = Math.max(s.e.c, P[0].c), s.s.c = Math.min(s.s.c, P[0].c)), m.c || (m.c = []), p = { a: P[1], t:
|
|
21521
|
+
var se = L[P[2]];
|
|
21522
|
+
m || (a.dense ? (n[P[0].r] || (n[P[0].r] = []), m = n[P[0].r][P[0].c] = { t: "z" }) : m = n[ft(P[0])] = { t: "z" }, s.e.r = Math.max(s.e.r, P[0].r), s.s.r = Math.min(s.s.r, P[0].r), s.e.c = Math.max(s.e.c, P[0].c), s.s.c = Math.min(s.s.c, P[0].c)), m.c || (m.c = []), p = { a: P[1], t: se.TxO.t }, m.c.push(p);
|
|
21523
21523
|
}
|
|
21524
21524
|
break;
|
|
21525
21525
|
case 2173:
|
|
@@ -37096,7 +37096,7 @@ const JC = { class: "import-wizard" }, ZC = { class: "import-wizard__header" },
|
|
|
37096
37096
|
r("column-change", pe);
|
|
37097
37097
|
};
|
|
37098
37098
|
return (pe, ke) => {
|
|
37099
|
-
const De = ce("t-radio-button"), Ze = ce("t-radio-group"), Qe = ce("t-icon"), et = ce("t-button"), Wt = ce("t-tab-panel"), Ke = ce("t-checkbox"), Vt = ce("t-option"), Je = ce("t-select"), Bt = ce("t-input-number"), Ge = ce("t-tabs"),
|
|
37099
|
+
const De = ce("t-radio-button"), Ze = ce("t-radio-group"), Qe = ce("t-icon"), et = ce("t-button"), Wt = ce("t-tab-panel"), Ke = ce("t-checkbox"), Vt = ce("t-option"), Je = ce("t-select"), Bt = ce("t-input-number"), Ge = ce("t-tabs"), se = ce("t-tooltip"), ae = ce("t-dialog");
|
|
37100
37100
|
return _(), I($e, null, [
|
|
37101
37101
|
R(ae, {
|
|
37102
37102
|
header: "方案设置",
|
|
@@ -37392,7 +37392,7 @@ const JC = { class: "import-wizard" }, ZC = { class: "import-wizard__header" },
|
|
|
37392
37392
|
onClick: ke[3] || (ke[3] = At(() => {
|
|
37393
37393
|
}, ["stop"]))
|
|
37394
37394
|
}, [
|
|
37395
|
-
R(
|
|
37395
|
+
R(se, {
|
|
37396
37396
|
content: "编辑",
|
|
37397
37397
|
placement: "top"
|
|
37398
37398
|
}, {
|
|
@@ -37415,7 +37415,7 @@ const JC = { class: "import-wizard" }, ZC = { class: "import-wizard__header" },
|
|
|
37415
37415
|
]),
|
|
37416
37416
|
_: 2
|
|
37417
37417
|
}, 1024),
|
|
37418
|
-
R(
|
|
37418
|
+
R(se, {
|
|
37419
37419
|
content: "设置为默认方案",
|
|
37420
37420
|
placement: "top"
|
|
37421
37421
|
}, {
|
|
@@ -37438,7 +37438,7 @@ const JC = { class: "import-wizard" }, ZC = { class: "import-wizard__header" },
|
|
|
37438
37438
|
]),
|
|
37439
37439
|
_: 2
|
|
37440
37440
|
}, 1024),
|
|
37441
|
-
R(
|
|
37441
|
+
R(se, {
|
|
37442
37442
|
content: "复制方案",
|
|
37443
37443
|
placement: "top"
|
|
37444
37444
|
}, {
|
|
@@ -37461,7 +37461,7 @@ const JC = { class: "import-wizard" }, ZC = { class: "import-wizard__header" },
|
|
|
37461
37461
|
]),
|
|
37462
37462
|
_: 2
|
|
37463
37463
|
}, 1024),
|
|
37464
|
-
R(
|
|
37464
|
+
R(se, {
|
|
37465
37465
|
content: "删除方案",
|
|
37466
37466
|
placement: "top"
|
|
37467
37467
|
}, {
|
|
@@ -38322,13 +38322,13 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38322
38322
|
}, MS = { class: "cd-share-footer-top" }, PS = { class: "cd-share-footer-controls" }, LS = { class: "cd-share-org-control" }, BS = { class: "cd-share-org-content" }, VS = { class: "cd-share-footer-bottom" }, US = { class: "cd-share-icon-actions" }, $S = { class: "cd-share-icon-btn" }, zS = {
|
|
38323
38323
|
key: 1,
|
|
38324
38324
|
class: "cd-share-content"
|
|
38325
|
-
}, WS = { class: "cd-share-cooperators" }, HS = { class: "cd-share-collaborators-wrapper" }, GS = { class: "cd-share-avatar-owner" }, XS = { class: "cd-share-selector-wrapper" }, jS = { class: "cd-share-selector-content" }, YS = { class: "cd-share-options" }, qS = { class: "cd-share-form-actions" }, KS = { class: "cd-permission-settings" }, JS = { class: "cd-permission-section" }, ZS = { class: "cd-permission-item" }, QS = { class: "cd-permission-section" },
|
|
38325
|
+
}, WS = { class: "cd-share-cooperators" }, HS = { class: "cd-share-collaborators-wrapper" }, GS = { class: "cd-share-avatar-owner" }, XS = { class: "cd-share-selector-wrapper" }, jS = { class: "cd-share-selector-content" }, YS = { class: "cd-share-options" }, qS = { class: "cd-share-form-actions" }, KS = { class: "cd-permission-settings" }, JS = { class: "cd-permission-section" }, ZS = { class: "cd-permission-item" }, QS = { class: "cd-permission-section" }, e8 = { class: "cd-permission-section" }, t8 = { class: "cd-permission-item" }, a8 = { class: "cd-permission-item" }, r8 = { class: "cd-permission-item" }, n8 = { class: "cd-permission-section" }, i8 = { class: "cd-permission-item" }, s8 = { class: "cd-permission-actions" }, l8 = { class: "cd-collaborator-list-content" }, o8 = { class: "cd-collaborator-list-item" }, c8 = { class: "cd-collaborator-item-info" }, f8 = { class: "cd-collaborator-item-name" }, u8 = { class: "cd-collaborator-item-info" }, d8 = { class: "cd-collaborator-item-name" }, h8 = { class: "cd-collaborator-item-actions" }, v8 = {
|
|
38326
38326
|
key: 0,
|
|
38327
38327
|
class: "cd-collaborator-item-permission-text"
|
|
38328
|
-
},
|
|
38328
|
+
}, m8 = {
|
|
38329
38329
|
key: 0,
|
|
38330
38330
|
class: "cd-collaborator-item-permission-text"
|
|
38331
|
-
},
|
|
38331
|
+
}, p8 = { class: "cd-qrcode-content" }, x8 = ["src"], g8 = { class: "cd-qrcode-url" }, _8 = { class: "cd-encrypt-content" }, k8 = { class: "cd-encrypt-field" }, y8 = { class: "cd-encrypt-note" }, w8 = { class: "cd-encrypt-actions" }, b8 = /* @__PURE__ */ St({
|
|
38332
38332
|
name: "CdShareDialog",
|
|
38333
38333
|
__name: "ShareDialog",
|
|
38334
38334
|
props: {
|
|
@@ -38583,9 +38583,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38583
38583
|
size: "medium"
|
|
38584
38584
|
}, {
|
|
38585
38585
|
default: A(() => {
|
|
38586
|
-
var Ge,
|
|
38586
|
+
var Ge, se;
|
|
38587
38587
|
return [
|
|
38588
|
-
ve(ie(N(((Ge = e.owner) == null ? void 0 : Ge.displayName) || ((
|
|
38588
|
+
ve(ie(N(((Ge = e.owner) == null ? void 0 : Ge.displayName) || ((se = e.owner) == null ? void 0 : se.name) || "所有者")), 1)
|
|
38589
38589
|
];
|
|
38590
38590
|
}),
|
|
38591
38591
|
_: 1
|
|
@@ -38697,9 +38697,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38697
38697
|
size: "medium"
|
|
38698
38698
|
}, {
|
|
38699
38699
|
default: A(() => {
|
|
38700
|
-
var Ge,
|
|
38700
|
+
var Ge, se;
|
|
38701
38701
|
return [
|
|
38702
|
-
ve(ie(N(((Ge = e.owner) == null ? void 0 : Ge.displayName) || ((
|
|
38702
|
+
ve(ie(N(((Ge = e.owner) == null ? void 0 : Ge.displayName) || ((se = e.owner) == null ? void 0 : se.name) || "所有者")), 1)
|
|
38703
38703
|
];
|
|
38704
38704
|
}),
|
|
38705
38705
|
_: 1
|
|
@@ -38885,9 +38885,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38885
38885
|
_: 1
|
|
38886
38886
|
}, 8, ["modelValue", "disabled"])
|
|
38887
38887
|
]),
|
|
38888
|
-
h("div",
|
|
38888
|
+
h("div", e8, [
|
|
38889
38889
|
Y[50] || (Y[50] = h("div", { class: "cd-permission-section-title" }, "内容操作权限", -1)),
|
|
38890
|
-
h("div",
|
|
38890
|
+
h("div", t8, [
|
|
38891
38891
|
Y[47] || (Y[47] = h("div", { class: "cd-permission-item-label" }, "谁可以复制内容", -1)),
|
|
38892
38892
|
R(ke, {
|
|
38893
38893
|
modelValue: D.value.copyPermission,
|
|
@@ -38897,7 +38897,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38897
38897
|
style: { width: "200px" }
|
|
38898
38898
|
}, null, 8, ["modelValue", "disabled"])
|
|
38899
38899
|
]),
|
|
38900
|
-
h("div",
|
|
38900
|
+
h("div", a8, [
|
|
38901
38901
|
Y[48] || (Y[48] = h("div", { class: "cd-permission-item-label" }, "谁可以创建副本、打印和下载", -1)),
|
|
38902
38902
|
R(ke, {
|
|
38903
38903
|
modelValue: D.value.downloadPermission,
|
|
@@ -38907,7 +38907,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38907
38907
|
style: { width: "200px" }
|
|
38908
38908
|
}, null, 8, ["modelValue", "disabled"])
|
|
38909
38909
|
]),
|
|
38910
|
-
h("div",
|
|
38910
|
+
h("div", r8, [
|
|
38911
38911
|
Y[49] || (Y[49] = h("div", { class: "cd-permission-item-label" }, "谁可以评论", -1)),
|
|
38912
38912
|
R(ke, {
|
|
38913
38913
|
modelValue: D.value.commentPermission,
|
|
@@ -38918,9 +38918,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38918
38918
|
}, null, 8, ["modelValue", "disabled"])
|
|
38919
38919
|
])
|
|
38920
38920
|
]),
|
|
38921
|
-
h("div",
|
|
38921
|
+
h("div", n8, [
|
|
38922
38922
|
Y[52] || (Y[52] = h("div", { class: "cd-permission-section-title" }, "更多高级设置", -1)),
|
|
38923
|
-
h("div",
|
|
38923
|
+
h("div", i8, [
|
|
38924
38924
|
Y[51] || (Y[51] = h("div", { class: "cd-permission-item-label" }, "谁可以查看访问者头像和点赞者头像", -1)),
|
|
38925
38925
|
R(ke, {
|
|
38926
38926
|
modelValue: D.value.viewerAvatarsPermission,
|
|
@@ -38931,7 +38931,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38931
38931
|
}, null, 8, ["modelValue", "disabled"])
|
|
38932
38932
|
])
|
|
38933
38933
|
]),
|
|
38934
|
-
h("div",
|
|
38934
|
+
h("div", s8, [
|
|
38935
38935
|
R(Re, {
|
|
38936
38936
|
variant: "outline",
|
|
38937
38937
|
onClick: Y[20] || (Y[20] = (Je) => v.value = !1)
|
|
@@ -38968,9 +38968,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38968
38968
|
default: A(() => {
|
|
38969
38969
|
var Je, Bt, Ge;
|
|
38970
38970
|
return [
|
|
38971
|
-
h("div",
|
|
38972
|
-
h("div",
|
|
38973
|
-
h("div",
|
|
38971
|
+
h("div", l8, [
|
|
38972
|
+
h("div", o8, [
|
|
38973
|
+
h("div", c8, [
|
|
38974
38974
|
(Je = e.owner) != null && Je.avatar ? (_(), Te(pe, {
|
|
38975
38975
|
key: 0,
|
|
38976
38976
|
image: e.owner.avatar,
|
|
@@ -38980,62 +38980,62 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
38980
38980
|
size: "small"
|
|
38981
38981
|
}, {
|
|
38982
38982
|
default: A(() => {
|
|
38983
|
-
var
|
|
38983
|
+
var se, ae;
|
|
38984
38984
|
return [
|
|
38985
|
-
ve(ie(N(((
|
|
38985
|
+
ve(ie(N(((se = e.owner) == null ? void 0 : se.displayName) || ((ae = e.owner) == null ? void 0 : ae.name))), 1)
|
|
38986
38986
|
];
|
|
38987
38987
|
}),
|
|
38988
38988
|
_: 1
|
|
38989
38989
|
})),
|
|
38990
|
-
h("span",
|
|
38990
|
+
h("span", f8, ie(((Bt = e.owner) == null ? void 0 : Bt.displayName) || ((Ge = e.owner) == null ? void 0 : Ge.name) || "所有者"), 1)
|
|
38991
38991
|
]),
|
|
38992
38992
|
Y[55] || (Y[55] = h("div", { class: "cd-collaborator-item-role" }, "所有者", -1))
|
|
38993
38993
|
]),
|
|
38994
|
-
(_(!0), I($e, null, qe(e.collaborators, (
|
|
38994
|
+
(_(!0), I($e, null, qe(e.collaborators, (se) => {
|
|
38995
38995
|
var ae;
|
|
38996
38996
|
return _(), I("div", {
|
|
38997
|
-
key:
|
|
38997
|
+
key: se.id,
|
|
38998
38998
|
class: "cd-collaborator-list-item"
|
|
38999
38999
|
}, [
|
|
39000
|
-
h("div",
|
|
39001
|
-
|
|
39000
|
+
h("div", u8, [
|
|
39001
|
+
se.avatar ? (_(), Te(pe, {
|
|
39002
39002
|
key: 0,
|
|
39003
|
-
image:
|
|
39003
|
+
image: se.avatar,
|
|
39004
39004
|
size: "small"
|
|
39005
39005
|
}, null, 8, ["image"])) : (_(), Te(pe, {
|
|
39006
39006
|
key: 1,
|
|
39007
39007
|
size: "small"
|
|
39008
39008
|
}, {
|
|
39009
39009
|
default: A(() => [
|
|
39010
|
-
ve(ie(N(
|
|
39010
|
+
ve(ie(N(se.displayName || se.name)), 1)
|
|
39011
39011
|
]),
|
|
39012
39012
|
_: 2
|
|
39013
39013
|
}, 1024)),
|
|
39014
|
-
h("span",
|
|
39014
|
+
h("span", d8, ie(se.displayName || se.name), 1)
|
|
39015
39015
|
]),
|
|
39016
|
-
h("div",
|
|
39017
|
-
F.value === "read" ? (_(), I("div",
|
|
39018
|
-
|
|
39016
|
+
h("div", h8, [
|
|
39017
|
+
F.value === "read" ? (_(), I("div", v8, ie(((ae = w.find((Ce) => Ce.value === se.permission)) == null ? void 0 : ae.label) || "可阅读"), 1)) : F.value === "edit" ? (_(), I($e, { key: 1 }, [
|
|
39018
|
+
se.permission === "manage" ? (_(), I("div", m8, " 可管理 ")) : (_(), Te(ke, {
|
|
39019
39019
|
key: 1,
|
|
39020
|
-
value:
|
|
39020
|
+
value: se.permission,
|
|
39021
39021
|
options: k.value,
|
|
39022
39022
|
size: "small",
|
|
39023
|
-
onChange: (Ce) => q(
|
|
39023
|
+
onChange: (Ce) => q(se.id, Ce),
|
|
39024
39024
|
style: { width: "100px" }
|
|
39025
39025
|
}, null, 8, ["value", "options", "onChange"]))
|
|
39026
39026
|
], 64)) : (_(), I($e, { key: 2 }, [
|
|
39027
39027
|
R(ke, {
|
|
39028
|
-
value:
|
|
39028
|
+
value: se.permission,
|
|
39029
39029
|
options: k.value,
|
|
39030
39030
|
size: "small",
|
|
39031
|
-
onChange: (Ce) => q(
|
|
39031
|
+
onChange: (Ce) => q(se.id, Ce),
|
|
39032
39032
|
style: { width: "100px" }
|
|
39033
39033
|
}, null, 8, ["value", "options", "onChange"]),
|
|
39034
39034
|
R(Re, {
|
|
39035
39035
|
variant: "text",
|
|
39036
39036
|
size: "small",
|
|
39037
39037
|
theme: "danger",
|
|
39038
|
-
onClick: (Ce) => Z(
|
|
39038
|
+
onClick: (Ce) => Z(se.id)
|
|
39039
39039
|
}, {
|
|
39040
39040
|
icon: A(() => [
|
|
39041
39041
|
R(P, {
|
|
@@ -39064,14 +39064,14 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39064
39064
|
class: "cd-qrcode-dialog"
|
|
39065
39065
|
}, {
|
|
39066
39066
|
default: A(() => [
|
|
39067
|
-
h("div",
|
|
39067
|
+
h("div", p8, [
|
|
39068
39068
|
te.value ? (_(), I("img", {
|
|
39069
39069
|
key: 0,
|
|
39070
39070
|
src: te.value,
|
|
39071
39071
|
alt: "分享二维码",
|
|
39072
39072
|
class: "cd-qrcode-image"
|
|
39073
|
-
}, null, 8,
|
|
39074
|
-
h("div",
|
|
39073
|
+
}, null, 8, x8)) : Ee("", !0),
|
|
39074
|
+
h("div", g8, ie(s.value), 1),
|
|
39075
39075
|
Y[56] || (Y[56] = h("div", { class: "cd-qrcode-tip" }, "扫描二维码或复制链接分享", -1))
|
|
39076
39076
|
])
|
|
39077
39077
|
]),
|
|
@@ -39087,8 +39087,8 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39087
39087
|
class: "cd-encrypt-dialog"
|
|
39088
39088
|
}, {
|
|
39089
39089
|
default: A(() => [
|
|
39090
|
-
h("div",
|
|
39091
|
-
h("div",
|
|
39090
|
+
h("div", _8, [
|
|
39091
|
+
h("div", k8, [
|
|
39092
39092
|
Y[58] || (Y[58] = h("div", { class: "cd-encrypt-label" }, "链接密码", -1)),
|
|
39093
39093
|
R(Ze, {
|
|
39094
39094
|
modelValue: g.value,
|
|
@@ -39114,7 +39114,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39114
39114
|
_: 1
|
|
39115
39115
|
}, 8, ["modelValue", "disabled"])
|
|
39116
39116
|
]),
|
|
39117
|
-
h("div",
|
|
39117
|
+
h("div", y8, [
|
|
39118
39118
|
R(P, {
|
|
39119
39119
|
name: "info-circle",
|
|
39120
39120
|
size: "14px",
|
|
@@ -39122,7 +39122,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39122
39122
|
}),
|
|
39123
39123
|
Y[59] || (Y[59] = ve(" 密码仅对当前页面生效。组织外用户需要密码访问,组织内用户无需密码可直接访问 ", -1))
|
|
39124
39124
|
]),
|
|
39125
|
-
h("div",
|
|
39125
|
+
h("div", w8, [
|
|
39126
39126
|
R(Re, {
|
|
39127
39127
|
variant: "outline",
|
|
39128
39128
|
disabled: F.value === "read",
|
|
@@ -39164,24 +39164,24 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39164
39164
|
], 64);
|
|
39165
39165
|
};
|
|
39166
39166
|
}
|
|
39167
|
-
}),
|
|
39167
|
+
}), E8 = (e, a) => {
|
|
39168
39168
|
const t = e.__vccOpts || e;
|
|
39169
39169
|
for (const [r, n] of a)
|
|
39170
39170
|
t[r] = n;
|
|
39171
39171
|
return t;
|
|
39172
|
-
}, rf = /* @__PURE__ */
|
|
39172
|
+
}, rf = /* @__PURE__ */ E8(b8, [["__scopeId", "data-v-bd14b324"]]), C8 = { class: "cd-form-container" }, T8 = { class: "cd-form-toolbar" }, S8 = { class: "toolbar-left" }, F8 = {
|
|
39173
39173
|
key: 0,
|
|
39174
39174
|
class: "toolbar-filter"
|
|
39175
|
-
},
|
|
39175
|
+
}, A8 = { class: "toolbar-right" }, D8 = { class: "group-dialog-content" }, I8 = { class: "group-merge-switch" }, O8 = { class: "switch-tip" }, R8 = {
|
|
39176
39176
|
key: 0,
|
|
39177
39177
|
style: { "font-weight": "600", color: "#0052d9" }
|
|
39178
|
-
},
|
|
39178
|
+
}, N8 = { class: "expand-wrapper" }, M8 = {
|
|
39179
39179
|
key: 0,
|
|
39180
39180
|
class: "sub-grid-section"
|
|
39181
|
-
},
|
|
39181
|
+
}, P8 = { class: "sub-grid-title" }, L8 = {
|
|
39182
39182
|
key: 1,
|
|
39183
39183
|
class: "cd-form-pagination"
|
|
39184
|
-
},
|
|
39184
|
+
}, B8 = /* @__PURE__ */ St({
|
|
39185
39185
|
__name: "CdForm",
|
|
39186
39186
|
props: {
|
|
39187
39187
|
formData: {},
|
|
@@ -39222,50 +39222,50 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39222
39222
|
emits: ["page-change", "add", "edit", "delete", "detail", "custom-button", "refresh", "filter-change", "filter-search", "filter-reset", "add-row", "delete-row", "upload-image", "column-drop", "group", "inline-save", "column-filter", "select-org-data", "column-filter-reset", "save-plan", "delete-plan", "copy-plan", "set-default-plan", "update-plan", "load-users", "search-persons", "dept-click", "column-change", "color-filter-change", "color-filter-clear", "push-down", "select-upstream", "selection-change", "row-click", "row-dblclick", "i18n-click", "relation-form-search", "relation-form-advanced", "relation-form-dialog-search", "relation-form-page-change", "import", "export", "download-template", "share", "batch-delete"],
|
|
39223
39223
|
setup(e, { expose: a, emit: t }) {
|
|
39224
39224
|
var yl, wl;
|
|
39225
|
-
const r = (E,
|
|
39226
|
-
var
|
|
39225
|
+
const r = (E, J) => {
|
|
39226
|
+
var le;
|
|
39227
39227
|
if (["rate", "tag", "Rate"].includes(E))
|
|
39228
39228
|
return !0;
|
|
39229
|
-
if (E === "calculate" &&
|
|
39230
|
-
const
|
|
39231
|
-
if (
|
|
39229
|
+
if (E === "calculate" && J) {
|
|
39230
|
+
const ne = ((le = J.__config__) == null ? void 0 : le.type) || J.type;
|
|
39231
|
+
if (ne && ["rate", "tag", "Rate"].includes(ne))
|
|
39232
39232
|
return !0;
|
|
39233
39233
|
}
|
|
39234
39234
|
return !1;
|
|
39235
|
-
}, n = (E,
|
|
39235
|
+
}, n = (E, J, le, ne = !0) => {
|
|
39236
39236
|
if (!E || !E.__config__ || !E.__vModel__)
|
|
39237
|
-
return (
|
|
39238
|
-
const Fe =
|
|
39237
|
+
return (J == null ? void 0 : J[le.field]) ?? "";
|
|
39238
|
+
const Fe = J[le.field];
|
|
39239
39239
|
sr({ [E.__vModel__]: Fe }), {
|
|
39240
39240
|
...E,
|
|
39241
39241
|
__config__: {
|
|
39242
39242
|
...E.__config__
|
|
39243
39243
|
}
|
|
39244
39244
|
};
|
|
39245
|
-
}, i = (E,
|
|
39245
|
+
}, i = (E, J) => {
|
|
39246
39246
|
try {
|
|
39247
|
-
const { row:
|
|
39247
|
+
const { row: le, column: ne } = J, { field: Fe } = E.props || {};
|
|
39248
39248
|
if (!Fe || !Fe.__config__ || !Fe.__vModel__)
|
|
39249
|
-
return (
|
|
39249
|
+
return (le == null ? void 0 : le[ne.field]) ?? "";
|
|
39250
39250
|
const Oe = Fe.__config__.cdkey;
|
|
39251
|
-
return r(Oe, Fe) ? n(Fe,
|
|
39251
|
+
return r(Oe, Fe) ? n(Fe, le, ne, !0) : (le == null ? void 0 : le[ne.field]) ?? "";
|
|
39252
39252
|
} catch {
|
|
39253
39253
|
return "";
|
|
39254
39254
|
}
|
|
39255
39255
|
};
|
|
39256
39256
|
wi.renderer.get("$renderFormItem") || wi.renderer.add("$renderFormItem", {
|
|
39257
|
-
renderDefault(E,
|
|
39258
|
-
return i(E,
|
|
39257
|
+
renderDefault(E, J) {
|
|
39258
|
+
return i(E, J);
|
|
39259
39259
|
},
|
|
39260
|
-
renderCell(E,
|
|
39261
|
-
return i(E,
|
|
39260
|
+
renderCell(E, J) {
|
|
39261
|
+
return i(E, J);
|
|
39262
39262
|
},
|
|
39263
|
-
renderEdit(E,
|
|
39263
|
+
renderEdit(E, J) {
|
|
39264
39264
|
try {
|
|
39265
|
-
const { row:
|
|
39265
|
+
const { row: le, column: ne } = J, { field: Fe, onI18nClick: Oe } = E.props || {};
|
|
39266
39266
|
if (!Fe || !Fe.__config__ || !Fe.__vModel__)
|
|
39267
39267
|
return [];
|
|
39268
|
-
const Me = ne
|
|
39268
|
+
const Me = le[ne.field], je = sr({ [Fe.__vModel__]: Me }), rt = {
|
|
39269
39269
|
...Fe,
|
|
39270
39270
|
disabled: !1,
|
|
39271
39271
|
readonly: !1,
|
|
@@ -39284,7 +39284,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39284
39284
|
disabled: !1,
|
|
39285
39285
|
tableMode: !0,
|
|
39286
39286
|
onChange: (ot, dt) => {
|
|
39287
|
-
ne
|
|
39287
|
+
le[ne.field] = dt, je[ot + "_data"] && (le[ne.field + "_data"] = je[ot + "_data"]), J.$table && J.$table.updateStatus && J.$table.updateStatus(J);
|
|
39288
39288
|
},
|
|
39289
39289
|
"onI18n-click": (ot) => {
|
|
39290
39290
|
Oe && Oe(ot);
|
|
@@ -39295,11 +39295,11 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39295
39295
|
}
|
|
39296
39296
|
}
|
|
39297
39297
|
}), wi.renderer.get("$relationCell") || wi.renderer.add("$relationCell", {
|
|
39298
|
-
renderDefault(E,
|
|
39299
|
-
const { row:
|
|
39298
|
+
renderDefault(E, J) {
|
|
39299
|
+
const { row: le, column: ne } = J, { field: Fe, isMultiple: Oe } = E.props || {}, Me = (Fe == null ? void 0 : Fe.__vModel__) || ne.field, je = le[Me];
|
|
39300
39300
|
if (je == null || je === "" || je === "0")
|
|
39301
39301
|
return [];
|
|
39302
|
-
const rt =
|
|
39302
|
+
const rt = le[Me + "_data"];
|
|
39303
39303
|
let ot = [];
|
|
39304
39304
|
if (rt) {
|
|
39305
39305
|
const dt = typeof rt == "string" ? (() => {
|
|
@@ -39324,35 +39324,35 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39324
39324
|
const s = e, l = sr({});
|
|
39325
39325
|
fn("relationFormData", l), Lo(() => {
|
|
39326
39326
|
const E = s.relationFormData;
|
|
39327
|
-
E && typeof E == "object" && Object.keys(E).forEach((
|
|
39328
|
-
E[
|
|
39327
|
+
E && typeof E == "object" && Object.keys(E).forEach((J) => {
|
|
39328
|
+
E[J] !== void 0 && (l[J] = { ...l[J] || {}, ...E[J] });
|
|
39329
39329
|
});
|
|
39330
39330
|
});
|
|
39331
39331
|
const o = Le(() => {
|
|
39332
|
-
var
|
|
39333
|
-
const
|
|
39332
|
+
var le;
|
|
39333
|
+
const J = s.columnData && Object.keys(s.columnData).length > 0 ? s.columnData : ((le = s.formData) == null ? void 0 : le.columnData) || {
|
|
39334
39334
|
btnsList: [],
|
|
39335
39335
|
columnBtnsList: [],
|
|
39336
39336
|
customBtnsList: [],
|
|
39337
39337
|
hasPage: !0,
|
|
39338
39338
|
pageSize: 20
|
|
39339
39339
|
};
|
|
39340
|
-
return
|
|
39341
|
-
...
|
|
39340
|
+
return J.type === 5 && !J.treeConfig ? {
|
|
39341
|
+
...J,
|
|
39342
39342
|
treeConfig: {
|
|
39343
39343
|
enabled: !0,
|
|
39344
39344
|
rowField: "fid",
|
|
39345
|
-
parentField:
|
|
39345
|
+
parentField: J.parentField || "parentId",
|
|
39346
39346
|
childrenField: "children",
|
|
39347
39347
|
indent: 20,
|
|
39348
39348
|
showLine: !0,
|
|
39349
39349
|
expandAll: !0
|
|
39350
39350
|
}
|
|
39351
|
-
} :
|
|
39351
|
+
} : J;
|
|
39352
39352
|
}), f = t, c = de(), u = de(), d = de(), m = de(600), p = () => {
|
|
39353
39353
|
if (d.value) {
|
|
39354
|
-
const E = d.value.getBoundingClientRect(),
|
|
39355
|
-
m.value = Math.max(400,
|
|
39354
|
+
const E = d.value.getBoundingClientRect(), le = window.innerHeight - E.top - 80;
|
|
39355
|
+
m.value = Math.max(400, le);
|
|
39356
39356
|
}
|
|
39357
39357
|
};
|
|
39358
39358
|
qn(() => {
|
|
@@ -39371,23 +39371,23 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39371
39371
|
let M = sr({});
|
|
39372
39372
|
const L = Le(() => {
|
|
39373
39373
|
var ot, dt;
|
|
39374
|
-
const E = ((ot = s.formData) == null ? void 0 : ot.fields) || [],
|
|
39375
|
-
if (!(
|
|
39376
|
-
const
|
|
39374
|
+
const E = ((ot = s.formData) == null ? void 0 : ot.fields) || [], J = o.value.treeConfig;
|
|
39375
|
+
if (!(J != null && J.enabled)) return E;
|
|
39376
|
+
const le = J.parentField || "parentId";
|
|
39377
39377
|
if (E.some(
|
|
39378
39378
|
(vt) => {
|
|
39379
39379
|
var kt, yt;
|
|
39380
|
-
return vt.__vModel__ ===
|
|
39380
|
+
return vt.__vModel__ === le || ((kt = vt.__vModel__) == null ? void 0 : kt.toUpperCase()) === "FPARENTID" || ((yt = vt.__config__) == null ? void 0 : yt.cdkey) === "treeSelect";
|
|
39381
39381
|
}
|
|
39382
39382
|
)) return E;
|
|
39383
|
-
const Fe =
|
|
39383
|
+
const Fe = J.rowField || "fid", Oe = s.data || [], Me = ((dt = E.find(
|
|
39384
39384
|
(vt) => {
|
|
39385
39385
|
var kt, yt;
|
|
39386
39386
|
return ((kt = vt.__config__) == null ? void 0 : kt.cdkey) === "input" && ((yt = vt.__config__) == null ? void 0 : yt.required);
|
|
39387
39387
|
}
|
|
39388
39388
|
)) == null ? void 0 : dt.__vModel__) || "fname";
|
|
39389
39389
|
return [{
|
|
39390
|
-
__vModel__:
|
|
39390
|
+
__vModel__: le,
|
|
39391
39391
|
__config__: {
|
|
39392
39392
|
label: "上级",
|
|
39393
39393
|
labelWidth: 100,
|
|
@@ -39413,7 +39413,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39413
39413
|
value: String(tt[Fe]),
|
|
39414
39414
|
label: Ft,
|
|
39415
39415
|
children: [],
|
|
39416
|
-
_pid: String(tt[
|
|
39416
|
+
_pid: String(tt[le] || "0")
|
|
39417
39417
|
});
|
|
39418
39418
|
}
|
|
39419
39419
|
for (const tt of vt.values()) {
|
|
@@ -39429,8 +39429,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39429
39429
|
})()
|
|
39430
39430
|
}, ...E];
|
|
39431
39431
|
}), ue = de(!1), fe = de(null), xe = de([]), W = de(/* @__PURE__ */ new Map()), he = de(!1), ee = de("add"), b = Le(() => {
|
|
39432
|
-
var
|
|
39433
|
-
|
|
39432
|
+
var le;
|
|
39433
|
+
const E = pe(((le = s.formData) == null ? void 0 : le.fields) || []), J = ["orgid", "tenant_id", "creator_user_id", "creator_time", "last_modify_user_id", "last_modify_time", "delete_mark"];
|
|
39434
|
+
return E.filter((ne) => ne.__config__ && ne.__vModel__ && !ne.__config__.noShow && !J.includes(ne.__vModel__)).map((ne) => ({
|
|
39434
39435
|
label: ne.__config__.label || ne.__vModel__,
|
|
39435
39436
|
value: ne.__vModel__,
|
|
39436
39437
|
required: !!ne.__config__.required
|
|
@@ -39438,98 +39439,98 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39438
39439
|
}), z = Le(
|
|
39439
39440
|
() => b.value.filter((E) => E.required).map((E) => E.value)
|
|
39440
39441
|
), G = Le(() => {
|
|
39441
|
-
var
|
|
39442
|
-
return `${((
|
|
39442
|
+
var J, le;
|
|
39443
|
+
return `${((J = s.formData) == null ? void 0 : J.formTitle) || ((le = s.formData) == null ? void 0 : le.name) || "数据"}导入模板.xlsx`;
|
|
39443
39444
|
}), Z = Le(() => {
|
|
39444
|
-
var
|
|
39445
|
-
return pe(((
|
|
39446
|
-
}), q = de(!1), Q = (E,
|
|
39447
|
-
const
|
|
39448
|
-
switch (
|
|
39445
|
+
var le;
|
|
39446
|
+
return pe(((le = s.formData) == null ? void 0 : le.fields) || []).some((ne) => ne.__vModel__ === "fbillno") ? "fbillno" : "fnumber";
|
|
39447
|
+
}), q = de(!1), Q = (E, J) => {
|
|
39448
|
+
const le = E[J.field];
|
|
39449
|
+
switch (J.operator) {
|
|
39449
39450
|
case "contains":
|
|
39450
|
-
return String(
|
|
39451
|
+
return String(le || "").toLowerCase().includes(String(J.value).toLowerCase());
|
|
39451
39452
|
case "eq":
|
|
39452
|
-
return
|
|
39453
|
+
return le == J.value;
|
|
39453
39454
|
case "ne":
|
|
39454
|
-
return
|
|
39455
|
+
return le != J.value;
|
|
39455
39456
|
case "gt":
|
|
39456
|
-
return Number(
|
|
39457
|
+
return Number(le) > Number(J.value);
|
|
39457
39458
|
case "gte":
|
|
39458
|
-
return Number(
|
|
39459
|
+
return Number(le) >= Number(J.value);
|
|
39459
39460
|
case "lt":
|
|
39460
|
-
return Number(
|
|
39461
|
+
return Number(le) < Number(J.value);
|
|
39461
39462
|
case "lte":
|
|
39462
|
-
return Number(
|
|
39463
|
+
return Number(le) <= Number(J.value);
|
|
39463
39464
|
case "starts_with":
|
|
39464
|
-
return String(
|
|
39465
|
+
return String(le || "").toLowerCase().startsWith(String(J.value).toLowerCase());
|
|
39465
39466
|
case "ends_with":
|
|
39466
|
-
return String(
|
|
39467
|
+
return String(le || "").toLowerCase().endsWith(String(J.value).toLowerCase());
|
|
39467
39468
|
default:
|
|
39468
39469
|
return !1;
|
|
39469
39470
|
}
|
|
39470
|
-
}, we = ({ row: E, rowIndex:
|
|
39471
|
-
let
|
|
39471
|
+
}, we = ({ row: E, rowIndex: J }) => {
|
|
39472
|
+
let le = {};
|
|
39472
39473
|
if (o.value.rowStyle) {
|
|
39473
|
-
const
|
|
39474
|
-
|
|
39474
|
+
const ne = o.value.rowStyle({ row: E, rowIndex: J });
|
|
39475
|
+
ne && (le = { ...ne });
|
|
39475
39476
|
}
|
|
39476
39477
|
if (xe.value && xe.value.length > 0) {
|
|
39477
|
-
for (const
|
|
39478
|
-
if (
|
|
39479
|
-
|
|
39478
|
+
for (const ne of xe.value)
|
|
39479
|
+
if (ne.applyTo === "row" && Q(E, ne)) {
|
|
39480
|
+
ne.backgroundColor && (le.backgroundColor = ne.backgroundColor), ne.textColor && (le.color = ne.textColor), ne.isBold && (le.fontWeight = "bold");
|
|
39480
39481
|
break;
|
|
39481
39482
|
}
|
|
39482
39483
|
}
|
|
39483
|
-
return Object.keys(
|
|
39484
|
-
}, oe = ({ row: E, rowIndex:
|
|
39485
|
-
const
|
|
39484
|
+
return Object.keys(le).length > 0 ? le : void 0;
|
|
39485
|
+
}, oe = ({ row: E, rowIndex: J }) => {
|
|
39486
|
+
const le = [];
|
|
39486
39487
|
if (o.value.rowClassName) {
|
|
39487
|
-
const
|
|
39488
|
-
|
|
39488
|
+
const ne = o.value.rowClassName({ row: E, rowIndex: J });
|
|
39489
|
+
ne && le.push(ne);
|
|
39489
39490
|
}
|
|
39490
|
-
return
|
|
39491
|
-
}, X = ({ row: E, column:
|
|
39491
|
+
return le.length > 0 ? le.join(" ") : null;
|
|
39492
|
+
}, X = ({ row: E, column: J, rowIndex: le, columnIndex: ne }) => {
|
|
39492
39493
|
let Fe = {};
|
|
39493
39494
|
if (o.value.cellStyle) {
|
|
39494
|
-
const Oe = o.value.cellStyle({ row: E, column:
|
|
39495
|
+
const Oe = o.value.cellStyle({ row: E, column: J, rowIndex: le, columnIndex: ne });
|
|
39495
39496
|
Oe && (Fe = { ...Oe });
|
|
39496
39497
|
}
|
|
39497
39498
|
if (xe.value && xe.value.length > 0) {
|
|
39498
39499
|
for (const Oe of xe.value)
|
|
39499
|
-
if (Oe.applyTo === "cell" && Oe.field ===
|
|
39500
|
+
if (Oe.applyTo === "cell" && Oe.field === J.field && Q(E, Oe)) {
|
|
39500
39501
|
Oe.backgroundColor && (Fe.backgroundColor = Oe.backgroundColor), Oe.textColor && (Fe.color = Oe.textColor), Oe.isBold && (Fe.fontWeight = "bold");
|
|
39501
39502
|
break;
|
|
39502
|
-
} else if (Oe.applyTo === "column" && Oe.field ===
|
|
39503
|
+
} else if (Oe.applyTo === "column" && Oe.field === J.field && P.value.some((je) => Q(je, Oe))) {
|
|
39503
39504
|
Oe.backgroundColor && (Fe.backgroundColor = Oe.backgroundColor), Oe.textColor && (Fe.color = Oe.textColor), Oe.isBold && (Fe.fontWeight = "bold");
|
|
39504
39505
|
break;
|
|
39505
39506
|
}
|
|
39506
39507
|
}
|
|
39507
39508
|
return Object.keys(Fe).length > 0 ? Fe : void 0;
|
|
39508
|
-
}, Y = ({ row: E, column:
|
|
39509
|
+
}, Y = ({ row: E, column: J, rowIndex: le, columnIndex: ne }) => {
|
|
39509
39510
|
const Fe = [];
|
|
39510
39511
|
if (o.value.cellClassName) {
|
|
39511
|
-
const Oe = o.value.cellClassName({ row: E, column:
|
|
39512
|
+
const Oe = o.value.cellClassName({ row: E, column: J, rowIndex: le, columnIndex: ne });
|
|
39512
39513
|
Oe && Fe.push(Oe);
|
|
39513
39514
|
}
|
|
39514
39515
|
return Fe.length > 0 ? Fe.join(" ") : null;
|
|
39515
39516
|
}, P = Le(() => s.data || []), ze = Le(() => {
|
|
39516
|
-
var
|
|
39517
|
+
var J, le;
|
|
39517
39518
|
let E = P.value;
|
|
39518
|
-
if (o.value.groupField || ((
|
|
39519
|
+
if (o.value.groupField || ((J = o.value.treeConfig) == null ? void 0 : J.enabled) === !0)
|
|
39519
39520
|
return E;
|
|
39520
|
-
if ((
|
|
39521
|
-
const
|
|
39522
|
-
E = E.slice(
|
|
39521
|
+
if ((le = s.pageConfig) != null && le.enabled && !s.enableVirtualScroll) {
|
|
39522
|
+
const ne = (y.value - 1) * w.value, Fe = ne + w.value;
|
|
39523
|
+
E = E.slice(ne, Fe);
|
|
39523
39524
|
}
|
|
39524
39525
|
if (v.value) {
|
|
39525
|
-
const
|
|
39526
|
+
const ne = [...E], Fe = {
|
|
39526
39527
|
fid: "__empty_row__",
|
|
39527
39528
|
_isEmpty: !0
|
|
39528
39529
|
};
|
|
39529
39530
|
return pe(s.formData.fields).forEach((Me) => {
|
|
39530
39531
|
const je = Me.__vModel__;
|
|
39531
39532
|
je && (Fe[je] = "");
|
|
39532
|
-
}),
|
|
39533
|
+
}), ne.push(Fe), ne;
|
|
39533
39534
|
}
|
|
39534
39535
|
return E;
|
|
39535
39536
|
});
|
|
@@ -39537,17 +39538,17 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39537
39538
|
E && (y.value = E.currentPage || 1, w.value = E.pageSize || 20);
|
|
39538
39539
|
}, { deep: !0 }), nt(() => o.value.groupField, (E) => {
|
|
39539
39540
|
if (E) {
|
|
39540
|
-
const
|
|
39541
|
-
O.value =
|
|
39541
|
+
const J = Array.isArray(E) ? E : [E];
|
|
39542
|
+
O.value = J.filter((le) => le && le.trim() !== "");
|
|
39542
39543
|
} else
|
|
39543
39544
|
O.value = [];
|
|
39544
39545
|
}, { immediate: !0 });
|
|
39545
|
-
const Re = (E,
|
|
39546
|
-
const
|
|
39547
|
-
return !E || !Array.isArray(E) || E.forEach((
|
|
39548
|
-
const
|
|
39549
|
-
|
|
39550
|
-
}),
|
|
39546
|
+
const Re = (E, J) => v.value ? E === "edit" : !1, pe = (E) => {
|
|
39547
|
+
const J = [];
|
|
39548
|
+
return !E || !Array.isArray(E) || E.forEach((le) => {
|
|
39549
|
+
const ne = le.__config__;
|
|
39550
|
+
ne.layout === "rowFormItem" && ne.children && Array.isArray(ne.children) ? J.push(...pe(ne.children)) : ne.layout === "colFormItem" && J.push(le);
|
|
39551
|
+
}), J;
|
|
39551
39552
|
};
|
|
39552
39553
|
fn("relationFormHandlers", {
|
|
39553
39554
|
search: (E) => {
|
|
@@ -39567,24 +39568,24 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39567
39568
|
if (s.fieldOptions && s.fieldOptions.length > 0)
|
|
39568
39569
|
return Array.isArray(s.fieldOptions) ? s.fieldOptions : [];
|
|
39569
39570
|
const E = [];
|
|
39570
|
-
return pe(s.formData.fields).forEach((
|
|
39571
|
-
const
|
|
39572
|
-
if (!Fe ||
|
|
39571
|
+
return pe(s.formData.fields).forEach((le) => {
|
|
39572
|
+
const ne = le.__config__, Fe = le.__vModel__, Oe = ne.cdkey;
|
|
39573
|
+
if (!Fe || ne.noShow || Oe === "billno" || Oe === "divider" || Oe === "vxeSubGrid" || Oe === "table")
|
|
39573
39574
|
return;
|
|
39574
39575
|
let Me = "text";
|
|
39575
39576
|
["select", "radio", "checkbox"].includes(Oe) ? Me = "select" : Oe === "number" ? Me = "number" : Oe === "date" || Oe === "datetime" ? Me = "date" : Oe === "time" ? Me = "time" : Oe === "switch" && (Me = "select"), E.push({
|
|
39576
|
-
key:
|
|
39577
|
-
label:
|
|
39577
|
+
key: ne.label,
|
|
39578
|
+
label: ne.label,
|
|
39578
39579
|
value: Fe,
|
|
39579
39580
|
type: Me
|
|
39580
39581
|
});
|
|
39581
39582
|
}), E;
|
|
39582
39583
|
}), Wt = Le(() => {
|
|
39583
39584
|
const E = [];
|
|
39584
|
-
return pe(s.formData.fields).forEach((
|
|
39585
|
-
const
|
|
39586
|
-
if (["select", "radio", "checkbox"].includes(Oe) &&
|
|
39587
|
-
const Me =
|
|
39585
|
+
return pe(s.formData.fields).forEach((le) => {
|
|
39586
|
+
const ne = le.__config__, Fe = le.__vModel__, Oe = ne.cdkey;
|
|
39587
|
+
if (["select", "radio", "checkbox"].includes(Oe) && le.options && Array.isArray(le.options)) {
|
|
39588
|
+
const Me = le.options.map((je) => je.label || je.fullName || String(je.value));
|
|
39588
39589
|
E.push({
|
|
39589
39590
|
columnName: Fe,
|
|
39590
39591
|
value: Me
|
|
@@ -39596,33 +39597,33 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39596
39597
|
}), E;
|
|
39597
39598
|
}), Ke = Le(() => {
|
|
39598
39599
|
const E = [];
|
|
39599
|
-
return pe(s.formData.fields).forEach((
|
|
39600
|
-
const
|
|
39601
|
-
!
|
|
39602
|
-
label:
|
|
39603
|
-
value:
|
|
39600
|
+
return pe(s.formData.fields).forEach((le) => {
|
|
39601
|
+
const ne = le.__config__;
|
|
39602
|
+
!le.__vModel__ || ne.noShow || ne.cdkey === "billno" || ne.cdkey === "calculate" || E.push({
|
|
39603
|
+
label: ne.label,
|
|
39604
|
+
value: le.__vModel__
|
|
39604
39605
|
});
|
|
39605
39606
|
}), E;
|
|
39606
|
-
}), Vt = (E,
|
|
39607
|
+
}), Vt = (E, J = !1) => {
|
|
39607
39608
|
var rt, ot, dt, vt;
|
|
39608
|
-
const
|
|
39609
|
-
if (!Fe ||
|
|
39609
|
+
const le = E.__config__, ne = le.cdkey, Fe = E.__vModel__;
|
|
39610
|
+
if (!Fe || le.noShow)
|
|
39610
39611
|
return null;
|
|
39611
39612
|
const Oe = W.value.get(Fe), Me = {
|
|
39612
39613
|
field: Fe,
|
|
39613
|
-
title:
|
|
39614
|
+
title: le.label,
|
|
39614
39615
|
minwidth: 150,
|
|
39615
|
-
width:
|
|
39616
|
-
align:
|
|
39616
|
+
width: le.tableWidth || 150,
|
|
39617
|
+
align: le.tableAlign || "left",
|
|
39617
39618
|
headerAlign: "center",
|
|
39618
39619
|
sortable: !0
|
|
39619
39620
|
};
|
|
39620
|
-
Oe != null && Oe.fixed && Oe.fixed !== "none" ? Me.fixed = Oe.fixed :
|
|
39621
|
-
const je = r(
|
|
39621
|
+
Oe != null && Oe.fixed && Oe.fixed !== "none" ? Me.fixed = Oe.fixed : le.fixed && le.fixed !== "none" && (Me.fixed = le.fixed);
|
|
39622
|
+
const je = r(ne, E);
|
|
39622
39623
|
if (je && (Me.cellRender = {
|
|
39623
39624
|
name: "$renderFormItem",
|
|
39624
39625
|
props: { field: E }
|
|
39625
|
-
}),
|
|
39626
|
+
}), ne === "relationForm") {
|
|
39626
39627
|
const kt = E.multiple === !0;
|
|
39627
39628
|
kt ? Me.cellRender = {
|
|
39628
39629
|
name: "$relationCell",
|
|
@@ -39643,14 +39644,14 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39643
39644
|
return yt[Fe] ?? "";
|
|
39644
39645
|
};
|
|
39645
39646
|
}
|
|
39646
|
-
if (
|
|
39647
|
+
if (ne === "switch") {
|
|
39647
39648
|
const kt = E["active-value"] ?? 1;
|
|
39648
39649
|
Me.formatter = ({ row: yt }) => {
|
|
39649
39650
|
const tt = yt[Fe];
|
|
39650
39651
|
return tt === kt || tt === !0 ? "启用" : "禁用";
|
|
39651
39652
|
};
|
|
39652
39653
|
}
|
|
39653
|
-
if ((
|
|
39654
|
+
if ((ne === "select" || ne === "radio") && !je) {
|
|
39654
39655
|
const kt = E.options || ((rt = E.__slot__) == null ? void 0 : rt.options) || [];
|
|
39655
39656
|
if (kt.length > 0) {
|
|
39656
39657
|
const yt = {};
|
|
@@ -39663,7 +39664,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39663
39664
|
};
|
|
39664
39665
|
}
|
|
39665
39666
|
}
|
|
39666
|
-
if (
|
|
39667
|
+
if (ne === "date" || ne === "datetime") {
|
|
39667
39668
|
const kt = E.type || "date";
|
|
39668
39669
|
Me.formatter = ({ row: yt }) => {
|
|
39669
39670
|
const tt = yt[Fe];
|
|
@@ -39682,8 +39683,8 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39682
39683
|
}
|
|
39683
39684
|
};
|
|
39684
39685
|
}
|
|
39685
|
-
if (v.value && !["upload", "uploadImg", "editor", "colorPicker", "cascader"].includes(
|
|
39686
|
-
if (
|
|
39686
|
+
if (v.value && !["upload", "uploadImg", "editor", "colorPicker", "cascader"].includes(ne))
|
|
39687
|
+
if (ne === "relationForm")
|
|
39687
39688
|
Me.editRender = {
|
|
39688
39689
|
name: "$renderFormItem",
|
|
39689
39690
|
props: {
|
|
@@ -39691,7 +39692,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39691
39692
|
onI18nClick: (yt) => f("i18n-click", yt)
|
|
39692
39693
|
}
|
|
39693
39694
|
};
|
|
39694
|
-
else if (
|
|
39695
|
+
else if (ne === "input" && ((ot = E.__config__) != null && ot.i18n))
|
|
39695
39696
|
Me.editRender = {
|
|
39696
39697
|
name: "$renderFormItem",
|
|
39697
39698
|
props: {
|
|
@@ -39699,26 +39700,26 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39699
39700
|
onI18nClick: (yt) => f("i18n-click", yt)
|
|
39700
39701
|
}
|
|
39701
39702
|
};
|
|
39702
|
-
else if (
|
|
39703
|
+
else if (ne === "numInput" || ne === "inputNumber" || ne === "amount" || ne === "rate" || ne === "slider")
|
|
39703
39704
|
Me.editRender = { name: "VxeNumberInput" };
|
|
39704
|
-
else if (
|
|
39705
|
+
else if (ne === "select" || ne === "radio") {
|
|
39705
39706
|
const yt = (E.options || ((dt = E.__slot__) == null ? void 0 : dt.options) || []).map((tt) => ({
|
|
39706
39707
|
label: tt.label || tt.fullName || tt.name || tt.value,
|
|
39707
39708
|
value: tt.value ?? tt.id
|
|
39708
39709
|
}));
|
|
39709
39710
|
Me.editRender = { name: "VxeSelect", options: yt };
|
|
39710
|
-
} else if (
|
|
39711
|
+
} else if (ne === "treeSelect") {
|
|
39711
39712
|
const yt = (E.options || []).map((tt) => ({
|
|
39712
39713
|
label: tt.label || tt.fullName || tt.name,
|
|
39713
39714
|
value: tt.value ?? tt.id,
|
|
39714
39715
|
parentValue: tt.parentId ?? tt.parentValue
|
|
39715
39716
|
}));
|
|
39716
39717
|
Me.editRender = { name: "VxeTreeSelect", options: yt, props: { treeConfig: { transform: !0, rowField: "value", parentField: "parentValue" } } };
|
|
39717
|
-
} else if (
|
|
39718
|
+
} else if (ne === "datePicker")
|
|
39718
39719
|
Me.editRender = { name: "VxeDatePicker", props: { type: "date", valueFormat: "YYYY-MM-DD" } };
|
|
39719
|
-
else if (
|
|
39720
|
+
else if (ne === "switch")
|
|
39720
39721
|
Me.editRender = { name: "VxeSwitch" };
|
|
39721
|
-
else if (
|
|
39722
|
+
else if (ne === "checkbox") {
|
|
39722
39723
|
const yt = (E.options || ((vt = E.__slot__) == null ? void 0 : vt.options) || []).map((tt) => ({
|
|
39723
39724
|
label: tt.label || tt.value,
|
|
39724
39725
|
value: tt.value ?? tt.id
|
|
@@ -39727,8 +39728,8 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39727
39728
|
} else
|
|
39728
39729
|
Me.editRender = { name: "VxeInput" };
|
|
39729
39730
|
return Je(Me, E), Me;
|
|
39730
|
-
}, Je = (E,
|
|
39731
|
-
const
|
|
39731
|
+
}, Je = (E, J) => {
|
|
39732
|
+
const ne = J.__config__.cdkey, Fe = J.__vModel__, Oe = /* @__PURE__ */ new Set();
|
|
39732
39733
|
if (P.value.forEach((Me) => {
|
|
39733
39734
|
const je = Me[Fe];
|
|
39734
39735
|
je != null && je !== "" && (Array.isArray(je) ? je.forEach((rt) => {
|
|
@@ -39738,7 +39739,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39738
39739
|
E.filters = [];
|
|
39739
39740
|
return;
|
|
39740
39741
|
}
|
|
39741
|
-
if (
|
|
39742
|
+
if (ne === "relationForm") {
|
|
39742
39743
|
E.filterMultiple = !0;
|
|
39743
39744
|
const Me = /* @__PURE__ */ new Set();
|
|
39744
39745
|
P.value.forEach((rt) => {
|
|
@@ -39776,23 +39777,23 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39776
39777
|
const dt = ot[Fe];
|
|
39777
39778
|
return dt ? String(dt).split(",").map((kt) => kt.trim()).includes(String(rt)) : !1;
|
|
39778
39779
|
};
|
|
39779
|
-
} else
|
|
39780
|
+
} else ne === "select" || ne === "radio" || ne === "checkbox" || ne === "cascader" ? (E.filterMultiple = !0, E.filters = [], Oe.forEach((Me) => {
|
|
39780
39781
|
let je = String(Me);
|
|
39781
|
-
if (
|
|
39782
|
-
const rt =
|
|
39782
|
+
if (J.options && Array.isArray(J.options)) {
|
|
39783
|
+
const rt = J.options.find((ot) => (ot.value || ot.key || ot.id) == Me);
|
|
39783
39784
|
rt && (je = rt.label || rt.fullName || String(Me));
|
|
39784
39785
|
}
|
|
39785
39786
|
E.filters.push({
|
|
39786
39787
|
label: je,
|
|
39787
39788
|
value: Me
|
|
39788
39789
|
});
|
|
39789
|
-
})) :
|
|
39790
|
+
})) : ne === "switch" ? (E.filterMultiple = !1, E.filters = [], Oe.has(!0) && E.filters.push({ label: "是", value: !0 }), Oe.has(!1) && E.filters.push({ label: "否", value: !1 })) : ne === "input" || ne === "textarea" ? (E.filterMultiple = !0, E.filters = Array.from(Oe).sort().map((Me) => ({
|
|
39790
39791
|
label: String(Me),
|
|
39791
39792
|
value: Me
|
|
39792
|
-
}))) :
|
|
39793
|
+
}))) : ne === "number" ? (E.filterMultiple = !0, E.filters = Array.from(Oe).sort((Me, je) => Number(Me) - Number(je)).map((Me) => ({
|
|
39793
39794
|
label: String(Me),
|
|
39794
39795
|
value: Me
|
|
39795
|
-
}))) :
|
|
39796
|
+
}))) : ne === "date" || ne === "time" ? (E.filterMultiple = !0, E.filters = Array.from(Oe).sort().map((Me) => ({
|
|
39796
39797
|
label: String(Me),
|
|
39797
39798
|
value: Me
|
|
39798
39799
|
}))) : (E.filterMultiple = !0, E.filters = Array.from(Oe).sort().map((Me) => ({
|
|
@@ -39800,13 +39801,13 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39800
39801
|
value: Me
|
|
39801
39802
|
})));
|
|
39802
39803
|
}, Bt = () => {
|
|
39803
|
-
var
|
|
39804
|
+
var le;
|
|
39804
39805
|
if (s.tableColumns && s.tableColumns.length > 0)
|
|
39805
|
-
return s.tableColumns.map((
|
|
39806
|
-
...
|
|
39807
|
-
sortable:
|
|
39806
|
+
return s.tableColumns.map((ne, Fe) => ({
|
|
39807
|
+
...ne,
|
|
39808
|
+
sortable: ne.sortable !== void 0 ? ne.sortable : !0
|
|
39808
39809
|
}));
|
|
39809
|
-
const E = [],
|
|
39810
|
+
const E = [], J = (le = Ge.columns) == null ? void 0 : le.find((ne) => ne.field === "group");
|
|
39810
39811
|
if (E.push({
|
|
39811
39812
|
type: "checkbox",
|
|
39812
39813
|
width: 60,
|
|
@@ -39819,9 +39820,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39819
39820
|
slots: {
|
|
39820
39821
|
footer: "checkbox_footer"
|
|
39821
39822
|
}
|
|
39822
|
-
}),
|
|
39823
|
-
const
|
|
39824
|
-
return Object.keys(
|
|
39823
|
+
}), J && E.push(J), (!s.formData.fields || s.formData.fields.length === 0) && P.value.length > 0) {
|
|
39824
|
+
const ne = P.value[0];
|
|
39825
|
+
return Object.keys(ne).forEach((Fe) => {
|
|
39825
39826
|
const Oe = {
|
|
39826
39827
|
field: Fe,
|
|
39827
39828
|
title: Fe.charAt(0).toUpperCase() + Fe.slice(1),
|
|
@@ -39833,7 +39834,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39833
39834
|
}), E;
|
|
39834
39835
|
}
|
|
39835
39836
|
if (s.formData.fields && s.formData.fields.length > 0) {
|
|
39836
|
-
const
|
|
39837
|
+
const ne = (Oe, Me = !1) => {
|
|
39837
39838
|
const je = Oe.__config__;
|
|
39838
39839
|
if (je.noShow)
|
|
39839
39840
|
return null;
|
|
@@ -39876,7 +39877,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39876
39877
|
return null;
|
|
39877
39878
|
};
|
|
39878
39879
|
s.formData.fields.forEach((Oe) => {
|
|
39879
|
-
const Me =
|
|
39880
|
+
const Me = ne(Oe);
|
|
39880
39881
|
Me && E.push(Me);
|
|
39881
39882
|
}), E.length < 6 && (E[E.length - 1].width = "20%"), s.formData.fields.some(
|
|
39882
39883
|
(Oe) => {
|
|
@@ -39960,21 +39961,21 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39960
39961
|
Ge.columns = Bt();
|
|
39961
39962
|
}, { deep: !0, immediate: !0 }), nt(() => P.value.length, () => {
|
|
39962
39963
|
if (!P.value.length || !Ge.columns) return;
|
|
39963
|
-
const E = pe(s.formData.fields),
|
|
39964
|
-
Ge.columns.forEach((
|
|
39965
|
-
const
|
|
39966
|
-
|
|
39964
|
+
const E = pe(s.formData.fields), J = new Map(E.map((le) => [le.__vModel__, le]));
|
|
39965
|
+
Ge.columns.forEach((le) => {
|
|
39966
|
+
const ne = J.get(le.field);
|
|
39967
|
+
ne && Je(le, ne);
|
|
39967
39968
|
}), ra(() => {
|
|
39968
39969
|
c.value && c.value.refreshColumn();
|
|
39969
39970
|
});
|
|
39970
39971
|
}), nt(() => o.value.groupField, (E) => {
|
|
39971
39972
|
if (E) {
|
|
39972
|
-
const
|
|
39973
|
-
|
|
39974
|
-
groupFields:
|
|
39973
|
+
const J = Array.isArray(E) ? E.filter((le) => le && le.trim() !== "") : E.trim() !== "" ? [E] : [];
|
|
39974
|
+
J.length > 0 ? Ge.aggregateConfig = {
|
|
39975
|
+
groupFields: J,
|
|
39975
39976
|
showTotal: !0,
|
|
39976
|
-
totalMethod({ children:
|
|
39977
|
-
return `${
|
|
39977
|
+
totalMethod({ children: le }) {
|
|
39978
|
+
return `${le.length}条记录`;
|
|
39978
39979
|
}
|
|
39979
39980
|
} : Ge.aggregateConfig = void 0;
|
|
39980
39981
|
} else
|
|
@@ -39982,8 +39983,8 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
39982
39983
|
}, { deep: !0, immediate: !0 }), nt(() => [o.value.treeConfig, ze.value], () => {
|
|
39983
39984
|
const E = o.value.treeConfig;
|
|
39984
39985
|
if ((E == null ? void 0 : E.enabled) !== !1) {
|
|
39985
|
-
const
|
|
39986
|
-
(E == null ? void 0 : E.enabled) === !0 ||
|
|
39986
|
+
const J = ze.value.some((le) => le.children && le.children.length > 0);
|
|
39987
|
+
(E == null ? void 0 : E.enabled) === !0 || J ? Ge.treeConfig = {
|
|
39987
39988
|
transform: !0,
|
|
39988
39989
|
rowField: (E == null ? void 0 : E.rowField) || "id",
|
|
39989
39990
|
parentField: (E == null ? void 0 : E.parentField) || "parentId",
|
|
@@ -40004,104 +40005,104 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40004
40005
|
], () => {
|
|
40005
40006
|
o.value.headerCellStyle && (Ge.headerCellStyle = o.value.headerCellStyle), o.value.headerCellClassName && (Ge.headerCellClassName = o.value.headerCellClassName), Ge.rowStyle = we, Ge.rowClassName = oe, Ge.cellStyle = X, Ge.cellClassName = Y;
|
|
40006
40007
|
}, { deep: !0, immediate: !0 });
|
|
40007
|
-
const
|
|
40008
|
+
const se = {
|
|
40008
40009
|
// 求和
|
|
40009
|
-
sum: (E,
|
|
40010
|
-
let
|
|
40010
|
+
sum: (E, J, le = 2) => {
|
|
40011
|
+
let ne = 0;
|
|
40011
40012
|
return E.forEach((Fe) => {
|
|
40012
|
-
const Oe = Number(Fe[
|
|
40013
|
-
isNaN(Oe) || (
|
|
40014
|
-
}),
|
|
40013
|
+
const Oe = Number(Fe[J]);
|
|
40014
|
+
isNaN(Oe) || (ne += Oe);
|
|
40015
|
+
}), ne.toFixed(le);
|
|
40015
40016
|
},
|
|
40016
40017
|
// 平均值
|
|
40017
|
-
average: (E,
|
|
40018
|
+
average: (E, J, le = 2) => {
|
|
40018
40019
|
if (E.length === 0) return "0";
|
|
40019
|
-
let
|
|
40020
|
+
let ne = 0;
|
|
40020
40021
|
return E.forEach((Fe) => {
|
|
40021
|
-
const Oe = Number(Fe[
|
|
40022
|
-
isNaN(Oe) || (
|
|
40023
|
-
}), (
|
|
40022
|
+
const Oe = Number(Fe[J]);
|
|
40023
|
+
isNaN(Oe) || (ne += Oe);
|
|
40024
|
+
}), (ne / E.length).toFixed(le);
|
|
40024
40025
|
},
|
|
40025
40026
|
// 最大值
|
|
40026
|
-
max: (E,
|
|
40027
|
+
max: (E, J, le = 2) => {
|
|
40027
40028
|
if (E.length === 0) return "0";
|
|
40028
|
-
let
|
|
40029
|
+
let ne = -1 / 0;
|
|
40029
40030
|
return E.forEach((Fe) => {
|
|
40030
|
-
const Oe = Number(Fe[
|
|
40031
|
-
!isNaN(Oe) && Oe >
|
|
40032
|
-
}),
|
|
40031
|
+
const Oe = Number(Fe[J]);
|
|
40032
|
+
!isNaN(Oe) && Oe > ne && (ne = Oe);
|
|
40033
|
+
}), ne === -1 / 0 ? "0" : ne.toFixed(le);
|
|
40033
40034
|
},
|
|
40034
40035
|
// 最小值
|
|
40035
|
-
min: (E,
|
|
40036
|
+
min: (E, J, le = 2) => {
|
|
40036
40037
|
if (E.length === 0) return "0";
|
|
40037
|
-
let
|
|
40038
|
+
let ne = 1 / 0;
|
|
40038
40039
|
return E.forEach((Fe) => {
|
|
40039
|
-
const Oe = Number(Fe[
|
|
40040
|
-
!isNaN(Oe) && Oe <
|
|
40041
|
-
}),
|
|
40040
|
+
const Oe = Number(Fe[J]);
|
|
40041
|
+
!isNaN(Oe) && Oe < ne && (ne = Oe);
|
|
40042
|
+
}), ne === 1 / 0 ? "0" : ne.toFixed(le);
|
|
40042
40043
|
},
|
|
40043
40044
|
// 计数
|
|
40044
|
-
count: (E,
|
|
40045
|
+
count: (E, J) => E.filter((le) => le[J] !== null && le[J] !== void 0 && le[J] !== "").length.toString(),
|
|
40045
40046
|
// 中位数
|
|
40046
|
-
median: (E,
|
|
40047
|
-
const
|
|
40048
|
-
if (
|
|
40049
|
-
const Fe = Math.floor(
|
|
40050
|
-
return (
|
|
40047
|
+
median: (E, J, le = 2) => {
|
|
40048
|
+
const ne = E.map((Me) => Number(Me[J])).filter((Me) => !isNaN(Me)).sort((Me, je) => Me - je);
|
|
40049
|
+
if (ne.length === 0) return "0";
|
|
40050
|
+
const Fe = Math.floor(ne.length / 2);
|
|
40051
|
+
return (ne.length % 2 === 0 ? (ne[Fe - 1] + ne[Fe]) / 2 : ne[Fe]).toFixed(le);
|
|
40051
40052
|
},
|
|
40052
40053
|
// 众数
|
|
40053
|
-
mode: (E,
|
|
40054
|
-
const
|
|
40054
|
+
mode: (E, J, le = 2) => {
|
|
40055
|
+
const ne = {};
|
|
40055
40056
|
let Fe = 0, Oe = 0;
|
|
40056
40057
|
return E.forEach((Me) => {
|
|
40057
|
-
const je = Number(Me[
|
|
40058
|
+
const je = Number(Me[J]);
|
|
40058
40059
|
if (!isNaN(je)) {
|
|
40059
40060
|
const rt = je.toString();
|
|
40060
|
-
|
|
40061
|
+
ne[rt] = (ne[rt] || 0) + 1, ne[rt] > Fe && (Fe = ne[rt], Oe = je);
|
|
40061
40062
|
}
|
|
40062
|
-
}), Oe.toFixed(
|
|
40063
|
+
}), Oe.toFixed(le);
|
|
40063
40064
|
}
|
|
40064
40065
|
}, ae = () => {
|
|
40065
|
-
const E = [],
|
|
40066
|
+
const E = [], J = {
|
|
40066
40067
|
enabled: !1,
|
|
40067
40068
|
operations: []
|
|
40068
40069
|
};
|
|
40069
|
-
return pe(s.formData.fields).forEach((
|
|
40070
|
-
const Fe =
|
|
40070
|
+
return pe(s.formData.fields).forEach((ne) => {
|
|
40071
|
+
const Fe = ne.__config__, Oe = ne.__vModel__, Me = Fe.cdkey;
|
|
40071
40072
|
if (!Oe || Fe.noShow || Me === "billno" || Me === "divider")
|
|
40072
40073
|
return;
|
|
40073
|
-
const je = Fe.summary ||
|
|
40074
|
-
(Me === "number" || Me === "calculate") && (E.push(Oe), je != null && je.enabled && (
|
|
40075
|
-
rt.enabled !== !1 &&
|
|
40074
|
+
const je = Fe.summary || ne.summary;
|
|
40075
|
+
(Me === "number" || Me === "calculate") && (E.push(Oe), je != null && je.enabled && (J.enabled = !0, je.operations && Array.isArray(je.operations) && je.operations.forEach((rt) => {
|
|
40076
|
+
rt.enabled !== !1 && J.operations.push({
|
|
40076
40077
|
...rt,
|
|
40077
40078
|
field: Oe
|
|
40078
40079
|
// 标记这个操作是针对哪个字段的
|
|
40079
40080
|
});
|
|
40080
40081
|
})));
|
|
40081
|
-
}), E.length > 0 && !
|
|
40082
|
+
}), E.length > 0 && !J.enabled && (J.enabled = !0, J.operations = [
|
|
40082
40083
|
{ type: "sum", label: "总计", enabled: !0, decimalPlaces: 2, showUnit: !1 }
|
|
40083
|
-
]), { numericFields: E, summaryConfig:
|
|
40084
|
+
]), { numericFields: E, summaryConfig: J };
|
|
40084
40085
|
}, Ce = (E) => {
|
|
40085
40086
|
if (!E || E.length === 0)
|
|
40086
40087
|
return [];
|
|
40087
|
-
const { numericFields:
|
|
40088
|
-
if (!
|
|
40088
|
+
const { numericFields: J, summaryConfig: le } = ae();
|
|
40089
|
+
if (!le.enabled || J.length === 0)
|
|
40089
40090
|
return [];
|
|
40090
|
-
const
|
|
40091
|
-
return
|
|
40091
|
+
const ne = [];
|
|
40092
|
+
return le.operations.forEach((Fe) => {
|
|
40092
40093
|
if (!Fe.enabled) return;
|
|
40093
40094
|
const Oe = {
|
|
40094
40095
|
checkbox: Fe.label || Fe.type,
|
|
40095
40096
|
name: "-"
|
|
40096
40097
|
};
|
|
40097
|
-
|
|
40098
|
-
const je =
|
|
40098
|
+
J.forEach((Me) => {
|
|
40099
|
+
const je = se[Fe.type];
|
|
40099
40100
|
if (je) {
|
|
40100
40101
|
const rt = je(E, Me, Fe.decimalPlaces);
|
|
40101
40102
|
Oe[Me] = Fe.showUnit && Fe.unit ? `${rt} ${Fe.unit}` : rt;
|
|
40102
40103
|
}
|
|
40103
|
-
}),
|
|
40104
|
-
}),
|
|
40104
|
+
}), ne.push(Oe);
|
|
40105
|
+
}), ne;
|
|
40105
40106
|
};
|
|
40106
40107
|
nt(() => ze.value, (E) => {
|
|
40107
40108
|
Ge.footerData = Ce(E);
|
|
@@ -40110,8 +40111,8 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40110
40111
|
const E = s.formData.popupType;
|
|
40111
40112
|
return E === "fullScreen" ? "100%" : E === "drawer" ? s.formData.drawerWidth || "70vh" : s.formData.generalWidth || "70vh";
|
|
40112
40113
|
}, Be = (E) => {
|
|
40113
|
-
const
|
|
40114
|
-
switch (
|
|
40114
|
+
const J = E.value;
|
|
40115
|
+
switch (J) {
|
|
40115
40116
|
case "add":
|
|
40116
40117
|
qt();
|
|
40117
40118
|
break;
|
|
@@ -40151,35 +40152,35 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40151
40152
|
q.value = !0;
|
|
40152
40153
|
break;
|
|
40153
40154
|
default:
|
|
40154
|
-
f("custom-button", { value:
|
|
40155
|
+
f("custom-button", { value: J, label: "", icon: "", show: !0 });
|
|
40155
40156
|
}
|
|
40156
40157
|
}, mt = (E) => {
|
|
40157
40158
|
f("custom-button", E);
|
|
40158
40159
|
}, st = (E) => {
|
|
40159
|
-
const { field:
|
|
40160
|
-
f("column-filter", { field:
|
|
40160
|
+
const { field: J, filterValue: le } = E;
|
|
40161
|
+
f("column-filter", { field: J, filterValue: le });
|
|
40161
40162
|
}, Dt = (E) => {
|
|
40162
|
-
const { field:
|
|
40163
|
-
f("column-filter-reset",
|
|
40163
|
+
const { field: J } = E;
|
|
40164
|
+
f("column-filter-reset", J);
|
|
40164
40165
|
}, qt = () => {
|
|
40165
40166
|
N.value = "add", te.value = "新增", re.value = !0, ra(() => {
|
|
40166
40167
|
var E;
|
|
40167
40168
|
(E = u.value) == null || E.initFormData({});
|
|
40168
40169
|
});
|
|
40169
40170
|
}, mr = () => {
|
|
40170
|
-
var
|
|
40171
|
-
const E = (
|
|
40171
|
+
var J;
|
|
40172
|
+
const E = (J = c.value) == null ? void 0 : J.getCheckboxRecords();
|
|
40172
40173
|
if (!E || E.length === 0) {
|
|
40173
40174
|
ht.warning("请选择要复制的数据");
|
|
40174
40175
|
return;
|
|
40175
40176
|
}
|
|
40176
40177
|
N.value = "copy", te.value = "复制", re.value = !0, ra(() => {
|
|
40177
|
-
var
|
|
40178
|
-
(
|
|
40178
|
+
var le;
|
|
40179
|
+
(le = u.value) == null || le.initFormData({ ...E[0] });
|
|
40179
40180
|
});
|
|
40180
40181
|
}, Jr = () => {
|
|
40181
|
-
var
|
|
40182
|
-
const E = (
|
|
40182
|
+
var le;
|
|
40183
|
+
const E = (le = c.value) == null ? void 0 : le.getCheckboxRecords();
|
|
40183
40184
|
if (!E || E.length === 0) {
|
|
40184
40185
|
ht.warning("请选择要编辑的数据");
|
|
40185
40186
|
return;
|
|
@@ -40188,14 +40189,14 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40188
40189
|
ht.warning("只能选择一条数据进行编辑");
|
|
40189
40190
|
return;
|
|
40190
40191
|
}
|
|
40191
|
-
const
|
|
40192
|
-
N.value = "edit", V.value =
|
|
40193
|
-
var
|
|
40194
|
-
(
|
|
40192
|
+
const J = E[0];
|
|
40193
|
+
N.value = "edit", V.value = J, te.value = "编辑", re.value = !0, ra(() => {
|
|
40194
|
+
var ne;
|
|
40195
|
+
(ne = u.value) == null || ne.initFormData({ ...J });
|
|
40195
40196
|
});
|
|
40196
40197
|
}, Dr = () => {
|
|
40197
|
-
var
|
|
40198
|
-
const E = (
|
|
40198
|
+
var le;
|
|
40199
|
+
const E = (le = c.value) == null ? void 0 : le.getCheckboxRecords();
|
|
40199
40200
|
if (!E || E.length === 0) {
|
|
40200
40201
|
ht.warning("请选择要查看的数据");
|
|
40201
40202
|
return;
|
|
@@ -40204,20 +40205,20 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40204
40205
|
ht.warning("只能选择一条数据查看详情");
|
|
40205
40206
|
return;
|
|
40206
40207
|
}
|
|
40207
|
-
const
|
|
40208
|
+
const J = E[0];
|
|
40208
40209
|
N.value = "detail", te.value = "详情", re.value = !0, ra(() => {
|
|
40209
|
-
var
|
|
40210
|
-
(
|
|
40210
|
+
var ne;
|
|
40211
|
+
(ne = u.value) == null || ne.initFormData({ ...J });
|
|
40211
40212
|
});
|
|
40212
|
-
}, Zr = ({ row: E, column:
|
|
40213
|
+
}, Zr = ({ row: E, column: J }) => {
|
|
40213
40214
|
var Oe, Me, je;
|
|
40214
40215
|
if (!E || E._isEmpty)
|
|
40215
40216
|
return;
|
|
40216
40217
|
f("row-dblclick", E);
|
|
40217
|
-
const
|
|
40218
|
+
const le = ((Oe = s.formData) == null ? void 0 : Oe.hasWorkflow) || !1, ne = E.FDOCUMENTSTATE === "C" || E.fdocumentstate === "C", Fe = !(le && ne);
|
|
40218
40219
|
if (s.showType !== "dialog")
|
|
40219
40220
|
if (v.value && Fe) {
|
|
40220
|
-
const rt =
|
|
40221
|
+
const rt = J && ((je = (Me = c.value) == null ? void 0 : Me.getColumnByField) == null ? void 0 : je.call(Me, J.field));
|
|
40221
40222
|
rt != null && rt.editRender || (N.value = "edit", V.value = E, te.value = "编辑", re.value = !0, ra(() => {
|
|
40222
40223
|
u.value && u.value.initFormData({ ...E });
|
|
40223
40224
|
}));
|
|
@@ -40226,62 +40227,62 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40226
40227
|
})) : Fe || (N.value = "detail", te.value = "详情", re.value = !0, ra(() => {
|
|
40227
40228
|
u.value && u.value.initFormData({ ...E });
|
|
40228
40229
|
}), f("detail", E));
|
|
40229
|
-
}, Qr = ({ row: E, column:
|
|
40230
|
+
}, Qr = ({ row: E, column: J }) => {
|
|
40230
40231
|
if (!(!E || E._isEmpty)) {
|
|
40231
40232
|
if (s.showType === "dialog" && c.value)
|
|
40232
40233
|
if (s.selectionMode === "single")
|
|
40233
40234
|
c.value.clearCheckboxRow(), c.value.setCheckboxRow(E, !0), f("selection-change", [E]);
|
|
40234
40235
|
else {
|
|
40235
|
-
const
|
|
40236
|
-
c.value.setCheckboxRow(E, !
|
|
40237
|
-
const
|
|
40238
|
-
f("selection-change",
|
|
40236
|
+
const le = c.value.isCheckedByCheckboxRow(E);
|
|
40237
|
+
c.value.setCheckboxRow(E, !le);
|
|
40238
|
+
const ne = c.value.getCheckboxRecords();
|
|
40239
|
+
f("selection-change", ne);
|
|
40239
40240
|
}
|
|
40240
40241
|
f("row-click", E);
|
|
40241
40242
|
}
|
|
40242
40243
|
}, en = () => {
|
|
40243
|
-
var
|
|
40244
|
-
const E = (
|
|
40244
|
+
var J;
|
|
40245
|
+
const E = (J = c.value) == null ? void 0 : J.getCheckboxRecords();
|
|
40245
40246
|
if (!E || E.length === 0) {
|
|
40246
40247
|
ht.warning("请选择要删除的数据");
|
|
40247
40248
|
return;
|
|
40248
40249
|
}
|
|
40249
40250
|
f("delete", E.length === 1 ? E[0] : E);
|
|
40250
|
-
}, bn = ({ row: E, column:
|
|
40251
|
-
if (!v.value || !E || !
|
|
40252
|
-
const
|
|
40253
|
-
if (
|
|
40254
|
-
const
|
|
40255
|
-
g.value.set(
|
|
40256
|
-
}
|
|
40257
|
-
}, pr = ({ row: E, column:
|
|
40251
|
+
}, bn = ({ row: E, column: J }) => {
|
|
40252
|
+
if (!v.value || !E || !J) return;
|
|
40253
|
+
const le = J.field || J.property;
|
|
40254
|
+
if (le) {
|
|
40255
|
+
const ne = `${E.fid}_${le}`;
|
|
40256
|
+
g.value.set(ne, E[le]);
|
|
40257
|
+
}
|
|
40258
|
+
}, pr = ({ row: E, column: J }) => {
|
|
40258
40259
|
if (!v.value || !E || E._isEmpty) return;
|
|
40259
|
-
const
|
|
40260
|
+
const le = E.fid, ne = { _originalId: le };
|
|
40260
40261
|
for (const [Fe, Oe] of Object.entries(E))
|
|
40261
|
-
Oe !== void 0 && (
|
|
40262
|
-
C.value.set(
|
|
40263
|
-
}, En = ({ row: E, column:
|
|
40262
|
+
Oe !== void 0 && (ne[Fe] = Oe);
|
|
40263
|
+
C.value.set(le, ne), c.value && (c.value.setCheckboxRow(E, !0), D.value.add(le)), S.value = !0;
|
|
40264
|
+
}, En = ({ row: E, column: J }) => {
|
|
40264
40265
|
if (v.value)
|
|
40265
40266
|
if (E._isEmpty) {
|
|
40266
|
-
if (Object.keys(E).some((
|
|
40267
|
-
const
|
|
40268
|
-
delete
|
|
40267
|
+
if (Object.keys(E).some((ne) => ne === "fid" || ne === "_isEmpty" ? !1 : E[ne] !== null && E[ne] !== void 0 && E[ne] !== "")) {
|
|
40268
|
+
const ne = { ...E };
|
|
40269
|
+
delete ne._isEmpty, ne.fid = `temp_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
40269
40270
|
const Fe = {};
|
|
40270
|
-
for (const [Oe, Me] of Object.entries(
|
|
40271
|
+
for (const [Oe, Me] of Object.entries(ne))
|
|
40271
40272
|
Me !== void 0 && (Fe[Oe] = Me);
|
|
40272
40273
|
f("inline-save", [Fe]);
|
|
40273
40274
|
}
|
|
40274
40275
|
} else {
|
|
40275
|
-
const
|
|
40276
|
-
if (
|
|
40277
|
-
const
|
|
40276
|
+
const le = (J == null ? void 0 : J.field) || (J == null ? void 0 : J.property);
|
|
40277
|
+
if (le && E.fid) {
|
|
40278
|
+
const ne = `${E.fid}_${le}`, Fe = g.value.get(ne), Oe = E[le];
|
|
40278
40279
|
if (Fe !== Oe) {
|
|
40279
40280
|
const Me = { _originalId: E.fid };
|
|
40280
40281
|
for (const [je, rt] of Object.entries(E))
|
|
40281
40282
|
rt !== void 0 && (Me[je] = rt);
|
|
40282
40283
|
f("inline-save", [Me]);
|
|
40283
40284
|
}
|
|
40284
|
-
g.value.delete(
|
|
40285
|
+
g.value.delete(ne);
|
|
40285
40286
|
}
|
|
40286
40287
|
}
|
|
40287
40288
|
}, Cn = async () => {
|
|
@@ -40290,31 +40291,31 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40290
40291
|
return;
|
|
40291
40292
|
}
|
|
40292
40293
|
try {
|
|
40293
|
-
const E = Array.from(C.value.values()).map((
|
|
40294
|
-
const
|
|
40295
|
-
for (const [
|
|
40296
|
-
Fe !== void 0 && (ne
|
|
40297
|
-
return
|
|
40294
|
+
const E = Array.from(C.value.values()).map((J) => {
|
|
40295
|
+
const le = {};
|
|
40296
|
+
for (const [ne, Fe] of Object.entries(J))
|
|
40297
|
+
Fe !== void 0 && (le[ne] = Fe);
|
|
40298
|
+
return le;
|
|
40298
40299
|
});
|
|
40299
40300
|
f("inline-save", E), C.value.clear(), D.value.clear(), S.value = !1, c.value && c.value.clearCheckboxRow();
|
|
40300
40301
|
} catch {
|
|
40301
40302
|
ht.error("保存失败");
|
|
40302
40303
|
}
|
|
40303
40304
|
}, xr = async () => {
|
|
40304
|
-
var
|
|
40305
|
-
if (!await ((
|
|
40305
|
+
var le, ne, Fe, Oe;
|
|
40306
|
+
if (!await ((le = u.value) == null ? void 0 : le.validate())) {
|
|
40306
40307
|
ht.error("请完善表单信息");
|
|
40307
40308
|
return;
|
|
40308
40309
|
}
|
|
40309
|
-
const
|
|
40310
|
+
const J = (ne = u.value) == null ? void 0 : ne.getFormData();
|
|
40310
40311
|
if ((Fe = s.formData.funcs) != null && Fe.beforeSubmit)
|
|
40311
40312
|
try {
|
|
40312
40313
|
await new Function("context", `
|
|
40313
40314
|
const { formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
|
|
40314
40315
|
return ${s.formData.funcs.beforeSubmit}
|
|
40315
40316
|
`)({
|
|
40316
|
-
formData:
|
|
40317
|
-
setFormData: (rt) => Object.assign(
|
|
40317
|
+
formData: J,
|
|
40318
|
+
setFormData: (rt) => Object.assign(J, rt),
|
|
40318
40319
|
setShowOrHide: () => {
|
|
40319
40320
|
},
|
|
40320
40321
|
setRequired: () => {
|
|
@@ -40327,13 +40328,13 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40327
40328
|
console.error("执行 beforeSubmit 出错:", Me), ht.error("提交前验证失败");
|
|
40328
40329
|
return;
|
|
40329
40330
|
}
|
|
40330
|
-
if (N.value === "add" ? f("add",
|
|
40331
|
+
if (N.value === "add" ? f("add", J) : N.value === "edit" && (V.value && (V.value.fid !== void 0 && (J.fid = V.value.fid), V.value.id !== void 0 && (J.id = V.value.id)), f("edit", J)), (Oe = s.formData.funcs) != null && Oe.afterSubmit)
|
|
40331
40332
|
try {
|
|
40332
40333
|
new Function("context", `
|
|
40333
40334
|
const { formData, setFormData, setShowOrHide, setRequired, setDisabled, onlineUtils } = context;
|
|
40334
40335
|
${s.formData.funcs.afterSubmit}
|
|
40335
40336
|
`)({
|
|
40336
|
-
formData:
|
|
40337
|
+
formData: J,
|
|
40337
40338
|
setFormData: () => {
|
|
40338
40339
|
},
|
|
40339
40340
|
setShowOrHide: () => {
|
|
@@ -40368,11 +40369,11 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40368
40369
|
});
|
|
40369
40370
|
}, qa = (E) => {
|
|
40370
40371
|
if (s.selectionMode === "single" && c.value) {
|
|
40371
|
-
const
|
|
40372
|
-
if (
|
|
40373
|
-
const
|
|
40372
|
+
const J = E.records || [];
|
|
40373
|
+
if (J.length > 1) {
|
|
40374
|
+
const le = J[J.length - 1];
|
|
40374
40375
|
ra(() => {
|
|
40375
|
-
c.value.clearCheckboxRow(), c.value.setCheckboxRow(
|
|
40376
|
+
c.value.clearCheckboxRow(), c.value.setCheckboxRow(le, !0), f("selection-change", [le]);
|
|
40376
40377
|
});
|
|
40377
40378
|
return;
|
|
40378
40379
|
}
|
|
@@ -40380,10 +40381,10 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40380
40381
|
f("selection-change", E.records || []);
|
|
40381
40382
|
}, An = (E) => {
|
|
40382
40383
|
if (s.selectionMode === "single" && c.value) {
|
|
40383
|
-
const
|
|
40384
|
-
if (
|
|
40384
|
+
const J = E.records || [];
|
|
40385
|
+
if (J.length > 0) {
|
|
40385
40386
|
ra(() => {
|
|
40386
|
-
c.value.clearCheckboxRow(), c.value.setCheckboxRow(
|
|
40387
|
+
c.value.clearCheckboxRow(), c.value.setCheckboxRow(J[0], !0), f("selection-change", [J[0]]);
|
|
40387
40388
|
});
|
|
40388
40389
|
return;
|
|
40389
40390
|
}
|
|
@@ -40403,18 +40404,18 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40403
40404
|
f("set-default-plan", E);
|
|
40404
40405
|
}, j = (E) => {
|
|
40405
40406
|
f("update-plan", E);
|
|
40406
|
-
},
|
|
40407
|
+
}, K = (E) => {
|
|
40407
40408
|
f("load-users", E);
|
|
40408
40409
|
}, _e = (E) => {
|
|
40409
40410
|
f("search-persons", E);
|
|
40410
40411
|
}, Ie = (E) => {
|
|
40411
40412
|
f("dept-click", E);
|
|
40412
40413
|
}, ge = (E) => {
|
|
40413
|
-
E && E.length > 0 && (E.forEach((
|
|
40414
|
-
W.value.set(
|
|
40415
|
-
width:
|
|
40416
|
-
fixed:
|
|
40417
|
-
show:
|
|
40414
|
+
E && E.length > 0 && (E.forEach((J) => {
|
|
40415
|
+
W.value.set(J.value, {
|
|
40416
|
+
width: J.width ? parseInt(J.width) : void 0,
|
|
40417
|
+
fixed: J.fixed && J.fixed !== "none" ? J.fixed : void 0,
|
|
40418
|
+
show: J.show
|
|
40418
40419
|
});
|
|
40419
40420
|
}), ra(() => {
|
|
40420
40421
|
Ge.columns = Bt(), c.value && c.value.refreshColumn();
|
|
@@ -40427,44 +40428,44 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40427
40428
|
var E;
|
|
40428
40429
|
return ((E = s.businessFlow) == null ? void 0 : E.downstream) && s.businessFlow.downstream.length > 0;
|
|
40429
40430
|
}), Se = () => {
|
|
40430
|
-
var
|
|
40431
|
-
const E = (
|
|
40431
|
+
var le, ne;
|
|
40432
|
+
const E = (le = c.value) == null ? void 0 : le.getCheckboxRecords();
|
|
40432
40433
|
if (!E || E.length === 0) {
|
|
40433
40434
|
ht.warning("请选择要下推的数据");
|
|
40434
40435
|
return;
|
|
40435
40436
|
}
|
|
40436
|
-
const
|
|
40437
|
-
if (
|
|
40437
|
+
const J = ((ne = s.businessFlow) == null ? void 0 : ne.downstream) || [];
|
|
40438
|
+
if (J.length === 0) {
|
|
40438
40439
|
ht.warning("未配置下游单据");
|
|
40439
40440
|
return;
|
|
40440
40441
|
}
|
|
40441
|
-
|
|
40442
|
+
J.length === 1 ? f("push-down", { downstream: J[0], selectedRows: E }) : ue.value = !0;
|
|
40442
40443
|
}, Ne = () => {
|
|
40443
|
-
var
|
|
40444
|
+
var J;
|
|
40444
40445
|
if (!fe.value) {
|
|
40445
40446
|
ht.warning("请选择下推目标");
|
|
40446
40447
|
return;
|
|
40447
40448
|
}
|
|
40448
|
-
const E = (
|
|
40449
|
+
const E = (J = c.value) == null ? void 0 : J.getCheckboxRecords();
|
|
40449
40450
|
f("push-down", { downstream: fe.value, selectedRows: E }), ue.value = !1, fe.value = null;
|
|
40450
40451
|
}, me = (E) => {
|
|
40451
40452
|
f("select-upstream", { upstream: E });
|
|
40452
40453
|
}, Xe = () => {
|
|
40453
|
-
var
|
|
40454
|
+
var le;
|
|
40454
40455
|
if (!O.value || O.value.length === 0) {
|
|
40455
40456
|
if (Ge.aggregateConfig = {}, Ge.columns) {
|
|
40456
|
-
const
|
|
40457
|
-
|
|
40457
|
+
const ne = Ge.columns.findIndex((Fe) => Fe.field === "group");
|
|
40458
|
+
ne > -1 && Ge.columns.splice(ne, 1), Ge.columns.forEach((Fe) => {
|
|
40458
40459
|
Fe.rowGroupNode && (Fe.rowGroupNode = !1, delete Fe.slots);
|
|
40459
40460
|
});
|
|
40460
40461
|
}
|
|
40461
40462
|
return k.value = !1, f("group", { groupFields: [], mergeFields: !1 }), !0;
|
|
40462
40463
|
}
|
|
40463
40464
|
k.value = !1;
|
|
40464
|
-
const E = O.value.filter((
|
|
40465
|
-
return E.length === 0 ? (Ge.aggregateConfig = {}, k.value = !1, f("group", { groupFields: [], mergeFields: !1 }), !0) : (Ge.data && Array.isArray(Ge.data) && Ge.data.forEach((
|
|
40466
|
-
|
|
40467
|
-
}), !((
|
|
40465
|
+
const E = O.value.filter((ne) => ne && ne.trim() !== "");
|
|
40466
|
+
return E.length === 0 ? (Ge.aggregateConfig = {}, k.value = !1, f("group", { groupFields: [], mergeFields: !1 }), !0) : (Ge.data && Array.isArray(Ge.data) && Ge.data.forEach((ne) => {
|
|
40467
|
+
ne.group = E.map((Fe) => ne[Fe] || "").join("-");
|
|
40468
|
+
}), !((le = Ge.columns) == null ? void 0 : le.some((ne) => ne.field === "group")) && Ge.columns && Ge.columns.splice(1, 0, {
|
|
40468
40469
|
field: "group",
|
|
40469
40470
|
title: "分组",
|
|
40470
40471
|
width: 200,
|
|
@@ -40488,9 +40489,9 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40488
40489
|
}, lt = () => {
|
|
40489
40490
|
k.value = !1;
|
|
40490
40491
|
}, Pt = (E) => {
|
|
40491
|
-
var
|
|
40492
|
-
const
|
|
40493
|
-
f("import",
|
|
40492
|
+
var le;
|
|
40493
|
+
const J = ((le = E.file) == null ? void 0 : le.raw) || E.file;
|
|
40494
|
+
f("import", J, { mode: E.mode || "add", mappings: E.mappings });
|
|
40494
40495
|
}, It = (E = "all") => {
|
|
40495
40496
|
f("export", E);
|
|
40496
40497
|
}, sa = () => {
|
|
@@ -40499,45 +40500,45 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40499
40500
|
f("share", E), q.value = !1;
|
|
40500
40501
|
}, za = de(/* @__PURE__ */ new Map()), gr = Le(() => {
|
|
40501
40502
|
const E = [];
|
|
40502
|
-
return !s.formData.fields || s.formData.fields.length === 0 || s.formData.fields.forEach((
|
|
40503
|
-
const
|
|
40504
|
-
if (
|
|
40505
|
-
const
|
|
40503
|
+
return !s.formData.fields || s.formData.fields.length === 0 || s.formData.fields.forEach((J) => {
|
|
40504
|
+
const le = J.__config__;
|
|
40505
|
+
if (le.cdkey === "vxeSubGrid" && !le.noShow) {
|
|
40506
|
+
const ne = J.__vModel__, Fe = J.children || J.__config__.children || [];
|
|
40506
40507
|
E.push({
|
|
40507
|
-
vModel:
|
|
40508
|
-
label:
|
|
40508
|
+
vModel: ne,
|
|
40509
|
+
label: le.label,
|
|
40509
40510
|
children: Fe,
|
|
40510
|
-
field:
|
|
40511
|
+
field: J
|
|
40511
40512
|
});
|
|
40512
40513
|
}
|
|
40513
40514
|
}), E;
|
|
40514
|
-
}), nr = (E,
|
|
40515
|
-
const
|
|
40516
|
-
za.value.has(
|
|
40517
|
-
const
|
|
40518
|
-
|
|
40519
|
-
}, rn = (E,
|
|
40520
|
-
var
|
|
40521
|
-
const
|
|
40522
|
-
return ((
|
|
40515
|
+
}), nr = (E, J) => {
|
|
40516
|
+
const le = String(E.id);
|
|
40517
|
+
za.value.has(J) || za.value.set(J, /* @__PURE__ */ new Set());
|
|
40518
|
+
const ne = za.value.get(J);
|
|
40519
|
+
ne.has(le) ? (ne.delete(le), !Array.from(za.value.entries()).some(([Me, je]) => Me !== J && je.has(le)) && c.value && c.value.setRowExpand(E, !1)) : (ne.add(le), c.value && c.value.setRowExpand(E, !0));
|
|
40520
|
+
}, rn = (E, J) => {
|
|
40521
|
+
var ne;
|
|
40522
|
+
const le = String(E.id);
|
|
40523
|
+
return ((ne = za.value.get(J)) == null ? void 0 : ne.has(le)) || !1;
|
|
40523
40524
|
}, Wa = (E) => {
|
|
40524
|
-
const
|
|
40525
|
-
return (E.children || []).forEach((
|
|
40526
|
-
const Fe =
|
|
40525
|
+
const J = [];
|
|
40526
|
+
return (E.children || []).forEach((ne) => {
|
|
40527
|
+
const Fe = ne.__config__;
|
|
40527
40528
|
if (!Fe || Fe.noShow)
|
|
40528
40529
|
return;
|
|
40529
|
-
const Oe =
|
|
40530
|
+
const Oe = ne.field || ne.__vModel__;
|
|
40530
40531
|
if (!Oe)
|
|
40531
40532
|
return;
|
|
40532
40533
|
const Me = {
|
|
40533
40534
|
field: Oe,
|
|
40534
|
-
title:
|
|
40535
|
-
width:
|
|
40536
|
-
align:
|
|
40535
|
+
title: ne.title || Fe.label || Oe,
|
|
40536
|
+
width: ne.width || ne.minWidth || Fe.tableWidth || 150,
|
|
40537
|
+
align: ne.align || Fe.tableAlign || "left",
|
|
40537
40538
|
sortable: !1
|
|
40538
40539
|
};
|
|
40539
|
-
|
|
40540
|
-
}),
|
|
40540
|
+
J.push(Me);
|
|
40541
|
+
}), J;
|
|
40541
40542
|
}, sf = sr({
|
|
40542
40543
|
border: !0,
|
|
40543
40544
|
stripe: !0,
|
|
@@ -40572,19 +40573,19 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40572
40573
|
showGroupDialog: k,
|
|
40573
40574
|
selectedGroupField: O,
|
|
40574
40575
|
mergeGroupFields: F,
|
|
40575
|
-
openFormPopup: (E = {},
|
|
40576
|
-
N.value = "add", te.value =
|
|
40577
|
-
var
|
|
40578
|
-
(
|
|
40576
|
+
openFormPopup: (E = {}, J = "新增") => {
|
|
40577
|
+
N.value = "add", te.value = J, re.value = !0, ra(() => {
|
|
40578
|
+
var le;
|
|
40579
|
+
(le = u.value) == null || le.initFormData(E);
|
|
40579
40580
|
});
|
|
40580
40581
|
}
|
|
40581
|
-
}), (E,
|
|
40582
|
+
}), (E, J) => {
|
|
40582
40583
|
var ir, In, On, ki, yi;
|
|
40583
|
-
const
|
|
40584
|
-
return _(), I("div",
|
|
40585
|
-
h("div",
|
|
40586
|
-
h("div",
|
|
40587
|
-
e.showFilter && et.value && et.value.length > 0 ? (_(), I("div",
|
|
40584
|
+
const le = ce("t-button"), ne = ce("t-dropdown-item"), Fe = ce("t-dropdown-menu"), Oe = ce("t-dropdown"), Me = ce("t-select"), je = ce("t-switch"), rt = ce("t-dialog"), ot = ce("t-radio"), dt = ce("t-radio-group"), vt = ce("t-tag"), kt = ce("vxe-grid"), yt = ce("t-pagination"), tt = ce("t-space"), Ft = ce("t-drawer");
|
|
40585
|
+
return _(), I("div", C8, [
|
|
40586
|
+
h("div", T8, [
|
|
40587
|
+
h("div", S8, [
|
|
40588
|
+
e.showFilter && et.value && et.value.length > 0 ? (_(), I("div", F8, [
|
|
40588
40589
|
R(Qa(bS), {
|
|
40589
40590
|
"field-options": et.value,
|
|
40590
40591
|
"filter-count": 2,
|
|
@@ -40601,7 +40602,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40601
40602
|
onCopyPlan: B,
|
|
40602
40603
|
onSetDefaultPlan: U,
|
|
40603
40604
|
onUpdatePlan: j,
|
|
40604
|
-
onLoadUsers:
|
|
40605
|
+
onLoadUsers: K,
|
|
40605
40606
|
onSearchPersons: _e,
|
|
40606
40607
|
onDeptClick: Ie,
|
|
40607
40608
|
onColumnChange: ge,
|
|
@@ -40610,7 +40611,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40610
40611
|
}, null, 8, ["field-options", "select-options", "plan-filter-options"])
|
|
40611
40612
|
])) : Ee("", !0)
|
|
40612
40613
|
]),
|
|
40613
|
-
h("div",
|
|
40614
|
+
h("div", A8, [
|
|
40614
40615
|
(_(!0), I($e, null, qe(o.value.btnsList || [], (Ye) => (_(), I($e, {
|
|
40615
40616
|
key: Ye.label
|
|
40616
40617
|
}, [
|
|
@@ -40620,13 +40621,13 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40620
40621
|
"overlay-class-name": "filter-dropdown"
|
|
40621
40622
|
}, {
|
|
40622
40623
|
default: A(() => [
|
|
40623
|
-
R(
|
|
40624
|
+
R(le, {
|
|
40624
40625
|
variant: "outline",
|
|
40625
40626
|
size: "small",
|
|
40626
40627
|
theme: "primary"
|
|
40627
40628
|
}, Or({
|
|
40628
40629
|
suffix: A(() => [
|
|
40629
|
-
|
|
40630
|
+
J[17] || (J[17] = h("i", { class: "ri-arrow-down-s-line" }, null, -1))
|
|
40630
40631
|
]),
|
|
40631
40632
|
default: A(() => [
|
|
40632
40633
|
ve(" " + ie(Ye.label) + " ", 1)
|
|
@@ -40644,10 +40645,10 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40644
40645
|
} : void 0
|
|
40645
40646
|
]), 1024),
|
|
40646
40647
|
R(Fe, {
|
|
40647
|
-
onClick:
|
|
40648
|
+
onClick: J[0] || (J[0] = (Et) => Be({ value: Et.value }))
|
|
40648
40649
|
}, {
|
|
40649
40650
|
default: A(() => [
|
|
40650
|
-
(_(!0), I($e, null, qe(Ye.children.filter((Et) => Et.show !== !1), (Et) => (_(), Te(
|
|
40651
|
+
(_(!0), I($e, null, qe(Ye.children.filter((Et) => Et.show !== !1), (Et) => (_(), Te(ne, {
|
|
40651
40652
|
key: Et.value || Math.random(),
|
|
40652
40653
|
value: Et.value,
|
|
40653
40654
|
disabled: Et.disabled,
|
|
@@ -40663,7 +40664,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40663
40664
|
}, 1024)
|
|
40664
40665
|
]),
|
|
40665
40666
|
_: 2
|
|
40666
|
-
}, 1024)) : Ye.show && !Re(Ye.value) ? (_(), Te(
|
|
40667
|
+
}, 1024)) : Ye.show && !Re(Ye.value) ? (_(), Te(le, {
|
|
40667
40668
|
key: 1,
|
|
40668
40669
|
variant: "outline",
|
|
40669
40670
|
size: "small",
|
|
@@ -40682,7 +40683,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40682
40683
|
} : void 0
|
|
40683
40684
|
]), 1032, ["onClick"])) : Ee("", !0)
|
|
40684
40685
|
], 64))), 128)),
|
|
40685
|
-
(_(!0), I($e, null, qe(o.value.customBtnsList || [], (Ye) => kr((_(), Te(
|
|
40686
|
+
(_(!0), I($e, null, qe(o.value.customBtnsList || [], (Ye) => kr((_(), Te(le, {
|
|
40686
40687
|
variant: "outline",
|
|
40687
40688
|
size: "small",
|
|
40688
40689
|
key: Ye.value,
|
|
@@ -40702,18 +40703,18 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40702
40703
|
[Mo, Ye.show]
|
|
40703
40704
|
])), 128)),
|
|
40704
40705
|
tr(E.$slots, "toolbar-right", {}, void 0, !0),
|
|
40705
|
-
Ve.value ? (_(), Te(
|
|
40706
|
+
Ve.value ? (_(), Te(le, {
|
|
40706
40707
|
key: 0,
|
|
40707
40708
|
variant: "outline",
|
|
40708
40709
|
size: "small",
|
|
40709
40710
|
theme: "primary",
|
|
40710
40711
|
onClick: Se
|
|
40711
40712
|
}, {
|
|
40712
|
-
icon: A(() => [...
|
|
40713
|
+
icon: A(() => [...J[18] || (J[18] = [
|
|
40713
40714
|
h("i", { class: "ri-arrow-down-line" }, null, -1)
|
|
40714
40715
|
])]),
|
|
40715
40716
|
default: A(() => [
|
|
40716
|
-
|
|
40717
|
+
J[19] || (J[19] = ve(" 下推 ", -1))
|
|
40717
40718
|
]),
|
|
40718
40719
|
_: 1
|
|
40719
40720
|
})) : Ee("", !0)
|
|
@@ -40721,7 +40722,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40721
40722
|
]),
|
|
40722
40723
|
R(rt, {
|
|
40723
40724
|
visible: k.value,
|
|
40724
|
-
"onUpdate:visible":
|
|
40725
|
+
"onUpdate:visible": J[3] || (J[3] = (Ye) => k.value = Ye),
|
|
40725
40726
|
header: "选择分组字段",
|
|
40726
40727
|
"confirm-btn": { content: "确定", theme: "primary" },
|
|
40727
40728
|
"cancel-btn": { content: "取消", theme: "default" },
|
|
@@ -40729,23 +40730,23 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40729
40730
|
onClose: lt
|
|
40730
40731
|
}, {
|
|
40731
40732
|
default: A(() => [
|
|
40732
|
-
h("div",
|
|
40733
|
+
h("div", D8, [
|
|
40733
40734
|
R(Me, {
|
|
40734
40735
|
modelValue: O.value,
|
|
40735
|
-
"onUpdate:modelValue":
|
|
40736
|
+
"onUpdate:modelValue": J[1] || (J[1] = (Ye) => O.value = Ye),
|
|
40736
40737
|
placeholder: "请选择要分组的字段(可多选)",
|
|
40737
40738
|
options: Ke.value,
|
|
40738
40739
|
keys: { label: "label", value: "value" },
|
|
40739
40740
|
multiple: "",
|
|
40740
40741
|
clearable: ""
|
|
40741
40742
|
}, null, 8, ["modelValue", "options"]),
|
|
40742
|
-
h("div",
|
|
40743
|
-
|
|
40743
|
+
h("div", I8, [
|
|
40744
|
+
J[20] || (J[20] = h("span", { class: "switch-label" }, "分组:", -1)),
|
|
40744
40745
|
R(je, {
|
|
40745
40746
|
modelValue: F.value,
|
|
40746
|
-
"onUpdate:modelValue":
|
|
40747
|
+
"onUpdate:modelValue": J[2] || (J[2] = (Ye) => F.value = Ye)
|
|
40747
40748
|
}, null, 8, ["modelValue"]),
|
|
40748
|
-
h("span",
|
|
40749
|
+
h("span", O8, ie(F.value ? "字段合并分组" : "独立分组"), 1)
|
|
40749
40750
|
])
|
|
40750
40751
|
])
|
|
40751
40752
|
]),
|
|
@@ -40753,7 +40754,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40753
40754
|
}, 8, ["visible"]),
|
|
40754
40755
|
R(rt, {
|
|
40755
40756
|
visible: ue.value,
|
|
40756
|
-
"onUpdate:visible":
|
|
40757
|
+
"onUpdate:visible": J[5] || (J[5] = (Ye) => ue.value = Ye),
|
|
40757
40758
|
header: "选择下推目标",
|
|
40758
40759
|
width: "400px",
|
|
40759
40760
|
"confirm-btn": { content: "确定", theme: "primary" },
|
|
@@ -40763,7 +40764,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40763
40764
|
default: A(() => [
|
|
40764
40765
|
R(dt, {
|
|
40765
40766
|
modelValue: fe.value,
|
|
40766
|
-
"onUpdate:modelValue":
|
|
40767
|
+
"onUpdate:modelValue": J[4] || (J[4] = (Ye) => fe.value = Ye),
|
|
40767
40768
|
class: "push-down-options"
|
|
40768
40769
|
}, {
|
|
40769
40770
|
default: A(() => {
|
|
@@ -40787,7 +40788,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40787
40788
|
}, 8, ["visible"]),
|
|
40788
40789
|
R(tf, {
|
|
40789
40790
|
visible: he.value,
|
|
40790
|
-
"onUpdate:visible":
|
|
40791
|
+
"onUpdate:visible": J[6] || (J[6] = (Ye) => he.value = Ye),
|
|
40791
40792
|
mode: ee.value,
|
|
40792
40793
|
fields: b.value,
|
|
40793
40794
|
"required-fields": z.value,
|
|
@@ -40801,7 +40802,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40801
40802
|
q.value ? (_(), Te(Qa(rf), {
|
|
40802
40803
|
key: 0,
|
|
40803
40804
|
visible: q.value,
|
|
40804
|
-
"onUpdate:visible":
|
|
40805
|
+
"onUpdate:visible": J[7] || (J[7] = (Ye) => q.value = Ye),
|
|
40805
40806
|
title: "单据分享",
|
|
40806
40807
|
shareUrl: s.shareUrl || "",
|
|
40807
40808
|
currentPermission: ((ir = s.shareConfig) == null ? void 0 : ir.currentPermission) || "manage",
|
|
@@ -40836,7 +40837,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40836
40837
|
}
|
|
40837
40838
|
}), Or({
|
|
40838
40839
|
checkbox_footer: A(({ $rowIndex: Ye }) => [
|
|
40839
|
-
Ge.footerData && Ge.footerData[Ye] ? (_(), I("span",
|
|
40840
|
+
Ge.footerData && Ge.footerData[Ye] ? (_(), I("span", R8, ie(Ge.footerData[Ye].checkbox), 1)) : Ee("", !0)
|
|
40840
40841
|
]),
|
|
40841
40842
|
nameGroupContent: A(({ groupContent: Ye }) => [
|
|
40842
40843
|
R(vt, {
|
|
@@ -40853,12 +40854,12 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40853
40854
|
ve(ie(Ye[Et.field]), 1)
|
|
40854
40855
|
]),
|
|
40855
40856
|
expand_content_unified: A(({ row: Ye }) => [
|
|
40856
|
-
h("div",
|
|
40857
|
+
h("div", N8, [
|
|
40857
40858
|
(_(!0), I($e, null, qe(gr.value, (Et) => (_(), I($e, {
|
|
40858
40859
|
key: `content_${Et.vModel}`
|
|
40859
40860
|
}, [
|
|
40860
|
-
rn(Ye, Et.vModel) ? (_(), I("div",
|
|
40861
|
-
h("div",
|
|
40861
|
+
rn(Ye, Et.vModel) ? (_(), I("div", M8, [
|
|
40862
|
+
h("div", P8, ie(Et.label), 1),
|
|
40862
40863
|
R(kt, Kn({ ref_for: !0 }, sf, {
|
|
40863
40864
|
data: Ye[Et.vModel] || [],
|
|
40864
40865
|
columns: Wa(Et)
|
|
@@ -40872,7 +40873,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40872
40873
|
qe(gr.value, (Ye) => ({
|
|
40873
40874
|
name: `subgrid_trigger_${Ye.vModel}`,
|
|
40874
40875
|
fn: A(({ row: Et }) => [
|
|
40875
|
-
R(
|
|
40876
|
+
R(le, {
|
|
40876
40877
|
variant: "text",
|
|
40877
40878
|
size: "small",
|
|
40878
40879
|
disabled: !Et[Ye.vModel] || Et[Ye.vModel].length === 0,
|
|
@@ -40901,12 +40902,12 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40901
40902
|
}))
|
|
40902
40903
|
]), 1040, ["edit-config"])
|
|
40903
40904
|
], 512),
|
|
40904
|
-
o.value.hasPage && P.value.length > 0 ? (_(), I("div",
|
|
40905
|
+
o.value.hasPage && P.value.length > 0 ? (_(), I("div", L8, [
|
|
40905
40906
|
R(yt, {
|
|
40906
40907
|
modelValue: y.value,
|
|
40907
|
-
"onUpdate:modelValue":
|
|
40908
|
+
"onUpdate:modelValue": J[8] || (J[8] = (Ye) => y.value = Ye),
|
|
40908
40909
|
pageSize: w.value,
|
|
40909
|
-
"onUpdate:pageSize":
|
|
40910
|
+
"onUpdate:pageSize": J[9] || (J[9] = (Ye) => w.value = Ye),
|
|
40910
40911
|
total: s.pageConfig.total || 0,
|
|
40911
40912
|
"page-size-options": s.pageConfig.pageSizes || [10, 20, 50, 100, 200],
|
|
40912
40913
|
"show-jumper": "",
|
|
@@ -40918,7 +40919,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40918
40919
|
])) : Ee("", !0),
|
|
40919
40920
|
R(Ft, {
|
|
40920
40921
|
visible: re.value,
|
|
40921
|
-
"onUpdate:visible":
|
|
40922
|
+
"onUpdate:visible": J[16] || (J[16] = (Ye) => re.value = Ye),
|
|
40922
40923
|
header: te.value,
|
|
40923
40924
|
size: Ue(),
|
|
40924
40925
|
footer: N.value !== "detail",
|
|
@@ -40936,15 +40937,15 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40936
40937
|
"form-conf": e.formData,
|
|
40937
40938
|
fields: L.value,
|
|
40938
40939
|
modelValue: Qa(M),
|
|
40939
|
-
"onUpdate:modelValue":
|
|
40940
|
+
"onUpdate:modelValue": J[10] || (J[10] = (Ye) => uf(M) ? M.value = Ye : M = Ye),
|
|
40940
40941
|
mode: N.value,
|
|
40941
40942
|
"relation-form-data": e.relationFormData,
|
|
40942
40943
|
onSelectOrgData: Tn,
|
|
40943
|
-
onI18nClick:
|
|
40944
|
-
onRelationFormSearch:
|
|
40945
|
-
onRelationFormAdvanced:
|
|
40946
|
-
onRelationFormDialogSearch:
|
|
40947
|
-
onRelationFormPageChange:
|
|
40944
|
+
onI18nClick: J[11] || (J[11] = (Ye) => f("i18n-click", Ye)),
|
|
40945
|
+
onRelationFormSearch: J[12] || (J[12] = (Ye) => f("relation-form-search", Ye)),
|
|
40946
|
+
onRelationFormAdvanced: J[13] || (J[13] = (Ye) => f("relation-form-advanced", Ye)),
|
|
40947
|
+
onRelationFormDialogSearch: J[14] || (J[14] = (Ye) => f("relation-form-dialog-search", Ye)),
|
|
40948
|
+
onRelationFormPageChange: J[15] || (J[15] = (Ye) => f("relation-form-page-change", Ye))
|
|
40948
40949
|
}, null, 8, ["form-conf", "fields", "modelValue", "mode", "relation-form-data"])
|
|
40949
40950
|
]),
|
|
40950
40951
|
_: 2
|
|
@@ -40954,7 +40955,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40954
40955
|
fn: A(() => [
|
|
40955
40956
|
R(tt, null, {
|
|
40956
40957
|
default: A(() => [
|
|
40957
|
-
e.formData.hasCancelBtn ? (_(), Te(
|
|
40958
|
+
e.formData.hasCancelBtn ? (_(), Te(le, {
|
|
40958
40959
|
key: 0,
|
|
40959
40960
|
theme: "default",
|
|
40960
40961
|
onClick: tn
|
|
@@ -40964,7 +40965,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40964
40965
|
]),
|
|
40965
40966
|
_: 1
|
|
40966
40967
|
})) : Ee("", !0),
|
|
40967
|
-
e.formData.hasConfirmBtn ? (_(), Te(
|
|
40968
|
+
e.formData.hasConfirmBtn ? (_(), Te(le, {
|
|
40968
40969
|
key: 1,
|
|
40969
40970
|
theme: "primary",
|
|
40970
40971
|
onClick: xr
|
|
@@ -40974,13 +40975,13 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40974
40975
|
]),
|
|
40975
40976
|
_: 1
|
|
40976
40977
|
})) : Ee("", !0),
|
|
40977
|
-
e.formData.hasConfirmAndAddBtn && N.value === "add" ? (_(), Te(
|
|
40978
|
+
e.formData.hasConfirmAndAddBtn && N.value === "add" ? (_(), Te(le, {
|
|
40978
40979
|
key: 2,
|
|
40979
40980
|
theme: "primary",
|
|
40980
40981
|
variant: "outline",
|
|
40981
40982
|
onClick: $a
|
|
40982
40983
|
}, {
|
|
40983
|
-
default: A(() => [...
|
|
40984
|
+
default: A(() => [...J[21] || (J[21] = [
|
|
40984
40985
|
ve(" 保存并继续 ", -1)
|
|
40985
40986
|
])]),
|
|
40986
40987
|
_: 1
|
|
@@ -40995,7 +40996,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
40995
40996
|
]);
|
|
40996
40997
|
};
|
|
40997
40998
|
}
|
|
40998
|
-
}), nf = /* @__PURE__ */ Lt(
|
|
40999
|
+
}), nf = /* @__PURE__ */ Lt(B8, [["__scopeId", "data-v-48cd1966"]]), V8 = { class: "field-manage-header" }, U8 = { class: "field-manage-content" }, $8 = { class: "field-manage-toolbar" }, z8 = /* @__PURE__ */ St({
|
|
40999
41000
|
__name: "FieldManageDialog",
|
|
41000
41001
|
props: {
|
|
41001
41002
|
modelValue: { type: Boolean },
|
|
@@ -41282,7 +41283,7 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
41282
41283
|
onClose: C
|
|
41283
41284
|
}, {
|
|
41284
41285
|
header: A(() => [
|
|
41285
|
-
h("div",
|
|
41286
|
+
h("div", V8, [
|
|
41286
41287
|
w[3] || (w[3] = h("span", null, "字段管理", -1)),
|
|
41287
41288
|
R(k, {
|
|
41288
41289
|
theme: "primary",
|
|
@@ -41301,8 +41302,8 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
41301
41302
|
])
|
|
41302
41303
|
]),
|
|
41303
41304
|
default: A(() => [
|
|
41304
|
-
h("div",
|
|
41305
|
-
h("div", $
|
|
41305
|
+
h("div", U8, [
|
|
41306
|
+
h("div", $8, [
|
|
41306
41307
|
R(k, {
|
|
41307
41308
|
theme: "primary",
|
|
41308
41309
|
onClick: c,
|
|
@@ -41429,8 +41430,8 @@ const ES = { class: "cd-share-header" }, CS = { class: "cd-share-title" }, TS =
|
|
|
41429
41430
|
}, 8, ["visible"]);
|
|
41430
41431
|
};
|
|
41431
41432
|
}
|
|
41432
|
-
}),
|
|
41433
|
-
function
|
|
41433
|
+
}), W8 = /* @__PURE__ */ Lt(z8, [["__scopeId", "data-v-36fbcb77"]]);
|
|
41434
|
+
function q8(e) {
|
|
41434
41435
|
const {
|
|
41435
41436
|
formModel: a,
|
|
41436
41437
|
formConf: t,
|
|
@@ -41648,7 +41649,7 @@ function qF(e) {
|
|
|
41648
41649
|
}
|
|
41649
41650
|
};
|
|
41650
41651
|
}
|
|
41651
|
-
async function
|
|
41652
|
+
async function K8(e, a, t) {
|
|
41652
41653
|
if (!e || !e.trim())
|
|
41653
41654
|
return { success: !0 };
|
|
41654
41655
|
try {
|
|
@@ -41683,19 +41684,19 @@ async function KF(e, a, t) {
|
|
|
41683
41684
|
return console.error("Script execution error:", r), { success: !1, error: r.message };
|
|
41684
41685
|
}
|
|
41685
41686
|
}
|
|
41686
|
-
const
|
|
41687
|
+
const J8 = {
|
|
41687
41688
|
install(e) {
|
|
41688
|
-
e.component("CdForm", nf), e.component("CdFormCol", Un), e.component("FormRender", Go), e.component("ShareDialog", rf), e.component("FieldManageDialog",
|
|
41689
|
+
e.component("CdForm", nf), e.component("CdFormCol", Un), e.component("FormRender", Go), e.component("ShareDialog", rf), e.component("FieldManageDialog", W8), e.component("ImportWizard", tf);
|
|
41689
41690
|
}
|
|
41690
41691
|
};
|
|
41691
41692
|
export {
|
|
41692
41693
|
nf as CdForm,
|
|
41693
41694
|
Un as CdFormCol,
|
|
41694
|
-
|
|
41695
|
+
W8 as FieldManageDialog,
|
|
41695
41696
|
Go as FormRender,
|
|
41696
41697
|
tf as ImportWizard,
|
|
41697
41698
|
rf as ShareDialog,
|
|
41698
|
-
|
|
41699
|
-
|
|
41700
|
-
|
|
41699
|
+
q8 as createScriptAPI,
|
|
41700
|
+
J8 as default,
|
|
41701
|
+
K8 as executeScript
|
|
41701
41702
|
};
|