@fecp/designer 5.4.76 → 5.4.78

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.
Files changed (67) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  3. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  4. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  5. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  6. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  7. package/es/designer/src/packages/dialog/index.vue.mjs +1 -1
  8. package/es/designer/src/packages/dialog/index.vue2.mjs +1 -1
  9. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  10. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  11. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  12. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  13. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +9 -18
  14. package/es/designer/src/packages/form/property/contract.vue.mjs +14 -23
  15. package/es/designer/src/packages/form/property/document.vue.mjs +11 -20
  16. package/es/designer/src/packages/form/property/subForm.vue.mjs +17 -26
  17. package/es/designer/src/packages/form/property/subTable.vue.mjs +17 -26
  18. package/es/designer/src/packages/form/property/subTitleH2.vue.mjs +5 -14
  19. package/es/designer/src/packages/form/property/widgets.vue.mjs +83 -92
  20. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  21. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  22. package/es/designer/src/packages/table/property/widgets.vue.mjs +25 -34
  23. package/es/designer.css +139 -139
  24. package/es/packages/mobile/src/components/navigation/navBar/NavBar.vue.mjs +22 -1
  25. package/es/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.mjs +18 -1
  26. package/es/packages/vue/index.mjs +2 -0
  27. package/es/packages/vue/src/components/details/footer/Footer.vue.mjs +7 -4
  28. package/es/packages/vue/src/components/details/header/Header.vue.mjs +7 -4
  29. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +25 -29
  30. package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +11 -6
  31. package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +7 -4
  32. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +43 -7
  33. package/es/packages/vue/src/directive/auth.mjs +29 -0
  34. package/lib/designer/package.json.js +1 -1
  35. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  36. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  37. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  38. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  39. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  40. package/lib/designer/src/packages/dialog/index.vue.js +1 -1
  41. package/lib/designer/src/packages/dialog/index.vue2.js +1 -1
  42. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  43. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  44. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  45. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  46. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +9 -18
  47. package/lib/designer/src/packages/form/property/contract.vue.js +14 -23
  48. package/lib/designer/src/packages/form/property/document.vue.js +11 -20
  49. package/lib/designer/src/packages/form/property/subForm.vue.js +17 -26
  50. package/lib/designer/src/packages/form/property/subTable.vue.js +17 -26
  51. package/lib/designer/src/packages/form/property/subTitleH2.vue.js +5 -14
  52. package/lib/designer/src/packages/form/property/widgets.vue.js +83 -92
  53. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  54. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  55. package/lib/designer/src/packages/table/property/widgets.vue.js +25 -34
  56. package/lib/designer.css +139 -139
  57. package/lib/packages/mobile/src/components/navigation/navBar/NavBar.vue.js +22 -1
  58. package/lib/packages/mobile/src/components/navigation/tabbar/Tabbar.vue.js +17 -0
  59. package/lib/packages/vue/index.js +2 -0
  60. package/lib/packages/vue/src/components/details/footer/Footer.vue.js +6 -3
  61. package/lib/packages/vue/src/components/details/header/Header.vue.js +6 -3
  62. package/lib/packages/vue/src/components/forms/form/Form.vue.js +25 -29
  63. package/lib/packages/vue/src/components/table/CustomButtons.vue.js +10 -5
  64. package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +6 -3
  65. package/lib/packages/vue/src/components/table/TableColumn.vue.js +43 -7
  66. package/lib/packages/vue/src/directive/auth.js +29 -0
  67. package/package.json +1 -1
@@ -6,11 +6,32 @@ import { createBlock, openBlock, mergeProps, createSlots, renderList, withCtx, r
6
6
  import { NavBar } from "../../../../../../node_modules/vant/es/nav-bar/index.mjs";
7
7
  const _sfc_main = {
8
8
  __name: "NavBar",
9
+ props: {
10
+ isLeftBack: {
11
+ type: Boolean,
12
+ default: false
13
+ },
14
+ leftBackText: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ isRightButton: {
19
+ type: Boolean,
20
+ default: false
21
+ },
22
+ rightButtonText: {
23
+ type: String,
24
+ default: ""
25
+ }
26
+ },
9
27
  setup(__props) {
10
28
  const onClickLeft = () => history.back();
11
29
  return (_ctx, _cache) => {
12
30
  const _component_van_nav_bar = NavBar;
13
31
  return openBlock(), createBlock(_component_van_nav_bar, mergeProps(_ctx.$attrs, {
32
+ "left-arrow": __props.isLeftBack,
33
+ "left-text": __props.isLeftBack ? __props.leftBackText : "",
34
+ "right-text": __props.isRightButton ? __props.rightButtonText : "",
14
35
  fixed: false,
15
36
  "safe-area-inset-top": "",
16
37
  clickable: "",
@@ -24,7 +45,7 @@ const _sfc_main = {
24
45
  ])
25
46
  };
26
47
  })
27
- ]), 1040);
48
+ ]), 1040, ["left-arrow", "left-text", "right-text"]);
28
49
  };
