cloud-web-corejs 1.0.54-dev.327 → 1.0.54-dev.328
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/package.json +1 -1
- package/src/components/excelImport/mixins.js +750 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +11 -2
- package/src/components/xform/form-render/container-item/data-table-item.vue +1 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +39 -13
@@ -12,7 +12,7 @@
|
|
12
12
|
<div class="field-wrapper" :class="{'design-time-bottom-margin': !!this.designer}"
|
13
13
|
v-show="!field.options.hidden || (designState === true)">
|
14
14
|
<div>
|
15
|
-
<template v-if="formItemProp
|
15
|
+
<template v-if="formItemProp==='false'">
|
16
16
|
<template v-if="!field.options.hidden">
|
17
17
|
<template v-if="isShowWidget()">
|
18
18
|
<slot></slot>
|
@@ -211,6 +211,10 @@ export default {
|
|
211
211
|
created() {
|
212
212
|
//
|
213
213
|
this.initShowType();
|
214
|
+
/* let propName = this.formItemProp;
|
215
|
+
if(propName){
|
216
|
+
debugger
|
217
|
+
} */
|
214
218
|
},
|
215
219
|
methods: {
|
216
220
|
isSubFormItem() {
|
@@ -283,7 +287,7 @@ export default {
|
|
283
287
|
return this.formItemProp;
|
284
288
|
}
|
285
289
|
let o = this.field.options.name;
|
286
|
-
|
290
|
+
let propName = (
|
287
291
|
(o
|
288
292
|
= (this.field.options.keyNameEnabled
|
289
293
|
&& this.field.options.keyName)
|
@@ -298,6 +302,11 @@ export default {
|
|
298
302
|
? this.getObjectName() + "." + o
|
299
303
|
: o
|
300
304
|
);
|
305
|
+
/* if(this.$parent.tableParam){
|
306
|
+
debugger
|
307
|
+
} */
|
308
|
+
|
309
|
+
return propName
|
301
310
|
},
|
302
311
|
getI18nLabel(label, path, param) {
|
303
312
|
return !this.designState && label ? this.$t2(label, path, param) : label;
|
@@ -242,7 +242,7 @@
|
|
242
242
|
<div>
|
243
243
|
<template v-for="(fieldWidget,index) in obj.column.params.widgetList">
|
244
244
|
<component
|
245
|
-
v-if="!!fieldSchemaMap[obj.row._X_ROW_KEY]"
|
245
|
+
v-if="!!fieldSchemaMap[obj.row._X_ROW_KEY] && !!obj.row._X_ROW_KEY"
|
246
246
|
:is="getColumnWidgetName(fieldWidget)"
|
247
247
|
v-bind="getRowWidgetOption(obj,fieldWidget)"
|
248
248
|
:form-model="globalModel.formModel"
|
@@ -1493,14 +1493,13 @@ modules = {
|
|
1493
1493
|
let tableData = $grid.getTableData();
|
1494
1494
|
let isEditTable = this.widget.options.isEditTable;
|
1495
1495
|
let fullData = !isEditTable ? tableData.fullData : tableData.tableData;
|
1496
|
-
|
1497
|
-
|
1498
|
-
this.fieldModel = fullData;
|
1499
|
-
});
|
1496
|
+
this.formModel[this.fieldKeyName] = fullData;
|
1497
|
+
this.fieldModel = fullData;
|
1500
1498
|
this.$nextTick(() => {
|
1501
1499
|
this.handleWbs();
|
1502
1500
|
});
|
1503
|
-
|
1501
|
+
|
1502
|
+
// this.deleteRowWidgets(row);
|
1504
1503
|
},
|
1505
1504
|
createNewTableData(isEdit) {
|
1506
1505
|
let newData = {};
|
@@ -1701,6 +1700,20 @@ modules = {
|
|
1701
1700
|
}
|
1702
1701
|
return { columnSelectedWidget, columnEditFields };
|
1703
1702
|
},
|
1703
|
+
getColumnProp2(fieldWidget, obj) {
|
1704
|
+
let fieldKeyName = this.getFieldKeyName(this.widget);
|
1705
|
+
let property = this.getFieldKeyName(fieldWidget);
|
1706
|
+
if (this.isVabsearchFlagWidget(fieldWidget)) {
|
1707
|
+
property = fieldWidget.options.vabSearchName || property;
|
1708
|
+
}
|
1709
|
+
let rowIndex = Math.max(obj.rowIndex, 0);
|
1710
|
+
|
1711
|
+
let propName = fieldKeyName + "." + rowIndex + "." + property;
|
1712
|
+
if(rowIndex){
|
1713
|
+
debugger
|
1714
|
+
}
|
1715
|
+
return propName
|
1716
|
+
},
|
1704
1717
|
getColumnProp(widget, obj, isEdit) {
|
1705
1718
|
if (!widget) {
|
1706
1719
|
return "false";
|
@@ -1709,24 +1722,37 @@ modules = {
|
|
1709
1722
|
return "false"
|
1710
1723
|
}*/
|
1711
1724
|
|
1712
|
-
|
1713
|
-
|
1725
|
+
|
1726
|
+
|
1714
1727
|
let isQueryTable = this.widget.options.isQueryTable || false;
|
1715
1728
|
if (isEdit || !isQueryTable) {
|
1716
|
-
let
|
1717
|
-
|
1718
|
-
let
|
1729
|
+
let sourceWidgetId = isEdit?obj.column.params.editWidget.id:obj.column.params.widget.id;
|
1730
|
+
if(!this.fieldSchemaMap[obj.row._X_ROW_KEY])return "false"
|
1731
|
+
let fieldWidget = this.fieldSchemaMap[obj.row._X_ROW_KEY][sourceWidgetId]
|
1732
|
+
if (!fieldWidget) {
|
1733
|
+
return "false";
|
1734
|
+
}
|
1735
|
+
|
1736
|
+
let fieldKeyName = this.getFieldKeyName(widget);
|
1737
|
+
let rowIndex = Math.max(obj.rowIndex, 0);
|
1738
|
+
|
1739
|
+
let property = this.getFieldKeyName(fieldWidget);
|
1740
|
+
if (this.isVabsearchFlagWidget(fieldWidget)) {
|
1741
|
+
property = fieldWidget.options.vabSearchName || property;
|
1742
|
+
}
|
1743
|
+
let propName = fieldKeyName + "." + rowIndex + "." + property;
|
1744
|
+
/* let lineWidget = !isEdit
|
1719
1745
|
? obj.column.params.widget
|
1720
1746
|
: obj.column.params.editWidget;
|
1721
1747
|
if (!lineWidget) {
|
1722
1748
|
return "false";
|
1723
|
-
}
|
1724
|
-
if (this.isVabsearchFlagWidget(lineWidget)) {
|
1749
|
+
} */
|
1750
|
+
/* if (this.isVabsearchFlagWidget(lineWidget)) {
|
1725
1751
|
let fieldName =
|
1726
1752
|
lineWidget.options.vabSearchName ||
|
1727
1753
|
this.getFieldKeyName(lineWidget);
|
1728
1754
|
propName = fieldKeyName + "." + rowIndex + "." + fieldName;
|
1729
|
-
}
|
1755
|
+
} */
|
1730
1756
|
|
1731
1757
|
return propName;
|
1732
1758
|
} else {
|