@fecp/designer 5.5.110 β†’ 5.5.112

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 (43) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  3. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  4. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  5. package/es/designer.css +284 -138
  6. package/es/packages/mobile/index.mjs +0 -2
  7. package/es/packages/mobile/src/components/all.mjs +2 -2
  8. package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +38 -10
  9. package/es/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.mjs +340 -0
  10. package/es/packages/mobile/src/components/custom/appTimeLine/index.mjs +10 -0
  11. package/es/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.mjs +142 -62
  12. package/es/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.mjs +7 -6
  13. package/es/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.mjs +168 -52
  14. package/es/packages/mobile/src/components/custom/timeLineFilter/index.mjs +1 -5
  15. package/es/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.mjs +2 -2
  16. package/es/packages/mobile/src/components/navigation/navBar/NavBar.vue.mjs +2 -2
  17. package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +15 -7
  18. package/es/packages/mobile/src/index.vue.mjs +3 -3
  19. package/es/packages/mobile/src/page.vue.mjs +53 -3
  20. package/es/packages/vue/src/components/layout/Layout.vue.mjs +1 -1
  21. package/es/packages/vue/src/utils/datasource.mjs +5 -1
  22. package/lib/designer/package.json.js +1 -1
  23. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  24. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  25. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  26. package/lib/designer.css +284 -138
  27. package/lib/packages/mobile/index.js +8 -10
  28. package/lib/packages/mobile/src/components/all.js +8 -8
  29. package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +37 -9
  30. package/lib/packages/mobile/src/components/custom/appTimeLine/AppTimeLine.vue.js +340 -0
  31. package/lib/packages/mobile/src/components/custom/appTimeLine/index.js +10 -0
  32. package/lib/packages/mobile/src/components/custom/approvalBar/ApprovalBar.vue.js +141 -61
  33. package/lib/packages/mobile/src/components/custom/approvalList/ApprovalCard.vue.js +7 -6
  34. package/lib/packages/mobile/src/components/custom/approvalList/ApprovalList.vue.js +168 -52
  35. package/lib/packages/mobile/src/components/custom/timeLineFilter/index.js +1 -4
  36. package/lib/packages/mobile/src/components/dataDisplay/menuGrid/MenuGrid.vue.js +2 -2
  37. package/lib/packages/mobile/src/components/navigation/navBar/NavBar.vue.js +2 -2
  38. package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +14 -6
  39. package/lib/packages/mobile/src/index.vue.js +3 -3
  40. package/lib/packages/mobile/src/page.vue.js +53 -3
  41. package/lib/packages/vue/src/components/layout/Layout.vue.js +1 -1
  42. package/lib/packages/vue/src/utils/datasource.js +5 -1
  43. package/package.json +1 -1
@@ -1,10 +1,6 @@
1
1
  import _TimeLineFilter from "./TimeLineFilter.vue.mjs";
2
2
  import install from "../../../utils/install.mjs";
