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.umd.js
CHANGED
|
@@ -21751,7 +21751,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".item .title[data-v-ddf844e4]{font-siz
|
|
|
21751
21751
|
|
|
21752
21752
|
/***/ }),
|
|
21753
21753
|
|
|
21754
|
-
/***/
|
|
21754
|
+
/***/ 7087:
|
|
21755
21755
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21756
21756
|
|
|
21757
21757
|
"use strict";
|
|
@@ -21765,7 +21765,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21765
21765
|
|
|
21766
21766
|
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()));
|
|
21767
21767
|
// Module
|
|
21768
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".weboffice-container[data-v-
|
|
21768
|
+
___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}", ""]);
|
|
21769
21769
|
// Exports
|
|
21770
21770
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
21771
21771
|
|
|
@@ -61863,19 +61863,19 @@ var update = add("cc556b66", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
61863
61863
|
|
|
61864
61864
|
/***/ }),
|
|
61865
61865
|
|
|
61866
|
-
/***/
|
|
61866
|
+
/***/ 7867:
|
|
61867
61867
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
61868
61868
|
|
|
61869
61869
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
61870
61870
|
|
|
61871
61871
|
// load the styles
|
|
61872
|
-
var content = __webpack_require__(
|
|
61872
|
+
var content = __webpack_require__(7087);
|
|
61873
61873
|
if(content.__esModule) content = content.default;
|
|
61874
61874
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
61875
61875
|
if(content.locals) module.exports = content.locals;
|
|
61876
61876
|
// add the styles to the DOM
|
|
61877
61877
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
|
61878
|
-
var update = add("
|
|
61878
|
+
var update = add("39eb0648", content, true, {"sourceMap":false,"shadowMode":false});
|
|
61879
61879
|
|
|
61880
61880
|
/***/ }),
|
|
61881
61881
|
|
|
@@ -96344,8 +96344,8 @@ var ecweboffice_component = (0,componentNormalizer/* default */.A)(
|
|
|
96344
96344
|
)
|
|
96345
96345
|
|
|
96346
96346
|
/* harmony default export */ var ecweboffice = (ecweboffice_component.exports);
|
|
96347
|
-
;// 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/ecoa/src/webOffice/H5Office.vue?vue&type=template&id=
|
|
96348
|
-
var
|
|
96347
|
+
;// 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/ecoa/src/webOffice/H5Office.vue?vue&type=template&id=6b0572fe
|
|
96348
|
+
var H5Officevue_type_template_id_6b0572fe_render = function render() {
|
|
96349
96349
|
var _vm = this,
|
|
96350
96350
|
_c = _vm._self._c;
|
|
96351
96351
|
return _c('div', [_c('el-button', {
|
|
@@ -96362,6 +96362,20 @@ var H5Officevue_type_template_id_9e6067e6_render = function render() {
|
|
|
96362
96362
|
on: {
|
|
96363
96363
|
"click": _vm.btnEcdocSavedClick
|
|
96364
96364
|
}
|
|
96365
|
+
}), _c('el-button', {
|
|
96366
|
+
directives: [{
|
|
96367
|
+
name: "show",
|
|
96368
|
+
rawName: "v-show",
|
|
96369
|
+
value: false,
|
|
96370
|
+
expression: "false"
|
|
96371
|
+
}],
|
|
96372
|
+
attrs: {
|
|
96373
|
+
"id": "btnFoxitDocSaved",
|
|
96374
|
+
"type": "default"
|
|
96375
|
+
},
|
|
96376
|
+
on: {
|
|
96377
|
+
"click": _vm.btnFoxitDocSavedClick
|
|
96378
|
+
}
|
|
96365
96379
|
}), _c('el-button', {
|
|
96366
96380
|
directives: [{
|
|
96367
96381
|
name: "show",
|
|
@@ -96378,7 +96392,7 @@ var H5Officevue_type_template_id_9e6067e6_render = function render() {
|
|
|
96378
96392
|
}
|
|
96379
96393
|
})], 1);
|
|
96380
96394
|
};
|
|
96381
|
-
var
|
|
96395
|
+
var H5Officevue_type_template_id_6b0572fe_staticRenderFns = [];
|
|
96382
96396
|
|
|
96383
96397
|
;// 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/ecoa/src/webOffice/H5Office.vue?vue&type=script&lang=js
|
|
96384
96398
|
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); }
|
|
@@ -96491,7 +96505,7 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
96491
96505
|
* 选择红头事件 -- 所有编辑方式通用方法
|
|
96492
96506
|
* @param {*} $scope
|
|
96493
96507
|
*/
|
|
96494
|
-
ModifyFlTypeClick: function ModifyFlTypeClick($scope,
|
|
96508
|
+
ModifyFlTypeClick: function ModifyFlTypeClick($scope, openType) {
|
|
96495
96509
|
var _this3 = this;
|
|
96496
96510
|
this.fetchFwmbTemplateData($scope).then(function (res) {
|
|
96497
96511
|
if (res.code === 'success') {
|
|
@@ -96610,9 +96624,15 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
96610
96624
|
if (this.officeType === 'wpsh5') {
|
|
96611
96625
|
this.btnOpenWpsEditorClick($scope, [], {}, downUrl, attach.fileId || attach.id, attach.fileVer);
|
|
96612
96626
|
} else if (this.officeType === 'yzh5') {
|
|
96613
|
-
this.btnOpenYzdocEditorClick($scope, [], {},
|
|
96627
|
+
this.btnOpenYzdocEditorClick($scope, [], {}, {
|
|
96628
|
+
downUrl: downUrl
|
|
96629
|
+
}, attach.fileId || attach.id, attach.fileVer);
|
|
96614
96630
|
} else if (this.officeType === 'ech5') {
|
|
96615
96631
|
this.btnOpenEcdocEditorClick($scope, [], {}, downUrl, attach.fileId || attach.id, attach.fileVer);
|
|
96632
|
+
} else if (this.officeType === 'foxith5') {
|
|
96633
|
+
this.btnOpenFoxitjjEditorClick($scope, [], {}, {
|
|
96634
|
+
downUrl: downUrl
|
|
96635
|
+
}, attach.fileId || attach.id, attach.fileVer);
|
|
96616
96636
|
}
|
|
96617
96637
|
},
|
|
96618
96638
|
btnOpenWordClick: function btnOpenWordClick($scope, openType, fanwen_url) {
|
|
@@ -96786,6 +96806,8 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
96786
96806
|
_this4.btnOpenYzdocEditorClick($scope, bookmarks, data, params, openType);
|
|
96787
96807
|
} else if (_this4.officeType === 'ech5') {
|
|
96788
96808
|
_this4.btnOpenEcdocEditorClick($scope, bookmarks, data, downUrl, fileId, fileVer);
|
|
96809
|
+
} else if (_this4.officeType === 'foxith5') {
|
|
96810
|
+
_this4.btnOpenFoxitjjEditorClick($scope, bookmarks, data, params, openType);
|
|
96789
96811
|
}
|
|
96790
96812
|
case 21:
|
|
96791
96813
|
case "end":
|
|
@@ -97097,10 +97119,19 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97097
97119
|
console.log(docEditor);
|
|
97098
97120
|
if (docEditor.closed) {
|
|
97099
97121
|
clearInterval(_this8.doctimer);
|
|
97100
|
-
_this8
|
|
97101
|
-
|
|
97102
|
-
|
|
97103
|
-
|
|
97122
|
+
if (_this8.officeType === 'foxith5') {
|
|
97123
|
+
if (window.saveVersion && window.saveVersion.status) {
|
|
97124
|
+
_this8.$bus.emit('showDoingDialog', '正在重新加载文件,请稍候...');
|
|
97125
|
+
setTimeout(function () {
|
|
97126
|
+
_this8.checkFoxitjjEditorFinished($scope, fileVersionId, 0, openType);
|
|
97127
|
+
}, 1000);
|
|
97128
|
+
}
|
|
97129
|
+
} else {
|
|
97130
|
+
_this8.$bus.emit('showDoingDialog', '正在重新加载文件,请稍候...');
|
|
97131
|
+
setTimeout(function () {
|
|
97132
|
+
_this8.checkYzdocEditorFinished($scope, fileVersionId, 0, openType);
|
|
97133
|
+
}, 1000);
|
|
97134
|
+
}
|
|
97104
97135
|
}
|
|
97105
97136
|
}, 500);
|
|
97106
97137
|
},
|
|
@@ -97172,8 +97203,142 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97172
97203
|
console.log(err);
|
|
97173
97204
|
});
|
|
97174
97205
|
},
|
|
97175
|
-
|
|
97206
|
+
btnOpenFoxitjjEditorClick: function btnOpenFoxitjjEditorClick($scope, bookmarks, data, params, openType) {
|
|
97176
97207
|
var _this10 = this;
|
|
97208
|
+
var appUrl = location.href.split('#')[0].split('windex.html')[0];
|
|
97209
|
+
if (appUrl.indexOf('//127') !== -1 || appUrl.indexOf('//192') !== -1) {
|
|
97210
|
+
appUrl = 'http://3950y3g837.zicp.vip/';
|
|
97211
|
+
}
|
|
97212
|
+
var downUrl = data.insertFileUrl || params.downUrl || '';
|
|
97213
|
+
downUrl = appUrl + downUrl;
|
|
97214
|
+
if (downUrl.indexOf('/Editor.doc') !== -1) {
|
|
97215
|
+
//window.open(downUrl)
|
|
97216
|
+
//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)
|
|
97217
|
+
}
|
|
97218
|
+
this.$bus.emit('showDoingDialog', '正在下载文件,请稍候...');
|
|
97219
|
+
var attachType = 'BODY';
|
|
97220
|
+
var attachName = this.WFBodyDocId + '.doc';
|
|
97221
|
+
var attachId = '';
|
|
97222
|
+
if (downUrl.indexOf('=ATTACH') !== -1) {
|
|
97223
|
+
attachType = 'ATTACH';
|
|
97224
|
+
attachName = downUrl.split('attachsName=')[1].split('&')[0];
|
|
97225
|
+
}
|
|
97226
|
+
if (this.openType === 'Redlining' || this.openType === 'RedliningOnce') {
|
|
97227
|
+
attachName = 'RedTitle_' + this.WFBodyDocId + '.doc';
|
|
97228
|
+
} else if (this.openType === 'NoTracks') {
|
|
97229
|
+
attachName = 'NoTracks_' + this.WFBodyDocId + '.doc';
|
|
97230
|
+
}
|
|
97231
|
+
var uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
97232
|
+
var foxitOpenType = 'openPreview';
|
|
97233
|
+
if (openType !== 'view') {
|
|
97234
|
+
foxitOpenType = 'openEditor';
|
|
97235
|
+
}
|
|
97236
|
+
var fileTitle = attachName;
|
|
97237
|
+
if (attachType === 'BODY') {
|
|
97238
|
+
fileTitle = $scope.vo.flSubject + '.doc';
|
|
97239
|
+
}
|
|
97240
|
+
this.$http({
|
|
97241
|
+
method: 'GET',
|
|
97242
|
+
url: 'foxitEditor/getEditorUrl',
|
|
97243
|
+
params: {
|
|
97244
|
+
module: $scope.wfInstance.module,
|
|
97245
|
+
busiDataId: $scope.vo.id,
|
|
97246
|
+
attachId: attachId,
|
|
97247
|
+
attachName: attachName,
|
|
97248
|
+
attachType: attachType,
|
|
97249
|
+
fileTitle: fileTitle,
|
|
97250
|
+
bodyDocId: $scope.wfInstance.bodyDocId,
|
|
97251
|
+
downUrl: downUrl,
|
|
97252
|
+
uploadUrl: uploadUrl,
|
|
97253
|
+
openType: foxitOpenType
|
|
97254
|
+
}
|
|
97255
|
+
}).then(function (res) {
|
|
97256
|
+
if (res.code === 'success') {
|
|
97257
|
+
_this10.$bus.emit('closeDoingDialog');
|
|
97258
|
+
var fileUrl = res.body.url;
|
|
97259
|
+
var docId = res.body.docId;
|
|
97260
|
+
_this10.tSessionId = docId;
|
|
97261
|
+
var openUrl = './plugins/foxitjj/editor.html?docId=' + docId + '&attachName=' + attachName + '&fileUrl=' + encodeURI(fileUrl);
|
|
97262
|
+
_this10.windowOpen(openUrl, $scope, docId, openType);
|
|
97263
|
+
if (attachType === 'BODY') {
|
|
97264
|
+
var productCode = window.$auth.getProductCode();
|
|
97265
|
+
data.bodyFileUrl = appUrl + params.downUrl + '&ecweb-ticket-' + productCode + '=' + encodeURIComponent(window.$auth.getTicket()) + '&productCode=' + productCode;
|
|
97266
|
+
data.bodyDocId = $scope.wfInstance.bodyDocId;
|
|
97267
|
+
window.redTitleData = data;
|
|
97268
|
+
delete window.saveVersion;
|
|
97269
|
+
}
|
|
97270
|
+
} else {
|
|
97271
|
+
_this10.$alert(res.message, _this10.$tx('common.operationTip', '操作提示'), {
|
|
97272
|
+
type: 'error'
|
|
97273
|
+
});
|
|
97274
|
+
_this10.$bus.emit('closeDoingDialog');
|
|
97275
|
+
}
|
|
97276
|
+
});
|
|
97277
|
+
},
|
|
97278
|
+
checkFoxitjjEditorFinished: function checkFoxitjjEditorFinished($scope, docId, checkCount, openType) {
|
|
97279
|
+
var _this11 = this;
|
|
97280
|
+
var WFBusiDataId = $scope.vo.id;
|
|
97281
|
+
var WfModule = $scope.wfInstance.module;
|
|
97282
|
+
var WFBodyDocId = $scope.wfInstance.bodyDocId;
|
|
97283
|
+
if (openType === 'Redlining') {
|
|
97284
|
+
WFBodyDocId = 'RedTitle_' + WFBodyDocId;
|
|
97285
|
+
}
|
|
97286
|
+
this.$http({
|
|
97287
|
+
method: 'GET',
|
|
97288
|
+
url: 'foxitEditor/checkFinished',
|
|
97289
|
+
params: {
|
|
97290
|
+
module: WfModule,
|
|
97291
|
+
busiDataId: WFBusiDataId,
|
|
97292
|
+
bodyDocId: WFBodyDocId,
|
|
97293
|
+
docId: docId,
|
|
97294
|
+
checkCount: checkCount
|
|
97295
|
+
}
|
|
97296
|
+
}).then(function (chkRes) {
|
|
97297
|
+
if (chkRes.code === 'success') {
|
|
97298
|
+
if (chkRes.body.waiting) {
|
|
97299
|
+
setTimeout(function () {
|
|
97300
|
+
_this11.checkFoxitjjEditorFinished($scope, docId, ++checkCount, openType);
|
|
97301
|
+
}, 1000);
|
|
97302
|
+
} else if (chkRes.body.finished) {
|
|
97303
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97304
|
+
} else if (chkRes.body.saved) {
|
|
97305
|
+
var haveDoc = $scope.wfInstance.haveDoc;
|
|
97306
|
+
var signedFileName = $scope.vo.signedFileName;
|
|
97307
|
+
if ($scope.wfInstance.passenger.docEditMode === 'NoTitle') {
|
|
97308
|
+
if (!_this11.openType) {
|
|
97309
|
+
$scope.wfInstance.haveDoc = 1;
|
|
97310
|
+
} else if (_this11.openType === 'Redlining' || _this11.openType === 'RedliningOnce') {
|
|
97311
|
+
$scope.wfInstance.haveDoc = 2;
|
|
97312
|
+
}
|
|
97313
|
+
} else {
|
|
97314
|
+
$scope.wfInstance.haveDoc = 2;
|
|
97315
|
+
}
|
|
97316
|
+
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
97317
|
+
if (haveDoc !== $scope.wfInstance.haveDoc || signedFileName !== $scope.vo.signedFileName || chkRes.body.uploadAttachList[0].fileVer) {
|
|
97318
|
+
localStorage.setItem('activeName', 1);
|
|
97319
|
+
$scope.btnSubmitClick('Save');
|
|
97320
|
+
$scope.bodyFileEditor = 2;
|
|
97321
|
+
} else {
|
|
97322
|
+
_this11.$bus.emit('reloadBodyFile');
|
|
97323
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97324
|
+
}
|
|
97325
|
+
}
|
|
97326
|
+
} else {
|
|
97327
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97328
|
+
_this11.$alert(chkRes.message, _this11.$tx('common.operationTip', '操作提示'), {
|
|
97329
|
+
type: 'error'
|
|
97330
|
+
});
|
|
97331
|
+
}
|
|
97332
|
+
}, function (err) {
|
|
97333
|
+
_this11.$bus.emit('closeDoingDialog');
|
|
97334
|
+
_this11.$alert(err.message, _this11.$tx('common.operationTip', '操作提示'), {
|
|
97335
|
+
type: 'error'
|
|
97336
|
+
});
|
|
97337
|
+
console.log(err);
|
|
97338
|
+
});
|
|
97339
|
+
},
|
|
97340
|
+
btnOpenEcdocEditorClick: function btnOpenEcdocEditorClick($scope, bookmarks, data, downUrl) {
|
|
97341
|
+
var _this12 = this;
|
|
97177
97342
|
return H5Officevue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/H5Officevue_type_script_lang_js_regeneratorRuntime().mark(function _callee4() {
|
|
97178
97343
|
var appUrl, fileName, attachType, insertFileUrl, tSessionId;
|
|
97179
97344
|
return H5Officevue_type_script_lang_js_regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -97203,15 +97368,15 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97203
97368
|
insertFileUrl = downUrl;
|
|
97204
97369
|
downUrl = data.insertFileUrl;
|
|
97205
97370
|
_context4.next = 12;
|
|
97206
|
-
return
|
|
97371
|
+
return _this12.getSessionId();
|
|
97207
97372
|
case 12:
|
|
97208
97373
|
tSessionId = _context4.sent;
|
|
97209
97374
|
insertFileUrl += '&tSessionId=' + tSessionId;
|
|
97210
97375
|
case 14:
|
|
97211
97376
|
console.log(downUrl, ' downUrl --- > 598');
|
|
97212
97377
|
console.log(insertFileUrl, ' insertFileUrl --- > 598');
|
|
97213
|
-
|
|
97214
|
-
|
|
97378
|
+
_this12.$bus.emit('showDoingDialog', '正在下载文件,请稍候...');
|
|
97379
|
+
_this12.$http({
|
|
97215
97380
|
method: 'GET',
|
|
97216
97381
|
url: 'wopi/getAccessToken',
|
|
97217
97382
|
params: {
|
|
@@ -97220,14 +97385,14 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97220
97385
|
}
|
|
97221
97386
|
}).then(function (res) {
|
|
97222
97387
|
if (res.code === 'success') {
|
|
97223
|
-
|
|
97224
|
-
|
|
97388
|
+
_this12.tSessionId = res.body.tSessionId;
|
|
97389
|
+
_this12.$bus.emit('closeDoingDialog');
|
|
97225
97390
|
var editorUrl = res.body.editorUrl;
|
|
97226
97391
|
editorUrl = editorUrl.split('/browser/')[0] + '/browser/dist/ecweboffice/editor.html?url=' + encodeURIComponent(editorUrl);
|
|
97227
97392
|
var docEditor = window.open(editorUrl);
|
|
97228
97393
|
var setBookmarked = false;
|
|
97229
97394
|
var bodyInsered = false;
|
|
97230
|
-
|
|
97395
|
+
_this12.doctimer = setInterval(function () {
|
|
97231
97396
|
// 在线编辑代码开始
|
|
97232
97397
|
if (!bodyInsered && data.bkInsertFile && data.insertFileUrl) {
|
|
97233
97398
|
// 套红
|
|
@@ -97252,17 +97417,17 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97252
97417
|
setBookmarked = true;
|
|
97253
97418
|
}
|
|
97254
97419
|
if (!docEditor.location) {
|
|
97255
|
-
clearInterval(
|
|
97420
|
+
clearInterval(_this12.doctimer);
|
|
97256
97421
|
if (window.fileStatus > 0) {
|
|
97257
|
-
|
|
97422
|
+
_this12.$bus.emit('showDoingDialog', reloadMsg);
|
|
97258
97423
|
var _uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
97259
|
-
|
|
97424
|
+
_this12.checkEcincEditorFinished($scope, res.body.attachId, _uploadUrl, 0, params.attachType);
|
|
97260
97425
|
}
|
|
97261
97426
|
}
|
|
97262
97427
|
// 在线编辑代码结束
|
|
97263
97428
|
if (docEditor.closed) {
|
|
97264
|
-
clearInterval(
|
|
97265
|
-
|
|
97429
|
+
clearInterval(_this12.doctimer);
|
|
97430
|
+
_this12.btnEcdocSavedClick(true);
|
|
97266
97431
|
}
|
|
97267
97432
|
}, 500);
|
|
97268
97433
|
var uploadUrl = appUrl + "/apigw".substring(1) + '/' + $scope.wfAttachUrl + '/upload';
|
|
@@ -97270,22 +97435,22 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97270
97435
|
uploadUrl += '&bodyDocId=' + $scope.wfInstance.bodyDocId;
|
|
97271
97436
|
uploadUrl += '&module=' + $scope.wfInstance.module;
|
|
97272
97437
|
var attachsName = '';
|
|
97273
|
-
if (
|
|
97274
|
-
attachsName = 'RedTitle_' +
|
|
97275
|
-
} else if (
|
|
97276
|
-
attachsName = 'NoTracks_' +
|
|
97438
|
+
if (_this12.openType === 'Redlining' || _this12.openType === 'RedliningOnce') {
|
|
97439
|
+
attachsName = 'RedTitle_' + _this12.WFBodyDocId + '.doc';
|
|
97440
|
+
} else if (_this12.openType === 'NoTracks') {
|
|
97441
|
+
attachsName = 'NoTracks_' + _this12.WFBodyDocId + '.doc';
|
|
97277
97442
|
} else {
|
|
97278
|
-
attachsName =
|
|
97443
|
+
attachsName = _this12.WFBodyDocId + '.doc';
|
|
97279
97444
|
}
|
|
97280
97445
|
uploadUrl += '&attachsName=' + attachsName;
|
|
97281
97446
|
uploadUrl += '&attachsType=' + attachType;
|
|
97282
97447
|
uploadUrl += '&topdf=true';
|
|
97283
|
-
uploadUrl += '&saveAs=' +
|
|
97448
|
+
uploadUrl += '&saveAs=' + _this12.WFBodyDocId + '.doc';
|
|
97284
97449
|
uploadUrl += '&r=' + Math.random();
|
|
97285
97450
|
document.querySelector('#btnEcdocSaved').uploadUrl = uploadUrl;
|
|
97286
97451
|
document.querySelector('#btnEcdocSaved').checkSave = false;
|
|
97287
97452
|
} else {
|
|
97288
|
-
|
|
97453
|
+
_this12.$alert(res.message, _this12.$tx('common.operationTip', '操作提示'), {
|
|
97289
97454
|
type: 'error'
|
|
97290
97455
|
});
|
|
97291
97456
|
}
|
|
@@ -97298,9 +97463,9 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97298
97463
|
}))();
|
|
97299
97464
|
},
|
|
97300
97465
|
getSessionId: function getSessionId() {
|
|
97301
|
-
var
|
|
97466
|
+
var _this13 = this;
|
|
97302
97467
|
return new Promise(function (resolve, reject) {
|
|
97303
|
-
|
|
97468
|
+
_this13.$http({
|
|
97304
97469
|
method: 'GET',
|
|
97305
97470
|
params: {
|
|
97306
97471
|
timeLength: 60
|
|
@@ -97353,7 +97518,7 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97353
97518
|
}
|
|
97354
97519
|
},
|
|
97355
97520
|
checkEcincEditorFinished: function checkEcincEditorFinished($scope, fileId, uploadUrl, checkCount, attachType) {
|
|
97356
|
-
var
|
|
97521
|
+
var _this14 = this;
|
|
97357
97522
|
if (!this.$vnode.context.vo) $scope = this.$vnode.context.$vnode.context;
|
|
97358
97523
|
var _this = this;
|
|
97359
97524
|
this.$http({
|
|
@@ -97368,18 +97533,18 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97368
97533
|
if (chkRes.code === 'success') {
|
|
97369
97534
|
if (chkRes.body.waiting) {
|
|
97370
97535
|
setTimeout(function () {
|
|
97371
|
-
|
|
97536
|
+
_this14.checkEcincEditorFinished($scope, fileId, uploadUrl, ++checkCount, attachType);
|
|
97372
97537
|
}, 1000);
|
|
97373
97538
|
} else if (chkRes.body.finished) {
|
|
97374
|
-
|
|
97539
|
+
_this14.$bus.emit('closeDoingDialog');
|
|
97375
97540
|
} else if (chkRes.body.saved) {
|
|
97376
97541
|
if (attachType === 'BODY') {
|
|
97377
97542
|
var haveDoc = $scope.wfInstance.haveDoc;
|
|
97378
|
-
if (
|
|
97543
|
+
if (_this14.openType === 'NoTracks') {
|
|
97379
97544
|
// 清稿结束
|
|
97380
97545
|
$scope.wfInstance.haveDoc = 1;
|
|
97381
97546
|
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
97382
|
-
} else if (
|
|
97547
|
+
} else if (_this14.openType === 'Redlining' || _this14.openType === 'RedliningOnce') {
|
|
97383
97548
|
// 套红或重新套红
|
|
97384
97549
|
$scope.wfInstance.haveDoc = 2;
|
|
97385
97550
|
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
@@ -97393,7 +97558,7 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97393
97558
|
}
|
|
97394
97559
|
if ($scope.vo.signedFileName) $scope.vo.signedFileName = null;
|
|
97395
97560
|
}
|
|
97396
|
-
if (haveDoc === $scope.wfInstance.haveDoc && $scope.wfInstance.haveDoc === 1 && !$scope.noTracksFile &&
|
|
97561
|
+
if (haveDoc === $scope.wfInstance.haveDoc && $scope.wfInstance.haveDoc === 1 && !$scope.noTracksFile && _this14.openType !== 'NoTracks') {
|
|
97397
97562
|
$scope.$message({
|
|
97398
97563
|
type: 'success',
|
|
97399
97564
|
message: '文件已保存成功!',
|
|
@@ -97411,17 +97576,20 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97411
97576
|
}
|
|
97412
97577
|
}
|
|
97413
97578
|
} else {
|
|
97414
|
-
|
|
97579
|
+
_this14.$bus.emit('closeDoingDialog');
|
|
97415
97580
|
}
|
|
97416
97581
|
}
|
|
97417
97582
|
} else {
|
|
97418
|
-
|
|
97419
|
-
|
|
97583
|
+
_this14.$bus.emit('closeDoingDialog');
|
|
97584
|
+
_this14.$alert(chkRes.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
97420
97585
|
type: 'error'
|
|
97421
97586
|
});
|
|
97422
97587
|
}
|
|
97423
97588
|
});
|
|
97424
97589
|
}
|
|
97590
|
+
},
|
|
97591
|
+
btnFoxitDocCloseClick: function btnFoxitDocCloseClick() {
|
|
97592
|
+
this.$bus.emit('closeDoingDialog');
|
|
97425
97593
|
}
|
|
97426
97594
|
});
|
|
97427
97595
|
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/H5Office.vue?vue&type=script&lang=js
|
|
@@ -97436,8 +97604,8 @@ function H5Officevue_type_script_lang_js_asyncToGenerator(n) { return function (
|
|
|
97436
97604
|
;
|
|
97437
97605
|
var H5Office_component = (0,componentNormalizer/* default */.A)(
|
|
97438
97606
|
webOffice_H5Officevue_type_script_lang_js,
|
|
97439
|
-
|
|
97440
|
-
|
|
97607
|
+
H5Officevue_type_template_id_6b0572fe_render,
|
|
97608
|
+
H5Officevue_type_template_id_6b0572fe_staticRenderFns,
|
|
97441
97609
|
false,
|
|
97442
97610
|
null,
|
|
97443
97611
|
null,
|
|
@@ -99109,8 +99277,8 @@ var WebOffice_component = (0,componentNormalizer/* default */.A)(
|
|
|
99109
99277
|
)
|
|
99110
99278
|
|
|
99111
99279
|
/* harmony default export */ var WebOffice = (WebOffice_component.exports);
|
|
99112
|
-
;// 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/ecoa/src/webOffice/WpsOffice.vue?vue&type=template&id=
|
|
99113
|
-
var
|
|
99280
|
+
;// 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/ecoa/src/webOffice/WpsOffice.vue?vue&type=template&id=7a8148e0&scoped=true
|
|
99281
|
+
var WpsOfficevue_type_template_id_7a8148e0_scoped_true_render = function render() {
|
|
99114
99282
|
var _vm = this,
|
|
99115
99283
|
_c = _vm._self._c;
|
|
99116
99284
|
return _c('div', {
|
|
@@ -99162,7 +99330,7 @@ var WpsOfficevue_type_template_id_718361f0_scoped_true_render = function render(
|
|
|
99162
99330
|
}
|
|
99163
99331
|
}, [_vm._v("正在打开,请稍后...")])])], 1);
|
|
99164
99332
|
};
|
|
99165
|
-
var
|
|
99333
|
+
var WpsOfficevue_type_template_id_7a8148e0_scoped_true_staticRenderFns = [];
|
|
99166
99334
|
|
|
99167
99335
|
;// 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/ecoa/src/webOffice/WpsOffice.vue?vue&type=script&lang=js
|
|
99168
99336
|
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); }
|
|
@@ -99839,6 +100007,14 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
|
|
|
99839
100007
|
bookName: 'AttachNames',
|
|
99840
100008
|
bookValue: attachNames
|
|
99841
100009
|
});
|
|
100010
|
+
bookmarks.push({
|
|
100011
|
+
bookName: 'fldcsm',
|
|
100012
|
+
bookValue: !$scope.vo.flCopySend ? '' : '抄送:'
|
|
100013
|
+
});
|
|
100014
|
+
bookmarks.push({
|
|
100015
|
+
bookName: 'fldfjm',
|
|
100016
|
+
bookValue: !attachNames ? '' : '附件:'
|
|
100017
|
+
});
|
|
99842
100018
|
if ($scope.wfInstance.module === 'hytz') {
|
|
99843
100019
|
bookmarks.push({
|
|
99844
100020
|
bookName: 'StartTime',
|
|
@@ -100119,9 +100295,9 @@ var WpsOfficevue_type_script_lang_js_require = __webpack_require__(3844),
|
|
|
100119
100295
|
});
|
|
100120
100296
|
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=script&lang=js
|
|
100121
100297
|
/* harmony default export */ var webOffice_WpsOfficevue_type_script_lang_js = (WpsOfficevue_type_script_lang_js);
|
|
100122
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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=
|
|
100123
|
-
var
|
|
100124
|
-
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=
|
|
100298
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
100299
|
+
var WpsOfficevue_type_style_index_0_id_7a8148e0_prod_scoped_true_lang_scss = __webpack_require__(7867);
|
|
100300
|
+
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue?vue&type=style&index=0&id=7a8148e0&prod&scoped=true&lang=scss
|
|
100125
100301
|
|
|
100126
100302
|
;// CONCATENATED MODULE: ./packages/ecyoa/ecoa/src/webOffice/WpsOffice.vue
|
|
100127
100303
|
|
|
@@ -100134,11 +100310,11 @@ var WpsOfficevue_type_style_index_0_id_718361f0_prod_scoped_true_lang_scss = __w
|
|
|
100134
100310
|
|
|
100135
100311
|
var WpsOffice_component = (0,componentNormalizer/* default */.A)(
|
|
100136
100312
|
webOffice_WpsOfficevue_type_script_lang_js,
|
|
100137
|
-
|
|
100138
|
-
|
|
100313
|
+
WpsOfficevue_type_template_id_7a8148e0_scoped_true_render,
|
|
100314
|
+
WpsOfficevue_type_template_id_7a8148e0_scoped_true_staticRenderFns,
|
|
100139
100315
|
false,
|
|
100140
100316
|
null,
|
|
100141
|
-
"
|
|
100317
|
+
"7a8148e0",
|
|
100142
100318
|
null
|
|
100143
100319
|
|
|
100144
100320
|
)
|