cloud-web-corejs 1.0.281 → 1.1.0-dev.11
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 +6 -2
- package/src/components/VabUpload/image-viewer.vue +442 -442
- package/src/components/VabUpload/index.vue +45 -3
- package/src/components/VabUpload/mixins.js +126 -19
- package/src/components/VabUpload/view.vue +248 -209
- package/src/components/baseTabs/mixins.js +181 -181
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +705 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +23 -12
- package/src/components/excelExport/exportItemConfigUtil.js +30 -0
- package/src/components/excelExport/mixins.js +3 -3
- package/src/components/excelImport/index.vue +156 -156
- package/src/components/jsonImport/index.vue +1 -1
- package/src/components/langImport/index.vue +1 -1
- package/src/components/mobile/statusTag/mixins.js +1 -61
- package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
- package/src/components/mobile/wf/content.vue +1705 -1556
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
- package/src/components/mobile/wf/selectUserDialog.vue +118 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
- package/src/components/mobile/wf/urgingDialog.vue +26 -3
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- package/src/components/obsUpload/index.vue +1 -1
- package/src/components/table/config.js +78 -78
- package/src/components/table/index.js +1276 -1276
- package/src/components/table/plugins/cell-area/index.js +1055 -0
- package/src/components/table/plugins/cell-area/index.scss +77 -0
- package/src/components/table/plugins/cell-area/util.js +224 -0
- package/src/components/table/tableForm.vue +330 -330
- package/src/components/table/tableFormMixin.js +318 -318
- package/src/components/table/vxeFilter/index.js +163 -163
- package/src/components/table/vxeFilter/mixin.js +316 -316
- package/src/components/wf/content.vue +1188 -1188
- package/src/components/wf/wf.js +40 -20
- package/src/components/wf/wfActionDropdown.vue +1 -1
- package/src/components/wf/wfActionItems.js +1 -1
- package/src/components/xform/form-designer/designer.js +51 -52
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +18 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +23 -2
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +30 -1
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +47 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +3 -2
- package/src/components/xform/form-designer/indexMixin.js +35 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -432
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -846
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +12 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +884 -874
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +14 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +30 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +112 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +151 -93
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +204 -34
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1913 -1699
- package/src/components/xform/form-render/index.vue +153 -147
- package/src/components/xform/form-render/indexMixin.js +35 -3
- package/src/components/xform/lang/en-US.js +14 -0
- package/src/components/xform/lang/zh-CN.js +17 -0
- package/src/components/xform/mixins/defaultHandle.js +707 -707
- package/src/components/xform/styles/h5.scss +2262 -0
- package/src/components/xform/utils/textMaskUtil.js +182 -179
- package/src/components/xform/utils/treeTableUtil.js +1292 -1265
- package/src/components/xform/utils/util.js +56 -11
- package/src/directive/append-to-body/index.js +48 -0
- package/src/index.js +13 -4
- package/src/layout/components/Sidebar/default.vue +1655 -1655
- package/src/layout/components/extractedCode/viewDialog.vue +7 -7
- package/src/router/index.js +48 -27
- package/src/router/modules/customer.js +71 -14
- package/src/store/modules/permission.js +17 -18
- package/src/utils/assetUrl.js +19 -0
- package/src/utils/pdfUtil.js +429 -429
- package/src/utils/resolveViewComponent.js +142 -16
- package/src/utils/vab.js +1283 -1279
- package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
- package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
- package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
- package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
- package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
- package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
- package/src/views/bd/project/branch/form_script/list.vue +31 -0
- package/src/views/bd/project/branch/form_template/list.vue +30 -0
- package/src/views/bd/project/branch/menu_kind/list.vue +31 -0
- package/src/views/bd/project/common/form_script/list.vue +16 -0
- package/src/views/bd/project/common/form_template/list.vue +15 -0
- package/src/views/bd/project/common/menu_kind/list.vue +15 -0
- package/src/views/bd/project/core/branchContext.js +100 -0
- package/src/views/bd/project/core/branchPage.js +78 -0
- package/src/views/bd/project/core/branchPageWrap.vue +225 -0
- package/src/views/bd/project/core/branchScope.js +44 -0
- package/src/views/bd/project/core/branchSearchPage.js +285 -0
- package/src/views/bd/project/core/branchSelect.vue +85 -0
- package/src/views/bd/project/core/branchTreeBar.vue +81 -0
- package/src/views/bd/project/core/httpBranchPatch.js +58 -0
- package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
- package/src/views/bd/project/datatable/table_model/list.vue +15 -0
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/form_template/edit.vue +378 -356
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +304 -303
- package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
- package/src/views/bd/setting/form_template/mixins/list.js +748 -721
- package/src/views/bd/setting/table_model/edit.vue +1066 -1066
- package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
- package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
- package/src/views/support/form-dialog-demo/index.vue +537 -0
- package/src/views/user/file_view_ins/list.vue +970 -970
- package/src/views/user/form/vform/designer.vue +823 -821
- package/src/views/user/home/default.vue +1117 -1117
- package/src/views/user/home/default2.vue +1 -1
- package/src/views/user/home/index.vue +103 -101
- package/src/views/user/notify_message/dialog.vue +139 -137
- package/src/views/user/outLink/form_view.vue +202 -202
- package/src/views/user/outLink/index.vue +110 -110
- package/src/views/user/outLink/view.vue +3 -3
- package/src/views/user/role/edit.vue +632 -632
- package/src/views/user/role/list.vue +260 -260
- package/src/views/user/wf/iframe/index.vue +51 -51
- package/src/views/user/wf/iframe/index2.vue +64 -64
- package/src/views/user/wf/wf_manage/list.vue +1112 -1116
- package/src/views/user/wf/wf_manage/list2.vue +871 -875
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -131
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +0 -106
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +0 -99
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
- package/src/utils/wf.js +0 -766
|
@@ -1,131 +1,134 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
:title="$t1('查看单据流程')"
|
|
4
|
-
:append-to-body="true"
|
|
5
|
-
:modal-append-to-body="true"
|
|
6
|
-
:close-on-click-modal="false"
|
|
7
|
-
:visible.sync="showWfDialog"
|
|
8
|
-
:modal="false"
|
|
9
|
-
custom-class="el-dialog dialog-style designer-dialog indexUse"
|
|
10
|
-
width="100%"
|
|
11
|
-
height="100%"
|
|
12
|
-
top="0px"
|
|
13
|
-
bottom="0px"
|
|
14
|
-
:destroy-on-close="true"
|
|
15
|
-
@close="wfClose"
|
|
16
|
-
>
|
|
17
|
-
<div id="containt">
|
|
18
|
-
<component
|
|
19
|
-
v-if="showWfContent && wfContent"
|
|
20
|
-
:is="wfContent"
|
|
21
|
-
visible-key="showWfContent"
|
|
22
|
-
v-bind="param"
|
|
23
|
-
:parent-target="_self"
|
|
24
|
-
:defaultShowWfContent="true"
|
|
25
|
-
:_viewType="1"
|
|
26
|
-
@reload="$reloadHandle"
|
|
27
|
-
:_handleCallback="handleCallback"
|
|
28
|
-
></component>
|
|
29
|
-
<micro-view-host
|
|
30
|
-
v-else-if="showWfContent && remoteView"
|
|
31
|
-
:owner="remoteView.owner"
|
|
32
|
-
:target-path="remoteView.targetPath"
|
|
33
|
-
:biz-params="remoteView.bizParams"
|
|
34
|
-
:view-meta="remoteView.viewMeta"
|
|
35
|
-
@reload="$reloadHandle"
|
|
36
|
-
@handle-callback="handleCallback"
|
|
37
|
-
@close="showWfContent = false"
|
|
38
|
-
></micro-view-host>
|
|
39
|
-
</div>
|
|
40
|
-
</el-dialog>
|
|
41
|
-
</template>
|
|
42
|
-
|
|
43
|
-
<script>
|
|
44
|
-
import {
|
|
45
|
-
export default {
|
|
46
|
-
name: "wfContentDialog",
|
|
47
|
-
props: {
|
|
48
|
-
option: {
|
|
49
|
-
type: Object,
|
|
50
|
-
default: {},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
components: {},
|
|
54
|
-
data() {
|
|
55
|
-
return {
|
|
56
|
-
param: {},
|
|
57
|
-
wfContent: null,
|
|
58
|
-
remoteView: null,
|
|
59
|
-
showWfContent: false,
|
|
60
|
-
showWfDialog: true,
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
created() {
|
|
64
|
-
this.openWfDialog();
|
|
65
|
-
},
|
|
66
|
-
methods: {
|
|
67
|
-
handleCallback(flag) {
|
|
68
|
-
if ([1, 2, 3, 4].includes(flag)) {
|
|
69
|
-
this.$http({
|
|
70
|
-
url: USER_PREFIX + "/wf_diy_attribute/getValue",
|
|
71
|
-
method: `post`,
|
|
72
|
-
data: { attributeKey: "param4" },
|
|
73
|
-
isLoading: true,
|
|
74
|
-
success: (res) => {
|
|
75
|
-
let val = res.objx || false;
|
|
76
|
-
this.option._handleCallback && this.option._handleCallback(flag);
|
|
77
|
-
if (val === true) {
|
|
78
|
-
this.wfClose();
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
} else {
|
|
83
|
-
this.option._handleCallback && this.option._handleCallback(flag);
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
wfClose() {
|
|
87
|
-
this.showWfDialog = false;
|
|
88
|
-
this.$emit("update:visible", false);
|
|
89
|
-
this.$emit("close");
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
let
|
|
94
|
-
let
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:title="$t1('查看单据流程')"
|
|
4
|
+
:append-to-body="true"
|
|
5
|
+
:modal-append-to-body="true"
|
|
6
|
+
:close-on-click-modal="false"
|
|
7
|
+
:visible.sync="showWfDialog"
|
|
8
|
+
:modal="false"
|
|
9
|
+
custom-class="el-dialog dialog-style designer-dialog indexUse"
|
|
10
|
+
width="100%"
|
|
11
|
+
height="100%"
|
|
12
|
+
top="0px"
|
|
13
|
+
bottom="0px"
|
|
14
|
+
:destroy-on-close="true"
|
|
15
|
+
@close="wfClose"
|
|
16
|
+
>
|
|
17
|
+
<div id="containt">
|
|
18
|
+
<component
|
|
19
|
+
v-if="showWfContent && wfContent"
|
|
20
|
+
:is="wfContent"
|
|
21
|
+
visible-key="showWfContent"
|
|
22
|
+
v-bind="param"
|
|
23
|
+
:parent-target="_self"
|
|
24
|
+
:defaultShowWfContent="true"
|
|
25
|
+
:_viewType="1"
|
|
26
|
+
@reload="$reloadHandle"
|
|
27
|
+
:_handleCallback="handleCallback"
|
|
28
|
+
></component>
|
|
29
|
+
<micro-view-host
|
|
30
|
+
v-else-if="showWfContent && remoteView"
|
|
31
|
+
:owner="remoteView.owner"
|
|
32
|
+
:target-path="remoteView.targetPath"
|
|
33
|
+
:biz-params="remoteView.bizParams"
|
|
34
|
+
:view-meta="remoteView.viewMeta"
|
|
35
|
+
@reload="$reloadHandle"
|
|
36
|
+
@handle-callback="handleCallback"
|
|
37
|
+
@close="showWfContent = false"
|
|
38
|
+
></micro-view-host>
|
|
39
|
+
</div>
|
|
40
|
+
</el-dialog>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
|
|
45
|
+
export default {
|
|
46
|
+
name: "wfContentDialog",
|
|
47
|
+
props: {
|
|
48
|
+
option: {
|
|
49
|
+
type: Object,
|
|
50
|
+
default: {},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
components: {},
|
|
54
|
+
data() {
|
|
55
|
+
return {
|
|
56
|
+
param: {},
|
|
57
|
+
wfContent: null,
|
|
58
|
+
remoteView: null,
|
|
59
|
+
showWfContent: false,
|
|
60
|
+
showWfDialog: true,
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
created() {
|
|
64
|
+
this.openWfDialog();
|
|
65
|
+
},
|
|
66
|
+
methods: {
|
|
67
|
+
handleCallback(flag) {
|
|
68
|
+
if ([1, 2, 3, 4].includes(flag)) {
|
|
69
|
+
this.$http({
|
|
70
|
+
url: USER_PREFIX + "/wf_diy_attribute/getValue",
|
|
71
|
+
method: `post`,
|
|
72
|
+
data: { attributeKey: "param4" },
|
|
73
|
+
isLoading: true,
|
|
74
|
+
success: (res) => {
|
|
75
|
+
let val = res.objx || false;
|
|
76
|
+
this.option._handleCallback && this.option._handleCallback(flag);
|
|
77
|
+
if (val === true) {
|
|
78
|
+
this.wfClose();
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
} else {
|
|
83
|
+
this.option._handleCallback && this.option._handleCallback(flag);
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
wfClose() {
|
|
87
|
+
this.showWfDialog = false;
|
|
88
|
+
this.$emit("update:visible", false);
|
|
89
|
+
this.$emit("close");
|
|
90
|
+
},
|
|
91
|
+
// 异步:await 之后才置 showWfContent(见方法末尾),否则弹窗先开出空壳
|
|
92
|
+
async openWfDialog() {
|
|
93
|
+
let id = this.option.objId;
|
|
94
|
+
let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
|
|
95
|
+
let param = this.option.param || {};
|
|
96
|
+
if (this.option.url == "form") {
|
|
97
|
+
let formCode = null;
|
|
98
|
+
if (this.option.formCode) {
|
|
99
|
+
formCode = this.option.formCode;
|
|
100
|
+
} else {
|
|
101
|
+
formCode = this.option.objTypeCode.substr(9);
|
|
102
|
+
}
|
|
103
|
+
this.param = Object.assign(param, {
|
|
104
|
+
formCode: formCode,
|
|
105
|
+
dataId: wfDataId,
|
|
106
|
+
});
|
|
107
|
+
// 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
|
|
108
|
+
this.wfContent = (
|
|
109
|
+
await import("@base/views/user/form/vform/render.vue")
|
|
110
|
+
).default;
|
|
111
|
+
} else {
|
|
112
|
+
this.param = Object.assign(param, {
|
|
113
|
+
_dataId: wfDataId,
|
|
114
|
+
});
|
|
115
|
+
let url = this.option.url + ".vue";
|
|
116
|
+
const res = await loadViewComponentAsync(url);
|
|
117
|
+
this.remoteView =
|
|
118
|
+
res.kind === "remote"
|
|
119
|
+
? {
|
|
120
|
+
owner: res.owner,
|
|
121
|
+
targetPath: res.targetPath,
|
|
122
|
+
bizParams: this.param,
|
|
123
|
+
viewMeta: { visibleKey: "showWfContent", defaultShowWfContent: true, viewType: 1 },
|
|
124
|
+
}
|
|
125
|
+
: null;
|
|
126
|
+
this.wfContent = res.component;
|
|
127
|
+
}
|
|
128
|
+
this.showWfContent = true;
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
</script>
|
|
133
|
+
|
|
134
|
+
<style scoped></style>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
</el-upload>
|
|
22
22
|
<div class="upload-finish" v-if="fileRaw">
|
|
23
|
-
<img :src="require('@/resources' + '/images/ico-txt.svg')" class="ico"/>
|
|
23
|
+
<img :src="$assetUrl(require('@/resources' + '/images/ico-txt.svg'))" class="ico"/>
|
|
24
24
|
<p class="name">{{ fileRaw.name }}</p>
|
|
25
25
|
<!-- <p>2022-1-17</p> -->
|
|
26
26
|
<el-tooltip :enterable="false" class="item" effect="dark"
|
package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<static-content-wrapper :designer="designer" :field="field" :design-state="designState"
|
|
3
|
-
:display-style="field.options.displayStyle"
|
|
4
|
-
:parent-widget="parentWidget" :parent-list="parentList"
|
|
5
|
-
:index-of-parent-list="indexOfParentList"
|
|
6
|
-
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex"
|
|
7
|
-
:sub-form-row-id="subFormRowId">
|
|
8
|
-
<el-dropdown trigger="hover">
|
|
9
|
-
|
|
10
|
-
<el-button type="primary" class="button-sty" size="mini">
|
|
11
|
-
<span>{{ getI18nLabel(field.options.label) }}</span><span class="line"></span> <i
|
|
12
|
-
class="el-icon-arrow-down el-icon--right"></i>
|
|
13
|
-
</el-button>
|
|
14
|
-
<el-dropdown-menu slot="dropdown">
|
|
15
|
-
<template v-for="(subWidget,index) in field.widgetList">
|
|
16
|
-
<el-dropdown-item v-if="!subWidget.options.hidden" :key="index" :icon="subWidget.options.icon"
|
|
17
|
-
@click.native="handleSubButtonWidgetClick(index)">
|
|
18
|
-
<!-- {{ getI18nLabel(subWidget.options.label) }}-->
|
|
19
|
-
<dropdownItemWidget :field="subWidget" :parent-list="field.widgetList"
|
|
20
|
-
:index-of-parent-list="index" :parent-widget="field" :tableParam="tableParam"
|
|
21
|
-
:formItemProp="formItemProp" :ref="'item'+index">
|
|
22
|
-
</dropdownItemWidget>
|
|
23
|
-
</el-dropdown-item>
|
|
24
|
-
|
|
25
|
-
</template>
|
|
26
|
-
</el-dropdown-menu>
|
|
27
|
-
</el-dropdown>
|
|
28
|
-
</static-content-wrapper>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
import StaticContentWrapper from './static-content-wrapper'
|
|
33
|
-
import emitter from '../../../../../components/xform/utils/emitter'
|
|
34
|
-
import i18n from "../../../../../components/xform/utils/i18n";
|
|
35
|
-
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
|
36
|
-
import dropdownItemWidget from '../../../../../components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue';
|
|
37
|
-
|
|
38
|
-
export default {
|
|
39
|
-
name: "dropdown-menu-widget",
|
|
40
|
-
componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
41
|
-
mixins: [emitter, fieldMixin, i18n],
|
|
42
|
-
props: {
|
|
43
|
-
field: Object,
|
|
44
|
-
parentWidget: Object,
|
|
45
|
-
parentList: Array,
|
|
46
|
-
indexOfParentList: Number,
|
|
47
|
-
designer: Object,
|
|
48
|
-
|
|
49
|
-
designState: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
|
|
55
|
-
type: Number,
|
|
56
|
-
default: -1
|
|
57
|
-
},
|
|
58
|
-
subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
|
|
59
|
-
type: Number,
|
|
60
|
-
default: -1
|
|
61
|
-
},
|
|
62
|
-
subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
|
|
63
|
-
type: String,
|
|
64
|
-
default: ''
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
components: {
|
|
69
|
-
StaticContentWrapper,
|
|
70
|
-
dropdownItemWidget
|
|
71
|
-
},
|
|
72
|
-
computed: {},
|
|
73
|
-
beforeCreate() {
|
|
74
|
-
/* 这里不能访问方法和属性!! */
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
created() {
|
|
78
|
-
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
|
79
|
-
需要在父组件created中初始化!! */
|
|
80
|
-
this.registerToRefList()
|
|
81
|
-
this.initEventHandler()
|
|
82
|
-
|
|
83
|
-
this.handleOnCreated()
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
mounted() {
|
|
87
|
-
this.handleOnMounted()
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
beforeDestroy() {
|
|
91
|
-
this.unregisterFromRefList()
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
methods: {
|
|
95
|
-
handleSubButtonWidgetClick(index) {
|
|
96
|
-
this.$refs["item"+index].handleButtonWidgetClick()
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
<style lang="scss" scoped>
|
|
104
|
-
@import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
|
|
105
|
-
|
|
106
|
-
</style>
|
package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<static-content-wrapper
|
|
3
|
-
:designer="designer" :field="field" :design-state="designState"
|
|
4
|
-
:display-style="field.options.displayStyle"
|
|
5
|
-
:parent-widget="parentWidget" :parent-list="parentList"
|
|
6
|
-
:index-of-parent-list="indexOfParentList">
|
|
7
|
-
<el-dropdown trigger="hover">
|
|
8
|
-
<el-button type="primary" class="button-sty" size="mini">
|
|
9
|
-
<span>{{ getI18nLabel('列表导出') }}</span><span class="line"></span> <i
|
|
10
|
-
class="el-icon-arrow-down el-icon--right"></i>
|
|
11
|
-
</el-button>
|
|
12
|
-
<el-dropdown-menu slot="dropdown">
|
|
13
|
-
<el-dropdown-item icon="el-icon-upload2"
|
|
14
|
-
@click.native="toDo()">
|
|
15
|
-
{{ getI18nLabel('条件导出') }}
|
|
16
|
-
</el-dropdown-item>
|
|
17
|
-
<el-dropdown-item icon="el-icon-upload2"
|
|
18
|
-
@click.native="toDo('selected')">
|
|
19
|
-
{{ getI18nLabel('选择导出') }}
|
|
20
|
-
</el-dropdown-item>
|
|
21
|
-
</el-dropdown-menu>
|
|
22
|
-
</el-dropdown>
|
|
23
|
-
</static-content-wrapper>
|
|
24
|
-
|
|
25
|
-
</template>
|
|
26
|
-
<script>
|
|
27
|
-
import emitter from '../../../../../components/xform/utils/emitter'
|
|
28
|
-
import i18n from "../../../../../components/xform/utils/i18n";
|
|
29
|
-
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
|
30
|
-
import StaticContentWrapper
|
|
31
|
-
from "../../../../../components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue";
|
|
32
|
-
|
|
33
|
-
export default {
|
|
34
|
-
name: 'TableExportButtonWidget',
|
|
35
|
-
components: {StaticContentWrapper},
|
|
36
|
-
componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
37
|
-
mixins: [emitter, fieldMixin, i18n],
|
|
38
|
-
props: {
|
|
39
|
-
field: Object,
|
|
40
|
-
parentWidget: Object,
|
|
41
|
-
parentList: Array,
|
|
42
|
-
indexOfParentList: Number,
|
|
43
|
-
designer: Object,
|
|
44
|
-
designState: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: false
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
data() {
|
|
50
|
-
return {}
|
|
51
|
-
},
|
|
52
|
-
beforeCreate() {
|
|
53
|
-
/* 这里不能访问方法和属性!! */
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
created() {
|
|
57
|
-
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
|
58
|
-
需要在父组件created中初始化!! */
|
|
59
|
-
this.registerToRefList()
|
|
60
|
-
this.initEventHandler()
|
|
61
|
-
|
|
62
|
-
this.handleOnCreated()
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
mounted() {
|
|
66
|
-
this.handleOnMounted()
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
beforeDestroy() {
|
|
70
|
-
this.unregisterFromRefList()
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
methods: {
|
|
74
|
-
toDo(type = null) {
|
|
75
|
-
if (this.designState) {
|
|
76
|
-
return
|
|
77
|
-
}
|
|
78
|
-
let opt = {
|
|
79
|
-
title: this.field.options.exportFileName || null,
|
|
80
|
-
targetRef: this.field.options.tableRef || null,
|
|
81
|
-
pageSize: (this.field.options.exportPageSize || null),
|
|
82
|
-
showImageAtTable: this.field.options.showImageAtTable || null
|
|
83
|
-
};
|
|
84
|
-
let tableExportParam = this.handleCustomEvent(this.field.options.tableExportParam);
|
|
85
|
-
let options = {...opt, ...tableExportParam, type: type};
|
|
86
|
-
let tableRef = options?.targetRef;
|
|
87
|
-
delete options.targetRef
|
|
88
|
-
let tableWidget = this.getWidgetRef(tableRef);
|
|
89
|
-
tableWidget.exportData(options)
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
</script>
|
|
95
|
-
|
|
96
|
-
<style lang="scss" scoped>
|
|
97
|
-
@import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
|
|
98
|
-
|
|
99
|
-
</style>
|