@fecp/designer 5.4.11 → 5.4.13
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.css +16 -16
- package/es/packages/vue/src/components/bus/document/Document.vue.mjs +33 -10
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +1 -3
- package/es/packages/vue/src/components/table/Table.vue.mjs +22 -14
- package/lib/designer/package.json.js +1 -1
- package/lib/designer.css +16 -16
- package/lib/packages/vue/src/components/bus/document/Document.vue.js +32 -9
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +1 -3
- package/lib/packages/vue/src/components/table/Table.vue.js +22 -14
- package/package.json +1 -1
package/es/designer.css
CHANGED
|
@@ -5781,27 +5781,27 @@ body,
|
|
|
5781
5781
|
width: 80px;
|
|
5782
5782
|
font-size: var(--el-font-size-extra-small);
|
|
5783
5783
|
}
|
|
5784
|
-
.fec-form[data-v-
|
|
5784
|
+
.fec-form[data-v-28738b69] {
|
|
5785
5785
|
height: 100%;
|
|
5786
5786
|
}
|
|
5787
|
-
[data-v-
|
|
5787
|
+
[data-v-28738b69] .vgl-item {
|
|
5788
5788
|
transition: none;
|
|
5789
5789
|
}
|
|
5790
|
-
[data-v-
|
|
5790
|
+
[data-v-28738b69] .vgl-item > .el-form-item {
|
|
5791
5791
|
width: 100%;
|
|
5792
5792
|
padding: 12px 8px 0 8px;
|
|
5793
5793
|
height: calc(100% - 15px);
|
|
5794
5794
|
display: flex;
|
|
5795
5795
|
}
|
|
5796
|
-
[data-v-
|
|
5796
|
+
[data-v-28738b69] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5797
5797
|
flex-direction: column;
|
|
5798
5798
|
}
|
|
5799
|
-
[data-v-
|
|
5799
|
+
[data-v-28738b69] .vgl-item > .el-form-item .el-form-item__label {
|
|
5800
5800
|
line-height: 20px;
|
|
5801
5801
|
display: flex;
|
|
5802
5802
|
align-items: center;
|
|
5803
5803
|
}
|
|
5804
|
-
[data-v-
|
|
5804
|
+
[data-v-28738b69] .vgl-item > .el-container {
|
|
5805
5805
|
height: auto !important;
|
|
5806
5806
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5807
5807
|
display: inline-block;
|
|
@@ -6090,11 +6090,11 @@ body,
|
|
|
6090
6090
|
}
|
|
6091
6091
|
[data-v-dc1c22da] .el-checkbox-group .el-checkbox-button__inner {
|
|
6092
6092
|
border-radius: 4px;
|
|
6093
|
-
}.fec-table[data-v-
|
|
6093
|
+
}.fec-table[data-v-45cdf333] {
|
|
6094
6094
|
height: 100%;
|
|
6095
6095
|
flex-grow: 1;
|
|
6096
6096
|
}
|
|
6097
|
-
.fec-table-container[data-v-
|
|
6097
|
+
.fec-table-container[data-v-45cdf333] {
|
|
6098
6098
|
width: 100%;
|
|
6099
6099
|
background: #fff;
|
|
6100
6100
|
box-sizing: border-box;
|
|
@@ -6104,30 +6104,30 @@ body,
|
|
|
6104
6104
|
overflow: hidden;
|
|
6105
6105
|
flex-grow: 1;
|
|
6106
6106
|
}
|
|
6107
|
-
.fec-table-container .fec-vxe-table[data-v-
|
|
6107
|
+
.fec-table-container .fec-vxe-table[data-v-45cdf333] {
|
|
6108
6108
|
flex: 1;
|
|
6109
6109
|
min-height: 0;
|
|
6110
6110
|
overflow: hidden;
|
|
6111
6111
|
}
|
|
6112
|
-
.fec-table-container[data-v-
|
|
6112
|
+
.fec-table-container[data-v-45cdf333] .vxe-table {
|
|
6113
6113
|
font-size: 14px;
|
|
6114
6114
|
}
|
|
6115
|
-
.fec-table-container[data-v-
|
|
6115
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-table--body-wrapper {
|
|
6116
6116
|
overflow: auto;
|
|
6117
6117
|
}
|
|
6118
|
-
.fec-table-container[data-v-
|
|
6118
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-header--column {
|
|
6119
6119
|
background-color: #f5f7fa;
|
|
6120
6120
|
}
|
|
6121
|
-
.fec-table-container[data-v-
|
|
6121
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-header--column .vxe-cell {
|
|
6122
6122
|
height: 40px !important;
|
|
6123
6123
|
min-height: 40px !important;
|
|
6124
6124
|
}
|
|
6125
|
-
.fec-table-container[data-v-
|
|
6125
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .vxe-cell {
|
|
6126
6126
|
padding: 6px !important;
|
|
6127
6127
|
min-height: 40px !important;
|
|
6128
6128
|
}
|
|
6129
|
-
.fec-table-container[data-v-
|
|
6130
|
-
.fec-table-container[data-v-
|
|
6129
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .c--tooltip,
|
|
6130
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .c--title {
|
|
6131
6131
|
height: 40px !important;
|
|
6132
6132
|
min-height: 40px !important;
|
|
6133
6133
|
}:root,:host{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-bold: 600;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: 1px;--van-radius-sm: 2px;--van-radius-md: 4px;--van-radius-lg: 8px;--van-radius-max: 999px}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-break:anywhere;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;line-break:anywhere;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, inject, computed, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, createBlock, unref, resolveDynamicComponent } from "vue";
|
|
1
|
+
import { ref, inject, computed, onMounted, createElementBlock, openBlock, Fragment, createCommentVNode, createElementVNode, createBlock, unref, resolveDynamicComponent } from "vue";
|
|
2
2
|
import { SubTitle } from "../../forms/subTitle/index.mjs";
|
|
3
3
|
import { H2 } from "../../forms/h2/index.mjs";
|
|
4
4
|
import { getCurrentVueInstance } from "../../../utils/getInstance.mjs";
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
34
34
|
inject("rowHeight");
|
|
35
35
|
inject("gridLayout");
|
|
36
36
|
inject("gridLayoutFieldsData");
|
|
37
|
-
inject("setFormItemHeight");
|
|
37
|
+
const setFormItemHeight = inject("setFormItemHeight");
|
|
38
38
|
const fieldsData = props.localConfig.fieldsData.map((item) => {
|
|
39
39
|
return item.component;
|
|
40
40
|
});
|
|
@@ -80,7 +80,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
80
80
|
return accept2;
|
|
81
81
|
});
|
|
82
82
|
const paramList = computed(() => {
|
|
83
|
-
props.config.essentialParams.map((item) => {
|
|
83
|
+
return props.config.essentialParams.map((item) => {
|
|
84
84
|
const modeNo = item.scenario;
|
|
85
85
|
const businessObj = item.businessKey;
|
|
86
86
|
const fieldId = businessObj.value;
|
|
@@ -97,12 +97,34 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
97
97
|
};
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
|
-
const currentComponent =
|
|
101
|
-
|
|
102
|
-
const route = ctx.$router.getRoutes().find((item) => item.path
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
const currentComponent = ref(null);
|
|
101
|
+
const loadComponentByPath = (path2) => {
|
|
102
|
+
const route = ctx.$router.getRoutes().find((item) => item.path === path2);
|
|
103
|
+
if (!route) return;
|
|
104
|
+
const comp = route.components.default;
|
|
105
|
+
if (!comp) return;
|
|
106
|
+
if (typeof comp === "function") {
|
|
107
|
+
comp().then((module) => {
|
|
108
|
+
currentComponent.value = module.default;
|
|
109
|
+
});
|
|
110
|
+
} else {
|
|
111
|
+
currentComponent.value = comp;
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
onMounted(() => {
|
|
115
|
+
loadComponentByPath(path);
|
|
105
116
|
});
|
|
117
|
+
function loaded(dom) {
|
|
118
|
+
const foundItem = props.localConfig.fieldsData.find(
|
|
119
|
+
(item) => item.id == props.config.id
|
|
120
|
+
);
|
|
121
|
+
const titleHeight = props.config.titleMode != "none" ? 60 : 0;
|
|
122
|
+
if (foundItem) {
|
|
123
|
+
foundItem.fixedH = true;
|
|
124
|
+
foundItem.h = dom.offsetHeight + titleHeight;
|
|
125
|
+
setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
106
128
|
return (_ctx, _cache) => {
|
|
107
129
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
108
130
|
__props.config.titleMode != "none" ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -121,8 +143,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
121
143
|
multiple: __props.config.multiple,
|
|
122
144
|
download: __props.config.download,
|
|
123
145
|
accept: unref(accept),
|
|
124
|
-
paramList: unref(paramList)
|
|
125
|
-
|
|
146
|
+
paramList: unref(paramList),
|
|
147
|
+
onLoaded: loaded
|
|
148
|
+
}, null, 40, ["isEdit", "isSupplement", "multiple", "download", "accept", "paramList"]))
|
|
126
149
|
])
|
|
127
150
|
], 64);
|
|
128
151
|
};
|
|
@@ -229,7 +229,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
debugger;
|
|
233
232
|
formData.value = { ...defaultData, ...setFormData(props.modelValue, true) };
|
|
234
233
|
formRules.value = rules;
|
|
235
234
|
};
|
|
@@ -923,7 +922,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
923
922
|
if (!linkaged) {
|
|
924
923
|
return;
|
|
925
924
|
}
|
|
926
|
-
debugger;
|
|
927
925
|
const changedFields = findChangedFields(newVal, prevFormData.value);
|
|
928
926
|
if (changedFields.length > 0) {
|
|
929
927
|
applyLinkageEffectsForChangedFields(changedFields);
|
|
@@ -1054,7 +1052,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1054
1052
|
};
|
|
1055
1053
|
}
|
|
1056
1054
|
});
|
|
1057
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1055
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-28738b69"]]);
|
|
1058
1056
|
export {
|
|
1059
1057
|
_Form as default
|
|
1060
1058
|
};
|
|
@@ -123,6 +123,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
123
123
|
const currentMode = ref("");
|
|
124
124
|
const instance = getCurrentInstance();
|
|
125
125
|
const dataSourceManager = ref(null);
|
|
126
|
+
const summaryAllDataManager = ref(null);
|
|
126
127
|
const ctx = getCurrentVueInstance();
|
|
127
128
|
const configLoading = ref(true);
|
|
128
129
|
const localConfig = ref({});
|
|
@@ -285,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
285
286
|
if (!props.tableData || props.tableData.length === 0) {
|
|
286
287
|
tableDataFetch();
|
|
287
288
|
if (((_c = localConfig.value.summaryConfig) == null ? void 0 : _c.enabled) && ((_d = localConfig.value.summaryConfig) == null ? void 0 : _d.mode) == "all") {
|
|
288
|
-
|
|
289
|
+
summaryAllDataManager.value = createDataSource({
|
|
289
290
|
http: ctx.$http,
|
|
290
291
|
initSearchData: searchData.value,
|
|
291
292
|
dataSources: localConfig.value.dataSources,
|
|
@@ -300,18 +301,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
300
301
|
sortRules: localConfig.value.sortRules,
|
|
301
302
|
templateId: localConfig.value.templateKey
|
|
302
303
|
});
|
|
303
|
-
|
|
304
|
-
const summaryFields = localConfig.value.summaryConfig.summaryFields || [];
|
|
305
|
-
const allList = (data == null ? void 0 : data.list) || [];
|
|
306
|
-
const summaryResult = {};
|
|
307
|
-
summaryFields.forEach((fieldName) => {
|
|
308
|
-
const sum = allList.reduce((total, item) => {
|
|
309
|
-
const value = parseFloat(item[fieldName]);
|
|
310
|
-
return total + (isNaN(value) ? 0 : value);
|
|
311
|
-
}, 0);
|
|
312
|
-
summaryResult[fieldName] = sum;
|
|
313
|
-
});
|
|
314
|
-
allSummaryData.value = summaryResult;
|
|
304
|
+
await summaryAllDataFetch();
|
|
315
305
|
}
|
|
316
306
|
}
|
|
317
307
|
loadFieldDataSources();
|
|
@@ -527,6 +517,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
527
517
|
};
|
|
528
518
|
async function tableDataFetch() {
|
|
529
519
|
await dataSourceManager.value.fetch();
|
|
520
|
+
await summaryAllDataFetch();
|
|
521
|
+
}
|
|
522
|
+
async function summaryAllDataFetch() {
|
|
523
|
+
var _a, _b;
|
|
524
|
+
if (((_a = localConfig.value.summaryConfig) == null ? void 0 : _a.enabled) && ((_b = localConfig.value.summaryConfig) == null ? void 0 : _b.mode) == "all") {
|
|
525
|
+
const data = await summaryAllDataManager.value.fetch();
|
|
526
|
+
const summaryFields = localConfig.value.summaryConfig.summaryFields || [];
|
|
527
|
+
const allList = (data == null ? void 0 : data.list) || [];
|
|
528
|
+
const summaryResult = {};
|
|
529
|
+
summaryFields.forEach((fieldName) => {
|
|
530
|
+
const sum = allList.reduce((total, item) => {
|
|
531
|
+
const value = parseFloat(item[fieldName]);
|
|
532
|
+
return total + (isNaN(value) ? 0 : value);
|
|
533
|
+
}, 0);
|
|
534
|
+
summaryResult[fieldName] = sum;
|
|
535
|
+
});
|
|
536
|
+
allSummaryData.value = summaryResult;
|
|
537
|
+
}
|
|
530
538
|
}
|
|
531
539
|
const exportConfig = reactive({
|
|
532
540
|
modes: ["current", "selected", "all", "empty"],
|
|
@@ -793,7 +801,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
793
801
|
};
|
|
794
802
|
}
|
|
795
803
|
});
|
|
796
|
-
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
804
|
+
const _Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-45cdf333"]]);
|
|
797
805
|
export {
|
|
798
806
|
_Table as default
|
|
799
807
|
};
|
package/lib/designer.css
CHANGED
|
@@ -5781,27 +5781,27 @@ body,
|
|
|
5781
5781
|
width: 80px;
|
|
5782
5782
|
font-size: var(--el-font-size-extra-small);
|
|
5783
5783
|
}
|
|
5784
|
-
.fec-form[data-v-
|
|
5784
|
+
.fec-form[data-v-28738b69] {
|
|
5785
5785
|
height: 100%;
|
|
5786
5786
|
}
|
|
5787
|
-
[data-v-
|
|
5787
|
+
[data-v-28738b69] .vgl-item {
|
|
5788
5788
|
transition: none;
|
|
5789
5789
|
}
|
|
5790
|
-
[data-v-
|
|
5790
|
+
[data-v-28738b69] .vgl-item > .el-form-item {
|
|
5791
5791
|
width: 100%;
|
|
5792
5792
|
padding: 12px 8px 0 8px;
|
|
5793
5793
|
height: calc(100% - 15px);
|
|
5794
5794
|
display: flex;
|
|
5795
5795
|
}
|
|
5796
|
-
[data-v-
|
|
5796
|
+
[data-v-28738b69] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5797
5797
|
flex-direction: column;
|
|
5798
5798
|
}
|
|
5799
|
-
[data-v-
|
|
5799
|
+
[data-v-28738b69] .vgl-item > .el-form-item .el-form-item__label {
|
|
5800
5800
|
line-height: 20px;
|
|
5801
5801
|
display: flex;
|
|
5802
5802
|
align-items: center;
|
|
5803
5803
|
}
|
|
5804
|
-
[data-v-
|
|
5804
|
+
[data-v-28738b69] .vgl-item > .el-container {
|
|
5805
5805
|
height: auto !important;
|
|
5806
5806
|
}.cell-content .cell-text[data-v-3e5372d4] {
|
|
5807
5807
|
display: inline-block;
|
|
@@ -6090,11 +6090,11 @@ body,
|
|
|
6090
6090
|
}
|
|
6091
6091
|
[data-v-dc1c22da] .el-checkbox-group .el-checkbox-button__inner {
|
|
6092
6092
|
border-radius: 4px;
|
|
6093
|
-
}.fec-table[data-v-
|
|
6093
|
+
}.fec-table[data-v-45cdf333] {
|
|
6094
6094
|
height: 100%;
|
|
6095
6095
|
flex-grow: 1;
|
|
6096
6096
|
}
|
|
6097
|
-
.fec-table-container[data-v-
|
|
6097
|
+
.fec-table-container[data-v-45cdf333] {
|
|
6098
6098
|
width: 100%;
|
|
6099
6099
|
background: #fff;
|
|
6100
6100
|
box-sizing: border-box;
|
|
@@ -6104,30 +6104,30 @@ body,
|
|
|
6104
6104
|
overflow: hidden;
|
|
6105
6105
|
flex-grow: 1;
|
|
6106
6106
|
}
|
|
6107
|
-
.fec-table-container .fec-vxe-table[data-v-
|
|
6107
|
+
.fec-table-container .fec-vxe-table[data-v-45cdf333] {
|
|
6108
6108
|
flex: 1;
|
|
6109
6109
|
min-height: 0;
|
|
6110
6110
|
overflow: hidden;
|
|
6111
6111
|
}
|
|
6112
|
-
.fec-table-container[data-v-
|
|
6112
|
+
.fec-table-container[data-v-45cdf333] .vxe-table {
|
|
6113
6113
|
font-size: 14px;
|
|
6114
6114
|
}
|
|
6115
|
-
.fec-table-container[data-v-
|
|
6115
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-table--body-wrapper {
|
|
6116
6116
|
overflow: auto;
|
|
6117
6117
|
}
|
|
6118
|
-
.fec-table-container[data-v-
|
|
6118
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-header--column {
|
|
6119
6119
|
background-color: #f5f7fa;
|
|
6120
6120
|
}
|
|
6121
|
-
.fec-table-container[data-v-
|
|
6121
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-header--column .vxe-cell {
|
|
6122
6122
|
height: 40px !important;
|
|
6123
6123
|
min-height: 40px !important;
|
|
6124
6124
|
}
|
|
6125
|
-
.fec-table-container[data-v-
|
|
6125
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .vxe-cell {
|
|
6126
6126
|
padding: 6px !important;
|
|
6127
6127
|
min-height: 40px !important;
|
|
6128
6128
|
}
|
|
6129
|
-
.fec-table-container[data-v-
|
|
6130
|
-
.fec-table-container[data-v-
|
|
6129
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .c--tooltip,
|
|
6130
|
+
.fec-table-container[data-v-45cdf333] .vxe-table .vxe-body--column .c--title {
|
|
6131
6131
|
height: 40px !important;
|
|
6132
6132
|
min-height: 40px !important;
|
|
6133
6133
|
}:root,:host{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background: var(--van-gray-1);--van-background-2: var(--van-white);--van-background-3: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-bold: 600;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-font: avenir-heavy, "PingFang SC", helvetica neue, arial, sans-serif;--van-duration-base: .3s;--van-duration-fast: .2s;--van-ease-out: ease-out;--van-ease-in: ease-in;--van-border-color: var(--van-gray-3);--van-border-width: 1px;--van-radius-sm: 2px;--van-radius-md: 4px;--van-radius-lg: 8px;--van-radius-max: 999px}.van-theme-dark{--van-text-color: #f5f5f5;--van-text-color-2: #707070;--van-text-color-3: #4d4d4d;--van-border-color: #3a3a3c;--van-active-color: #3a3a3c;--van-background: #000;--van-background-2: #1c1c1e;--van-background-3: #37363b}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:var(--van-base-font)}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{transform:translate3d(0,100%,0)}}@keyframes van-slide-down-enter{0%{transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{transform:translate3d(0,-100%,0)}}@keyframes van-slide-left-enter{0%{transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{transform:translate3d(-100%,0,0)}}@keyframes van-slide-right-enter{0%{transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{transform:translate3d(100%,0,0)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-duration-base) van-fade-in both var(--van-ease-out)}.van-fade-leave-active{animation:var(--van-duration-base) van-fade-out both var(--van-ease-in)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-duration-base) both var(--van-ease-in)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-duration-base) both var(--van-ease-out)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-duration-base) both var(--van-ease-in)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-break:anywhere;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;line-break:anywhere;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:var(--van-border-width)}.van-hairline--left:after{border-left-width:var(--van-border-width)}.van-hairline--right:after{border-right-width:var(--van-border-width)}.van-hairline--bottom:after{border-bottom-width:var(--van-border-width)}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:var(--van-border-width) 0}.van-hairline--surround:after{border-width:var(--van-border-width)}
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
36
36
|
vue.inject("rowHeight");
|
|
37
37
|
vue.inject("gridLayout");
|
|
38
38
|
vue.inject("gridLayoutFieldsData");
|
|
39
|
-
vue.inject("setFormItemHeight");
|
|
39
|
+
const setFormItemHeight = vue.inject("setFormItemHeight");
|
|
40
40
|
const fieldsData = props.localConfig.fieldsData.map((item) => {
|
|
41
41
|
return item.component;
|
|
42
42
|
});
|
|
@@ -82,7 +82,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
82
82
|
return accept2;
|
|
83
83
|
});
|
|
84
84
|
const paramList = vue.computed(() => {
|
|
85
|
-
props.config.essentialParams.map((item) => {
|
|
85
|
+
return props.config.essentialParams.map((item) => {
|
|
86
86
|
const modeNo = item.scenario;
|
|
87
87
|
const businessObj = item.businessKey;
|
|
88
88
|
const fieldId = businessObj.value;
|
|
@@ -99,12 +99,34 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
99
99
|
};
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
-
const currentComponent = vue.
|
|
103
|
-
|
|
104
|
-
const route = ctx.$router.getRoutes().find((item) => item.path
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
const currentComponent = vue.ref(null);
|
|
103
|
+
const loadComponentByPath = (path2) => {
|
|
104
|
+
const route = ctx.$router.getRoutes().find((item) => item.path === path2);
|
|
105
|
+
if (!route) return;
|
|
106
|
+
const comp = route.components.default;
|
|
107
|
+
if (!comp) return;
|
|
108
|
+
if (typeof comp === "function") {
|
|
109
|
+
comp().then((module2) => {
|
|
110
|
+
currentComponent.value = module2.default;
|
|
111
|
+
});
|
|
112
|
+
} else {
|
|
113
|
+
currentComponent.value = comp;
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
vue.onMounted(() => {
|
|
117
|
+
loadComponentByPath(path);
|
|
107
118
|
});
|
|
119
|
+
function loaded(dom) {
|
|
120
|
+
const foundItem = props.localConfig.fieldsData.find(
|
|
121
|
+
(item) => item.id == props.config.id
|
|
122
|
+
);
|
|
123
|
+
const titleHeight = props.config.titleMode != "none" ? 60 : 0;
|
|
124
|
+
if (foundItem) {
|
|
125
|
+
foundItem.fixedH = true;
|
|
126
|
+
foundItem.h = dom.offsetHeight + titleHeight;
|
|
127
|
+
setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
108
130
|
return (_ctx, _cache) => {
|
|
109
131
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
110
132
|
__props.config.titleMode != "none" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
@@ -123,8 +145,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
123
145
|
multiple: __props.config.multiple,
|
|
124
146
|
download: __props.config.download,
|
|
125
147
|
accept: vue.unref(accept),
|
|
126
|
-
paramList: vue.unref(paramList)
|
|
127
|
-
|
|
148
|
+
paramList: vue.unref(paramList),
|
|
149
|
+
onLoaded: loaded
|
|
150
|
+
}, null, 40, ["isEdit", "isSupplement", "multiple", "download", "accept", "paramList"]))
|
|
128
151
|
])
|
|
129
152
|
], 64);
|
|
130
153
|
};
|
|
@@ -231,7 +231,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
-
debugger;
|
|
235
234
|
formData.value = { ...defaultData, ...setFormData(props.modelValue, true) };
|
|
236
235
|
formRules.value = rules;
|
|
237
236
|
};
|
|
@@ -925,7 +924,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
925
924
|
if (!linkaged) {
|
|
926
925
|
return;
|
|
927
926
|
}
|
|
928
|
-
debugger;
|
|
929
927
|
const changedFields = findChangedFields(newVal, prevFormData.value);
|
|
930
928
|
if (changedFields.length > 0) {
|
|
931
929
|
applyLinkageEffectsForChangedFields(changedFields);
|
|
@@ -1056,5 +1054,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
1056
1054
|
};
|
|
1057
1055
|
}
|
|
1058
1056
|
});
|
|
1059
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1057
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-28738b69"]]);
|
|
1060
1058
|
exports.default = _Form;
|
|
@@ -125,6 +125,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
125
125
|
const currentMode = vue.ref("");
|
|
126
126
|
const instance = vue.getCurrentInstance();
|
|
127
127
|
const dataSourceManager = vue.ref(null);
|
|
128
|
+
const summaryAllDataManager = vue.ref(null);
|
|
128
129
|
const ctx = getInstance.getCurrentVueInstance();
|
|
129
130
|
const configLoading = vue.ref(true);
|
|
130
131
|
const localConfig = vue.ref({});
|
|
@@ -287,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
287
288
|
if (!props.tableData || props.tableData.length === 0) {
|
|
288
289
|
tableDataFetch();
|
|
289
290
|
if (((_c = localConfig.value.summaryConfig) == null ? void 0 : _c.enabled) && ((_d = localConfig.value.summaryConfig) == null ? void 0 : _d.mode) == "all") {
|
|
290
|
-
|
|
291
|
+
summaryAllDataManager.value = datasource.createDataSource({
|
|
291
292
|
http: ctx.$http,
|
|
292
293
|
initSearchData: searchData.value,
|
|
293
294
|
dataSources: localConfig.value.dataSources,
|
|
@@ -302,18 +303,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
302
303
|
sortRules: localConfig.value.sortRules,
|
|
303
304
|
templateId: localConfig.value.templateKey
|
|
304
305
|
});
|
|
305
|
-
|
|
306
|
-
const summaryFields = localConfig.value.summaryConfig.summaryFields || [];
|
|
307
|
-
const allList = (data == null ? void 0 : data.list) || [];
|
|
308
|
-
const summaryResult = {};
|
|
309
|
-
summaryFields.forEach((fieldName) => {
|
|
310
|
-
const sum = allList.reduce((total, item) => {
|
|
311
|
-
const value = parseFloat(item[fieldName]);
|
|
312
|
-
return total + (isNaN(value) ? 0 : value);
|
|
313
|
-
}, 0);
|
|
314
|
-
summaryResult[fieldName] = sum;
|
|
315
|
-
});
|
|
316
|
-
allSummaryData.value = summaryResult;
|
|
306
|
+
await summaryAllDataFetch();
|
|
317
307
|
}
|
|
318
308
|
}
|
|
319
309
|
loadFieldDataSources();
|
|
@@ -529,6 +519,24 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
529
519
|
};
|
|
530
520
|
async function tableDataFetch() {
|
|
531
521
|
await dataSourceManager.value.fetch();
|
|
522
|
+
await summaryAllDataFetch();
|
|
523
|
+
}
|
|
524
|
+
async function summaryAllDataFetch() {
|
|
525
|
+
var _a, _b;
|
|
526
|
+
if (((_a = localConfig.value.summaryConfig) == null ? void 0 : _a.enabled) && ((_b = localConfig.value.summaryConfig) == null ? void 0 : _b.mode) == "all") {
|
|
527
|
+
const data = await summaryAllDataManager.value.fetch();
|
|
528
|
+
const summaryFields = localConfig.value.summaryConfig.summaryFields || [];
|
|
529
|
+
const allList = (data == null ? void 0 : data.list) || [];
|
|
530
|
+
const summaryResult = {};
|
|
531
|
+
summaryFields.forEach((fieldName) => {
|
|
532
|
+
const sum = allList.reduce((total, item) => {
|
|
533
|
+
const value = parseFloat(item[fieldName]);
|
|
534
|
+
return total + (isNaN(value) ? 0 : value);
|
|
535
|
+
}, 0);
|
|
536
|
+
summaryResult[fieldName] = sum;
|
|
537
|
+
});
|
|
538
|
+
allSummaryData.value = summaryResult;
|
|
539
|
+
}
|
|
532
540
|
}
|
|
533
541
|
const exportConfig = vue.reactive({
|
|
534
542
|
modes: ["current", "selected", "all", "empty"],
|
|
@@ -795,5 +803,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
795
803
|
};
|
|
796
804
|
}
|
|
797
805
|
});
|
|
798
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
806
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-45cdf333"]]);
|
|
799
807
|
exports.default = _Table;
|