cloud-web-corejs 1.0.54-dev.426 → 1.0.54-dev.429
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/Tinymce/index.vue +37 -18
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +30 -40
- 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 +4 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -2874
- package/src/utils/vab.js +6 -6
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,11 +1052,8 @@ install = (Vue, opts = {}) => {
|
|
|
1049
1052
|
isLoading: true,
|
|
1050
1053
|
success: (res) => {
|
|
1051
1054
|
// window.open(res.objx.url);
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
}else{
|
|
1055
|
-
handler(res.objx.url)
|
|
1056
|
-
}
|
|
1055
|
+
let url = res.objx.url;
|
|
1056
|
+
openInNewTab(url);
|
|
1057
1057
|
},
|
|
1058
1058
|
});
|
|
1059
1059
|
});
|