29
50
  }
30
51
  };
@@ -1,7 +1,11 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- import { createBlock, openBlock, mergeProps, withCtx, renderSlot } from "vue";
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import { createBlock, openBlock, mergeProps, withCtx, createElementBlock, renderSlot, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
4
7
  import { Tabbar } from "../../../../../../node_modules/vant/es/tabbar/index.mjs";
8
+ import { TabbarItem } from "../../../../../../node_modules/vant/es/tabbar-item/index.mjs";
5
9
  const _sfc_main = {
6
10
  __name: "Tabbar",
7
11
  props: {
@@ -12,12 +16,25 @@ const _sfc_main = {
12
16
  },
13
17
  setup(__props) {
14
18
  return (_ctx, _cache) => {
19
+ const _component_van_tabbar_item = TabbarItem;
15
20
  const _component_van_tabbar = Tabbar;
16
21
  return openBlock(), createBlock(_component_van_tabbar, mergeProps(_ctx.$attrs, {
17
22
  route: "",
18
23
  fixed: false
19
24
  }), {
20
25
  default: withCtx(() => [
26
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabbarOptions, (item) => {
27
+ return openBlock(), createBlock(_component_van_tabbar_item, {
28
+ icon: item.icon,
29
+ replace: "",
30
+ to: item.to
31
+ }, {
32
+ default: withCtx(() => [
33
+ createTextVNode(toDisplayString(item.title), 1)
34
+ ]),
35
+ _: 2
36
+ }, 1032, ["icon", "to"]);
37
+ }), 256)),
21
38
  renderSlot(_ctx.$slots, "default")
22
39
  ]),
23
40
  _: 3
@@ -6,6 +6,7 @@ import * as components from "../../node_modules/vxe-pc-ui/es/components.mjs";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import layout from "./src/directive/layout.mjs";
9
+ import auth from "./src/directive/auth.mjs";
9
10
  const fecVue = {
10
11
  install: (app) => {
11
12
  for (let c in all) {
@@ -21,6 +22,7 @@ const fecVue = {
21
22
  });
22
23
  app.use(components);
23
24
  app.use(layout);
25
+ app.use(auth);
24
26
  }
25
27
  };
26
28
  export {
@@ -2,7 +2,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { createBlock, createCommentVNode, openBlock, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
5
+ import { resolveDirective, createBlock, createCommentVNode, openBlock, withCtx, createElementBlock, Fragment, renderList, withDirectives, createTextVNode, toDisplayString } from "vue";
6
6
  /* empty css */
7
7
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.mjs";
8
8
  import { ElFooter } from "../../../../../../node_modules/element-plus/es/components/container/index.mjs";
@@ -32,6 +32,7 @@ const _sfc_main = {
32
32
  var _a;
33
33
  const _component_el_button = ElButton;
34
34
  const _component_el_footer = ElFooter;
35
+ const _directive_fec_auth = resolveDirective("fec-auth");
35
36
  return __props.pageFooterConfig.enabled && ((_a = __props.pageFooterConfig.actions) == null ? void 0 : _a.length) ? (openBlock(), createBlock(_component_el_footer, {
36
37
  key: 0,
37
38
  class: "form-details-footer"
@@ -41,7 +42,7 @@ const _sfc_main = {
41
42
  return openBlock(), createElementBlock(Fragment, {
42
43
  key: button.id
43
44
  }, [
44
- button.btnType == "default" || button.btnType == "primary" && __props.formMode == "edit" ? (openBlock(), createBlock(_component_el_button, {
45
+ button.btnType == "default" || button.btnType == "primary" && __props.formMode == "edit" ? withDirectives((openBlock(), createBlock(_component_el_button, {
45
46
  key: 0,
46
47
  type: button.btnType,
47
48
  onClick: ($event) => handleButtonClick(button)
@@ -50,7 +51,9 @@ const _sfc_main = {
50
51
  createTextVNode(toDisplayString(button.label), 1)
51
52
  ]),
52
53
  _: 2
53
- }, 1032, ["type", "onClick"])) : createCommentVNode("", true)
54
+ }, 1032, ["type", "onClick"])), [
55
+ [_directive_fec_auth, button.permission]
56
+ ]) : createCommentVNode("", true)
54
57
  ], 64);
55
58
  }), 128))
56
59
  ]),
@@ -59,7 +62,7 @@ const _sfc_main = {
59
62
  };
60
63
  }
61
64
  };
62
- const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-97060b52"]]);
65
+ const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-97973006"]]);
63
66
  export {
64
67
  component as default
65
68
  };
@@ -3,7 +3,7 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { computed, createBlock, createCommentVNode, unref, openBlock, normalizeClass, createSlots, withCtx, createElementVNode, toDisplayString, createElementBlock, Fragment, renderList, createTextVNode } from "vue";
6
+ import { computed, resolveDirective, createBlock, createCommentVNode, unref, openBlock, normalizeClass, createSlots, withCtx, createElementVNode, toDisplayString, createElementBlock, Fragment, renderList, withDirectives, createTextVNode } from "vue";
7
7
  import { ArrowLeftBold as arrow_left_bold_default } from "../../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
8
8
  import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
9
9
  /* empty css */
@@ -72,6 +72,7 @@ const _sfc_main = {
72
72
  var _a, _b, _c, _d, _e;
73
73
  const _component_el_button = ElButton;
74
74
  const _component_el_page_header = ElPageHeader;
75
+ const _directive_fec_auth = resolveDirective("fec-auth");
75
76
  return ((_a = __props.pageHeaderConfig) == null ? void 0 : _a.enabled) && (unref(canBack) || ((_c = (_b = __props.pageHeaderConfig) == null ? void 0 : _b.actions) == null ? void 0 : _c.length) > 0) ? (openBlock(), createBlock(_component_el_page_header, {
76
77
  key: 0,
77
78
  icon: unref(canBack) ? unref(arrow_left_bold_default) : null,
@@ -93,7 +94,7 @@ const _sfc_main = {
93
94
  var _a2;
94
95
  return [
95
96
  (openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = __props.pageHeaderConfig) == null ? void 0 : _a2.actions, (action) => {
96
- return openBlock(), createBlock(_component_el_button, {
97
+ return withDirectives((openBlock(), createBlock(_component_el_button, {
97
98
  key: action.id,
98
99
  type: getButtonType(action.btnStyle),
99
100
  onClick: ($event) => handleActionClick(action)
@@ -102,7 +103,9 @@ const _sfc_main = {
102
103
  createTextVNode(toDisplayString(action.label), 1)
103
104
  ]),
104
105
  _: 2
105
- }, 1032, ["type", "onClick"]);
106
+ }, 1032, ["type", "onClick"])), [
107
+ [_directive_fec_auth, action.permission]
108
+ ]);
106
109
  }), 128))
107
110
  ];
108
111
  }),
@@ -112,7 +115,7 @@ const _sfc_main = {
112
115
  };
113
116
  }
