ecinc-cloud-yoabase 9.6.272 → 9.6.273
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/lib/ecyoabase.common.js +76 -36
- package/lib/ecyoabase.umd.js +76 -36
- package/lib/ecyoabase.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/ecyoabase.common.js
CHANGED
|
@@ -239946,8 +239946,8 @@ var InlineTextEditor_component = normalizeComponent(
|
|
|
239946
239946
|
)
|
|
239947
239947
|
|
|
239948
239948
|
/* harmony default export */ var InlineTextEditor = (InlineTextEditor_component.exports);
|
|
239949
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=
|
|
239950
|
-
var
|
|
239949
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=ed390518&scoped=true
|
|
239950
|
+
var PrintFilevue_type_template_id_ed390518_scoped_true_render = function render() {
|
|
239951
239951
|
var _vm = this,
|
|
239952
239952
|
_c = _vm._self._c;
|
|
239953
239953
|
return _c('div', {
|
|
@@ -239987,7 +239987,7 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_render = function render(
|
|
|
239987
239987
|
}
|
|
239988
239988
|
})], 1);
|
|
239989
239989
|
};
|
|
239990
|
-
var
|
|
239990
|
+
var PrintFilevue_type_template_id_ed390518_scoped_true_staticRenderFns = [];
|
|
239991
239991
|
|
|
239992
239992
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=script&lang=js
|
|
239993
239993
|
|
|
@@ -240033,37 +240033,77 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_staticRenderFns = [];
|
|
|
240033
240033
|
var $scope = this.$vnode.context;
|
|
240034
240034
|
// 返回base64图片地址
|
|
240035
240035
|
var printDiv = ifrmPrint.contentDocument.querySelector('#print');
|
|
240036
|
-
|
|
240037
|
-
|
|
240038
|
-
|
|
240039
|
-
|
|
240040
|
-
|
|
240041
|
-
|
|
240042
|
-
|
|
240043
|
-
|
|
240044
|
-
|
|
240045
|
-
|
|
240046
|
-
|
|
240047
|
-
|
|
240048
|
-
|
|
240049
|
-
|
|
240050
|
-
|
|
240051
|
-
}).then(function (res) {
|
|
240052
|
-
_this.$bus.emit('closeDoingDialog');
|
|
240053
|
-
if (res.code === 'success') {
|
|
240054
|
-
$scope.isShow = false;
|
|
240055
|
-
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240056
|
-
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240057
|
-
url += '&httpPort=' + location.port;
|
|
240058
|
-
window.open(url);
|
|
240059
|
-
} else {
|
|
240060
|
-
_this.$message({
|
|
240061
|
-
message: res.message,
|
|
240062
|
-
type: 'warning'
|
|
240036
|
+
var formTables = printDiv.querySelectorAll('.print_formtb');
|
|
240037
|
+
new Promise(function (resolve) {
|
|
240038
|
+
if (formTables.length > 1) {
|
|
240039
|
+
printDiv.querySelectorAll('.print_formtb').forEach(function (printtb, i) {
|
|
240040
|
+
printtb.style.display = 'none';
|
|
240041
|
+
});
|
|
240042
|
+
printDiv.querySelectorAll('.print_formtb').forEach(function (printtb, j) {
|
|
240043
|
+
if (j !== 0) {
|
|
240044
|
+
printDiv.querySelector('.form-header').display = 'none';
|
|
240045
|
+
}
|
|
240046
|
+
printtb.style.display = '';
|
|
240047
|
+
_this.$nextTick(function () {
|
|
240048
|
+
_this.saveWebformBase64data($scope, printDiv, j + 1).then(function (rst) {
|
|
240049
|
+
printtb.parentElement.removeChild(printtb);
|
|
240050
|
+
});
|
|
240063
240051
|
});
|
|
240064
|
-
}
|
|
240065
|
-
|
|
240066
|
-
|
|
240052
|
+
});
|
|
240053
|
+
var timer = setInterval(function () {
|
|
240054
|
+
if (printDiv.querySelectorAll('.print_formtb').length === 0) {
|
|
240055
|
+
resolve(true);
|
|
240056
|
+
clearInterval(timer);
|
|
240057
|
+
}
|
|
240058
|
+
}, 1000);
|
|
240059
|
+
} else {
|
|
240060
|
+
_this.saveWebformBase64data($scope, printDiv, 1).then(function (rst) {
|
|
240061
|
+
resolve(true);
|
|
240062
|
+
});
|
|
240063
|
+
}
|
|
240064
|
+
}).then(function (rst) {
|
|
240065
|
+
_this.$bus.emit('closeDoingDialog');
|
|
240066
|
+
if (rst) {
|
|
240067
|
+
$scope.isShow = false;
|
|
240068
|
+
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240069
|
+
url += '&pageSize=' + formTables.length;
|
|
240070
|
+
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240071
|
+
url += '&httpPort=' + location.port;
|
|
240072
|
+
window.open(url);
|
|
240073
|
+
}
|
|
240074
|
+
});
|
|
240075
|
+
},
|
|
240076
|
+
saveWebformBase64data: function saveWebformBase64data($scope, printDiv, pageNum) {
|
|
240077
|
+
var _this2 = this;
|
|
240078
|
+
return new Promise(function (resolve) {
|
|
240079
|
+
html2canvas_default()(printDiv, {
|
|
240080
|
+
// async: true,
|
|
240081
|
+
// dpi: window.devicePixelRatio * scale,
|
|
240082
|
+
scale: 1 // 添加的scale 参数
|
|
240083
|
+
}).then(function (canvas) {
|
|
240084
|
+
var dataURL = canvas.toDataURL('image/png');
|
|
240085
|
+
_this2.$http({
|
|
240086
|
+
method: 'POST',
|
|
240087
|
+
url: '/gwgl/webForm/saveWebformBase64data',
|
|
240088
|
+
params: {
|
|
240089
|
+
busiDataId: $scope.wfInstance.busiDataId,
|
|
240090
|
+
pageNum: pageNum
|
|
240091
|
+
},
|
|
240092
|
+
data: {
|
|
240093
|
+
formBase64data: dataURL
|
|
240094
|
+
}
|
|
240095
|
+
}).then(function (res) {
|
|
240096
|
+
if (res.code === 'success') {
|
|
240097
|
+
resolve(res);
|
|
240098
|
+
} else {
|
|
240099
|
+
_this2.$message({
|
|
240100
|
+
message: res.message,
|
|
240101
|
+
type: 'warning'
|
|
240102
|
+
});
|
|
240103
|
+
}
|
|
240104
|
+
}, function (err) {
|
|
240105
|
+
_this2.$message.error(err);
|
|
240106
|
+
});
|
|
240067
240107
|
});
|
|
240068
240108
|
});
|
|
240069
240109
|
},
|
|
@@ -240196,11 +240236,11 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_staticRenderFns = [];
|
|
|
240196
240236
|
;
|
|
240197
240237
|
var PrintFile_component = normalizeComponent(
|
|
240198
240238
|
components_PrintFilevue_type_script_lang_js,
|
|
240199
|
-
|
|
240200
|
-
|
|
240239
|
+
PrintFilevue_type_template_id_ed390518_scoped_true_render,
|
|
240240
|
+
PrintFilevue_type_template_id_ed390518_scoped_true_staticRenderFns,
|
|
240201
240241
|
false,
|
|
240202
240242
|
null,
|
|
240203
|
-
"
|
|
240243
|
+
"ed390518",
|
|
240204
240244
|
null
|
|
240205
240245
|
|
|
240206
240246
|
)
|
package/lib/ecyoabase.umd.js
CHANGED
|
@@ -239956,8 +239956,8 @@ var InlineTextEditor_component = normalizeComponent(
|
|
|
239956
239956
|
)
|
|
239957
239957
|
|
|
239958
239958
|
/* harmony default export */ var InlineTextEditor = (InlineTextEditor_component.exports);
|
|
239959
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=
|
|
239960
|
-
var
|
|
239959
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=template&id=ed390518&scoped=true
|
|
239960
|
+
var PrintFilevue_type_template_id_ed390518_scoped_true_render = function render() {
|
|
239961
239961
|
var _vm = this,
|
|
239962
239962
|
_c = _vm._self._c;
|
|
239963
239963
|
return _c('div', {
|
|
@@ -239997,7 +239997,7 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_render = function render(
|
|
|
239997
239997
|
}
|
|
239998
239998
|
})], 1);
|
|
239999
239999
|
};
|
|
240000
|
-
var
|
|
240000
|
+
var PrintFilevue_type_template_id_ed390518_scoped_true_staticRenderFns = [];
|
|
240001
240001
|
|
|
240002
240002
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecyoa/yoabase/src/workflow/wfInstance/mainform/components/PrintFile.vue?vue&type=script&lang=js
|
|
240003
240003
|
|
|
@@ -240043,37 +240043,77 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_staticRenderFns = [];
|
|
|
240043
240043
|
var $scope = this.$vnode.context;
|
|
240044
240044
|
// 返回base64图片地址
|
|
240045
240045
|
var printDiv = ifrmPrint.contentDocument.querySelector('#print');
|
|
240046
|
-
|
|
240047
|
-
|
|
240048
|
-
|
|
240049
|
-
|
|
240050
|
-
|
|
240051
|
-
|
|
240052
|
-
|
|
240053
|
-
|
|
240054
|
-
|
|
240055
|
-
|
|
240056
|
-
|
|
240057
|
-
|
|
240058
|
-
|
|
240059
|
-
|
|
240060
|
-
|
|
240061
|
-
}).then(function (res) {
|
|
240062
|
-
_this.$bus.emit('closeDoingDialog');
|
|
240063
|
-
if (res.code === 'success') {
|
|
240064
|
-
$scope.isShow = false;
|
|
240065
|
-
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240066
|
-
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240067
|
-
url += '&httpPort=' + location.port;
|
|
240068
|
-
window.open(url);
|
|
240069
|
-
} else {
|
|
240070
|
-
_this.$message({
|
|
240071
|
-
message: res.message,
|
|
240072
|
-
type: 'warning'
|
|
240046
|
+
var formTables = printDiv.querySelectorAll('.print_formtb');
|
|
240047
|
+
new Promise(function (resolve) {
|
|
240048
|
+
if (formTables.length > 1) {
|
|
240049
|
+
printDiv.querySelectorAll('.print_formtb').forEach(function (printtb, i) {
|
|
240050
|
+
printtb.style.display = 'none';
|
|
240051
|
+
});
|
|
240052
|
+
printDiv.querySelectorAll('.print_formtb').forEach(function (printtb, j) {
|
|
240053
|
+
if (j !== 0) {
|
|
240054
|
+
printDiv.querySelector('.form-header').display = 'none';
|
|
240055
|
+
}
|
|
240056
|
+
printtb.style.display = '';
|
|
240057
|
+
_this.$nextTick(function () {
|
|
240058
|
+
_this.saveWebformBase64data($scope, printDiv, j + 1).then(function (rst) {
|
|
240059
|
+
printtb.parentElement.removeChild(printtb);
|
|
240060
|
+
});
|
|
240073
240061
|
});
|
|
240074
|
-
}
|
|
240075
|
-
|
|
240076
|
-
|
|
240062
|
+
});
|
|
240063
|
+
var timer = setInterval(function () {
|
|
240064
|
+
if (printDiv.querySelectorAll('.print_formtb').length === 0) {
|
|
240065
|
+
resolve(true);
|
|
240066
|
+
clearInterval(timer);
|
|
240067
|
+
}
|
|
240068
|
+
}, 1000);
|
|
240069
|
+
} else {
|
|
240070
|
+
_this.saveWebformBase64data($scope, printDiv, 1).then(function (rst) {
|
|
240071
|
+
resolve(true);
|
|
240072
|
+
});
|
|
240073
|
+
}
|
|
240074
|
+
}).then(function (rst) {
|
|
240075
|
+
_this.$bus.emit('closeDoingDialog');
|
|
240076
|
+
if (rst) {
|
|
240077
|
+
$scope.isShow = false;
|
|
240078
|
+
var url = "/apigw" + '/' + $scope.wfEngineUrl.split('/')[0] + '/webForm/download?module=' + $scope.wfInstance.module + '&busiDataId=' + $scope.wfInstance.busiDataId;
|
|
240079
|
+
url += '&pageSize=' + formTables.length;
|
|
240080
|
+
if ($scope.wfInstance.module !== 'fawen') url += '&doc=true';
|
|
240081
|
+
url += '&httpPort=' + location.port;
|
|
240082
|
+
window.open(url);
|
|
240083
|
+
}
|
|
240084
|
+
});
|
|
240085
|
+
},
|
|
240086
|
+
saveWebformBase64data: function saveWebformBase64data($scope, printDiv, pageNum) {
|
|
240087
|
+
var _this2 = this;
|
|
240088
|
+
return new Promise(function (resolve) {
|
|
240089
|
+
html2canvas_default()(printDiv, {
|
|
240090
|
+
// async: true,
|
|
240091
|
+
// dpi: window.devicePixelRatio * scale,
|
|
240092
|
+
scale: 1 // 添加的scale 参数
|
|
240093
|
+
}).then(function (canvas) {
|
|
240094
|
+
var dataURL = canvas.toDataURL('image/png');
|
|
240095
|
+
_this2.$http({
|
|
240096
|
+
method: 'POST',
|
|
240097
|
+
url: '/gwgl/webForm/saveWebformBase64data',
|
|
240098
|
+
params: {
|
|
240099
|
+
busiDataId: $scope.wfInstance.busiDataId,
|
|
240100
|
+
pageNum: pageNum
|
|
240101
|
+
},
|
|
240102
|
+
data: {
|
|
240103
|
+
formBase64data: dataURL
|
|
240104
|
+
}
|
|
240105
|
+
}).then(function (res) {
|
|
240106
|
+
if (res.code === 'success') {
|
|
240107
|
+
resolve(res);
|
|
240108
|
+
} else {
|
|
240109
|
+
_this2.$message({
|
|
240110
|
+
message: res.message,
|
|
240111
|
+
type: 'warning'
|
|
240112
|
+
});
|
|
240113
|
+
}
|
|
240114
|
+
}, function (err) {
|
|
240115
|
+
_this2.$message.error(err);
|
|
240116
|
+
});
|
|
240077
240117
|
});
|
|
240078
240118
|
});
|
|
240079
240119
|
},
|
|
@@ -240206,11 +240246,11 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_staticRenderFns = [];
|
|
|
240206
240246
|
;
|
|
240207
240247
|
var PrintFile_component = normalizeComponent(
|
|
240208
240248
|
components_PrintFilevue_type_script_lang_js,
|
|
240209
|
-
|
|
240210
|
-
|
|
240249
|
+
PrintFilevue_type_template_id_ed390518_scoped_true_render,
|
|
240250
|
+
PrintFilevue_type_template_id_ed390518_scoped_true_staticRenderFns,
|
|
240211
240251
|
false,
|
|
240212
240252
|
null,
|
|
240213
|
-
"
|
|
240253
|
+
"ed390518",
|
|
240214
240254
|
null
|
|
240215
240255
|
|
|
240216
240256
|
)
|