ecinc-cloud-mappaio 9.6.157 → 9.6.159
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/ecmappaio.common.js +236 -17
- package/lib/ecmappaio.umd.js +236 -17
- package/lib/ecmappaio.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/ecmappaio.common.js
CHANGED
|
@@ -7702,7 +7702,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[d
|
|
|
7702
7702
|
|
|
7703
7703
|
/***/ }),
|
|
7704
7704
|
|
|
7705
|
-
/***/
|
|
7705
|
+
/***/ 7925:
|
|
7706
7706
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7707
7707
|
|
|
7708
7708
|
"use strict";
|
|
@@ -7716,7 +7716,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7716
7716
|
|
|
7717
7717
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
7718
7718
|
// Module
|
|
7719
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".loading[data-v-
|
|
7719
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".loading[data-v-7e29539b]{margin-top:100px;text-align:center}.upload-progress[data-v-7e29539b]{background-color:#fff;padding-top:50px;padding-bottom:50px;text-align:center}.van-ellipsis[data-v-7e29539b]{text-align:center;margin:20px auto 0;max-width:90%}.file-svg-icon[data-v-7e29539b]{font-size:70px}.file-svg-icon .svg-icon[data-v-7e29539b]{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.van-cell-group[data-v-7e29539b]{margin:10px 10px 0 10px;border:1px solid #fbf9f9;border-radius:5px}.more-btns[data-v-7e29539b]{width:120px;border-radius:6px;padding:16px}.more-btns .btn-item[data-v-7e29539b]{border-bottom:1px solid #fbf9f9;width:100%;height:44px;line-height:44px}.more-btns .btn-item .van-icon[data-v-7e29539b]{font-size:16px;margin-right:10px}[data-v-7e29539b] .van-action-sheet__header{text-align:left!important;padding:0 15px;font-size:14px;color:#666}.attachmentContent[data-v-7e29539b]{max-height:300px;padding:0 10px}.attachmentContent .attachmentContent_son[data-v-7e29539b]{height:50px;line-height:50px;border-bottom:1px solid #f7f8fa;padding:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex}.attachmentContent .attachmentContent_son .icon_left[data-v-7e29539b],.attachmentContent .attachmentContent_son .icon_right[data-v-7e29539b]{width:50px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.attachmentContent .attachmentContent_son .content[data-v-7e29539b]{width:calc(100% - 80px)}.attachmentContent .attachmentContent_son .content .name[data-v-7e29539b]{height:30px;line-height:30px;font-size:16px;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.attachmentContent .attachmentContent_son .content .size[data-v-7e29539b]{height:20px;line-height:20px;font-size:12px;color:#999}[data-v-7e29539b] .van-action-sheet__content{border-top:1px solid #f7f8fa}[data-v-7e29539b] .van-action-sheet__close{color:#000;font-size:16px}", ""]);
|
|
7720
7720
|
// Exports
|
|
7721
7721
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
7722
7722
|
|
|
@@ -34602,19 +34602,19 @@ var update = add("3c1d5fd3", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
34602
34602
|
|
|
34603
34603
|
/***/ }),
|
|
34604
34604
|
|
|
34605
|
-
/***/
|
|
34605
|
+
/***/ 1784:
|
|
34606
34606
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
34607
34607
|
|
|
34608
34608
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
34609
34609
|
|
|
34610
34610
|
// load the styles
|
|
34611
|
-
var content = __webpack_require__(
|
|
34611
|
+
var content = __webpack_require__(7925);
|
|
34612
34612
|
if(content.__esModule) content = content.default;
|
|
34613
34613
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
34614
34614
|
if(content.locals) module.exports = content.locals;
|
|
34615
34615
|
// add the styles to the DOM
|
|
34616
34616
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
34617
|
-
var update = add("
|
|
34617
|
+
var update = add("50aa1ddf", content, true, {"sourceMap":false,"shadowMode":false});
|
|
34618
34618
|
|
|
34619
34619
|
/***/ }),
|
|
34620
34620
|
|
|
@@ -60530,8 +60530,8 @@ var Attachment_component = (0,componentNormalizer/* default */.A)(
|
|
|
60530
60530
|
)
|
|
60531
60531
|
|
|
60532
60532
|
/* harmony default export */ var Attachment = (Attachment_component.exports);
|
|
60533
|
-
;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=template&id=
|
|
60534
|
-
var
|
|
60533
|
+
;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=template&id=7e29539b&scoped=true
|
|
60534
|
+
var BodyFilevue_type_template_id_7e29539b_scoped_true_render = function render() {
|
|
60535
60535
|
var _vm = this,
|
|
60536
60536
|
_c = _vm._self._c;
|
|
60537
60537
|
return _c('div', {
|
|
@@ -60864,12 +60864,17 @@ var BodyFilevue_type_template_id_e3e662f8_scoped_true_render = function render()
|
|
|
60864
60864
|
}
|
|
60865
60865
|
}, [_c('use', {
|
|
60866
60866
|
attrs: {
|
|
60867
|
-
"xlink:href": '#icon-file_' + item.fileName.split('.')[1]
|
|
60867
|
+
"xlink:href": '#icon-file_' + item.fileName.split('.')[item.fileName.split('.').length - 1]
|
|
60868
60868
|
}
|
|
60869
60869
|
})])]), _c('div', {
|
|
60870
60870
|
staticClass: "content"
|
|
60871
60871
|
}, [_c('div', {
|
|
60872
|
-
staticClass: "name"
|
|
60872
|
+
staticClass: "name",
|
|
60873
|
+
on: {
|
|
60874
|
+
"click": function click($event) {
|
|
60875
|
+
return _vm.handleAttachmentPreview(item);
|
|
60876
|
+
}
|
|
60877
|
+
}
|
|
60873
60878
|
}, [_vm._v(_vm._s(item.fileName))]), _c('div', {
|
|
60874
60879
|
staticClass: "size"
|
|
60875
60880
|
}, [_vm._v(_vm._s(item.fileSize))])]), item.id && _vm.wfInstance.passenger && _vm.wfInstance.passenger.attachH5CanDownload !== 0 ? _c('div', {
|
|
@@ -60895,7 +60900,7 @@ var BodyFilevue_type_template_id_e3e662f8_scoped_true_render = function render()
|
|
|
60895
60900
|
})])]) : _vm._e()]) : _vm._e()];
|
|
60896
60901
|
})], 2)])], 1);
|
|
60897
60902
|
};
|
|
60898
|
-
var
|
|
60903
|
+
var BodyFilevue_type_template_id_7e29539b_scoped_true_staticRenderFns = [];
|
|
60899
60904
|
|
|
60900
60905
|
;// 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/ecmapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
|
|
60901
60906
|
function BodyFilevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return BodyFilevue_type_script_lang_js_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, BodyFilevue_type_script_lang_js_typeof(o); }
|
|
@@ -60988,6 +60993,10 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
60988
60993
|
default: function _default() {
|
|
60989
60994
|
return ['form', 'BodyFile', 'HandleIdea'];
|
|
60990
60995
|
}
|
|
60996
|
+
},
|
|
60997
|
+
onAttachPreviewClick: {
|
|
60998
|
+
type: Function,
|
|
60999
|
+
default: null
|
|
60991
61000
|
}
|
|
60992
61001
|
},
|
|
60993
61002
|
data: function data() {
|
|
@@ -61014,7 +61023,10 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
61014
61023
|
pdfSealChange: false,
|
|
61015
61024
|
// 印章状态
|
|
61016
61025
|
viewBodyFileShow: '',
|
|
61017
|
-
onlineViewer: null
|
|
61026
|
+
onlineViewer: null,
|
|
61027
|
+
topdfFile: '.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt',
|
|
61028
|
+
//pdfjs在线预览支持转pdf的文件格式
|
|
61029
|
+
imgFile: ['.pdf', '.pdfx', '.jpg', '.png', '.jpeg', '.gif', '.bmp']
|
|
61018
61030
|
};
|
|
61019
61031
|
},
|
|
61020
61032
|
computed: BodyFilevue_type_script_lang_js_objectSpread({}, (0,vuex_esm/* mapGetters */.L8)(['loginUser'])),
|
|
@@ -61847,14 +61859,221 @@ function BodyFilevue_type_script_lang_js_toPrimitive(t, r) { if ("object" != Bod
|
|
|
61847
61859
|
}
|
|
61848
61860
|
}, _callee6);
|
|
61849
61861
|
})));
|
|
61862
|
+
},
|
|
61863
|
+
handleAttachmentPreview: function handleAttachmentPreview(attach) {
|
|
61864
|
+
var _this14 = this;
|
|
61865
|
+
return BodyFilevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/BodyFilevue_type_script_lang_js_regeneratorRuntime().mark(function _callee7() {
|
|
61866
|
+
var device, canView, topdf, extName, wfInstance, tSessionId, hostname, downUrl, convertType, appUrl, _tSessionId2, _downUrl2, WfModule, WFBodyDocId, WFBusiDataId, params, _appUrl, _tSessionId3, _downUrl3, url, _wfInstance, attachShowDownload, fileName;
|
|
61867
|
+
return BodyFilevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
61868
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
61869
|
+
case 0:
|
|
61870
|
+
if (!(attach.id === undefined)) {
|
|
61871
|
+
_context7.next = 2;
|
|
61872
|
+
break;
|
|
61873
|
+
}
|
|
61874
|
+
return _context7.abrupt("return");
|
|
61875
|
+
case 2:
|
|
61876
|
+
if (!(typeof _this14.onAttachPreviewClick == 'function')) {
|
|
61877
|
+
_context7.next = 5;
|
|
61878
|
+
break;
|
|
61879
|
+
}
|
|
61880
|
+
// 自定义附件下载预览事件
|
|
61881
|
+
_this14.onAttachPreviewClick(attach);
|
|
61882
|
+
return _context7.abrupt("return");
|
|
61883
|
+
case 5:
|
|
61884
|
+
device = js_cookie_default().get('device');
|
|
61885
|
+
canView = _this14.imgFile;
|
|
61886
|
+
topdf = false;
|
|
61887
|
+
extName = '';
|
|
61888
|
+
if (attach.fileName.indexOf('.') !== -1) {
|
|
61889
|
+
extName = attach.fileName.substring(attach.fileName.lastIndexOf('.')).toLowerCase();
|
|
61890
|
+
}
|
|
61891
|
+
if (device !== 'qywx' && device !== 'zwwx') {
|
|
61892
|
+
// 企业微信、粤政易支持文档在线预览,不需要转pdf
|
|
61893
|
+
if (extName !== '' && extName !== '.pdf' && extName !== '.pdfx') {
|
|
61894
|
+
if ((_this14.topdfFile + ',').indexOf(extName + ',') !== -1) {
|
|
61895
|
+
topdf = true;
|
|
61896
|
+
}
|
|
61897
|
+
}
|
|
61898
|
+
}
|
|
61899
|
+
if (!(!topdf && extName !== '.pdf' && canView.indexOf(extName) === -1)) {
|
|
61900
|
+
_context7.next = 16;
|
|
61901
|
+
break;
|
|
61902
|
+
}
|
|
61903
|
+
wfInstance = _this14.$vnode.context.wfInstance || _this14.$vnode.context.$vnode.context.wfInstance;
|
|
61904
|
+
if (!(wfInstance && wfInstance.passenger && wfInstance.passenger.attachH5CanDownload === 0)) {
|
|
61905
|
+
_context7.next = 16;
|
|
61906
|
+
break;
|
|
61907
|
+
}
|
|
61908
|
+
//只能在线预览、不能下载到本地
|
|
61909
|
+
_this14.$toast.fail('文件格式“' + extName + '”不支持在线预览');
|
|
61910
|
+
return _context7.abrupt("return");
|
|
61911
|
+
case 16:
|
|
61912
|
+
if (!(_this14.viewer.indexOf('dcs=') === 0 && (topdf || extName === '.ofd'))) {
|
|
61913
|
+
_context7.next = 27;
|
|
61914
|
+
break;
|
|
61915
|
+
}
|
|
61916
|
+
tSessionId = res.body.tSessionId;
|
|
61917
|
+
hostname = location.href.split('mindex.html')[0];
|
|
61918
|
+
downUrl = hostname.substring(0, hostname.length - 1) + "/apigw" + '/' + _this14.wfAttachUrl + '/downloadById?attachIds=' + attach.id + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + tSessionId;
|
|
61919
|
+
convertType = '0';
|
|
61920
|
+
if (extName === '.pdf') {
|
|
61921
|
+
convertType = '20';
|
|
61922
|
+
} else if (extName === '.ofd') {
|
|
61923
|
+
convertType = '21';
|
|
61924
|
+
}
|
|
61925
|
+
downUrl = _this14.viewer.split('=')[1] + '/composite/httpfile?convertType=' + convertType + '&fileUrl=' + encodeURIComponent(downUrl + (_this14.waterMark ? '&waterMark=' + _this14.waterMark + '&markContent=' + _this14.markContent : ''));
|
|
61926
|
+
if (_this14.viewerUrlParams !== '' && _this14.viewerUrlParams !== null && _this14.viewerUrlParams !== undefined) {
|
|
61927
|
+
downUrl += _this14.viewerUrlParams;
|
|
61928
|
+
}
|
|
61929
|
+
$.post(downUrl, {}, function (res) {
|
|
61930
|
+
if (res.errorcode === 0) {
|
|
61931
|
+
window.open(res.data.viewUrl);
|
|
61932
|
+
} else {
|
|
61933
|
+
_this14.$dialog.alert({
|
|
61934
|
+
message: res.message
|
|
61935
|
+
});
|
|
61936
|
+
}
|
|
61937
|
+
}, 'json');
|
|
61938
|
+
_context7.next = 74;
|
|
61939
|
+
break;
|
|
61940
|
+
case 27:
|
|
61941
|
+
if (!(_this14.viewer === 'wpsh5' && (topdf || extName === '.ofd' || extName === '.wps'))) {
|
|
61942
|
+
_context7.next = 45;
|
|
61943
|
+
break;
|
|
61944
|
+
}
|
|
61945
|
+
// 打开 wps h5
|
|
61946
|
+
appUrl = location.href.split('#')[0].split('mindex.html')[0]; // 开发调试期间指定地址
|
|
61947
|
+
if (appUrl.indexOf('//127') !== -1 || appUrl.indexOf('//192') !== -1) {
|
|
61948
|
+
appUrl = 'http://toa.ecinc.com.cn:2028/';
|
|
61949
|
+
}
|
|
61950
|
+
_context7.next = 32;
|
|
61951
|
+
return _this14.getSessionId();
|
|
61952
|
+
case 32:
|
|
61953
|
+
_tSessionId2 = _context7.sent;
|
|
61954
|
+
//正文下载地址
|
|
61955
|
+
_downUrl2 = appUrl + "/apigw";
|
|
61956
|
+
_downUrl2 += _this14.wfAttachUrl.substring(0, 1) === '/' ? _this14.wfAttachUrl : '/' + _this14.wfAttachUrl;
|
|
61957
|
+
_downUrl2 += '/downloadById?attachIds=' + attach.id + '&topdf=false';
|
|
61958
|
+
//downUrl += this.waterMark ? '&waterMark=' + this.waterMark + '&markContent=' + this.markContent : ''
|
|
61959
|
+
_downUrl2 += '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + _tSessionId2;
|
|
61960
|
+
_downUrl2 += '&saveAs=' + encodeURI(attach.fileName);
|
|
61961
|
+
WfModule = _this14.$vnode.context.wfInstance.module;
|
|
61962
|
+
WFBodyDocId = _this14.$vnode.context.wfInstance.bodyDocId;
|
|
61963
|
+
WFBusiDataId = _this14.$vnode.context.vo.id;
|
|
61964
|
+
params = {
|
|
61965
|
+
openType: 'view',
|
|
61966
|
+
attachId: '',
|
|
61967
|
+
module: WfModule,
|
|
61968
|
+
busiDataId: WFBusiDataId,
|
|
61969
|
+
bodyDocId: WFBodyDocId,
|
|
61970
|
+
downUrl: encodeURI(_downUrl2),
|
|
61971
|
+
attachName: encodeURI(attach.fileName),
|
|
61972
|
+
attachType: attach.fileType
|
|
61973
|
+
};
|
|
61974
|
+
_this14.$http({
|
|
61975
|
+
method: 'GET',
|
|
61976
|
+
params: params,
|
|
61977
|
+
url: 'wpsOffice/getAppToken'
|
|
61978
|
+
}).then(function (res) {
|
|
61979
|
+
if (res.code === 'success') {
|
|
61980
|
+
_this14.tSessionId = res.body.tSessionId;
|
|
61981
|
+
var editorUrl = './plugins/wpsjs/h5office/editor.html';
|
|
61982
|
+
editorUrl += '?token=' + encodeURI(res.body.accessToken);
|
|
61983
|
+
editorUrl += '&signatureurl=' + encodeURIComponent(res.body.url);
|
|
61984
|
+
//window.open(editorUrl) // 打开
|
|
61985
|
+
_this14.$mappUtils.downLoadAndOpenFile(_this14, editorUrl, attach.fileName, attach.fileRealSize);
|
|
61986
|
+
} else {
|
|
61987
|
+
_this14.$dialog.alert({
|
|
61988
|
+
message: res.message
|
|
61989
|
+
});
|
|
61990
|
+
}
|
|
61991
|
+
});
|
|
61992
|
+
_context7.next = 74;
|
|
61993
|
+
break;
|
|
61994
|
+
case 45:
|
|
61995
|
+
if (!(_this14.viewer === 'fuxin' && (topdf || extName === '.ofd'))) {
|
|
61996
|
+
_context7.next = 62;
|
|
61997
|
+
break;
|
|
61998
|
+
}
|
|
61999
|
+
_appUrl = location.href.split('#')[0].split('mindex.html')[0]; // url
|
|
62000
|
+
_context7.next = 49;
|
|
62001
|
+
return _this14.getSessionId();
|
|
62002
|
+
case 49:
|
|
62003
|
+
_tSessionId3 = _context7.sent;
|
|
62004
|
+
if (!(imgType.indexOf(extName.substring(1)) > -1 && window.openImgView)) {
|
|
62005
|
+
_context7.next = 54;
|
|
62006
|
+
break;
|
|
62007
|
+
}
|
|
62008
|
+
sessionStorage.setItem('IMG_INDEX_' + _this14.vo.id, attach.index);
|
|
62009
|
+
window.open('#/imgView?wfAttachUrl=' + _this14.wfAttachUrl + '&busiDataId=' + _this14.vo.id);
|
|
62010
|
+
return _context7.abrupt("return");
|
|
62011
|
+
case 54:
|
|
62012
|
+
_downUrl3 = _appUrl + "/apigw";
|
|
62013
|
+
_downUrl3 += _this14.wfAttachUrl.substring(0, 1) === '/' ? _this14.wfAttachUrl : '/' + _this14.wfAttachUrl;
|
|
62014
|
+
_downUrl3 += '/downloadById?attachIds=' + attach.id + '&topdf=' + topdf;
|
|
62015
|
+
_downUrl3 += _this14.waterMark ? '&waterMark=' + _this14.waterMark + '&markContent=' + _this14.markContent : '';
|
|
62016
|
+
_downUrl3 += '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&tSessionId=' + _tSessionId3;
|
|
62017
|
+
if (_this14.fuxinBaseUrl) {
|
|
62018
|
+
//window.open(this.fuxinBaseUrl + '?docuri=' + encodeURIComponent(downUrl))
|
|
62019
|
+
_this14.$mappUtils.downLoadAndOpenFile(_this14, his.fuxinBaseUrl + '?docuri=' + encodeURIComponent(_downUrl3), attach.fileName, attach.fileRealSize);
|
|
62020
|
+
} else {
|
|
62021
|
+
_this14.$http({
|
|
62022
|
+
method: 'get',
|
|
62023
|
+
contentType: 'application/x-www-form-urlencoded',
|
|
62024
|
+
url: 'base/paramConfig/findParamValueByName?orgCode=standard¶mName=fuxin.viewer.url'
|
|
62025
|
+
}).then(function (res) {
|
|
62026
|
+
if (res.code === 'success') {
|
|
62027
|
+
_this14.fuxinBaseUrl = res.body.value;
|
|
62028
|
+
//window.open(this.fuxinBaseUrl + '?docuri=' + encodeURIComponent(downUrl))
|
|
62029
|
+
_this14.$mappUtils.downLoadAndOpenFile(_this14, his.fuxinBaseUrl + '?docuri=' + encodeURIComponent(_downUrl3), attach.fileName, attach.fileRealSize);
|
|
62030
|
+
} else {
|
|
62031
|
+
_this14.$dialog.alert({
|
|
62032
|
+
message: '未配置福星预览地址参数 fuxin.viewer.url'
|
|
62033
|
+
});
|
|
62034
|
+
}
|
|
62035
|
+
});
|
|
62036
|
+
}
|
|
62037
|
+
_context7.next = 74;
|
|
62038
|
+
break;
|
|
62039
|
+
case 62:
|
|
62040
|
+
url = "/apigw";
|
|
62041
|
+
url += _this14.wfAttachUrl.substring(0, 1) === '/' ? _this14.wfAttachUrl : '/' + _this14.wfAttachUrl;
|
|
62042
|
+
url += '/downloadById?inline=true&attachIds=' + attach.id + '&topdf=' + topdf;
|
|
62043
|
+
url += _this14.waterMark ? '&waterMark=' + _this14.waterMark + '&markContent=' + _this14.markContent : '';
|
|
62044
|
+
url += '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken();
|
|
62045
|
+
_wfInstance = _this14.$vnode.context.wfInstance || _this14.$vnode.context.$vnode.context.wfInstance;
|
|
62046
|
+
attachShowDownload = 0;
|
|
62047
|
+
if (_wfInstance && _wfInstance.passenger && _wfInstance.passenger.attachH5CanDownload === 1) {
|
|
62048
|
+
attachShowDownload = 1;
|
|
62049
|
+
}
|
|
62050
|
+
url += '&attachH5CanDownload=' + attachShowDownload;
|
|
62051
|
+
// console.log({ url: url, name: attach.fileName, size: attach.fileRealSize, title: '进行下载' })
|
|
62052
|
+
fileName = attach.fileName;
|
|
62053
|
+
if (topdf) {
|
|
62054
|
+
if (fileName.indexOf('.') > 0) {
|
|
62055
|
+
fileName = fileName.substring(0, fileName.lastIndexOf('.')) + '.pdf';
|
|
62056
|
+
} else {
|
|
62057
|
+
fileName = fileName + '.pdf';
|
|
62058
|
+
}
|
|
62059
|
+
} else if (canView.indexOf(extName) !== -1) {
|
|
62060
|
+
url += '&img=true';
|
|
62061
|
+
}
|
|
62062
|
+
_this14.$mappUtils.downLoadAndOpenFile(_this14, url, fileName, attach.fileRealSize);
|
|
62063
|
+
case 74:
|
|
62064
|
+
case "end":
|
|
62065
|
+
return _context7.stop();
|
|
62066
|
+
}
|
|
62067
|
+
}, _callee7);
|
|
62068
|
+
}))();
|
|
61850
62069
|
}
|
|
61851
62070
|
}
|
|
61852
62071
|
});
|
|
61853
62072
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=script&lang=js
|
|
61854
62073
|
/* harmony default export */ var src_BodyFilevue_type_script_lang_js = (BodyFilevue_type_script_lang_js);
|
|
61855
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=
|
|
61856
|
-
var
|
|
61857
|
-
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=
|
|
62074
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=7e29539b&prod&scoped=true&lang=scss
|
|
62075
|
+
var BodyFilevue_type_style_index_0_id_7e29539b_prod_scoped_true_lang_scss = __webpack_require__(1784);
|
|
62076
|
+
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue?vue&type=style&index=0&id=7e29539b&prod&scoped=true&lang=scss
|
|
61858
62077
|
|
|
61859
62078
|
;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/BodyFile.vue
|
|
61860
62079
|
|
|
@@ -61867,11 +62086,11 @@ var BodyFilevue_type_style_index_0_id_e3e662f8_prod_scoped_true_lang_scss = __we
|
|
|
61867
62086
|
|
|
61868
62087
|
var BodyFile_component = (0,componentNormalizer/* default */.A)(
|
|
61869
62088
|
src_BodyFilevue_type_script_lang_js,
|
|
61870
|
-
|
|
61871
|
-
|
|
62089
|
+
BodyFilevue_type_template_id_7e29539b_scoped_true_render,
|
|
62090
|
+
BodyFilevue_type_template_id_7e29539b_scoped_true_staticRenderFns,
|
|
61872
62091
|
false,
|
|
61873
62092
|
null,
|
|
61874
|
-
"
|
|
62093
|
+
"7e29539b",
|
|
61875
62094
|
null
|
|
61876
62095
|
|
|
61877
62096
|
)
|