114
117
  };
115
- const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-29cfb366"]]);
118
+ const component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a55fc4ab"]]);
116
119
  export {
117
120
  component as default
118
121
  };
@@ -861,6 +861,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
861
861
  const updatedLayoutData = cloneDeep(oriGridLayoutData.value || []);
862
862
  relevantConfigs.visibility.forEach((item) => {
863
863
  const dataLinkFieldList = item.dataLinkFieldList || [];
864
+ dataLinkFieldList.forEach((fieldId) => {
865
+ const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
866
+ if (layoutFieldItem) {
867
+ layoutFieldItem.hidden = true;
868
+ }
869
+ });
864
870
  if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
865
871
  dataLinkFieldList.forEach((fieldId) => {
866
872
  const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
@@ -868,17 +874,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
868
874
  layoutFieldItem.hidden = false;
869
875
  }
870
876
  });
871
- } else {
872
- dataLinkFieldList.forEach((fieldId) => {
873
- const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
874
- if (layoutFieldItem) {
875
- layoutFieldItem.hidden = true;
876
- }
877
- });
878
877
  }
879
878
  });
880
879
  relevantConfigs.required.forEach((item) => {
881
880
  const dataLinkFieldList = item.dataLinkFieldList || [];
881
+ dataLinkFieldList.forEach((fieldId) => {
882
+ const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
883
+ if (layoutFieldItem) {
884
+ layoutFieldItem.component.required = false;
885
+ }
886
+ });
882
887
  if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
883
888
  dataLinkFieldList.forEach((fieldId) => {
884
889
  const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
@@ -886,13 +891,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
886
891
  layoutFieldItem.component.required = true;
887
892
  }
888
893
  });
889
- } else {
890
- dataLinkFieldList.forEach((fieldId) => {
891
- const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
892
- if (layoutFieldItem) {
893
- layoutFieldItem.component.required = false;
894
- }
895
- });
896
894
  }
