cloud-web-corejs 1.0.129 → 1.0.131
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/VabUpload/view.vue +138 -55
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/errorMsg/mixins.js +1 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/jsonImport/mixins.js +2 -1
- package/src/components/langImport/mixins.js +17 -16
- package/src/components/vb-tabs/x-tabs.vue +36 -27
- package/src/components/wf/content.vue +772 -411
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/xform/form-designer/designer.js +3 -2
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +17 -4
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -0
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +13 -4
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -366
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +0 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +372 -253
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +9 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +7 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +37 -30
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +5 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +132 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/table2-cell-item.vue +53 -34
- package/src/components/xform/form-render/container-item/table2-item.vue +141 -88
- package/src/components/xform/lang/zh-CN.js +3 -0
- package/src/components/xform/utils/util.js +1 -1451
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1 -1
- package/src/views/user/form/view/list.vue +111 -67
- package/src/views/user/notify_message/dialog.vue +24 -19
- package/src/views/user/outLink/form_view.vue +211 -211
- package/src/views/user/wf/wfReport/index.vue +448 -0
- package/src/views/user/wf/wf_manage/list.vue +344 -251
- package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
@@ -1,8 +1,14 @@
|
|
1
1
|
<template>
|
2
|
-
<el-tabs
|
2
|
+
<el-tabs
|
3
|
+
v-model="activeName"
|
4
|
+
class="tab-box tab-morenav"
|
5
|
+
@tab-remove="removeTab"
|
6
|
+
@tab-click="tabClick"
|
7
|
+
ref="tabs"
|
8
|
+
>
|
3
9
|
<slot name="default"></slot>
|
4
|
-
<template v-for="(tab,index) in tabs">
|
5
|
-
<slot name="editTab" v-bind="{tab,index,tabs,reloadTabContent}"></slot>
|
10
|
+
<template v-for="(tab, index) in tabs">
|
11
|
+
<slot name="editTab" v-bind="{ tab, index, tabs, reloadTabContent }"></slot>
|
6
12
|
</template>
|
7
13
|
</el-tabs>
|
8
14
|
</template>
|
@@ -13,14 +19,14 @@ export default {
|
|
13
19
|
value: String,
|
14
20
|
paneKeyName: {
|
15
21
|
type: String,
|
16
|
-
default: () => "id"
|
17
|
-
}
|
22
|
+
default: () => "id",
|
23
|
+
},
|
18
24
|
},
|
19
25
|
data() {
|
20
26
|
return {
|
21
27
|
activeName: "0",
|
22
|
-
tabs: []
|
23
|
-
}
|
28
|
+
tabs: [],
|
29
|
+
};
|
24
30
|
},
|
25
31
|
watch: {
|
26
32
|
value(val) {
|
@@ -28,7 +34,7 @@ export default {
|
|
28
34
|
},
|
29
35
|
activeName(val) {
|
30
36
|
this.$emit("input", val);
|
31
|
-
}
|
37
|
+
},
|
32
38
|
},
|
33
39
|
created() {
|
34
40
|
if (this.value) {
|
@@ -36,16 +42,18 @@ export default {
|
|
36
42
|
}
|
37
43
|
},
|
38
44
|
methods: {
|
39
|
-
openEditTab(row,param) {
|
45
|
+
openEditTab(row, param, option) {
|
40
46
|
let paneKeyName = this.paneKeyName;
|
41
|
-
let tab = this.tabs.find(tab => tab.data[paneKeyName] === row[paneKeyName])
|
47
|
+
let tab = this.tabs.find((tab) => tab.data[paneKeyName] === row[paneKeyName]);
|
42
48
|
if (!tab) {
|
49
|
+
let tabParam = option?.tabParam || {};
|
43
50
|
tab = {
|
44
51
|
data: row,
|
45
52
|
showContent: false,
|
46
53
|
dataId: row[paneKeyName],
|
47
|
-
param
|
48
|
-
|
54
|
+
param,
|
55
|
+
...tabParam,
|
56
|
+
};
|
49
57
|
if (this.tabs.length >= 30) {
|
50
58
|
this.tabs.splice(0, 1, tab);
|
51
59
|
} else {
|
@@ -53,10 +61,10 @@ export default {
|
|
53
61
|
}
|
54
62
|
this.$nextTick(() => {
|
55
63
|
let paneName = this.getCurrentPaneName();
|
56
|
-
tab.paneName = paneName
|
57
|
-
})
|
64
|
+
tab.paneName = paneName;
|
65
|
+
});
|
58
66
|
}
|
59
|
-
this.activeName = row[paneKeyName] +
|
67
|
+
this.activeName = row[paneKeyName] + "";
|
60
68
|
tab.showContent = false;
|
61
69
|
setTimeout(() => {
|
62
70
|
tab.showContent = true;
|
@@ -64,12 +72,14 @@ export default {
|
|
64
72
|
},
|
65
73
|
removeTab(targetName) {
|
66
74
|
let paneKeyName = this.paneKeyName;
|
67
|
-
let tabIndex = this.tabs.findIndex(
|
75
|
+
let tabIndex = this.tabs.findIndex(
|
76
|
+
(tab) => tab.data[paneKeyName] + "" === targetName
|
77
|
+
);
|
68
78
|
if (this.activeName === targetName) {
|
69
79
|
if (tabIndex > 0) {
|
70
|
-
this.activeName = this.tabs[tabIndex - 1].data[paneKeyName] +
|
80
|
+
this.activeName = this.tabs[tabIndex - 1].data[paneKeyName] + "";
|
71
81
|
} else {
|
72
|
-
this.activeName =
|
82
|
+
this.activeName = "second";
|
73
83
|
}
|
74
84
|
}
|
75
85
|
if (tabIndex !== -1) {
|
@@ -82,18 +92,19 @@ export default {
|
|
82
92
|
},
|
83
93
|
getCurrntPaneTarget() {
|
84
94
|
let panes = this.$refs.tabs.panes;
|
85
|
-
let target = panes.find(pane => pane.active)
|
95
|
+
let target = panes.find((pane) => pane.active);
|
86
96
|
return target;
|
87
97
|
},
|
88
98
|
reloadTabContent(target, param, tab) {
|
89
|
-
let updateParam =
|
99
|
+
let updateParam =
|
100
|
+
param != null && param.updateParam != null ? param.updateParam : {};
|
90
101
|
for (let key in updateParam) {
|
91
102
|
target.$emit("update:" + key, updateParam[key]);
|
92
103
|
}
|
93
104
|
|
94
105
|
if (!tab) {
|
95
106
|
let activeName = this.activeName;
|
96
|
-
tab = this.tabs.find(item => item.paneName == activeName)
|
107
|
+
tab = this.tabs.find((item) => item.paneName == activeName);
|
97
108
|
}
|
98
109
|
if (tab) {
|
99
110
|
tab.showContent = false;
|
@@ -104,10 +115,8 @@ export default {
|
|
104
115
|
},
|
105
116
|
tabClick(targetName) {
|
106
117
|
this.$emit("tabClick", targetName);
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
118
|
+
},
|
119
|
+
},
|
120
|
+
};
|
110
121
|
</script>
|
111
|
-
<style scoped>
|
112
|
-
|
113
|
-
</style>
|
122
|
+
<style scoped></style>
|