3
- const MobileTimeLineFilter = install.withInstall(
3
+ install.withInstall(
4
4
  "MobileTimeLineFilter",
5
5
  _TimeLineFilter
6
6
  );
7
- export {
8
- MobileTimeLineFilter,
9
- MobileTimeLineFilter as default
10
- };
@@ -60,7 +60,7 @@ const _sfc_main = {
60
60
  setup(__props) {
61
61
  function clickHandler(item) {
62
62
  console.log("πŸš€ ~ clickHandler ~ item:", item);
63
- emitter.emit("loadPage", item.pageId);
63
+ emitter.emit("loadPage", { pageId: item.pageId });
64
64
  }
65
65
  return (_ctx, _cache) => {
66
66
  const _component_van_icon = Icon;
@@ -117,7 +117,7 @@ const _sfc_main = {
117
117
  };
118
118
  }
119
119
  };
120
- const _MenuGrid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cf276af8"]]);
120
+ const _MenuGrid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-969abf4b"]]);
121
121
  export {
122
122
  _MenuGrid as default
123
123
  };
@@ -32,7 +32,7 @@ const _sfc_main = {
32
32
  const onClickLeft = () => {
33
33
  const prevPage = pageHistory.back();
34
34
  if (prevPage) {
35
- emitter.emit("loadPage", prevPage.id);
35
+ emitter.emit("loadPage", { pageId: prevPage.id });
36
36
  }
37
37
  };
38
38
  return (_ctx, _cache) => {
@@ -58,7 +58,7 @@ const _sfc_main = {
58
58
  };
59
59
  }
60
60
  };
61
- const _NavBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f6340561"]]);
61
+ const _NavBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-21560c5f"]]);
62
62
  export {
63
63
  _NavBar as default
64
64
  };
@@ -5,7 +5,7 @@
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import { inject, computed, createElementBlock, openBlock, normalizeStyle, unref, createVNode, isRef, withCtx, Fragment, renderList, createBlock, mergeProps, createElementVNode, createCommentVNode } from "vue";
8
+ import { inject, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createVNode, isRef, withCtx, Fragment, renderList, createBlock, mergeProps, createElementVNode, createCommentVNode, resolveDynamicComponent } from "vue";
9
9
  import { findPageById } from "../../../utils/common.mjs";
10
10
  import MobilePage from "../../../page.vue.mjs";
11
11
  /* empty css */
@@ -37,6 +37,10 @@ const _sfc_main = {
37
37
  //高度
38
38
  type: String,
39
39
  default: "300"
40
+ },
41
+ swipeable: {
42
+ type: Boolean,
43
+ default: true
40
44
  }
41
45
  },
42
46
  emits: ["update:modelValue"],
@@ -76,7 +80,7 @@ const _sfc_main = {
76
80
  const _component_van_tab = Tab;
77
81
  const _component_van_tabs = Tabs;
78
82
  return openBlock(), createElementBlock("div", {
79
- class: "fec-tabs-container",
83
+ class: normalizeClass(["fec-tabs-container", { isAutoHeight: props.autoHeight }]),
80
84
  style: normalizeStyle("height:" + unref(compHeight))
81
85
  }, [
82
86
  createVNode(_component_van_tabs, {
@@ -84,7 +88,8 @@ const _sfc_main = {
84
88
  class: "fec-tabs",
85
89
  active: unref(activeName),
86
90
  "onUpdate:active": _cache[0] || (_cache[0] = ($event) => isRef(activeName) ? activeName.value = $event : null),
87
- "lazy-render": ""
91
+ "lazy-render": "",
92
+ swipeable: __props.swipeable
88
93
  }, {
89
94
  default: withCtx(() => [
90
95
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
@@ -99,7 +104,10 @@ const _sfc_main = {
99
104
  key: 0,
100
105
  parentPage: getPage(item.pageId),
101
106
  params: __props.params
102
- }, null, 8, ["parentPage", "params"])) : createCommentVNode("", true)
107
+ }, null, 8, ["parentPage", "params"])) : item.component ? (openBlock(), createBlock(resolveDynamicComponent(item.component), mergeProps({
108
+ key: 1,
109
+ ref_for: true
110
+ }, __props.params), null, 16)) : createCommentVNode("", true)
103
111
  ])
104
112
  ]),
105
113
  _: 2
@@ -107,12 +115,12 @@ const _sfc_main = {
107
115
  }), 256))
108
116
  ]),
109
117
  _: 1
110
- }, 8, ["active"])
111
- ], 4);
118
+ }, 8, ["active", "swipeable"])
119
+ ], 6);
112
120
  };
113
121
  }
114
122
  };
115
- const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3ac885e8"]]);
123
+ const _Tabs = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a1eb48e"]]);
116
124
  export {
117
125
  _Tabs as default
118
126
  };
@@ -98,9 +98,9 @@ const _sfc_main = {
98
98
  }
99
99
  }
100
100
  const pageParams = ref({});