897
895
  });
898
896
  const rules = {};
@@ -910,6 +908,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
910
908
  formRules.value = rules;
911
909
  relevantConfigs.readonly.forEach((item) => {
912
910
  const dataLinkFieldList = item.dataLinkFieldList || [];
911
+ dataLinkFieldList.forEach((fieldId) => {
912
+ const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
913
+ if (layoutFieldItem) {
914
+ layoutFieldItem.component.readOnly = false;
915
+ }
916
+ });
913
917
  if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
914
918
  dataLinkFieldList.forEach((fieldId) => {
915
919
  const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
@@ -917,17 +921,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
917
921
  layoutFieldItem.component.readOnly = true;
918
922
  }
919
923
  });
920
- } else {
921
- dataLinkFieldList.forEach((fieldId) => {
922
- const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
923
- if (layoutFieldItem) {
924
- layoutFieldItem.component.readOnly = false;
925
- }
926
- });
927
924
  }
928
925
  });
929
926
  relevantConfigs.disabled.forEach((item) => {
930
927
  const dataLinkFieldList = item.dataLinkFieldList || [];
928
+ dataLinkFieldList.forEach((fieldId) => {
929
+ const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
930
+ if (layoutFieldItem) {
931
+ layoutFieldItem.component.disabled = false;
932
+ }
933
+ });
931
934
  if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
932
935
  dataLinkFieldList.forEach((fieldId) => {
933
936
  const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
@@ -935,13 +938,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
935
938
  layoutFieldItem.component.disabled = true;
936
939
  }
937
940
  });
938
- } else {
939
- dataLinkFieldList.forEach((fieldId) => {
940
- const layoutFieldItem = updatedLayoutData.find((g) => g.id == fieldId);
941
- if (layoutFieldItem) {
942
- layoutFieldItem.component.disabled = false;
943
- }
944
- });
945
941
  }
946
942
  });
947
943
  gridLayoutFieldsData.value = updatedLayoutData.filter((item) => !item.hidden);
@@ -1100,7 +1096,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
1100
1096
  };
1101
1097
  }
1102
1098
  });
1103
- const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-38bc8c5b"]]);
1099
+ const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-48d4542c"]]);
1104
1100
  export {
1105
1101
  _Form as default
1106
1102
  };
@@ -1,7 +1,7 @@
1
1
  import "../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { computed, createElementBlock, openBlock, createCommentVNode, createBlock, createVNode, withCtx, unref, toDisplayString, Fragment, renderList, createTextVNode } from "vue";
4
+ import { computed, resolveDirective, createElementBlock, openBlock, createCommentVNode, createBlock, createVNode, withCtx, unref, toDisplayString, Fragment, renderList, withDirectives, createTextVNode } from "vue";
5
5
  import "../../../../../node_modules/vxe-table/es/components.mjs";
