cloud-web-corejs 1.0.54-dev.425 → 1.0.54-dev.427
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/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +38 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -2874
- package/src/components/xform/form-render/index.vue +2 -0
- package/src/components/xform/form-render/indexMixin.js +5 -0
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/utils/vab.js +6 -2
|
@@ -62,11 +62,13 @@
|
|
|
62
62
|
<searchFormDialog
|
|
63
63
|
v-if="showSearchDialog"
|
|
64
64
|
:visiable.sync="showSearchDialog"
|
|
65
|
+
ref="searchFormDialog"
|
|
65
66
|
:option="searchDialogOption"
|
|
66
67
|
></searchFormDialog>
|
|
67
68
|
<formDialog
|
|
68
69
|
v-if="showFormDialog"
|
|
69
70
|
:visiable.sync="showFormDialog"
|
|
71
|
+
ref="formDialog"
|
|
70
72
|
:option="formDialogOption"
|
|
71
73
|
></formDialog>
|
|
72
74
|
<importDialog
|
|
@@ -2771,6 +2771,11 @@ modules = {
|
|
|
2771
2771
|
this.formDialogOption = option;
|
|
2772
2772
|
this.showFormDialog = true;
|
|
2773
2773
|
},
|
|
2774
|
+
closeFormDialog() {
|
|
2775
|
+
if(this.showFormDialog){
|
|
2776
|
+
this.$refs.formDialog.close();
|
|
2777
|
+
}
|
|
2778
|
+
},
|
|
2774
2779
|
confirmFormDialog() {
|
|
2775
2780
|
this.formDialogOption.confirm && this.formDialogOption.confirm();
|
|
2776
2781
|
},
|
package/src/utils/vab.js
CHANGED
|
@@ -1024,7 +1024,7 @@ install = (Vue, opts = {}) => {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
};
|
|
1026
1026
|
|
|
1027
|
-
Vue.prototype.$downloadByFileWhole = function (fileWhole) {
|
|
1027
|
+
Vue.prototype.$downloadByFileWhole = function (fileWhole, fileName) {
|
|
1028
1028
|
let that = this;
|
|
1029
1029
|
if (!fileWhole) {
|
|
1030
1030
|
this.$baseAlert("凭证信息不存在");
|
|
@@ -1042,6 +1042,9 @@ install = (Vue, opts = {}) => {
|
|
|
1042
1042
|
});
|
|
1043
1043
|
};
|
|
1044
1044
|
getDownloadDomian((domain) => {
|
|
1045
|
+
if(fileName){
|
|
1046
|
+
fileWhole.fileName = fileName;
|
|
1047
|
+
}
|
|
1045
1048
|
that.$http({
|
|
1046
1049
|
method: "post",
|
|
1047
1050
|
url: domain + "/docfile/download",
|
|
@@ -1049,7 +1052,8 @@ install = (Vue, opts = {}) => {
|
|
|
1049
1052
|
isLoading: true,
|
|
1050
1053
|
success: (res) => {
|
|
1051
1054
|
// window.open(res.objx.url);
|
|
1052
|
-
|
|
1055
|
+
let url = res.objx.url;
|
|
1056
|
+
openInNewTab(url);
|
|
1053
1057
|
},
|
|
1054
1058
|
});
|
|
1055
1059
|
});
|