@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,7 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
2
  const TimeLineFilter = require("./TimeLineFilter.vue.js");
4
3
  const install = require("../../../utils/install.js");
5
- const MobileTimeLineFilter = install.default.withInstall(
4
+ install.default.withInstall(
6
5
  "MobileTimeLineFilter",
7
6
  TimeLineFilter.default
8
7
  );
9
- exports.MobileTimeLineFilter = MobileTimeLineFilter;
10
- exports.default = MobileTimeLineFilter;
@@ -62,7 +62,7 @@ const _sfc_main = {
62
62
  setup(__props) {
63
63
  function clickHandler(item) {
64
64
  console.log("πŸš€ ~ clickHandler ~ item:", item);
65
- eventBus.default.emit("loadPage", item.pageId);
65
+ eventBus.default.emit("loadPage", { pageId: item.pageId });
66
66
  }
67
67
  return (_ctx, _cache) => {
68
68
  const _component_van_icon = index.Icon;
@@ -119,5 +119,5 @@ const _sfc_main = {
119
119
  };
120
120
  }
121
121
  };
122
- const _MenuGrid = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-cf276af8"]]);
122
+ const _MenuGrid = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-969abf4b"]]);
123
123
  exports.default = _MenuGrid;
@@ -34,7 +34,7 @@ const _sfc_main = {
34
34
  const onClickLeft = () => {
35
35
  const prevPage = pageHistory.pageHistory.back();
36
36
  if (prevPage) {
37
- eventBus.default.emit("loadPage", prevPage.id);
37
+ eventBus.default.emit("loadPage", { pageId: prevPage.id });
38
38
  }
39
39
  };
40
40
  return (_ctx, _cache) => {
@@ -60,5 +60,5 @@ const _sfc_main = {
60
60
  };
61
61
  }
62
62
  };
63
- const _NavBar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f6340561"]]);
63
+ const _NavBar = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-21560c5f"]]);
64
64
  exports.default = _NavBar;
@@ -39,6 +39,10 @@ const _sfc_main = {
39
39
  //高度
40
40
  type: String,
41
41
  default: "300"
42
+ },
43
+ swipeable: {
44
+ type: Boolean,
45
+ default: true
42
46
  }
43
47
  },
44
48
  emits: ["update:modelValue"],
@@ -78,7 +82,7 @@ const _sfc_main = {
78
82
  const _component_van_tab = index$1.Tab;
79
83
  const _component_van_tabs = index.Tabs;
80
84
  return Vue.openBlock(), Vue.createElementBlock("div", {
81
- class: "fec-tabs-container",
85
+ class: Vue.normalizeClass(["fec-tabs-container", { isAutoHeight: props.autoHeight }]),
82
86
  style: Vue.normalizeStyle("height:" + Vue.unref(compHeight))
83
87
  }, [
84
88
  Vue.createVNode(_component_van_tabs, {
@@ -86,7 +90,8 @@ const _sfc_main = {
86
90
  class: "fec-tabs",
87
91
  active: Vue.unref(activeName),
88
92
  "onUpdate:active": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null),
89
- "lazy-render": ""
93
+ "lazy-render": "",
94
+ swipeable: __props.swipeable
90
95
  }, {
91
96
  default: Vue.withCtx(() => [
92
97
  (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.options, (item) => {
@@ -101,7 +106,10 @@ const _sfc_main = {
101
106
  key: 0,
102
107
  parentPage: getPage(item.pageId),
103
108
  params: __props.params
104
- }, null, 8, ["parentPage", "params"])) : Vue.createCommentVNode("", true)
109
+ }, null, 8, ["parentPage", "params"])) : item.component ? (Vue.openBlock(), Vue.createBlock(Vue.resolveDynamicComponent(item.component), Vue.mergeProps({
110
+ key: 1,
111
+ ref_for: true
112
+ }, __props.params), null, 16)) : Vue.createCommentVNode("", true)
105
113
  ])
106
114
  ]),
107
115
  _: 2
@@ -109,10 +117,10 @@ const _sfc_main = {
109
117
  }), 256))
110
118
  ]),
111
119
  _: 1
112
- }, 8, ["active"])
113
- ], 4);
120
+ }, 8, ["active", "swipeable"])
121
+ ], 6);
114
122
  };
115
123
  }
116
124
  };
117
- const _Tabs = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-3ac885e8"]]);
125
+ const _Tabs = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1a1eb48e"]]);
118
126
  exports.default = _Tabs;
@@ -100,9 +100,9 @@ const _sfc_main = {
100
100
  }
101
101
  }
102
102
  const pageParams = Vue.ref({});