6
6
  import { ArrowLeftBold as arrow_left_bold_default, Search as search_default, Edit as edit_default, Delete as delete_default, Plus as plus_default, Setting as setting_default, Download as download_default, Refresh as refresh_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
7
7
  import { getCurrentVueInstance } from "../../utils/getInstance.mjs";
@@ -109,6 +109,7 @@ const _sfc_main = {
109
109
  return (_ctx, _cache) => {
110
110
  const _component_el_icon = ElIcon;
111
111
  const _component_el_button = ElButton;
112
+ const _directive_fec_auth = resolveDirective("fec-auth");
112
113
  return openBlock(), createElementBlock("div", _hoisted_1, [
113
114
  __props.localConfig.showReturn ? (openBlock(), createElementBlock("div", {
114
115
  key: 0,
@@ -130,7 +131,7 @@ const _sfc_main = {
130
131
  }, {
131
132
  buttons: withCtx(() => [
132
133
  leftButtons.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(leftButtons.value, (btn) => {
133
- return openBlock(), createBlock(_component_el_button, {
134
+ return withDirectives((openBlock(), createBlock(_component_el_button, {
134
135
  key: btn.id,
135
136
  type: getBtnType(btn),
136
137
  icon: getBtnIcon(btn.btnType),
@@ -140,12 +141,14 @@ const _sfc_main = {
140
141
  createTextVNode(toDisplayString(btn.label), 1)
141
142
  ]),
142
143
  _: 2
143
- }, 1032, ["type", "icon", "onClick"]);
144
+ }, 1032, ["type", "icon", "onClick"])), [
145
+ [_directive_fec_auth, btn.permission]
146
+ ]);
144
147
  }), 128)) : createCommentVNode("", true)
145
148
  ]),
146
149
  tools: withCtx(() => [
147
150
  rightButtons.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(rightButtons.value, (btn) => {
148
- return openBlock(), createBlock(_component_el_button, {
151
+ return withDirectives((openBlock(), createBlock(_component_el_button, {
149
152
  key: btn.id,
150
153
  type: getBtnType(btn),
151
154
  icon: getBtnIcon(btn.btnType),
@@ -155,7 +158,9 @@ const _sfc_main = {
155
158
  createTextVNode(toDisplayString(btn.label), 1)
156
159
  ]),
157
160
  _: 2
158
- }, 1032, ["type", "icon", "onClick"]);
161
+ }, 1032, ["type", "icon", "onClick"])), [
162
+ [_directive_fec_auth, btn.permission]
163
+ ]);
159
164
  }), 128)) : createCommentVNode("", true)
160
165
  ]),
161
166
  _: 1
@@ -164,7 +169,7 @@ const _sfc_main = {
164
169
  };
165
170
  }
166
171
  };
167
- const CustomButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e370363e"]]);
172
+ const CustomButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7610c2d4"]]);
168
173
  export {
169
174
  CustomButtons as default
170
175
  };
@@ -15,7 +15,7 @@ import "../../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.
15
15
  /* empty css */
16
16
  /* empty css */
17
17
  import "../../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
18
- import { computed, ref, watch, createElementBlock, openBlock, createElementVNode, createVNode, createCommentVNode, withCtx, unref, toDisplayString, Fragment, renderList, createBlock, createSlots, createTextVNode, withDirectives, normalizeStyle, resolveDynamicComponent, mergeProps, vShow } from "vue";
18
+ import { computed, ref, watch, resolveDirective, createElementBlock, openBlock, createElementVNode, createVNode, createCommentVNode, withCtx, unref, toDisplayString, Fragment, renderList, createBlock, createSlots, createTextVNode, withDirectives, normalizeStyle, resolveDynamicComponent, mergeProps, vShow } from "vue";
19
19
  import { ArrowLeftBold as arrow_left_bold_default, Search as search_default, Edit as edit_default, Delete as delete_default, Plus as plus_default, Setting as setting_default, Download as download_default, Refresh as refresh_default } from "../../../../../node_modules/@element-plus/icons-vue/dist/index.mjs";
20
20
  import "../../../../../node_modules/vxe-table/es/components.mjs";
21
21
  import { Text } from "../forms/text/index.mjs";
@@ -265,6 +265,7 @@ const _sfc_main = {
265
265
  const _component_el_form_item = ElFormItem;
266
266
  const _component_el_form = ElForm;
267
267
  const _component_el_collapse_transition = ElCollapseTransition;
268
+ const _directive_fec_auth = resolveDirective("fec-auth");
268
269
  return openBlock(), createElementBlock("div", _hoisted_1, [
269
270
  createElementVNode("div", _hoisted_2, [
270
271
  __props.localConfig.showReturn ? (openBlock(), createElementBlock("div", _hoisted_3, [
@@ -327,7 +328,7 @@ const _sfc_main = {
327
328
  }, {
328
329
  tools: withCtx(() => [
329
330
  !__props.isSubTable && rightButtons.value.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(rightButtons.value, (btn) => {
330
- return openBlock(), createBlock(_component_el_button, {
331
+ return withDirectives((openBlock(), createBlock(_component_el_button, {
331
332
  key: btn.id,
332
333
  type: getBtnType(btn),
333
334
  icon: getBtnIcon(btn.btnType),
@@ -337,7 +338,9 @@ const _sfc_main = {
337
338
  createTextVNode(toDisplayString(btn.label), 1)
338
339
  ]),
339
340
  _: 2
340
- }, 1032, ["type", "icon", "onClick"]);
341
+ }, 1032, ["type", "icon", "onClick"])), [
342
+ [_directive_fec_auth, btn.permission]
343
+ ]);
341
344
  }), 128)) : createCommentVNode("", true)
342
345
  ]),
343
346
  _: 1
@@ -450,7 +453,7 @@ const _sfc_main = {
450
453
  };
451
454
  }
452
455
  };
453
- const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e93f2602"]]);
456
+ const DynamicQuery = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d11a831a"]]);
454
457
  export {
455
458
  DynamicQuery as default
456
459
  };
@@ -262,8 +262,24 @@ const _sfc_main = {
262
262
  if (!item.showCondition) return true;
263
263
  return checkFilterMatch(item.showCondition, row, props.fieldsData);
264
264
  });
265
- return btnList;
265
+ return btnList.filter((item) => {
266
+ return hasPerm(item.permission);
267
+ });
266
268
  };
269
+ function hasPerm(permission) {
270
+ if (permission === true || permission === void 0 || permission === "") {
271
+ return true;
272
+ }
273
+ let btnFlag = false;
274
+ const myBtns = window.$store.getters.funcAuthList;
275
+ for (let i in myBtns) {
276
+ if (myBtns[i] == permission) {
277
+ btnFlag = true;
278
+ break;
279
+ }
280
+ }
281
+ return btnFlag;
282
+ }
267
283
  const shouldShowOptColumn = computed(() => {
268
284
  if (!props.isOptBtns || !props.optBtns.length) return false;
269
285
  if (!props.tableData || props.tableData.length === 0) return true;
@@ -274,15 +290,35 @@ const _sfc_main = {
274
290
  return checkFilterMatch(item.disableCondition, row, props.fieldsData);
275
291
  };
276
292
  const optColumnWidth = computed(() => {
277
- const padding = 20;
278
- const btnWidth = 60;
293
+ const padding = 12;
294
+ const labelWidth = 14;
295
+ const labelMargin = 18;
279
296
  if (!props.tableData || props.tableData.length === 0) {
280
- return props.optBtns.length * btnWidth + padding;
297
+ let labelLength = 0;
298
+ props.optBtns.forEach((btn) => {
299
+ labelLength += btn.label.length;
300
+ });
301
+ if (labelLength > 0) {
302
+ return labelLength * labelWidth + (props.optBtns.length - 1) * labelMargin + padding * 2 + 6;
303
+ }
304
+ return 0;
281
305
  }
306
+ let maxBtnLength = 0;
282
307
  const maxVisibleBtns = Math.max(
283
- ...props.tableData.map((row) => getVisibleOptBtns(row).length)
308
+ ...props.tableData.map((row) => {
309
+ const btnList = getVisibleOptBtns(row);
310
+ if (btnList.length > maxBtnLength) {
311
+ maxBtnLength = btnList.length;
312
+ }
313
+ let labelLength = 0;
314
+ btnList.forEach((btn) => {
315
+ labelLength += btn.label.length;
316
+ });
317
+ return labelLength;
318
+ })
284
319
  );
285
- return Math.max(maxVisibleBtns, 1) * btnWidth + padding;
320
+ const maxLength = Math.max(maxVisibleBtns, 1);
321
+ return maxLength * labelWidth + (maxBtnLength - 1) * labelMargin + padding * 2 + 6;
286
322
  });
287
323
  const { handleEvent } = useEventFlow({
288
324
  fields: props.fieldsData,
@@ -409,7 +445,7 @@ const _sfc_main = {
409
445
  };
410
446
  }
411
447
  };
412
- const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3e5372d4"]]);
448
+ const TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-77be03fc"]]);
413
449
  export {
414
450
  TableColumn as default
415
451
  };
@@ -0,0 +1,29 @@
1
+ const auth = {
2
+ mounted(el, binding, vnode, prevVnode) {
3
+ const permission = binding.value;
4
+ const btnFlag = auth.hasPerm(permission);
5
+ if (!btnFlag) {
6
+ el.parentNode.removeChild(el);
7
+ }
8
+ },
9
+ hasPerm(permission) {
10
+ if (permission === true || permission === void 0 || permission === "") {
11
+ return true;
12
+ }
13
+ let btnFlag = false;
14
+ const myBtns = window.$store.getters.funcAuthList;
15
+ for (let i in myBtns) {
16
+ if (myBtns[i] === permission) {
17
+ btnFlag = true;
18
+ break;
19
+ }
20
+ }
21
+ return btnFlag;
22
+ }
23
+ };
24
+ auth.install = function(Vue) {
25
+ Vue.directive("fec-auth", auth);
26
+ };
27
+ export {
28
+ auth as default
29
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.4.76";
3
+ const version = "5.4.78";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -11,7 +11,7 @@ require("../../../node_modules/element-plus/es/index.js");
11
11
  ;/* empty css */
12
12
  const vue = require("vue");
13
13
  const index$2 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
14
- const ValueSelector = require("./ValueSelector.vue2.js");
14
+ const ValueSelector = require("./ValueSelector.vue.js");
15
15
  const index = require("../api/index.js");
16
16
  ;/* empty css */
17
17
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
@@ -6,7 +6,7 @@ require("../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const vue = require("vue");
8
8
  const index$1 = require("../../../node_modules/@element-plus/icons-vue/dist/index.js");
9
- const ValueSelector = require("./ValueSelector.vue2.js");
9
+ const ValueSelector = require("./ValueSelector.vue.js");
10
10
  ;/* empty css */
11
11
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
12
12
  const index = require("../../../node_modules/element-plus/es/components/button/index.js");
@@ -18,7 +18,7 @@ const index$2 = require("../../../../node_modules/@element-plus/icons-vue/dist/i
18
18
  const common = require("../../packages/utils/common.js");
19
19
  const index$5 = require("../../packages/form/aside/index.js");
20
20
  const index$6 = require("../../packages/table/aside/index.js");
21
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
21
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
22
22
  ;/* empty css */
23
23
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
24
24
  const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
@@ -16,7 +16,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
16
16
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
17
17
  const vue = require("vue");
18
18
  const index = require("../../../../node_modules/@vueuse/core/dist/index.js");
19
- const ValueSelector = require("../../components/ValueSelector.vue2.js");
19
+ const ValueSelector = require("../../components/ValueSelector.vue.js");
20
20
  const index$1 = require("../../api/index.js");
21
21
  const common = require("../utils/common.js");
22
22
  const datasource = require("../utils/datasource.js");
@@ -32,7 +32,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
32
32
  ;/* empty css */
33
33
  ;/* empty css */
34
34
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
35
- ;/* empty css */
35
+ ;/* empty css */
36
36
  require("../../axios/config.js");
37
37
  require("../../../../_virtual/FileSaver.min.js");
38
38
  require("../../../../_virtual/index.js");
@@ -984,5 +984,5 @@ const _sfc_main = {
984
984
  };
985
985
  }
986
986
  };
987
- const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-90bb67fd"]]);
987
+ const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-24bfc32a"]]);
988
988
  exports.default = DialogDialog;
@@ -984,5 +984,5 @@ const _sfc_main = {
984
984
  };
985
985
  }
986
986
  };
987
- const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-90bb67fd"]]);
987
+ const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-24bfc32a"]]);
988
988
  exports.default = DialogDialog;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = vue.ref(false);
@@ -86,7 +86,7 @@ const widgets = require("../table/property/widgets.vue.js");
86
86
  require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
87
  ;/* empty css */
88
88
  ;/* empty css */
89
- ;/* empty css */
89
+ ;/* empty css */
90
90
  ;/* empty css */
91
91
  ;/* empty css */
92
92
  ;/* empty css */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue.js");
3
+ const index = require("./index.vue2.js");
4
4
  const vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = vue.ref(false);
@@ -6,7 +6,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
6
6
  ;/* empty css */
7
7
  const vue = require("vue");
8
8
  const RiskSchemeSelector = require("../../../../components/RiskSchemeSelector.vue2.js");
9
- const ValueSelector = require("../../../../components/ValueSelector.vue2.js");
9
+ const ValueSelector = require("../../../../components/ValueSelector.vue.js");
10
10
  const ParamsConfig = require("../../../../components/ParamsConfig.vue2.js");
11
11
  const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
12
12
  const index$1 = require("../../../../../../node_modules/element-plus/es/components/switch/index.js");