cloud-web-corejs 1.0.54-dev.325 → 1.0.54-dev.327
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/wf/addOpinionButton.vue +3 -52
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +1 -156
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/wf.js +1 -2111
- package/src/components/wf/wfTaskUserRangeDialog.vue +2 -77
- package/src/components/xform/form-designer/designer.js +1645 -2
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +289 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +9 -43
- package/src/components/xform/form-render/container-item/data-table-mixin.js +228 -151
- package/src/components/xform/form-render/indexMixin.js +3141 -2
- package/src/utils/request.js +1 -324
- package/src/utils/vab.js +1 -1092
@@ -609,6 +609,7 @@ import {
|
|
609
609
|
generateId,
|
610
610
|
loopHandleWidget,
|
611
611
|
deepClone,
|
612
|
+
columnFormatMap
|
612
613
|
} from "../../../../../../components/xform/utils/util";
|
613
614
|
import columnRenderDialog from "./columnRenderDialog.vue";
|
614
615
|
|
@@ -865,28 +866,7 @@ export default {
|
|
865
866
|
tableData: [], //树形结构数据转的数组
|
866
867
|
tableDataArray: [],
|
867
868
|
dragSort: null,
|
868
|
-
columnFormatMap
|
869
|
-
editInput: "input",
|
870
|
-
editNumber: "number",
|
871
|
-
editDate: "date",
|
872
|
-
editSelect: "select",
|
873
|
-
editSearch: "vabsearch",
|
874
|
-
editAttachment: "baseAttachment",
|
875
|
-
editStatus: "status",
|
876
|
-
aText: "a-text",
|
877
|
-
aLink: "a-link",
|
878
|
-
editDelete: "a-link",
|
879
|
-
editButton: "a-link",
|
880
|
-
button: "button",
|
881
|
-
addSiblingEditRow: "a-link",
|
882
|
-
addChildTreeRow: "a-link",
|
883
|
-
moveUpRow: "a-link",
|
884
|
-
moveDownRow: "a-link",
|
885
|
-
removeTreeRow: "a-link",
|
886
|
-
text: "text",
|
887
|
-
checkbox: "checkbox",
|
888
|
-
radio: "radio",
|
889
|
-
},
|
869
|
+
columnFormatMap,
|
890
870
|
|
891
871
|
showFormEventDialogFlag: false,
|
892
872
|
formEventHandlerCode: "",
|
@@ -1275,8 +1255,9 @@ export default {
|
|
1275
1255
|
changeFormatS(row, isEdit) {
|
1276
1256
|
let formatS = isEdit ? row.editFormatS : row.formatS;
|
1277
1257
|
let isButtontCell = this.getIsButtontCell(formatS);
|
1278
|
-
let columnWidgetConfig = this.getColumnWidgetConfig(row, true, isEdit);
|
1279
|
-
let { columnSelectedWidget, columnEditFields } = columnWidgetConfig;
|
1258
|
+
// let columnWidgetConfig = this.getColumnWidgetConfig(row, true, isEdit);
|
1259
|
+
// let { columnSelectedWidget, columnEditFields } = columnWidgetConfig;
|
1260
|
+
let columnSelectedWidget = this.designer.createColumnWidget(row, isEdit)
|
1280
1261
|
if (!isEdit) {
|
1281
1262
|
//格式化类型
|
1282
1263
|
if (columnSelectedWidget) {
|
@@ -1554,11 +1535,10 @@ export default {
|
|
1554
1535
|
row.widget.options = columnOption;
|
1555
1536
|
} else {
|
1556
1537
|
let type = this.columnFormatMap[row.formatS];
|
1557
|
-
let fieldWidget = this.designer.
|
1558
|
-
this.designer.getFieldWidgetByType(type)
|
1559
|
-
);
|
1538
|
+
let fieldWidget = this.designer.createColumnWidget(row, false);
|
1560
1539
|
fieldWidget.options = columnOption;
|
1561
1540
|
row.widget = fieldWidget;
|
1541
|
+
this.$forceUpdate();
|
1562
1542
|
}
|
1563
1543
|
|
1564
1544
|
let isButtontCell = this.getIsButtontCell(row.formatS);
|
@@ -1569,20 +1549,7 @@ export default {
|
|
1569
1549
|
}
|
1570
1550
|
},
|
1571
1551
|
openEditFormatConfigDialog(row, index) {
|
1572
|
-
/*let option = row.columnOption;
|
1573
|
-
let selectedWidget;
|
1574
|
-
let columnWidgetConfig = this.getColumnWidgetConfig(row, null, true);
|
1575
|
-
let {columnSelectedWidget, columnEditFields} = columnWidgetConfig;
|
1576
|
-
if (columnSelectedWidget) {
|
1577
|
-
option = columnSelectedWidget.options;
|
1578
|
-
selectedWidget = columnSelectedWidget;
|
1579
|
-
} else {
|
1580
|
-
option = {};
|
1581
|
-
selectedWidget = {};
|
1582
|
-
}
|
1583
1552
|
|
1584
|
-
let columnOption = this.$baseLodash.cloneDeep(option);
|
1585
|
-
row.editColumnOption = columnOption;*/
|
1586
1553
|
let selectedWidget = row.editWidget;
|
1587
1554
|
this.operateIndex = index;
|
1588
1555
|
|
@@ -1607,11 +1574,10 @@ export default {
|
|
1607
1574
|
row.editWidget.options = columnOption;
|
1608
1575
|
} else {
|
1609
1576
|
let type = this.columnFormatMap[row.editFormatS];
|
1610
|
-
let fieldWidget = this.designer.
|
1611
|
-
this.designer.getFieldWidgetByType(type)
|
1612
|
-
);
|
1577
|
+
let fieldWidget = this.designer.createColumnWidget(row, true);
|
1613
1578
|
fieldWidget.options = columnOption;
|
1614
1579
|
row.editWidget = fieldWidget;
|
1580
|
+
this.$forceUpdate();
|
1615
1581
|
}
|
1616
1582
|
|
1617
1583
|
/*row.prop = columnOption.name;
|