101
- emitter.on("loadPage", (pageId, params) => {
101
+ emitter.on("loadPage", ({ pageId, params }) => {
102
102
  loadPage(pageId);
103
- pageParams.value = params || { applyId: "7a16522c29e047d1be80e884773a87ac" };
103
+ pageParams.value = params;
104
104
  });
105
105
  provide("pageList", pageList);
106
106
  onMounted(() => {
@@ -132,7 +132,7 @@ const _sfc_main = {
132
132
  };
133
133
  }
134
134
  };
135
- const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4e4cf5f1"]]);
135
+ const MobileApp = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0782fee1"]]);
136
136
  export {
137
137
  MobileApp as default
138
138
  };
@@ -137,6 +137,55 @@ const _sfc_main = {
137
137
  year: "YYYY",
138
138
  datetime: "YYYY/MM/DD HH:mm:ss"
139
139
  };
140
+ const getFormData = () => {
141
+ const result = { ...formData.value };
142
+ const processField = (field) => {
143
+ const fieldName = field.fieldName;
144
+ const fieldType = field.fieldType;
145
+ const value = result[fieldName];
146
+ if (fieldName && (fieldType === "checkbox" || fieldType === "multipleSelection" || fieldType === "cascader" || fieldType === "area" || fieldType === "industry")) {
147
+ let splitStr = "|";
148
+ if (fieldType === "cascader" || fieldType === "area" || fieldType === "industry") {
149
+ splitStr = ",";
150
+ }
151
+ if (Array.isArray(value)) {
152
+ result[fieldName] = value.join(splitStr);
153
+ }
154
+ } else if (fieldName && fieldType === "date" && value) {
155
+ const dateValueType = field.dateValueType;
156
+ const valueFormat = valueFormatMap[field.dateType] || "YYYYMMDD";
157
+ const formValueFormat = formValueFormatMap[field.dateType] || "YYYY/MM/DD";
158
+ switch (dateValueType) {
159
+ case "date":
160
+ result[fieldName] = hooks(value, formValueFormat).toDate();
161
+ break;
162
+ case "timestamp":
163
+ result[fieldName] = hooks(value, formValueFormat).valueOf();
164
+ break;
165
+ case "string":
166
+ default:
167
+ result[fieldName] = hooks(value, formValueFormat).format(
168
+ valueFormat
169
+ );
170
+ break;
171
+ }
172
+ }
173
+ if (fieldType != "number" && !result[fieldName]) {
174
+ result[fieldName] = "";
175
+ }
176
+ };
177
+ if (fieldsData.value) {
178
+ fieldsData.value.forEach((component) => {
179
+ processField(component);
180
+ });
181
+ }
182
+ if (hiddenFields.value && hiddenFields.value.length > 0) {
183
+ hiddenFields.value.forEach((field) => {
184
+ processField(field);
185
+ });
186
+ }
187
+ return result;
188
+ };
140
189
  const setFormData = (data) => {
141
190
  const processedData = { ...data };
142
191
  const processField = (field) => {
@@ -198,7 +247,8 @@ const _sfc_main = {
198
247
  });
199
248
  };
200
249
  __expose({
201
- setFormData
250
+ setFormData,
251
+ getFormData
202
252
  });
203
253
  return (_ctx, _cache) => {
204
254
  const _component_FecMobileNavBar = resolveComponent("FecMobileNavBar");
@@ -226,7 +276,7 @@ const _sfc_main = {
226
276
  ], 64)) : __props.parentPage.type == "approval" ? (openBlock(), createBlock(_component_FecMobileAppDetail, mergeProps({ key: 1 }, __props.parentPage.layoutData.appDetailProps, {
227
277
  actionBar: __props.parentPage.layoutData.actionBar,
228
278
  params: __props.params
229
- }), null, 16, ["actionBar", "params"])) : __props.parentPage.type == "flowList" ? (openBlock(), createBlock(_component_FecMobileApprovalList, { key: 2 })) : (openBlock(), createBlock(unref(De), {
279
+ }), null, 16, ["actionBar", "params"])) : __props.parentPage.type == "flowList" ? (openBlock(), createBlock(_component_FecMobileApprovalList, normalizeProps(mergeProps({ key: 2 }, __props.parentPage.layoutData.approvalListProps)), null, 16)) : (openBlock(), createBlock(unref(De), {
230
280
  key: 3,
231
281
  ref_key: "gridLayout",
232
282
  ref: gridLayout,
@@ -266,7 +316,7 @@ const _sfc_main = {
266
316
  };
267
317
  }
268
318
  };
269
- const MobilePage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e6130bde"]]);
319
+ const MobilePage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aed6b9dc"]]);
270
320
  export {
271
321
  MobilePage as default
272
322
  };
@@ -96,7 +96,7 @@ const _sfc_main = {
96
96
  };
97
97
  }
98
98
  };
99
- const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-269d36e1"]]);
99
+ const _Layout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6577a2a1"]]);
100
100
  export {
101
101
  _Layout as default
102
102
  };
@@ -155,7 +155,11 @@ class DataSourceManager {
155
155
  break;
156
156
  case "post":
157
157
  if (this.notShowMessage) {
158
- response = await this.http.postNoMessage(url, params);
158
+ if (currentDs.contentType === "formData") {
159
+ response = await this.http.postFormNoMessage(url, params);
160
+ } else {
161
+ response = await this.http.postNoMessage(url, params);
162
+ }
159
163
  } else if (currentDs.contentType === "formData") {
160
164
  response = await this.http.postForm(url, params);
161
165
  } else if (currentDs.contentType === "download") {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const version = "5.5.110";
3
+ const version = "5.5.112";
4
4
  const packageJson = {
5
5
  version
6
6
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogDialog() {
6
6
  const dialogDialogVisible = Vue.ref(false);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index.vue2.js");
3
+ const index = require("./index.vue.js");
4
4
  const Vue = require("vue");
5
5
  function useDialogGlobalDialog() {
6
6
  const dialogGlobalDialogVisible = Vue.ref(false);
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
54
54
  require("../../../components/TemplateSelector.vue.js");
55
55
  require("../../table/default.js");
56
56
  ;/* empty css */
57
- ;/* empty css */
58
- ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
59
  require("../../../store/index.js");
60
60
  ;/* empty css */
61
61
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");