@fecp/designer 5.5.99 → 5.5.101
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/es/designer/package.json.mjs +1 -1
- package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
- package/es/designer/src/components/FieldSetMapping.vue2.mjs +1 -2
- package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
- package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
- package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
- package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
- package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
- package/es/designer/src/packages/form/components/ComponentPreviewWrapper.vue.mjs +23 -11
- package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +106 -82
- package/es/designer/src/packages/prod/index.vue.mjs +1 -1
- package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
- package/es/designer.css +179 -156
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/mobile/src/components/custom/appDetail/AppDetail.vue.mjs +51 -15
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +3 -3
- package/es/packages/mobile/src/components/navigation/tabs/Tabs.vue.mjs +33 -8
- package/es/packages/mobile/src/index.vue.mjs +4 -17
- package/es/packages/mobile/src/page.vue.mjs +12 -3
- package/es/packages/mobile/src/utils/common.mjs +15 -0
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +11 -2
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +22 -5
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +8 -7
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DocumentParam.vue.js +1 -1
- package/lib/designer/src/components/FieldSetMapping.vue2.js +1 -2
- package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
- package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
- package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
- package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
- package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
- package/lib/designer/src/packages/form/components/ComponentPreviewWrapper.vue.js +25 -13
- package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
- package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
- package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +106 -82
- package/lib/designer/src/packages/prod/index.vue.js +1 -1
- package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
- package/lib/designer.css +179 -156
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/mobile/src/components/custom/appDetail/AppDetail.vue.js +50 -14
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +3 -3
- package/lib/packages/mobile/src/components/navigation/tabs/Tabs.vue.js +32 -7
- package/lib/packages/mobile/src/index.vue.js +4 -17
- package/lib/packages/mobile/src/page.vue.js +12 -3
- package/lib/packages/mobile/src/utils/common.js +15 -0
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +11 -2
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +23 -6
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +7 -6
- package/package.json +1 -1
|
@@ -8,13 +8,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const Vue = require("vue");
|
|
11
|
+
;/* empty css */
|
|
12
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
11
13
|
;/* empty css */
|
|
12
14
|
;/* empty css */
|
|
13
15
|
;/* empty css */
|
|
14
16
|
;/* empty css */
|
|
15
17
|
;/* empty css */
|
|
16
|
-
;/* empty css */
|
|
17
|
-
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
18
18
|
const index$1 = require("../../../../node_modules/vant/es/swipe-cell/index.js");
|
|
19
19
|
const functionCall = require("../../../../node_modules/vant/es/dialog/function-call.js");
|
|
20
20
|
require("../../../../node_modules/vant/es/dialog/index.js");
|
|
@@ -3,31 +3,67 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const Vue = require("vue");
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const _hoisted_1 = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "route-wrapper"
|
|
9
|
-
};
|
|
10
6
|
const _sfc_main = {
|
|
11
7
|
__name: "AppDetail",
|
|
12
8
|
props: {
|
|
13
|
-
|
|
9
|
+
baseInfoPageSource: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "dynamic"
|
|
12
|
+
},
|
|
13
|
+
baseInfoPageId: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
options: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: []
|
|
20
|
+
},
|
|
21
|
+
document: {
|
|
14
22
|
type: Boolean,
|
|
15
23
|
default: false
|
|
16
24
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
default: {}
|
|
25
|
+
approvalHistory: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
21
28
|
}
|
|
22
29
|
},
|
|
23
30
|
setup(__props) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const activeName = Vue.ref("tab_base_info");
|
|
33
|
+
const baseInfoPageId = Vue.ref("");
|
|
34
|
+
if (props.baseInfoPageSource == "dynamic") ;
|
|
35
|
+
else {
|
|
36
|
+
baseInfoPageId.value = props.baseInfoPageId;
|
|
37
|
+
}
|
|
38
|
+
const tabsOptions = Vue.computed(() => {
|
|
39
|
+
const tabs = [
|
|
40
|
+
{
|
|
41
|
+
id: "tab_base_info",
|
|
42
|
+
title: "基本信息",
|
|
43
|
+
pageId: baseInfoPageId.value
|
|
44
|
+
},
|
|
45
|
+
...props.options || []
|
|
46
|
+
];
|
|
47
|
+
if (props.document) {
|
|
48
|
+
tabs.push({ id: "tab_doc_info", title: "要件信息" });
|
|
49
|
+
}
|
|
50
|
+
if (props.approvalHistory) {
|
|
51
|
+
tabs.push({ id: "tab_timeline_info", title: "审批历史" });
|
|
52
|
+
}
|
|
53
|
+
return tabs;
|
|
54
|
+
});
|
|
55
|
+
Vue.computed(() => {
|
|
56
|
+
return tabsOptions.value.find((item) => item.id == activeName.value);
|
|
57
|
+
});
|
|
24
58
|
return (_ctx, _cache) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Vue.
|
|
28
|
-
|
|
59
|
+
const _component_FecMobileTabs = Vue.resolveComponent("FecMobileTabs");
|
|
60
|
+
return Vue.openBlock(), Vue.createBlock(_component_FecMobileTabs, {
|
|
61
|
+
modelValue: Vue.unref(activeName),
|
|
62
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null),
|
|
63
|
+
options: Vue.unref(tabsOptions)
|
|
64
|
+
}, null, 8, ["modelValue", "options"]);
|
|
29
65
|
};
|
|
30
66
|
}
|
|
31
67
|
};
|
|
32
|
-
const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
68
|
+
const _AppDetail = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-9a63b182"]]);
|
|
33
69
|
exports.default = _AppDetail;
|
|
@@ -58,7 +58,7 @@ const _sfc_main = {
|
|
|
58
58
|
autoHeight: {
|
|
59
59
|
//高度自适应
|
|
60
60
|
type: Boolean,
|
|
61
|
-
default:
|
|
61
|
+
default: false
|
|
62
62
|
},
|
|
63
63
|
height: {
|
|
64
64
|
//高度
|
|
@@ -346,7 +346,7 @@ const _sfc_main = {
|
|
|
346
346
|
dataSourceManager.value.on("error", (err) => {
|
|
347
347
|
emit("data-error", err);
|
|
348
348
|
});
|
|
349
|
-
if (dataSourceManager.value
|
|
349
|
+
if (dataSourceManager.value) {
|
|
350
350
|
tableData.value = [];
|
|
351
351
|
if (props.isFixedHead) {
|
|
352
352
|
initLoading.value = true;
|
|
@@ -576,5 +576,5 @@ const _sfc_main = {
|
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
578
|
};
|
|
579
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
579
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-16d68bd3"]]);
|
|
580
580
|
exports.default = _Table;
|
|
@@ -8,6 +8,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
8
8
|
;/* empty css */
|
|
9
9
|
;/* empty css */
|
|
10
10
|
const Vue = require("vue");
|
|
11
|
+
const common = require("../../../utils/common.js");
|
|
12
|
+
const page = require("../../../page.vue.js");
|
|
11
13
|
;/* empty css */
|
|
12
14
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
13
15
|
const index = require("../../../../node_modules/vant/es/tabs/index.js");
|
|
@@ -39,6 +41,7 @@ const _sfc_main = {
|
|
|
39
41
|
setup(__props, { emit: __emit }) {
|
|
40
42
|
const props = __props;
|
|
41
43
|
const emit = __emit;
|
|
44
|
+
const pageList = Vue.inject("pageList");
|
|
42
45
|
const activeName = Vue.computed({
|
|
43
46
|
get: () => {
|
|
44
47
|
return props.modelValue;
|
|
@@ -54,6 +57,19 @@ const _sfc_main = {
|
|
|
54
57
|
return props.height + "px";
|
|
55
58
|
}
|
|
56
59
|
});
|
|
60
|
+
const pageCache = Vue.computed(() => {
|
|
61
|
+
const cache = {};
|
|
62
|
+
props.options.forEach((item) => {
|
|
63
|
+
if (item.pageId) {
|
|
64
|
+
cache[item.pageId] = common.findPageById(pageList.value, item.pageId);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
console.log("🚀 ~ cache:", cache);
|
|
68
|
+
return cache;
|
|
69
|
+
});
|
|
70
|
+
const getPage = (pageId) => {
|
|
71
|
+
return pageCache.value[pageId] || null;
|
|
72
|
+
};
|
|
57
73
|
return (_ctx, _cache) => {
|
|
58
74
|
const _component_van_tab = index$1.Tab;
|
|
59
75
|
const _component_van_tabs = index.Tabs;
|
|
@@ -65,24 +81,33 @@ const _sfc_main = {
|
|
|
65
81
|
sticky: "",
|
|
66
82
|
class: "fec-tabs",
|
|
67
83
|
active: Vue.unref(activeName),
|
|
68
|
-
"onUpdate:active": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null)
|
|
84
|
+
"onUpdate:active": _cache[0] || (_cache[0] = ($event) => Vue.isRef(activeName) ? activeName.value = $event : null),
|
|
85
|
+
"lazy-render": ""
|
|
69
86
|
}, {
|
|
70
87
|
default: Vue.withCtx(() => [
|
|
71
88
|
(Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.options, (item) => {
|
|
72
89
|
return Vue.openBlock(), Vue.createBlock(_component_van_tab, Vue.mergeProps({ ref_for: true }, item, {
|
|
90
|
+
name: item.id,
|
|
73
91
|
replace: "",
|
|
74
92
|
"show-zero-badge": false
|
|
75
|
-
}),
|
|
93
|
+
}), {
|
|
94
|
+
default: Vue.withCtx(() => [
|
|
95
|
+
Vue.createElementVNode("div", _hoisted_1, [
|
|
96
|
+
item.pageId && getPage(item.pageId) ? (Vue.openBlock(), Vue.createBlock(page.default, {
|
|
97
|
+
key: 0,
|
|
98
|
+
parentPage: getPage(item.pageId)
|
|
99
|
+
}, null, 8, ["parentPage"])) : Vue.createCommentVNode("", true)
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 2
|
|
103
|
+
}, 1040, ["name"]);
|
|
76
104
|
}), 256))
|
|
77
105
|
]),
|
|
78
106
|
_: 1
|
|
79
|
-
}, 8, ["active"])
|
|
80
|
-
Vue.createElementVNode("div", _hoisted_1, [
|
|
81
|
-
Vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
82
|
-
])
|
|
107
|
+
}, 8, ["active"])
|
|
83
108
|
], 4);
|
|
84
109
|
};
|
|
85
110
|
}
|
|
86
111
|
};
|
|
87
|
-
const _Tabs = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
112
|
+
const _Tabs = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ed4e81a9"]]);
|
|
88
113
|
exports.default = _Tabs;
|
|
@@ -14,6 +14,7 @@ const page = require("./page.vue.js");
|
|
|
14
14
|
const index$2 = require("./api/index.js");
|
|
15
15
|
const eventBus = require("./utils/eventBus.js");
|
|
16
16
|
const pageHistory = require("./utils/pageHistory.js");
|
|
17
|
+
const common = require("./utils/common.js");
|
|
17
18
|
;/* empty css */
|
|
18
19
|
;/* empty css */
|
|
19
20
|
;/* empty css */
|
|
@@ -50,7 +51,6 @@ const _sfc_main = {
|
|
|
50
51
|
let option = await index$2.default.getAppById(ctx.$http, props.appId);
|
|
51
52
|
pageList.value = ((_a = JSON.parse(option.pageConfig)) == null ? void 0 : _a.pageConfig) || [];
|
|
52
53
|
pageHistory.pageHistory.clear();
|
|
53
|
-
console.log("🚀 ~ pageList ~ pageList.value:", pageList.value);
|
|
54
54
|
let homePage;
|
|
55
55
|
if (props.pageKey) {
|
|
56
56
|
homePage = pageList.value.find((page2) => page2.isHome);
|
|
@@ -81,7 +81,7 @@ const _sfc_main = {
|
|
|
81
81
|
if (((_a = currentPage.value) == null ? void 0 : _a.id) == pageId) {
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
const targetPage = findPageById(pageList.value, pageId);
|
|
84
|
+
const targetPage = common.findPageById(pageList.value, pageId);
|
|
85
85
|
if (targetPage) {
|
|
86
86
|
if (targetPage.parentPage) {
|
|
87
87
|
currentPage.value = targetPage.parentPage;
|
|
@@ -98,24 +98,11 @@ const _sfc_main = {
|
|
|
98
98
|
routePage.value = null;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function findPageById(pageList2, pageId) {
|
|
102
|
-
for (const item of pageList2) {
|
|
103
|
-
if (item.id == pageId) {
|
|
104
|
-
return item;
|
|
105
|
-
}
|
|
106
|
-
if (item.children && item.children.length > 0) {
|
|
107
|
-
const found = findPageById(item.children, pageId);
|
|
108
|
-
if (found) {
|
|
109
|
-
return { ...found, parentPage: item };
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
return null;
|
|
114
|
-
}
|
|
115
101
|
const routePage = Vue.ref(null);
|
|
116
102
|
eventBus.default.on("loadPage", (pageId) => {
|
|
117
103
|
loadPage(pageId);
|
|
118
104
|
});
|
|
105
|
+
Vue.provide("pageList", pageList);
|
|
119
106
|
Vue.onMounted(() => {
|
|
120
107
|
loadConfig();
|
|
121
108
|
});
|
|
@@ -144,5 +131,5 @@ const _sfc_main = {
|
|
|
144
131
|
};
|
|
145
132
|
}
|
|
146
133
|
};
|
|
147
|
-
const MobileApp = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
134
|
+
const MobileApp = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-aa5e6078"]]);
|
|
148
135
|
exports.default = MobileApp;
|
|
@@ -32,10 +32,15 @@ const _sfc_main = {
|
|
|
32
32
|
var _a;
|
|
33
33
|
if (Array.isArray(props.parentPage.layoutData)) {
|
|
34
34
|
return ((_a = props.parentPage.layoutData) == null ? void 0 : _a.map((item) => {
|
|
35
|
+
var _a2, _b;
|
|
35
36
|
item.isResizable = false;
|
|
37
|
+
if ((_b = (_a2 = item.component) == null ? void 0 : _a2.props) == null ? void 0 : _b.autoHeight) {
|
|
38
|
+
item.class = "isAutoHeight";
|
|
39
|
+
}
|
|
36
40
|
return item;
|
|
37
41
|
})) || [];
|
|
38
42
|
}
|
|
43
|
+
autoHeight;
|
|
39
44
|
return props.parentPage.layoutData;
|
|
40
45
|
});
|
|
41
46
|
const tabbarActive = Vue.ref(0);
|
|
@@ -74,8 +79,9 @@ const _sfc_main = {
|
|
|
74
79
|
const _component_FecMobileMenuGrid = Vue.resolveComponent("FecMobileMenuGrid");
|
|
75
80
|
const _component_FecMobileNoticeBar = Vue.resolveComponent("FecMobileNoticeBar");
|
|
76
81
|
const _component_FecMobileDataStat = Vue.resolveComponent("FecMobileDataStat");
|
|
77
|
-
const
|
|
82
|
+
const _component_FecMobileAppDetail = Vue.resolveComponent("FecMobileAppDetail");
|
|
78
83
|
const _component_FecMobileActionBar = Vue.resolveComponent("FecMobileActionBar");
|
|
84
|
+
const _component_FecMobileTabbar = Vue.resolveComponent("FecMobileTabbar");
|
|
79
85
|
return Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, null, [
|
|
80
86
|
__props.parentPage.isNavBar ? (Vue.openBlock(), Vue.createBlock(_component_FecMobileNavBar, Vue.normalizeProps(Vue.mergeProps({ key: 0 }, __props.parentPage.navBarConfig)), null, 16)) : Vue.createCommentVNode("", true),
|
|
81
87
|
Vue.createElementVNode("div", _hoisted_1, [
|
|
@@ -89,7 +95,10 @@ const _sfc_main = {
|
|
|
89
95
|
Vue.createVNode(_component_FecMobileMenuGrid, Vue.normalizeProps(Vue.guardReactiveProps(__props.parentPage.layoutData.menuGridProps)), null, 16),
|
|
90
96
|
Vue.createVNode(_component_FecMobileNoticeBar),
|
|
91
97
|
Vue.createVNode(_component_FecMobileDataStat)
|
|
92
|
-
], 64)) : __props.parentPage.type == "approval" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
|
|
98
|
+
], 64)) : __props.parentPage.type == "approval" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
|
|
99
|
+
Vue.createVNode(_component_FecMobileAppDetail, Vue.normalizeProps(Vue.guardReactiveProps(__props.parentPage.layoutData.appDetailProps)), null, 16),
|
|
100
|
+
Vue.createVNode(_component_FecMobileActionBar, Vue.normalizeProps(Vue.guardReactiveProps(__props.parentPage.layoutData.actionBar)), null, 16)
|
|
101
|
+
], 64)) : (Vue.openBlock(), Vue.createBlock(Vue.unref(gridLayout_vue.default), {
|
|
93
102
|
key: 2,
|
|
94
103
|
ref: "gridLayout",
|
|
95
104
|
layout: Vue.unref(layoutData),
|
|
@@ -127,5 +136,5 @@ const _sfc_main = {
|
|
|
127
136
|
};
|
|
128
137
|
}
|
|
129
138
|
};
|
|
130
|
-
const MobilePage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
139
|
+
const MobilePage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-afadefa2"]]);
|
|
131
140
|
exports.default = MobilePage;
|
|
@@ -24,5 +24,20 @@ function removeEmptyValues(data) {
|
|
|
24
24
|
}
|
|
25
25
|
return result;
|
|
26
26
|
}
|
|
27
|
+
const findPageById = (pageList, pageId) => {
|
|
28
|
+
for (const item of pageList) {
|
|
29
|
+
if (item.id == pageId) {
|
|
30
|
+
return item;
|
|
31
|
+
}
|
|
32
|
+
if (item.children && item.children.length > 0) {
|
|
33
|
+
const found = findPageById(item.children, pageId);
|
|
34
|
+
if (found) {
|
|
35
|
+
return { ...found, parentPage: item };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
};
|
|
27
41
|
exports.cloneDeep = cloneDeep;
|
|
42
|
+
exports.findPageById = findPageById;
|
|
28
43
|
exports.removeEmptyValues = removeEmptyValues;
|
|
@@ -560,6 +560,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
560
560
|
}
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
|
+
function handleLabelLink(config) {
|
|
564
|
+
var _a;
|
|
565
|
+
handleEvent.value(
|
|
566
|
+
getFormData(),
|
|
567
|
+
config,
|
|
568
|
+
(_a = config.labelLinkEventConfig) == null ? void 0 : _a.find((item) => item.name == "Click")
|
|
569
|
+
);
|
|
570
|
+
}
|
|
563
571
|
const gridLayoutFieldsData = Vue.ref([]);
|
|
564
572
|
const oriGridLayoutData = Vue.ref([]);
|
|
565
573
|
const formItemRefs = Vue.ref(/* @__PURE__ */ new Map());
|
|
@@ -1230,7 +1238,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1230
1238
|
error: getFieldError(component.fieldName),
|
|
1231
1239
|
formRef: formRef.value,
|
|
1232
1240
|
formMode: formMode.value,
|
|
1233
|
-
onChange: handleFieldChange
|
|
1241
|
+
onChange: handleFieldChange,
|
|
1242
|
+
onLabelLink: handleLabelLink
|
|
1234
1243
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "config", "localConfig", "error", "formRef", "formMode"])
|
|
1235
1244
|
]),
|
|
1236
1245
|
_: 1
|
|
@@ -1282,5 +1291,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1282
1291
|
};
|
|
1283
1292
|
}
|
|
1284
1293
|
});
|
|
1285
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1294
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ae7b77e4"]]);
|
|
1286
1295
|
exports.default = _Form;
|
|
@@ -5,6 +5,7 @@ require("../../../../../../node_modules/element-plus/es/index.js");
|
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
7
|
require("../../../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
|
|
8
|
+
;/* empty css */
|
|
8
9
|
const Vue = require("vue");
|
|
9
10
|
const debounce = require("../form/debounce.js");
|
|
10
11
|
const index$3 = require("../subTitle/index.js");
|
|
@@ -19,7 +20,8 @@ const index = require("../../bus/index.js");
|
|
|
19
20
|
;/* empty css */
|
|
20
21
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
21
22
|
const index$9 = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
|
|
22
|
-
const index$a = require("../../../../../../node_modules/element-plus/es/components/
|
|
23
|
+
const index$a = require("../../../../../../node_modules/element-plus/es/components/link/index.js");
|
|
24
|
+
const index$b = require("../../../../../../node_modules/element-plus/es/components/tooltip/index.js");
|
|
23
25
|
const _hoisted_1 = {
|
|
24
26
|
key: 0,
|
|
25
27
|
class: "iconfont icon-iconZheng credit-icon"
|
|
@@ -28,6 +30,7 @@ const _hoisted_2 = {
|
|
|
28
30
|
key: 1,
|
|
29
31
|
class: "iconfont icon-iconJian regulation-icon"
|
|
30
32
|
};
|
|
33
|
+
const _hoisted_3 = { key: 3 };
|
|
31
34
|
const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
32
35
|
inheritAttrs: false
|
|
33
36
|
}, {
|
|
@@ -58,7 +61,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
58
61
|
default: ""
|
|
59
62
|
}
|
|
60
63
|
},
|
|
61
|
-
emits: ["update:modelValue", "change"],
|
|
64
|
+
emits: ["update:modelValue", "change", "labelLink"],
|
|
62
65
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
63
66
|
const props = __props;
|
|
64
67
|
const emit = __emit;
|
|
@@ -103,6 +106,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
108
|
});
|
|
109
|
+
function handleLabelLink() {
|
|
110
|
+
emit("labelLink", props.config);
|
|
111
|
+
}
|
|
106
112
|
const getInnerComponentRef = () => {
|
|
107
113
|
return innerComponentRef.value;
|
|
108
114
|
};
|
|
@@ -111,7 +117,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
111
117
|
getInnerComponentRef
|
|
112
118
|
});
|
|
113
119
|
return (_ctx, _cache) => {
|
|
114
|
-
const
|
|
120
|
+
const _component_el_link = index$a.ElLink;
|
|
121
|
+
const _component_el_tooltip = index$b.ElTooltip;
|
|
115
122
|
const _component_el_form_item = index$9.ElFormItem;
|
|
116
123
|
return __props.config.fieldType == "h2" ? (Vue.openBlock(), Vue.createBlock(Vue.unref(index$2.H2), {
|
|
117
124
|
key: 0,
|
|
@@ -189,9 +196,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
189
196
|
return [
|
|
190
197
|
__props.config.credit ? (Vue.openBlock(), Vue.createElementBlock("i", _hoisted_1)) : Vue.createCommentVNode("", true),
|
|
191
198
|
__props.config.regulation ? (Vue.openBlock(), Vue.createElementBlock("i", _hoisted_2)) : Vue.createCommentVNode("", true),
|
|
192
|
-
Vue.
|
|
193
|
-
((_a = __props.config.tooltip) == null ? void 0 : _a.trim()) ? (Vue.openBlock(), Vue.createBlock(_component_el_tooltip, {
|
|
199
|
+
__props.config.labelLink ? (Vue.openBlock(), Vue.createBlock(_component_el_link, {
|
|
194
200
|
key: 2,
|
|
201
|
+
type: "primary",
|
|
202
|
+
style: { "pointer-events": "all" },
|
|
203
|
+
onClick: Vue.withModifiers(handleLabelLink, ["prevent"])
|
|
204
|
+
}, {
|
|
205
|
+
default: Vue.withCtx(() => [
|
|
206
|
+
Vue.createTextVNode(Vue.toDisplayString(__props.config.label), 1)
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
})) : (Vue.openBlock(), Vue.createElementBlock("span", _hoisted_3, Vue.toDisplayString(__props.config.label), 1)),
|
|
210
|
+
((_a = __props.config.tooltip) == null ? void 0 : _a.trim()) ? (Vue.openBlock(), Vue.createBlock(_component_el_tooltip, {
|
|
211
|
+
key: 4,
|
|
195
212
|
content: __props.config.tooltip,
|
|
196
213
|
placement: "top"
|
|
197
214
|
}, {
|
|
@@ -208,5 +225,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
208
225
|
};
|
|
209
226
|
}
|
|
210
227
|
});
|
|
211
|
-
const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
228
|
+
const _FormItem = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ebc3ff2b"]]);
|
|
212
229
|
exports.default = _FormItem;
|
|
@@ -33,7 +33,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
33
33
|
},
|
|
34
34
|
setup(__props, { expose: __expose }) {
|
|
35
35
|
const props = __props;
|
|
36
|
-
const
|
|
36
|
+
const getFormData = Vue.inject("getFormData");
|
|
37
|
+
const formData = Vue.ref(getFormData());
|
|
37
38
|
Vue.inject("rowHeight");
|
|
38
39
|
Vue.inject("gridLayout");
|
|
39
40
|
const setFormItemHeight = Vue.inject("setFormItemHeight");
|
|
@@ -68,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
68
69
|
...props.localConfig.hiddenFields
|
|
69
70
|
];
|
|
70
71
|
});
|
|
71
|
-
const
|
|
72
|
+
const initHiddenData = Vue.computed(() => {
|
|
72
73
|
if (props.config.dataSourceFrom == "self") {
|
|
73
74
|
const params = parseRouteParams.parseRouteParams(
|
|
74
75
|
props.config.subTableParams,
|
|
@@ -93,7 +94,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
93
94
|
if (!item.showCondition) return true;
|
|
94
95
|
return parseFilterConfig.checkFilterMatch(
|
|
95
96
|
item.showCondition,
|
|
96
|
-
|
|
97
|
+
initHiddenData.value,
|
|
97
98
|
subTableFieldsData.value
|
|
98
99
|
);
|
|
99
100
|
});
|
|
@@ -104,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
104
105
|
if (!item.showCondition) return true;
|
|
105
106
|
return parseFilterConfig.checkFilterMatch(
|
|
106
107
|
item.showCondition,
|
|
107
|
-
|
|
108
|
+
initHiddenData.value,
|
|
108
109
|
subTableFieldsData.value
|
|
109
110
|
);
|
|
110
111
|
});
|
|
@@ -200,12 +201,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
200
201
|
height: __props.config.subTableHeight,
|
|
201
202
|
maxHeight: __props.config.subTableMaxHeight,
|
|
202
203
|
tableData: Vue.unref(subTableData),
|
|
203
|
-
|
|
204
|
+
initHiddenData: Vue.unref(initHiddenData),
|
|
204
205
|
canLoadBySearchData: __props.config.reloadOnParamsChange,
|
|
205
206
|
readonly: __props.config.isSubTableReadOnly || __props.formMode == "query",
|
|
206
207
|
btnRollbackEvent: Vue.unref(btnRollbackEvent),
|
|
207
208
|
subTableConfig: __props.config
|
|
208
|
-
}, null, 8, ["templateKey", "mode", "titleMode", "hasPagination", "heightMode", "height", "maxHeight", "tableData", "
|
|
209
|
+
}, null, 8, ["templateKey", "mode", "titleMode", "hasPagination", "heightMode", "height", "maxHeight", "tableData", "initHiddenData", "canLoadBySearchData", "readonly", "btnRollbackEvent", "subTableConfig"])
|
|
209
210
|
], 64);
|
|
210
211
|
};
|
|
211
212
|
}
|