cloud-web-corejs 1.0.54-dev.535 → 1.0.54-dev.537
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/excelExport/exportFieldDialog.vue +0 -1
- package/src/components/excelExport/mixins.js +1 -963
- package/src/components/hiprint/css/bootstrap.min.css +6 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/components/hiprint/view/design/index.vue +1 -0
- package/src/components/table/index.js +0 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +8 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +83 -82
- package/src/components/xform/form-render/indexMixin.js +383 -208
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/router/modules/customer.js +9 -0
- package/src/views/user/position/list.vue +124 -68
|
@@ -153,8 +153,8 @@ modules = {
|
|
|
153
153
|
buttonsColumnFixed: function () {
|
|
154
154
|
return void 0 === this.widget.options.buttonsColumnFixed
|
|
155
155
|
? "right"
|
|
156
|
-
: !!this.widget.options.buttonsColumnFixed
|
|
157
|
-
this.widget.options.buttonsColumnFixed;
|
|
156
|
+
: !!this.widget.options.buttonsColumnFixed
|
|
157
|
+
&& this.widget.options.buttonsColumnFixed;
|
|
158
158
|
},
|
|
159
159
|
formModel: {
|
|
160
160
|
cache: !1,
|
|
@@ -188,8 +188,8 @@ modules = {
|
|
|
188
188
|
},
|
|
189
189
|
methods: {
|
|
190
190
|
initTableCustomEvent() {
|
|
191
|
-
let tableConfig
|
|
192
|
-
this.handleCustomEvent(this.widget.options.tableConfig) || {};
|
|
191
|
+
let tableConfig
|
|
192
|
+
= this.handleCustomEvent(this.widget.options.tableConfig) || {};
|
|
193
193
|
this.eventConfig = tableConfig.eventConfig || {};
|
|
194
194
|
},
|
|
195
195
|
getTableColumnStatusWidgetLabelKey(obj) {
|
|
@@ -255,8 +255,8 @@ modules = {
|
|
|
255
255
|
if (!formScriptEnabledTypes.includes(widgetType)) return;
|
|
256
256
|
|
|
257
257
|
let formScriptEnabled = widget.options.formScriptEnabled || false;
|
|
258
|
-
let commonAttributeEnabled
|
|
259
|
-
widget.options.commonAttributeEnabled || false;
|
|
258
|
+
let commonAttributeEnabled
|
|
259
|
+
= widget.options.commonAttributeEnabled || false;
|
|
260
260
|
let commonAttributeCode = widget.options.commonAttributeCode;
|
|
261
261
|
if (commonAttributeEnabled) {
|
|
262
262
|
if (!commonAttributeCode) return;
|
|
@@ -513,8 +513,8 @@ modules = {
|
|
|
513
513
|
let ignoreFields = options?.ignoreFields || [];
|
|
514
514
|
this.widget.widgetList.forEach((subWidget) => {
|
|
515
515
|
if (
|
|
516
|
-
!ignoreFields.length
|
|
517
|
-
!ignoreFields.includes(subWidget.options.name)
|
|
516
|
+
!ignoreFields.length
|
|
517
|
+
|| !ignoreFields.includes(subWidget.options.name)
|
|
518
518
|
) {
|
|
519
519
|
let widgetRef = this.getWidgetRef(subWidget.options.name);
|
|
520
520
|
if (widgetRef && widgetRef.setValue) widgetRef.setValue(null);
|
|
@@ -554,9 +554,9 @@ modules = {
|
|
|
554
554
|
formCode = formConfig.addFormCode || formConfig.editFormCode;
|
|
555
555
|
}
|
|
556
556
|
let parentTarget = formRef.$attrs["parent-target"];
|
|
557
|
-
parentTarget
|
|
558
|
-
parentTarget.$attrs.openEditDialog
|
|
559
|
-
parentTarget.$attrs.openEditDialog(row, param, {
|
|
557
|
+
parentTarget
|
|
558
|
+
&& parentTarget.$attrs.openEditDialog
|
|
559
|
+
&& parentTarget.$attrs.openEditDialog(row, param, {
|
|
560
560
|
formCode,
|
|
561
561
|
...option,
|
|
562
562
|
});
|
|
@@ -738,8 +738,8 @@ modules = {
|
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
if (t.tableColumnConfig) {
|
|
741
|
-
let tableColumnConfig
|
|
742
|
-
this.handleCustomEvent(t.tableColumnConfig) || {};
|
|
741
|
+
let tableColumnConfig
|
|
742
|
+
= this.handleCustomEvent(t.tableColumnConfig) || {};
|
|
743
743
|
col = extendDeeply(col, tableColumnConfig);
|
|
744
744
|
}
|
|
745
745
|
return col;
|
|
@@ -791,8 +791,8 @@ modules = {
|
|
|
791
791
|
|
|
792
792
|
let isQueryAllPage = !this.widget.options.isNotQueryAllPage;
|
|
793
793
|
|
|
794
|
-
let tableConfig
|
|
795
|
-
this.handleCustomEvent(this.widget.options.tableConfig) || {};
|
|
794
|
+
let tableConfig
|
|
795
|
+
= this.handleCustomEvent(this.widget.options.tableConfig) || {};
|
|
796
796
|
this.tableConfig = tableConfig;
|
|
797
797
|
|
|
798
798
|
let tableConfig2 = this.$baseLodash.cloneDeep(tableConfig);
|
|
@@ -908,12 +908,12 @@ modules = {
|
|
|
908
908
|
.filter((column) => !!column?.params?.editWidget)
|
|
909
909
|
.map((column) => column.params.editWidget);
|
|
910
910
|
|
|
911
|
-
let height
|
|
912
|
-
this.widget.options.tableHeight || (isQueryTable ? "auto" : null);
|
|
911
|
+
let height
|
|
912
|
+
= this.widget.options.tableHeight || (isQueryTable ? "auto" : null);
|
|
913
913
|
if (
|
|
914
|
-
!this.widget.options.tableHeight
|
|
915
|
-
isQueryTable
|
|
916
|
-
this.previewState
|
|
914
|
+
!this.widget.options.tableHeight
|
|
915
|
+
&& isQueryTable
|
|
916
|
+
&& this.previewState
|
|
917
917
|
) {
|
|
918
918
|
height = "550px";
|
|
919
919
|
}
|
|
@@ -1083,8 +1083,8 @@ modules = {
|
|
|
1083
1083
|
|
|
1084
1084
|
let exportItemConfig = null;
|
|
1085
1085
|
if (
|
|
1086
|
-
this.widget.options.exportItemColumns
|
|
1087
|
-
this.widget.options.exportItemColumns.length > 0
|
|
1086
|
+
this.widget.options.exportItemColumns
|
|
1087
|
+
&& this.widget.options.exportItemColumns.length > 0
|
|
1088
1088
|
) {
|
|
1089
1089
|
let formatKeys = [
|
|
1090
1090
|
"d1",
|
|
@@ -1135,8 +1135,8 @@ modules = {
|
|
|
1135
1135
|
);
|
|
1136
1136
|
exportItemConfig = {
|
|
1137
1137
|
scriptCode:
|
|
1138
|
-
this.widget.options.exportItemScriptCode
|
|
1139
|
-
this.widget.options.formScriptCode,
|
|
1138
|
+
this.widget.options.exportItemScriptCode
|
|
1139
|
+
|| this.widget.options.formScriptCode,
|
|
1140
1140
|
columns: exportItemColumns,
|
|
1141
1141
|
param: () => {
|
|
1142
1142
|
if (this.widget.options.exportItemParam) {
|
|
@@ -1298,8 +1298,8 @@ modules = {
|
|
|
1298
1298
|
if (res.type == "success") {
|
|
1299
1299
|
if (that.widget.options.isTreeTable) {
|
|
1300
1300
|
if (rows.length > 0) {
|
|
1301
|
-
let fullAllDataRowMap
|
|
1302
|
-
$grid.$refs.xTable.fullAllDataRowMap;
|
|
1301
|
+
let fullAllDataRowMap
|
|
1302
|
+
= $grid.$refs.xTable.fullAllDataRowMap;
|
|
1303
1303
|
let parentField = $grid.treeConfig.parentField;
|
|
1304
1304
|
let expandAll = $grid.treeConfig.expandAll || false;
|
|
1305
1305
|
let isLazy = $grid.treeConfig.lazy;
|
|
@@ -1322,8 +1322,8 @@ modules = {
|
|
|
1322
1322
|
lineData
|
|
1323
1323
|
)
|
|
1324
1324
|
) {
|
|
1325
|
-
let rest
|
|
1326
|
-
fullAllDataRowMap.get(lineData);
|
|
1325
|
+
let rest
|
|
1326
|
+
= fullAllDataRowMap.get(lineData);
|
|
1327
1327
|
rest.treeLoaded = true;
|
|
1328
1328
|
}
|
|
1329
1329
|
});
|
|
@@ -1335,8 +1335,8 @@ modules = {
|
|
|
1335
1335
|
|
|
1336
1336
|
let row = rows.find((item) => !item[parentField]);
|
|
1337
1337
|
if (
|
|
1338
|
-
row
|
|
1339
|
-
(!expandAll || !expandIds.includes(row.id))
|
|
1338
|
+
row
|
|
1339
|
+
&& (!expandAll || !expandIds.includes(row.id))
|
|
1340
1340
|
) {
|
|
1341
1341
|
let hasChild = $grid.treeConfig.hasChild;
|
|
1342
1342
|
if (row[hasChild]) {
|
|
@@ -1509,13 +1509,13 @@ modules = {
|
|
|
1509
1509
|
if (["date-range", "time-range"].includes(wType)) {
|
|
1510
1510
|
item.filter = "between";
|
|
1511
1511
|
} else if (
|
|
1512
|
-
["input-batch", "checkbox"].includes(wType)
|
|
1513
|
-
(wType == "select" && wItem.options.multiple)
|
|
1512
|
+
["input-batch", "checkbox"].includes(wType)
|
|
1513
|
+
|| (wType == "select" && wItem.options.multiple)
|
|
1514
1514
|
) {
|
|
1515
1515
|
item.filter = "in";
|
|
1516
1516
|
} else if (
|
|
1517
|
-
["radio", "time", "date"].includes(wType)
|
|
1518
|
-
(wType == "select" && !wItem.options.multiple)
|
|
1517
|
+
["radio", "time", "date"].includes(wType)
|
|
1518
|
+
|| (wType == "select" && !wItem.options.multiple)
|
|
1519
1519
|
) {
|
|
1520
1520
|
item.filter = "eq";
|
|
1521
1521
|
} else {
|
|
@@ -1571,8 +1571,8 @@ modules = {
|
|
|
1571
1571
|
this.loodHandleColumns(this.widget.options.tableColumns, (item) => {
|
|
1572
1572
|
if (!item.children?.length && item.prop && item.label) {
|
|
1573
1573
|
if (
|
|
1574
|
-
item.formatS == "editSearch"
|
|
1575
|
-
item.widget?.options?.multipleChoices
|
|
1574
|
+
item.formatS == "editSearch"
|
|
1575
|
+
&& item.widget?.options?.multipleChoices
|
|
1576
1576
|
) {
|
|
1577
1577
|
result.push(item.prop);
|
|
1578
1578
|
}
|
|
@@ -1726,8 +1726,8 @@ modules = {
|
|
|
1726
1726
|
},
|
|
1727
1727
|
loadAccessData(flag) {
|
|
1728
1728
|
if (
|
|
1729
|
-
this.formModel[this.fieldKeyName]
|
|
1730
|
-
this.formModel[this.fieldKeyName].length
|
|
1729
|
+
this.formModel[this.fieldKeyName]
|
|
1730
|
+
&& this.formModel[this.fieldKeyName].length
|
|
1731
1731
|
) {
|
|
1732
1732
|
this.initValue(this.formModel[this.fieldKeyName]);
|
|
1733
1733
|
}
|
|
@@ -1796,9 +1796,9 @@ modules = {
|
|
|
1796
1796
|
},
|
|
1797
1797
|
isSingerlSearch(widget) {
|
|
1798
1798
|
let widgetType = widget?.type;
|
|
1799
|
-
let result
|
|
1800
|
-
widgetType === "singerSearch"
|
|
1801
|
-
(widgetType === "vabsearch" && !widget.options.multipleChoices);
|
|
1799
|
+
let result
|
|
1800
|
+
= widgetType === "singerSearch"
|
|
1801
|
+
|| (widgetType === "vabsearch" && !widget.options.multipleChoices);
|
|
1802
1802
|
return result;
|
|
1803
1803
|
},
|
|
1804
1804
|
getColumnNullValue(widget) {
|
|
@@ -1815,9 +1815,9 @@ modules = {
|
|
|
1815
1815
|
|
|
1816
1816
|
let defaultValue = widget.options.defaultValue;
|
|
1817
1817
|
if (
|
|
1818
|
-
defaultValue !== undefined
|
|
1819
|
-
defaultValue !== null
|
|
1820
|
-
defaultValue !== ""
|
|
1818
|
+
defaultValue !== undefined
|
|
1819
|
+
&& defaultValue !== null
|
|
1820
|
+
&& defaultValue !== ""
|
|
1821
1821
|
) {
|
|
1822
1822
|
nullValue = defaultValue;
|
|
1823
1823
|
} else if (widgetType === "select" && widget.options.multiple) {
|
|
@@ -1980,13 +1980,13 @@ modules = {
|
|
|
1980
1980
|
columnOption.required = row.required || false;
|
|
1981
1981
|
columnSelectedWidget.options = columnOption;
|
|
1982
1982
|
if ("editDelete" == formatS) {
|
|
1983
|
-
columnSelectedWidget.options.hiddenByWf
|
|
1984
|
-
columnSelectedWidget.options.hiddenByWf ?? true;
|
|
1985
|
-
columnSelectedWidget.options.prefixIcon
|
|
1986
|
-
columnSelectedWidget.options.prefixIcon || "el-icon-delete";
|
|
1983
|
+
columnSelectedWidget.options.hiddenByWf
|
|
1984
|
+
= columnSelectedWidget.options.hiddenByWf ?? true;
|
|
1985
|
+
columnSelectedWidget.options.prefixIcon
|
|
1986
|
+
= columnSelectedWidget.options.prefixIcon || "el-icon-delete";
|
|
1987
1987
|
} else if ("editButton" == formatS) {
|
|
1988
|
-
columnSelectedWidget.options.prefixIcon
|
|
1989
|
-
columnSelectedWidget.options.prefixIcon || "el-icon-edit";
|
|
1988
|
+
columnSelectedWidget.options.prefixIcon
|
|
1989
|
+
= columnSelectedWidget.options.prefixIcon || "el-icon-edit";
|
|
1990
1990
|
}
|
|
1991
1991
|
} else {
|
|
1992
1992
|
columnSelectedWidget.options.required = row.required || false;
|
|
@@ -1995,44 +1995,44 @@ modules = {
|
|
|
1995
1995
|
columnSelectedWidget.options.label = "删除";
|
|
1996
1996
|
columnSelectedWidget.options.labelHidden = true;
|
|
1997
1997
|
columnSelectedWidget.options.hiddenByWf = true;
|
|
1998
|
-
columnSelectedWidget.options.onClick
|
|
1999
|
-
"let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.deleteRow(tableParam.row,tableParam.rowIndex);";
|
|
1998
|
+
columnSelectedWidget.options.onClick
|
|
1999
|
+
= "let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.deleteRow(tableParam.row,tableParam.rowIndex);";
|
|
2000
2000
|
} else if ("editButton" == formatS) {
|
|
2001
2001
|
columnSelectedWidget.options.prefixIcon = "el-icon-edit";
|
|
2002
2002
|
columnSelectedWidget.options.label = "查看";
|
|
2003
2003
|
columnSelectedWidget.options.labelHidden = true;
|
|
2004
|
-
columnSelectedWidget.options.onClick
|
|
2005
|
-
"let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.openEditDialog(tableParam.row)";
|
|
2004
|
+
columnSelectedWidget.options.onClick
|
|
2005
|
+
= "let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.openEditDialog(tableParam.row)";
|
|
2006
2006
|
} else if ("addSiblingEditRow" == formatS) {
|
|
2007
2007
|
columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
2008
2008
|
columnSelectedWidget.options.label = "新增兄弟节点";
|
|
2009
2009
|
columnSelectedWidget.options.labelHidden = false;
|
|
2010
|
-
columnSelectedWidget.options.onClick
|
|
2011
|
-
"let tableParam = this.tableParam;\nthis.getParentTarget().addSiblingTreeRow(null,tableParam);";
|
|
2010
|
+
columnSelectedWidget.options.onClick
|
|
2011
|
+
= "let tableParam = this.tableParam;\nthis.getParentTarget().addSiblingTreeRow(null,tableParam);";
|
|
2012
2012
|
} else if ("addChildTreeRow" == formatS) {
|
|
2013
2013
|
columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
2014
2014
|
columnSelectedWidget.options.label = "新增子节点";
|
|
2015
2015
|
columnSelectedWidget.options.labelHidden = false;
|
|
2016
|
-
columnSelectedWidget.options.onClick
|
|
2017
|
-
"let tableParam = this.tableParam;\nthis.getParentTarget().addChildTreeRow(null,tableParam);";
|
|
2016
|
+
columnSelectedWidget.options.onClick
|
|
2017
|
+
= "let tableParam = this.tableParam;\nthis.getParentTarget().addChildTreeRow(null,tableParam);";
|
|
2018
2018
|
} else if ("moveUpRow" == formatS) {
|
|
2019
2019
|
// columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
2020
2020
|
columnSelectedWidget.options.label = "↑上移";
|
|
2021
2021
|
columnSelectedWidget.options.labelHidden = false;
|
|
2022
|
-
columnSelectedWidget.options.onClick
|
|
2023
|
-
"let tableParam = this.tableParam;\nthis.getParentTarget().moveUpRow(tableParam);";
|
|
2022
|
+
columnSelectedWidget.options.onClick
|
|
2023
|
+
= "let tableParam = this.tableParam;\nthis.getParentTarget().moveUpRow(tableParam);";
|
|
2024
2024
|
} else if ("moveDownRow" == formatS) {
|
|
2025
2025
|
// columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
2026
2026
|
columnSelectedWidget.options.label = "↓下移";
|
|
2027
2027
|
columnSelectedWidget.options.labelHidden = false;
|
|
2028
|
-
columnSelectedWidget.options.onClick
|
|
2029
|
-
"let tableParam = this.tableParam;\nthis.getParentTarget().moveDownRow(tableParam);";
|
|
2028
|
+
columnSelectedWidget.options.onClick
|
|
2029
|
+
= "let tableParam = this.tableParam;\nthis.getParentTarget().moveDownRow(tableParam);";
|
|
2030
2030
|
} else if ("removeTreeRow" == formatS) {
|
|
2031
2031
|
columnSelectedWidget.options.prefixIcon = "el-icon-delete";
|
|
2032
2032
|
columnSelectedWidget.options.label = "删除";
|
|
2033
2033
|
columnSelectedWidget.options.labelHidden = true;
|
|
2034
|
-
columnSelectedWidget.options.onClick
|
|
2035
|
-
"let tableParam = this.tableParam;\nthis.getParentTarget().removeTreeRow(tableParam);";
|
|
2034
|
+
columnSelectedWidget.options.onClick
|
|
2035
|
+
= "let tableParam = this.tableParam;\nthis.getParentTarget().removeTreeRow(tableParam);";
|
|
2036
2036
|
}
|
|
2037
2037
|
columnOption = columnSelectedWidget.options;
|
|
2038
2038
|
}
|
|
@@ -2200,8 +2200,8 @@ modules = {
|
|
|
2200
2200
|
}
|
|
2201
2201
|
let formRef = this.getFormRef();
|
|
2202
2202
|
let dataTableConfig = formRef.$attrs.dataTableOption || {};
|
|
2203
|
-
dataTableConfig.onCheckboxChange
|
|
2204
|
-
dataTableConfig.onCheckboxChange(param);
|
|
2203
|
+
dataTableConfig.onCheckboxChange
|
|
2204
|
+
&& dataTableConfig.onCheckboxChange(param);
|
|
2205
2205
|
},
|
|
2206
2206
|
handleCheckboxAll(param) {
|
|
2207
2207
|
if (this.widget.options.onCheckboxAll) {
|
|
@@ -2359,9 +2359,10 @@ modules = {
|
|
|
2359
2359
|
editDefaultRow = originOption.editDefaultRow || {};
|
|
2360
2360
|
}
|
|
2361
2361
|
}
|
|
2362
|
+
|
|
2362
2363
|
// Object.assign(newRow, editDefaultRow, rowData);
|
|
2363
|
-
newRow.id
|
|
2364
|
-
"row_" + new Date().valueOf() + Math.floor(Math.random() * 1000000);
|
|
2364
|
+
newRow.id
|
|
2365
|
+
= "row_" + new Date().valueOf() + Math.floor(Math.random() * 1000000);
|
|
2365
2366
|
if (!toSibling) {
|
|
2366
2367
|
newRow[parentField] = parent?.id || 0;
|
|
2367
2368
|
} else {
|
|
@@ -2376,8 +2377,8 @@ modules = {
|
|
|
2376
2377
|
if (toEnd === true) {
|
|
2377
2378
|
tableRows.push(newRow);
|
|
2378
2379
|
} else if (toSibling === true) {
|
|
2379
|
-
let addIndex
|
|
2380
|
-
tableRows.findIndex(
|
|
2380
|
+
let addIndex
|
|
2381
|
+
= tableRows.findIndex(
|
|
2381
2382
|
(item) => item._X_ROW_KEY == obj.row._X_ROW_KEY
|
|
2382
2383
|
) + 1;
|
|
2383
2384
|
tableRows.splice(addIndex, 0, newRow);
|
|
@@ -2398,8 +2399,8 @@ modules = {
|
|
|
2398
2399
|
if (toEnd === true) {
|
|
2399
2400
|
tableRows.push(newRow);
|
|
2400
2401
|
} else if (toSibling === true) {
|
|
2401
|
-
let addIndex
|
|
2402
|
-
tableRows.findIndex(
|
|
2402
|
+
let addIndex
|
|
2403
|
+
= tableRows.findIndex(
|
|
2403
2404
|
(item) => item._X_ROW_KEY == obj.row._X_ROW_KEY
|
|
2404
2405
|
) + 1;
|
|
2405
2406
|
tableRows.splice(addIndex, 0, newRow);
|
|
@@ -2428,8 +2429,8 @@ modules = {
|
|
|
2428
2429
|
if (row[childrenField]) {
|
|
2429
2430
|
let loopDo = (item) => {
|
|
2430
2431
|
if (item.id) delIds.push(item.id);
|
|
2431
|
-
item[childrenField]
|
|
2432
|
-
item[childrenField].forEach((subItem) => {
|
|
2432
|
+
item[childrenField]
|
|
2433
|
+
&& item[childrenField].forEach((subItem) => {
|
|
2433
2434
|
loopDo(subItem);
|
|
2434
2435
|
});
|
|
2435
2436
|
};
|
|
@@ -2470,8 +2471,8 @@ modules = {
|
|
|
2470
2471
|
}
|
|
2471
2472
|
}
|
|
2472
2473
|
// Object.assign(newRow, editDefaultRow, rowData);
|
|
2473
|
-
newRow.id
|
|
2474
|
-
"row_" + new Date().valueOf() + Math.floor(Math.random() * 1000000);
|
|
2474
|
+
newRow.id
|
|
2475
|
+
= "row_" + new Date().valueOf() + Math.floor(Math.random() * 1000000);
|
|
2475
2476
|
if (!toSibling) {
|
|
2476
2477
|
newRow[parentField] = parent?.id || 0;
|
|
2477
2478
|
} else {
|
|
@@ -2486,8 +2487,8 @@ modules = {
|
|
|
2486
2487
|
if (toEnd === true) {
|
|
2487
2488
|
tableRows.push(newRow);
|
|
2488
2489
|
} else if (toSibling === true) {
|
|
2489
|
-
let addIndex
|
|
2490
|
-
tableRows.findIndex(
|
|
2490
|
+
let addIndex
|
|
2491
|
+
= tableRows.findIndex(
|
|
2491
2492
|
(item) => item._X_ROW_KEY == obj.row._X_ROW_KEY
|
|
2492
2493
|
) + 1;
|
|
2493
2494
|
tableRows.splice(addIndex, 0, newRow);
|
|
@@ -2508,8 +2509,8 @@ modules = {
|
|
|
2508
2509
|
if (toEnd === true) {
|
|
2509
2510
|
tableRows.push(newRow);
|
|
2510
2511
|
} else if (toSibling === true) {
|
|
2511
|
-
let addIndex
|
|
2512
|
-
tableRows.findIndex(
|
|
2512
|
+
let addIndex
|
|
2513
|
+
= tableRows.findIndex(
|
|
2513
2514
|
(item) => item._X_ROW_KEY == obj.row._X_ROW_KEY
|
|
2514
2515
|
) + 1;
|
|
2515
2516
|
tableRows.splice(addIndex, 0, newRow);
|
|
@@ -2554,8 +2555,8 @@ modules = {
|
|
|
2554
2555
|
let loopDo = (item, wbs) => {
|
|
2555
2556
|
item.f_wbs = wbs;
|
|
2556
2557
|
map[item._X_ROW_KEY] = wbs;
|
|
2557
|
-
item[childrenField]
|
|
2558
|
-
item[childrenField].forEach((subitem, subindex) => {
|
|
2558
|
+
item[childrenField]
|
|
2559
|
+
&& item[childrenField].forEach((subitem, subindex) => {
|
|
2559
2560
|
let sub_wbs = wbs + "." + (subindex + 1) + "";
|
|
2560
2561
|
loopDo(subitem, sub_wbs);
|
|
2561
2562
|
});
|