ecinc-cloud-yoaecoav9 9.6.321 → 9.6.323
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/ecyoaecoa.common.js +231 -55
- package/lib/ecyoaecoa.umd.js +231 -55
- package/lib/ecyoaecoa.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/ecyoaecoa.common.js
CHANGED
|
@@ -21741,7 +21741,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".item .title[data-v-ddf844e4]{font-siz
|
|
|
21741
21741
|
|
|
21742
21742
|
/***/ }),
|
|
21743
21743
|
|
|
21744
|
-
/***/
|
|
21744
|
+
/***/ 3196:
|
|
21745
21745
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21746
21746
|
|
|
21747
21747
|
"use strict";
|
|
@@ -21755,7 +21755,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21755
21755
|
|
|
21756
21756
|
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()));
|
|
21757
21757
|
// Module
|
|
21758
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".weboffice-container[data-v-
|
|
21758
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".weboffice-container[data-v-7a8148e0]{margin:0}.isform .weboffice-container[data-v-7a8148e0]{border:1px solid #999;border-top:0}", ""]);
|
|
21759
21759
|
// Exports
|
|
21760
21760
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
21761
21761
|
|
|
@@ -61853,19 +61853,19 @@ var update = add("a3717466", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
61853
61853
|
|
|
61854
61854
|
/***/ }),
|
|
61855
61855
|
|
|
61856
|
-
/***/
|
|
61856
|
+
/***/ 5933:
|
|
61857
61857
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
61858
61858
|
|
|
61859
61859
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
61860
61860
|
|
|
61861
61861
|
// load the styles
|
|
61862
|
-
var content = __webpack_require__(
|
|
61862
|
+
var content = __webpack_require__(3196);
|
|
61863
61863
|
if(content.__esModule) content = content.default;
|
|
61864
61864
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
61865
61865
|
if(content.locals) module.exports = content.locals;
|
|
61866
61866
|
// add the styles to the DOM
|
|
61867
61867
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
61868
|
-
var update = add("
|
|
61868
|
+
var update = add("4e5d01c8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
61869
61869
|
|
|
61870
61870
|
/***/ }),
|
|
61871
61871
|
|
|
@@ -96326,8 +96326,8 @@ var ecweboffice_component = (0,componentNormalizer/* default */.A)(
|
|
|
96326
96326
|
)
|
|
96327
96327
|
|
|
96328
96328
|
/* harmony default export */ var ecweboffice = (ecweboffice_component.exports);
|
|
96329
|
-
;// 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/ecoa/src/webOffice/H5Office.vue?vue&type=template&id=
|
|
96330
|
-
var
|
|
96329
|
+
;// 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/ecoa/src/webOffice/H5Office.vue?vue&type=template&id=6b0572fe
|
|
96330
|
+
var H5Officevue_type_template_id_6b0572fe_render = function render() {
|
|
96331
96331
|
var _vm = this,
|
|
96332
96332
|
_c = _vm._self._c;
|
|
96333
96333
|
return _c('div', [_c('el-button', {
|
|
@@ -96344,6 +96344,20 @@ var H5Officevue_type_template_id_9e6067e6_render = function render() {
|
|
|
96344
96344
|
on: {
|
|
96345
96345
|
"click": _vm.btnEcdocSavedClick
|
|
96346
96346
|
}
|
|
96347
|
+
}), _c('el-button', {
|
|
96348
|
+
directives: [{
|
|
96349
|
+
name: "show",
|
|
96350
|
+
rawName: "v-show",
|
|
96351
|
+
value: false,
|
|
96352
|
+
expression: "false"
|
|
96353
|
+
}],
|
|
96354
|
+
attrs: {
|
|
96355
|
+
"id": "btnFoxitDocSaved",
|
|
96356
|
+
"type": "default"
|
|
96357
|
+
},
|
|
96358
|
+
on: {
|
|
96359
|
+
"click": _vm.btnFoxitDocSavedClick
|
|
96360
|
+
}
|
|
96347
96361
|
}), _c('el-button', {
|
|
96348
96362
|
directives: [{
|
|
96349
96363
|
name: "show",
|
|
@@ -96360,7 +96374,7 @@ var H5Officevue_type_template_id_9e6067e6_render = function render() {
|
|
|
96360
96374
|
}
|
|
96361
96375
|
})], 1);
|
|
96362
96376
|
};
|
|
96363
|
-
var
|
|
96377
|
+
var H5Officevue_type_template_id_6b0572fe_staticRenderFns = [];
|
|
96364
96378
|
|
|
96365
96379
|
;// 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/ecoa/src/webOffice/H5Office.vue?vue&type=script&lang=js
|
|
96366
96380
|
function H5Officevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return H5Officevue_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; }, H5Officevue_type_script_lang_js_typeof(o); }
|
|
@@ -96473,7 +96487,7 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
96473
96487
|
* 选择红头事件 -- 所有编辑方式通用方法
|
|
96474
96488
|
* @param {*} $scope
|
|
96475
96489
|
*/
|
|
96476
|
-
ModifyFlTypeClick: function ModifyFlTypeClick($scope,
|
|
96490
|
+
ModifyFlTypeClick: function ModifyFlTypeClick($scope, openType) {
|
|
96477
96491
|
var _this3 = this;
|
|
96478
96492
|
this.fetchFwmbTemplateData($scope).then(function (res) {
|
|
96479
96493
|
if (res.code === 'success') {
|
|
@@ -96592,9 +96606,15 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
96592
96606
|
if (this.officeType === 'wpsh5') {
|
|
96593
96607
|
this.btnOpenWpsEditorClick($scope, [], {}, downUrl, attach.fileId || attach.id, attach.fileVer);
|
|
96594
96608
|
} else if (this.officeType === 'yzh5') {
|
|
96595
|
-
this.btnOpenYzdocEditorClick($scope, [], {},
|
|
96609
|
+
this.btnOpenYzdocEditorClick($scope, [], {}, {
|
|
96610
|
+
downUrl: downUrl
|
|
96611
|
+
}, attach.fileId || attach.id, attach.fileVer);
|
|
96596
96612
|
} else if (this.officeType === 'ech5') {
|
|
96597
96613
|
this.btnOpenEcdocEditorClick($scope, [], {}, downUrl, attach.fileId || attach.id, attach.fileVer);
|
|
96614
|
+
} else if (this.officeType === 'foxith5') {
|
|
96615
|
+
this.btnOpenFoxitjjEditorClick($scope, [], {}, {
|
|
96616
|
+
downUrl: downUrl
|
|
96617
|
+
}, attach.fileId || attach.id, attach.fileVer);
|
|
96598
96618
|
}
|
|
96599
96619
|
},
|
|
96600
96620
|
btnOpenWordClick: function btnOpenWordClick($scope, openType, fanwen_url) {
|
|
@@ -96768,6 +96788,8 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
96768
96788
|
_this4.btnOpenYzdocEditorClick($scope, bookmarks, data, params, openType);
|
|
96769
96789
|
} else if (_this4.officeType === 'ech5') {
|
|
96770
96790
|
_this4.btnOpenEcdocEditorClick($scope, bookmarks, data, downUrl, fileId, fileVer);
|
|
96791
|
+
} else if (_this4.officeType === 'foxith5') {
|
|
96792
|
+
_this4.btnOpenFoxitjjEditorClick($scope, bookmarks, data, params, openType);
|
|
96771
96793
|
}
|
|
96772
96794
|
case 21:
|
|
96773
96795
|
case "end":
|
|
@@ -97079,10 +97101,19 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97079
97101
|
console.log(docEditor);
|
|
97080
97102
|
if (docEditor.closed) {
|
|
97081
97103
|
clearInterval(_this8.doctimer);
|
|
97082
|
-
_this8
|
|
97083
|
-
|
|
97084
|
-
|
|
97085
|
-
|
|
97104
|
+
if (_this8.officeType === 'foxith5') {
|
|
97105
|
+
if (window.saveVersion && window.saveVersion.status) {
|
|
97106
|
+
_this8.$bus.emit('showDoingDialog', '正在重新加载文件,请稍候...');
|
|
97107
|
+
setTimeout(function () {
|
|
97108
|
+
_this8.checkFoxitjjEditorFinished($scope, fileVersionId, 0, openType);
|
|
97109
|
+
}, 1000);
|
|
97110
|
+
}
|
|
97111
|
+
} else {
|
|
97112
|
+
_this8.$bus.emit('showDoingDialog', '正在重新加载文件,请稍候...');
|
|
97113
|
+
setTimeout(function () {
|
|
97114
|
+
_this8.checkYzdocEditorFinished($scope, fileVersionId, 0, openType);
|
|
97115
|
+
}, 1000);
|
|
97116
|
+
}
|
|
97086
97117
|
}
|
|
97087
97118
|
}, 500);
|
|
97088
97119
|
},
|
|
@@ -97154,8 +97185,142 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97154
97185
|
console.log(err);
|
|
97155
97186
|
});
|
|
97156
97187
|
},
|
|
97157
|
-
|
|
97188
|
+
btnOpenFoxitjjEditorClick: function btnOpenFoxitjjEditorClick($scope, bookmarks, data, params, openType) {
|
|
97158
97189
|
var _this10 = this;
|
|
97190
|
+
var appUrl = location.href.split('#')[0].split('windex.html')[0];
|
|
97191
|
+
if (appUrl.indexOf('//127') !== -1 || appUrl.indexOf('//192') !== -1) {
|
|
97192
|
+
appUrl = 'http://3950y3g837.zicp.vip/';
|
|
97193
|
+
}
|
|
97194
|
+
var downUrl = data.insertFileUrl || params.downUrl || '';
|
|
97195
|
+
downUrl = appUrl + downUrl;
|
|
97196
|
+
if (downUrl.indexOf('/Editor.doc') !== -1) {
|
|
97197
|
+
//window.open(downUrl)
|
|
97198
|
+
//downUrl = appUrl + process.env.VUE_APP_BASE_API.substring(1) + '/common/downhttpfile?' + 'saveAs=' + $scope.vo.flSubject.trim().replace(/[^\p{L}\p{N} ]/gu, '') + '.doc&' + 'downurl=' + encodeURIComponent(downUrl)
|
|
97199
|
+
}
|
|
97200
|
+
this.$bus.emit('showDoingDialog', '正在下载文件,请稍候...');
|
|
97201
|
+
var attachType = 'BODY';
|
|
97202
|
+
var attachName = this.WFBodyDocId + '.doc';
|
|
97203
|
+
var attachId = '';
|
|
97204
|
+
if (downUrl.indexOf('=ATTACH') !== -1) {
|
|
97205
|
+
attachType = 'ATTACH';
|
|
97206
|
+
attachName = downUrl.split('attachsName=')[1].split('&')[0];
|
|
97207
|
+
}
|
|
97208
|
+
if (this.openType === 'Redlining' || this.openType === 'RedliningOnce') {
|
|
97209
|
+
attachName = 'RedTitle_' + this.WFBodyDocId + '.doc';
|
|
97210
|
+
} else if (this.openType === 'NoTracks') {
|
|
97211
|
+
attachName = 'NoTracks_' + this.WFBodyDocId + '.doc';
|
|
97212
|
+
}
|
|
97213
|
+
var uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
97214
|
+
var foxitOpenType = 'openPreview';
|
|
97215
|
+
if (openType !== 'view') {
|
|
97216
|
+
foxitOpenType = 'openEditor';
|
|
97217
|
+
}
|
|
97218
|
+
var fileTitle = attachName;
|
|
97219
|
+
if (attachType === 'BODY') {
|
|
97220
|
+
fileTitle = $scope.vo.flSubject + '.doc';
|
|
97221
|
+
}
|
|
97222
|
+
this.$http({
|
|
97223
|
+
method: 'GET',
|
|
97224
|
+
url: 'foxitEditor/getEditorUrl',
|
|
97225
|
+
params: {
|
|
97226
|
+
module: $scope.wfInstance.module,
|
|
97227
|
+
busiDataId: $scope.vo.id,
|
|
97228
|
+
attachId: attachId,
|
|
97229
|
+
attachName: attachName,
|
|
97230
|
+
attachType: attachType,
|
|
97231
|
+
fileTitle: fileTitle,
|
|
97232
|
+
bodyDocId: $scope.wfInstance.bodyDocId,
|
|
97233
|
+
downUrl: downUrl,
|
|
97234
|
+
uploadUrl: uploadUrl,
|
|
97235
|
+
openType: foxitOpenType
|
|
97236
|
+
}
|
|
97237
|
+
}).then(function (res) {
|
|
97238
|
+
if (res.code === 'success') {
|
|
97239
|
+
_this10.$bus.emit('closeDoingDialog');
|
|
97240
|
+
var fileUrl = res.body.url;
|
|
97241
|
+
var docId = res.body.docId;
|
|
97242
|
+
_this10.tSessionId = docId;
|
|
97243
|
+
var openUrl = './plugins/foxitjj/editor.html?docId=' + docId + '&attachName=' + attachName + '&fileUrl=' + encodeURI(fileUrl);
|
|
97244
|
+
_this10.windowOpen(openUrl, $scope, docId, openType);
|
|
97245
|
+
if (attachType === 'BODY') {
|
|
97246
|
+
var productCode = window.$auth.getProductCode();
|
|
97247
|
+
data.bodyFileUrl = appUrl + params.downUrl + '&ecweb-ticket-' + productCode + '=' + encodeURIComponent(window.$auth.getTicket()) + '&productCode=' + productCode;
|
|
97248
|
+
data.bodyDocId = $scope.wfInstance.bodyDocId;
|
|
97249
|
+
window.redTitleData = data;
|
|
97250
|
+
delete window.saveVersion;
|
|
97251
|
+
}
|
|
97252
|
+
} else {
|
|
97253
|
+
_this10.$alert(res.message, _this10.$tx('common.operationTip', '操作提示'), {
|
|
97254
|
+
type: 'error'
|
|
97255
|
+
});
|
|
97256
|
+
_this10.$bus.emit('closeDoingDialog');
|
|
97257
|
+
}
|
|
97258
|
+
});
|
|
97259
|
+
},
|
|
97260
|
+
checkFoxitjjEditorFinished: function checkFoxitjjEditorFinished($scope, docId, checkCount, openType) {
|
|
97261
|
+
var _this11 = this;
|
|
97262
|
+
var WFBusiDataId = $scope.vo.id;
|
|
97263
|
+
var WfModule = $scope.wfInstance.module;
|
|
97264
|
+
var WFBodyDocId = $scope.wfInstance.bodyDocId;
|
|
97265
|
+
if (openType === 'Redlining') {
|
|
97266
|
+
WFBodyDocId = 'RedTitle_' + WFBodyDocId;
|
|
97267
|
+
}
|
|
97268
|
+
this.$http({
|
|
97269
|
+
method: 'GET',
|
|
97270
|
+
url: 'foxitEditor/checkFinished',
|
|
97271
|
+
params: {
|
|
97272
|
+
module: WfModule,
|
|
97273
|
+
busiDataId: WFBusiDataId,
|
|
97274
|
+
bodyDocId: WFBodyDocId,
|
|
97275
|
+
docId: docId,
|
|
97276
|
+
checkCount: checkCount
|
|
97277
|
+
}
|
|
97278
|
+
}).then(function (chkRes) {
|
|
97279
|
+
if (chkRes.code === 'success') {
|
|
97280
|
+
if (chkRes.body.waiting) {
|
|
97281
|
+
setTimeout(function () {
|
|
97282
|
+
_this11.checkFoxitjjEditorFinished($scope, docId, ++checkCount, openType);
|
|
97283
|
+
}, 1000);
|
|
97284
|
+
} else if (chkRes.body.finished) {
|
|
97285
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97286
|
+
} else if (chkRes.body.saved) {
|
|
97287
|
+
var haveDoc = $scope.wfInstance.haveDoc;
|
|
97288
|
+
var signedFileName = $scope.vo.signedFileName;
|
|
97289
|
+
if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
97290
|
+
if (!_this11.openType) {
|
|
97291
|
+
$scope.wfInstance.haveDoc = 1;
|
|
97292
|
+
} else if (_this11.openType === 'Redlining' || _this11.openType === 'RedliningOnce') {
|
|
97293
|
+
$scope.wfInstance.haveDoc = 2;
|
|
97294
|
+
}
|
|
97295
|
+
} else {
|
|
97296
|
+
$scope.wfInstance.haveDoc = 2;
|
|
97297
|
+
}
|
|
97298
|
+
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
97299
|
+
if (haveDoc !== $scope.wfInstance.haveDoc || signedFileName !== $scope.vo.signedFileName || chkRes.body.uploadAttachList[0].fileVer) {
|
|
97300
|
+
localStorage.setItem('activeName', 1);
|
|
97301
|
+
$scope.btnSubmitClick('Save');
|
|
97302
|
+
$scope.bodyFileEditor = 2;
|
|
97303
|
+
} else {
|
|
97304
|
+
_this11.$bus.emit('reloadBodyFile');
|
|
97305
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97306
|
+
}
|
|
97307
|
+
}
|
|
97308
|
+
} else {
|
|
97309
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97310
|
+
_this11.$alert(chkRes.message, _this11.$tx('common.operationTip', '操作提示'), {
|
|
97311
|
+
type: 'error'
|
|
97312
|
+
});
|
|
97313
|
+
}
|
|
97314
|
+
}, function (err) {
|
|
97315
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97316
|
+
_this11.$alert(err.message, _this11.$tx('common.operationTip', '操作提示'), {
|
|
97317
|
+
type: 'error'
|
|
97318
|
+
});
|
|
97319
|
+
console.log(err);
|
|
97320
|
+
});
|
|
97321
|
+
},
|
|
97322
|
+
btnOpenEcdocEditorClick: function btnOpenEcdocEditorClick($scope, bookmarks, data, downUrl) {
|
|
97323
|
+
var _this12 = this;
|
|
97159
97324
|
return H5Officevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/H5Officevue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
97160
97325
|
var appUrl, fileName, attachType, insertFileUrl, tSessionId;
|
|
97161
97326
|
return H5Officevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -97185,15 +97350,15 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97185
97350
|
insertFileUrl = downUrl;
|
|
97186
97351
|
downUrl = data.insertFileUrl;
|
|
97187
97352
|
_context4.next = 12;
|
|
97188
|
-
return
|
|
97353
|
+
return _this12.getSessionId();
|
|
97189
97354
|
case 12:
|
|
97190
97355
|
tSessionId = _context4.sent;
|
|
97191
97356
|
insertFileUrl += '&tSessionId=' + tSessionId;
|
|
97192
97357
|
case 14:
|
|
97193
97358
|
console.log(downUrl, ' downUrl --- > 598');
|
|
97194
97359
|
console.log(insertFileUrl, ' insertFileUrl --- > 598');
|
|
97195
|
-
|
|
97196
|
-
|
|
97360
|
+
_this12.$bus.emit('showDoingDialog', '正在下载文件,请稍候...');
|
|
97361
|
+
_this12.$http({
|
|
97197
97362
|
method: 'GET',
|
|
97198
97363
|
url: 'wopi/getAccessToken',
|
|
97199
97364
|
params: {
|
|
@@ -97202,14 +97367,14 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97202
97367
|
}
|
|
97203
97368
|
}).then(function (res) {
|
|
97204
97369
|
if (res.code === 'success') {
|
|
97205
|
-
|
|
97206
|
-
|
|
97370
|
+
_this12.tSessionId = res.body.tSessionId;
|
|
97371
|
+
_this12.$bus.emit('closeDoingDialog');
|
|
97207
97372
|
var editorUrl = res.body.editorUrl;
|
|
97208
97373
|
editorUrl = editorUrl.split('/browser/')[0] + '/browser/dist/ecweboffice/editor.html?url=' + encodeURIComponent(editorUrl);
|
|
97209
97374
|
var docEditor = window.open(editorUrl);
|
|
97210
97375
|
var setBookmarked = false;
|
|
97211
97376
|
var bodyInsered = false;
|
|
97212
|
-
|
|
97377
|
+
_this12.doctimer = setInterval(function () {
|
|
97213
97378
|
// 在线编辑代码开始
|
|
97214
97379
|
if (!bodyInsered && data.bkInsertFile && data.insertFileUrl) {
|
|
97215
97380
|
// 套红
|
|
@@ -97234,17 +97399,17 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97234
97399
|
setBookmarked = true;
|
|
97235
97400
|
}
|
|
97236
97401
|
if (!docEditor.location) {
|
|
97237
|
-
clearInterval(
|
|
97402
|
+
clearInterval(_this12.doctimer);
|
|
97238
97403
|
if (window.fileStatus > 0) {
|
|
97239
|
-
|
|
97404
|
+
_this12.$bus.emit('showDoingDialog', reloadMsg);
|
|
97240
97405
|
var _uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
97241
|
-
|
|
97406
|
+
_this12.checkEcincEditorFinished($scope, res.body.attachId, _uploadUrl, 0, params.attachType);
|
|
97242
97407
|
}
|
|
97243
97408
|
}
|
|
97244
97409
|
// 在线编辑代码结束
|
|
97245
97410
|
if (docEditor.closed) {
|
|
97246
|
-
clearInterval(
|
|
97247
|
-
|
|
97411
|
+
clearInterval(_this12.doctimer);
|
|
97412
|
+
_this12.btnEcdocSavedClick(true);
|
|
97248
97413
|
}
|
|
97249
97414
|
}, 500);
|
|
97250
97415
|
var uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
@@ -97252,22 +97417,22 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97252
97417
|
uploadUrl += '&bodyDocId=' + $scope.wfInstance.bodyDocId;
|
|
97253
97418
|
uploadUrl += '&module=' + $scope.wfInstance.module;
|
|
97254
97419
|
var attachsName = '';
|
|
97255
|
-
if (
|
|
97256
|
-
attachsName = 'RedTitle_' +
|
|
97257
|
-
} else if (
|
|
97258
|
-
attachsName = 'NoTracks_' +
|
|
97420
|
+
if (_this12.openType === 'Redlining' || _this12.openType === 'RedliningOnce') {
|
|
97421
|
+
attachsName = 'RedTitle_' + _this12.WFBodyDocId + '.doc';
|
|
97422
|
+
} else if (_this12.openType === 'NoTracks') {
|
|
97423
|
+
attachsName = 'NoTracks_' + _this12.WFBodyDocId + '.doc';
|
|
97259
97424
|
} else {
|
|
97260
|
-
attachsName =
|
|
97425
|
+
attachsName = _this12.WFBodyDocId + '.doc';
|
|
97261
97426
|
}
|
|
97262
97427
|
uploadUrl += '&attachsName=' + attachsName;
|
|
97263
97428
|
uploadUrl += '&attachsType=' + attachType;
|
|
97264
97429
|
uploadUrl += '&topdf=true';
|
|
97265
|
-
uploadUrl += '&saveAs=' +
|
|
97430
|
+
uploadUrl += '&saveAs=' + _this12.WFBodyDocId + '.doc';
|
|
97266
97431
|
uploadUrl += '&r=' + Math.random();
|
|
97267
97432
|
document.querySelector('#btnEcdocSaved').uploadUrl = uploadUrl;
|
|
97268
97433
|
document.querySelector('#btnEcdocSaved').checkSave = false;
|
|
97269
97434
|
} else {
|
|
97270
|
-
|
|
97435
|
+
_this12.$alert(res.message, _this12.$tx('common.operationTip', '操作提示'), {
|
|
97271
97436
|
type: 'error'
|
|
97272
97437
|
});
|
|
97273
97438
|
}
|
|
@@ -97280,9 +97445,9 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97280
97445
|
}))();
|
|
97281
97446
|
},
|
|
97282
97447
|
getSessionId: function getSessionId() {
|
|
97283
|
-
var
|
|
97448
|
+
var _this13 = this;
|
|
97284
97449
|
return new Promise(function (resolve, reject) {
|
|
97285
|
-
|
|
97450
|
+
_this13.$http({
|
|
97286
97451
|
method: 'GET',
|
|
97287
97452
|
params: {
|
|
97288
97453
|
timeLength: 60
|
|
@@ -97335,7 +97500,7 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97335
97500
|
}
|
|
97336
97501
|
},
|
|
97337
97502
|
checkEcincEditorFinished: function checkEcincEditorFinished($scope, fileId, uploadUrl, checkCount, attachType) {
|
|
97338
|
-
var
|
|
97503
|
+
var _this14 = this;
|
|
97339
97504
|
if (!this.$vnode.context.vo) $scope = this.$vnode.context.$vnode.context;
|
|
97340
97505
|
var _this = this;
|
|
97341
97506
|
this.$http({
|
|
@@ -97350,18 +97515,18 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97350
97515
|
if (chkRes.code === 'success') {
|
|
97351
97516
|
if (chkRes.body.waiting) {
|
|
97352
97517
|
setTimeout(function () {
|
|
97353
|
-
|
|
97518
|
+
_this14.checkEcincEditorFinished($scope, fileId, uploadUrl, ++checkCount, attachType);
|
|
97354
97519
|
}, 1000);
|
|
97355
97520
|
} else if (chkRes.body.finished) {
|
|
97356
|
-
|
|
97521
|
+
_this14.$bus.emit('closeDoingDialog');
|
|
97357
97522
|
} else if (chkRes.body.saved) {
|
|
97358
97523
|
if (attachType === 'BODY') {
|
|
97359
97524
|
var haveDoc = $scope.wfInstance.haveDoc;
|
|
97360
|
-
if (
|
|
97525
|
+
if (_this14.openType === 'NoTracks') {
|
|
97361
97526
|
// 清稿结束
|
|
97362
97527
|
$scope.wfInstance.haveDoc = 1;
|
|
97363
97528
|
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
97364
|
-
} else if (
|
|
97529
|
+
} else if (_this14.openType === 'Redlining' || _this14.openType === 'RedliningOnce') {
|
|
97365
97530
|
// 套红或重新套红
|
|
97366
97531
|
$scope.wfInstance.haveDoc = 2;
|
|
97367
97532
|
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
@@ -97375,7 +97540,7 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97375
97540
|
}
|
|
97376
97541
|
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
97377
97542
|
}
|
|
97378
|
-
if (haveDoc === $scope.wfInstance.haveDoc && $scope.wfInstance.haveDoc === 1 && !$scope.noTracksFile &&
|
|
97543
|
+
if (haveDoc === $scope.wfInstance.haveDoc && $scope.wfInstance.haveDoc === 1 && !$scope.noTracksFile && _this14.openType !== 'NoTracks') {
|
|
97379
97544
|
$scope.$message({
|
|
97380
97545
|
type: 'success',
|
|
97381
97546
|
message: '文件已保存成功!',
|
|
@@ -97393,17 +97558,20 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97393
97558
|
}
|
|
97394
97559
|
}
|
|
97395
97560
|
} else {
|
|
97396
|
-
|
|
97561
|
+
_this14.$bus.emit('closeDoingDialog');
|
|
97397
97562
|
}
|
|
97398
97563
|
}
|
|
97399
97564
|
} else {
|
|
97400
|
-
|
|
97401
|
-
|
|
97565
|
+
_this14.$bus.emit('closeDoingDialog');
|
|
97566
|
+
_this14.$alert(chkRes.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
97402
97567
|
type: 'error'
|
|
97403
97568
|
});
|
|
97404
97569
|
}
|
|
97405
97570
|
});
|
|
97406
97571
|
}
|
|
97572
|
+
},
|
|
97573
|
+
btnFoxitDocCloseClick: function btnFoxitDocCloseClick() {
|
|
97574
|
+
this.$bus.emit('closeDoingDialog');
|
|
97407
97575
|
}
|
|
97408
97576
|
});
|
|
97409
97577
|
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/H5Office.vue?vue&type=script&lang=js
|
|
@@ -97418,8 +97586,8 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97418
97586
|
;
|
|
97419
97587
|
var H5Office_component = (0,componentNormalizer/* default */.A)(
|
|
97420
97588
|
webOffice_H5Officevue_type_script_lang_js,
|
|
97421
|
-
|
|
97422
|
-
|
|
97589
|
+
H5Officevue_type_template_id_6b0572fe_render,
|
|
97590
|
+
H5Officevue_type_template_id_6b0572fe_staticRenderFns,
|
|
97423
97591
|
false,
|
|
97424
97592
|
null,
|
|
97425
97593
|
null,
|
|
@@ -99091,8 +99259,8 @@ var WebOffice_component = (0,componentNormalizer/* default */.A)(
|
|
|
99091
99259
|
)
|
|
99092
99260
|
|
|
99093
99261
|
/* harmony default export */ var WebOffice = (WebOffice_component.exports);
|
|
99094
|
-
;// 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/ecoa/src/webOffice/WpsOffice.vue?vue&type=template&id=
|
|
99095
|
-
var
|
|
99262
|
+
;// 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/ecoa/src/webOffice/WpsOffice.vue?vue&type=template&id=7a8148e0&scoped=true
|
|
99263
|
+
var WpsOfficevue_type_template_id_7a8148e0_scoped_true_render = function render() {
|
|
99096
99264
|
var _vm = this,
|
|
99097
99265
|
_c = _vm._self._c;
|
|
99098
99266
|
return _c('div', {
|
|
@@ -99144,7 +99312,7 @@ var WpsOfficevue_type_template_id_718361f0_scoped_true_render = function render(
|
|
|
99144
99312
|
}
|
|
99145
99313
|
}, [_vm._v("正在打开,请稍后...")])])], 1);
|
|
99146
99314
|
};
|
|
99147
|
-
var
|
|
99315
|
+
var WpsOfficevue_type_template_id_7a8148e0_scoped_true_staticRenderFns = [];
|
|
99148
99316
|
|
|
99149
99317
|
;// 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/ecoa/src/webOffice/WpsOffice.vue?vue&type=script&lang=js
|
|
99150
99318
|
function WpsOfficevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return WpsOfficevue_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; }, WpsOfficevue_type_script_lang_js_typeof(o); }
|
|
@@ -99821,6 +99989,14 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
|
|
|
99821
99989
|
bookName: 'AttachNames',
|
|
99822
99990
|
bookValue: attachNames
|
|
99823
99991
|
});
|
|
99992
|
+
bookmarks.push({
|
|
99993
|
+
bookName: 'fldcsm',
|
|
99994
|
+
bookValue: !$scope.vo.flCopySend ? '' : '抄送:'
|
|
99995
|
+
});
|
|
99996
|
+
bookmarks.push({
|
|
99997
|
+
bookName: 'fldfjm',
|
|
99998
|
+
bookValue: !attachNames ? '' : '附件:'
|
|
99999
|
+
});
|
|
99824
100000
|
if ($scope.wfInstance.module === 'hytz') {
|
|
99825
100001
|
bookmarks.push({
|
|
99826
100002
|
bookName: 'StartTime',
|
|
@@ -100101,9 +100277,9 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(7710),
|
|
|
100101
100277
|
});
|
|
100102
100278
|
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=script&lang=js
|
|
100103
100279
|
/* harmony default export */ var webOffice_WpsOfficevue_type_script_lang_js = (WpsOfficevue_type_script_lang_js);
|
|
100104
|
-
// 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/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=
|
|
100105
|
-
var
|
|
100106
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=
|
|
100280
|
+
// 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/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=7a8148e0&prod&scoped=true&lang=scss
|
|
100281
|
+
var WpsOfficevue_type_style_index_0_id_7a8148e0_prod_scoped_true_lang_scss = __webpack_require__(5933);
|
|
100282
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=7a8148e0&prod&scoped=true&lang=scss
|
|
100107
100283
|
|
|
100108
100284
|
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue
|
|
100109
100285
|
|
|
@@ -100116,11 +100292,11 @@ var WpsOfficevue_type_style_index_0_id_718361f0_prod_scoped_true_lang_scss = __w
|
|
|
100116
100292
|
|
|
100117
100293
|
var WpsOffice_component = (0,componentNormalizer/* default */.A)(
|
|
100118
100294
|
webOffice_WpsOfficevue_type_script_lang_js,
|
|
100119
|
-
|
|
100120
|
-
|
|
100295
|
+
WpsOfficevue_type_template_id_7a8148e0_scoped_true_render,
|
|
100296
|
+
WpsOfficevue_type_template_id_7a8148e0_scoped_true_staticRenderFns,
|
|
100121
100297
|
false,
|
|
100122
100298
|
null,
|
|
100123
|
-
"
|
|
100299
|
+
"7a8148e0",
|
|
100124
100300
|
null
|
|
100125
100301
|
|
|
100126
100302
|
)
|