103
- eventBus.default.on("loadPage", (pageId, params) => {
103
+ eventBus.default.on("loadPage", ({ pageId, params }) => {
104
104
  loadPage(pageId);
105
- pageParams.value = params || { applyId: "7a16522c29e047d1be80e884773a87ac" };
105
+ pageParams.value = params;
106
106
  });
107
107
  Vue.provide("pageList", pageList);
108
108
  Vue.onMounted(() => {
@@ -134,5 +134,5 @@ const _sfc_main = {
134
134
  };
135
135
  }
136
136
  };
137
- const MobileApp = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4e4cf5f1"]]);
137
+ const MobileApp = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-0782fee1"]]);
138
138
  exports.default = MobileApp;
@@ -139,6 +139,55 @@ const _sfc_main = {
139
139
  year: "YYYY",
140
140
  datetime: "YYYY/MM/DD HH:mm:ss"
141
141
  };
142
+ const getFormData = () => {
143
+ const result = { ...formData.value };
144
+ const processField = (field) => {
145
+ const fieldName = field.fieldName;
146
+ const fieldType = field.fieldType;
147
+ const value = result[fieldName];
148
+ if (fieldName && (fieldType === "checkbox" || fieldType === "multipleSelection" || fieldType === "cascader" || fieldType === "area" || fieldType === "industry")) {
149
+ let splitStr = "|";
150
+ if (fieldType === "cascader" || fieldType === "area" || fieldType === "industry") {
151
+ splitStr = ",";
152
+ }
153
+ if (Array.isArray(value)) {
154
+ result[fieldName] = value.join(splitStr);
155
+ }
156
+ } else if (fieldName && fieldType === "date" && value) {
157
+ const dateValueType = field.dateValueType;
158
+ const valueFormat = valueFormatMap[field.dateType] || "YYYYMMDD";
159
+ const formValueFormat = formValueFormatMap[field.dateType] || "YYYY/MM/DD";
160
+ switch (dateValueType) {
161
+ case "date":
162
+ result[fieldName] = moment.default(value, formValueFormat).toDate();
163
+ break;
164
+ case "timestamp":
165
+ result[fieldName] = moment.default(value, formValueFormat).valueOf();
166
+ break;
167
+ case "string":
168
+ default:
169
+ result[fieldName] = moment.default(value, formValueFormat).format(
170
+ valueFormat
171
+ );
172
+ break;
173
+ }
174
+ }
175
+ if (fieldType != "number" && !result[fieldName]) {
176
+ result[fieldName] = "";
177
+ }
178
+ };
179
+ if (fieldsData.value) {
180
+ fieldsData.value.forEach((component) => {
181
+ processField(component);
182
+ });
183
+ }
184
+ if (hiddenFields.value && hiddenFields.value.length > 0) {
185
+ hiddenFields.value.forEach((field) => {
186
+ processField(field);
187
+ });
188
+ }
189
+ return result;
190
+ };
142
191
  const setFormData = (data) => {
143
192
  const processedData = { ...data };
144
193
  const processField = (field) => {
@@ -200,7 +249,8 @@ const _sfc_main = {
200
249
  });
201
250
  };
202
251
  __expose({
203
- setFormData
252
+ setFormData,
253
+ getFormData
204
254
  });
205
255
  return (_ctx, _cache) => {
206
256
  const _component_FecMobileNavBar = Vue.resolveComponent("FecMobileNavBar");
@@ -228,7 +278,7 @@ const _sfc_main = {
228
278
  ], 64)) : __props.parentPage.type == "approval" ? (Vue.openBlock(), Vue.createBlock(_component_FecMobileAppDetail, Vue.mergeProps({ key: 1 }, __props.parentPage.layoutData.appDetailProps, {
229
279
  actionBar: __props.parentPage.layoutData.actionBar,
230
280
  params: __props.params
231
- }), null, 16, ["actionBar", "params"])) : __props.parentPage.type == "flowList" ? (Vue.openBlock(), Vue.createBlock(_component_FecMobileApprovalList, { key: 2 })) : (Vue.openBlock(), Vue.createBlock(Vue.unref(gridLayout_vue.default), {
281
+ }), null, 16, ["actionBar", "params"])) : __props.parentPage.type == "flowList" ? (Vue.openBlock(), Vue.createBlock(_component_FecMobileApprovalList, Vue.normalizeProps(Vue.mergeProps({ key: 2 }, __props.parentPage.layoutData.approvalListProps)), null, 16)) : (Vue.openBlock(), Vue.createBlock(Vue.unref(gridLayout_vue.default), {
232
282
  key: 3,
233
283
  ref_key: "gridLayout",
234
284
  ref: gridLayout,
@@ -268,5 +318,5 @@ const _sfc_main = {
268
318
  };
269
319
  }
270
320
  };
271
- const MobilePage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e6130bde"]]);
321
+ const MobilePage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-aed6b9dc"]]);
272
322
  exports.default = MobilePage;
@@ -98,5 +98,5 @@ const _sfc_main = {
98
98
  };
99
99
  }
100
100
  };
101
- const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-269d36e1"]]);
101
+ const _Layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-6577a2a1"]]);
102
102
  exports.default = _Layout;
@@ -157,7 +157,11 @@ class DataSourceManager {
157
157
  break;
158
158
  case "post":
159
159
  if (this.notShowMessage) {
160
- response = await this.http.postNoMessage(url, params);
160
+ if (currentDs.contentType === "formData") {
161
+ response = await this.http.postFormNoMessage(url, params);
162
+ } else {
163
+ response = await this.http.postNoMessage(url, params);
164
+ }
161
165
  } else if (currentDs.contentType === "formData") {
162
166
  response = await this.http.postForm(url, params);
163
167
  } else if (currentDs.contentType === "download") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecp/designer",
3
- "version": "5.5.110",
3
+ "version": "5.5.112",
4
4
  "main": "lib/designer/index.js",
5
5
  "module": "es/designer/index.mjs",
6
6
  "files": [