ecinc-cloud-yoabase 9.6.272 → 9.6.274
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 +75 -36
- package/lib/ecyoabase.umd.js +75 -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=5d01eb32&scoped=true
|
|
239950
|
+
var PrintFilevue_type_template_id_5d01eb32_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_5d01eb32_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,76 @@ 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
|
+
dpi: 300,
|
|
240081
|
+
scale: 2 // 添加的scale 参数
|
|
240082
|
+
}).then(function (canvas) {
|
|
240083
|
+
var dataURL = canvas.toDataURL('image/png');
|
|
240084
|
+
_this2.$http({
|
|
240085
|
+
method: 'POST',
|
|
240086
|
+
url: '/gwgl/webForm/saveWebformBase64data',
|
|
240087
|
+
params: {
|
|
240088
|
+
busiDataId: $scope.wfInstance.busiDataId,
|
|
240089
|
+
pageNum: pageNum
|
|
240090
|
+
},
|
|
240091
|
+
data: {
|
|
240092
|
+
formBase64data: dataURL
|
|
240093
|
+
}
|
|
240094
|
+
}).then(function (res) {
|
|
240095
|
+
if (res.code === 'success') {
|
|
240096
|
+
resolve(res);
|
|
240097
|
+
} else {
|
|
240098
|
+
_this2.$message({
|
|
240099
|
+
message: res.message,
|
|
240100
|
+
type: 'warning'
|
|
240101
|
+
});
|
|
240102
|
+
}
|
|
240103
|
+
}, function (err) {
|
|
240104
|
+
_this2.$message.error(err);
|
|
240105
|
+
});
|
|
240067
240106
|
});
|
|
240068
240107
|
});
|
|
240069
240108
|
},
|
|
@@ -240196,11 +240235,11 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_staticRenderFns = [];
|
|
|
240196
240235
|
;
|
|
240197
240236
|
var PrintFile_component = normalizeComponent(
|
|
240198
240237
|
components_PrintFilevue_type_script_lang_js,
|
|
240199
|
-
|
|
240200
|
-
|
|
240238
|
+
PrintFilevue_type_template_id_5d01eb32_scoped_true_render,
|
|
240239
|
+
PrintFilevue_type_template_id_5d01eb32_scoped_true_staticRenderFns,
|
|
240201
240240
|
false,
|
|
240202
240241
|
null,
|
|
240203
|
-
"
|
|
240242
|
+
"5d01eb32",
|
|
240204
240243
|
null
|
|
240205
240244
|
|
|
240206
240245
|
)
|
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=5d01eb32&scoped=true
|
|
239960
|
+
var PrintFilevue_type_template_id_5d01eb32_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_5d01eb32_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,76 @@ 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
|
+
dpi: 300,
|
|
240091
|
+
scale: 2 // 添加的scale 参数
|
|
240092
|
+
}).then(function (canvas) {
|
|
240093
|
+
var dataURL = canvas.toDataURL('image/png');
|
|
240094
|
+
_this2.$http({
|
|
240095
|
+
method: 'POST',
|
|
240096
|
+
url: '/gwgl/webForm/saveWebformBase64data',
|
|
240097
|
+
params: {
|
|
240098
|
+
busiDataId: $scope.wfInstance.busiDataId,
|
|
240099
|
+
pageNum: pageNum
|
|
240100
|
+
},
|
|
240101
|
+
data: {
|
|
240102
|
+
formBase64data: dataURL
|
|
240103
|
+
}
|
|
240104
|
+
}).then(function (res) {
|
|
240105
|
+
if (res.code === 'success') {
|
|
240106
|
+
resolve(res);
|
|
240107
|
+
} else {
|
|
240108
|
+
_this2.$message({
|
|
240109
|
+
message: res.message,
|
|
240110
|
+
type: 'warning'
|
|
240111
|
+
});
|
|
240112
|
+
}
|
|
240113
|
+
}, function (err) {
|
|
240114
|
+
_this2.$message.error(err);
|
|
240115
|
+
});
|
|
240077
240116
|
});
|
|
240078
240117
|
});
|
|
240079
240118
|
},
|
|
@@ -240206,11 +240245,11 @@ var PrintFilevue_type_template_id_a82d6028_scoped_true_staticRenderFns = [];
|
|
|
240206
240245
|
;
|
|
240207
240246
|
var PrintFile_component = normalizeComponent(
|
|
240208
240247
|
components_PrintFilevue_type_script_lang_js,
|
|
240209
|
-
|
|
240210
|
-
|
|
240248
|
+
PrintFilevue_type_template_id_5d01eb32_scoped_true_render,
|
|
240249
|
+
PrintFilevue_type_template_id_5d01eb32_scoped_true_staticRenderFns,
|
|
240211
240250
|
false,
|
|
240212
240251
|
null,
|
|
240213
|
-
"
|
|
240252
|
+
"5d01eb32",
|
|
240214
240253
|
null
|
|
240215
240254
|
|
|
240216
240255
|
)
|