ecinc-cloud-wappaio 9.6.298 → 9.6.300
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/ecwappaio.common.js +44 -33
- package/lib/ecwappaio.umd.js +44 -33
- package/lib/ecwappaio.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/ecwappaio.common.js
CHANGED
|
@@ -42354,7 +42354,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-4ff4cf75] .wf-names-checkbox .
|
|
|
42354
42354
|
|
|
42355
42355
|
/***/ }),
|
|
42356
42356
|
|
|
42357
|
-
/***/
|
|
42357
|
+
/***/ 8756:
|
|
42358
42358
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42359
42359
|
|
|
42360
42360
|
"use strict";
|
|
@@ -42368,7 +42368,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42368
42368
|
|
|
42369
42369
|
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()));
|
|
42370
42370
|
// Module
|
|
42371
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
42371
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-253829b2]:export{stdMenuBgcolor:var(--lmBgColor);stdMenuHover:var(--lmBgColorActive)!important;stdMenuText:var(--lmTextColor)!important;stdMenuAcitveText:var(--lmTextColorActive)!important;stdSubMenuBgcolor:var(--lmBgColor);stdSubMenuHover:hsla(193,8%,67%,.42);stdSubMenuActiveText:var(--lmTextColorActive)!important;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:var(--subjectColor)}.el-form[data-v-253829b2]{margin-top:20px}.el-form .svg-icon[data-v-253829b2]{margin:0 5px}.el-form .el-button[data-v-253829b2]{padding:7px 5px}.el-form .el-button[data-v-253829b2]:active{color:#606266}.el-form .el-button+.el-button[data-v-253829b2]{margin-left:0}.el-form .el-link[data-v-253829b2]{line-height:20px;color:var(--subjectColor);cursor:pointer!important}.el-form .is-disabled[data-v-253829b2]{color:#c4c5c7!important}.el-form .fileHovering[data-v-253829b2]{background:#a5c45d}.el-form .fileHovering table[data-v-253829b2]{opacity:.5}.el-form[data-v-253829b2] .attach-name{max-width:100%}.el-form[data-v-253829b2] .attach-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attach-row[data-v-253829b2]{padding-top:5px;padding-bottom:5px;line-height:21px}.no-attachments[data-v-253829b2]{height:50px;line-height:20px}.drag-handler[data-v-253829b2]{cursor:move}[data-v-253829b2] .atach-draggable .sortable-chosen{background:#f5f7fa}[data-v-253829b2] .el-progress-bar{padding-right:40px!important;margin-right:-47px!important}[data-v-253829b2] .el-progress__text{float:right}.attach-row[data-v-253829b2]:last-child{border-bottom:0!important}.docform-attach-container[data-v-253829b2]{padding:20px;margin:0!important;background-color:#fff;height:calc(100vh - 70px)}.attachment-sidebar .sidebar-area[data-v-253829b2]{border-bottom:1px solid #eee}.attachment-sidebar .sidebar-area .sidebar-area-title[data-v-253829b2]{font-weight:600;line-height:24px;padding:10px}.attachment-sidebar .sidebar-area .sidebar-area-title .el-button--primary[data-v-253829b2]{width:6px;padding:0;margin-right:6px;margin-top:5px;border-radius:1px;height:14px;cursor:default;vertical-align:top;display:inline-block}.attachment-sidebar .sidebar-area .sidebar-area-title div[data-v-253829b2]{display:inline-block;vertical-align:top}.attachment-sidebar .sidebar-area .sidebar-area-content[data-v-253829b2]{padding-left:20px;padding-right:10px;padding-bottom:10px}.attachment-sidebar .sidebar-area .sidebar-area-content .attach-row[data-v-253829b2]{border-bottom:1px solid #f3f3f3}.attachment-sidebar .sidebar-area .sidebar-area-content .attach-row .attach-name[data-v-253829b2]{margin-top:-3px;width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.attachment-sidebar .sidebar-area[data-v-253829b2]:last-child{border-bottom:0}.tb-row-attach-container .el-button--mini[data-v-253829b2]{font-size:12px;margin-right:6px}.drag-upload[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;height:36px}.drag-upload[data-v-253829b2] .el-upload,.drag-upload[data-v-253829b2] .el-upload-dragger{width:100%!important;height:100%!important}.drag-upload[data-v-253829b2] .el-upload-dragger .drag-upload-box{height:100%;background:#f9fbff}.upload-view .up-btn[data-v-253829b2]{text-align:end}.upload-view .up-btn .down[data-v-253829b2]{font-size:16px;margin-right:24px;color:#999}.upload-view .upload-box[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.upload-view .upload-box .upload-box-left[data-v-253829b2]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:40%}.upload-view .upload-box .upload-box-left .upload-label[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.upload-view .upload-box .upload-box-left .upload-label .label-l[data-v-253829b2]{width:20px;height:24px;margin-left:6px}.upload-view .upload-box .upload-box-left .upload-label .label-l img[data-v-253829b2]{width:100%;height:100%}.upload-view .upload-box .upload-box-left .upload-label .label-r[data-v-253829b2]{font-size:14px;color:#333;margin-left:10px;-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-view .upload-box .upload-box-right[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.upload-view .upload-box .upload-box-right .up-text[data-v-253829b2]{font-size:12px;color:#999}.upload-view .upload-box .upload-box-right .up-person[data-v-253829b2]{text-align:end;margin-right:60px;margin-left:15px}.upload-view .upload-box .upload-box-right .up-person .upload-name[data-v-253829b2]{margin-right:15px}@media (max-width:1740px){.up-person .upload-name[data-v-253829b2]{margin-right:5px!important}}.upload-err-desc[data-v-253829b2]{color:red;width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}", ""]);
|
|
42372
42372
|
// Exports
|
|
42373
42373
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
42374
42374
|
|
|
@@ -135002,19 +135002,19 @@ var update = add("215aea34", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
135002
135002
|
|
|
135003
135003
|
/***/ }),
|
|
135004
135004
|
|
|
135005
|
-
/***/
|
|
135005
|
+
/***/ 23758:
|
|
135006
135006
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
135007
135007
|
|
|
135008
135008
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
135009
135009
|
|
|
135010
135010
|
// load the styles
|
|
135011
|
-
var content = __webpack_require__(
|
|
135011
|
+
var content = __webpack_require__(8756);
|
|
135012
135012
|
if(content.__esModule) content = content.default;
|
|
135013
135013
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
135014
135014
|
if(content.locals) module.exports = content.locals;
|
|
135015
135015
|
// add the styles to the DOM
|
|
135016
135016
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
135017
|
-
var update = add("
|
|
135017
|
+
var update = add("b72d6468", content, true, {"sourceMap":false,"shadowMode":false});
|
|
135018
135018
|
|
|
135019
135019
|
/***/ }),
|
|
135020
135020
|
|
|
@@ -162467,8 +162467,8 @@ WfNames_src.install = function (Vue) {
|
|
|
162467
162467
|
Vue.component(WfNames_src.name, WfNames_src);
|
|
162468
162468
|
};
|
|
162469
162469
|
/* harmony default export */ var WfNames = (WfNames_src);
|
|
162470
|
-
;// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=template&id=
|
|
162471
|
-
var
|
|
162470
|
+
;// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=template&id=253829b2&scoped=true
|
|
162471
|
+
var Attachmentvue_type_template_id_253829b2_scoped_true_render = function render() {
|
|
162472
162472
|
var _vm = this,
|
|
162473
162473
|
_c = _vm._self._c;
|
|
162474
162474
|
return _c('div', [_vm.showMode == 'table' ? _c('el-form', {
|
|
@@ -164033,7 +164033,7 @@ var Attachmentvue_type_template_id_30136eae_scoped_true_render = function render
|
|
|
164033
164033
|
}
|
|
164034
164034
|
}, [_vm._v("确 定")])], 1)], 1) : _vm._e()], 1);
|
|
164035
164035
|
};
|
|
164036
|
-
var
|
|
164036
|
+
var Attachmentvue_type_template_id_253829b2_scoped_true_staticRenderFns = [];
|
|
164037
164037
|
|
|
164038
164038
|
// EXTERNAL MODULE: ./node_modules/sortablejs/modular/sortable.esm.js
|
|
164039
164039
|
var sortable_esm = __webpack_require__(10246);
|
|
@@ -164472,9 +164472,6 @@ var Attachmentvue_type_script_lang_js_this = null;
|
|
|
164472
164472
|
setCurTN: function setCurTN() {
|
|
164473
164473
|
var _this8 = this;
|
|
164474
164474
|
this.frmViewStyle = this.$vnode.context.frmViewStyle || this.frmViewStyle;
|
|
164475
|
-
if (!this.curTN.userName && this.$vnode.context.curTN) {
|
|
164476
|
-
this.curTN.userName = this.$vnode.context.curTN.userName;
|
|
164477
|
-
}
|
|
164478
164475
|
if (this.curTN.tnCanEdit !== undefined) {
|
|
164479
164476
|
// 流程表单
|
|
164480
164477
|
this.showMode = this.showMode || 'table';
|
|
@@ -164496,9 +164493,12 @@ var Attachmentvue_type_script_lang_js_this = null;
|
|
|
164496
164493
|
if (this.attachEdit.canUpload !== '' && this.attachEdit.canUpload !== null && this.attachEdit.canUpload !== undefined) this.canUpload = this.attachEdit.canUpload;
|
|
164497
164494
|
if (this.attachEdit.canDelete !== '' && this.attachEdit.canDelete !== null && this.attachEdit.canDelete !== undefined) this.canDelete = this.attachEdit.canDelete;
|
|
164498
164495
|
}
|
|
164499
|
-
this.curTN
|
|
164496
|
+
this.$set(this.curTN, 'tnCanEdit', this.canEdit || this.$vnode.context.canEdit);
|
|
164500
164497
|
this.$vnode.context.$attachments = this;
|
|
164501
164498
|
}
|
|
164499
|
+
if (!this.curTN.userName && this.$vnode.context.curTN) {
|
|
164500
|
+
this.curTN.userName = this.$vnode.context.curTN.userName;
|
|
164501
|
+
}
|
|
164502
164502
|
var attachContainer = document.querySelector('.attachments-container');
|
|
164503
164503
|
if (attachContainer !== null) {
|
|
164504
164504
|
if (this.showMode === 'list') {
|
|
@@ -165578,9 +165578,9 @@ var Attachmentvue_type_script_lang_js_this = null;
|
|
|
165578
165578
|
});
|
|
165579
165579
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue?vue&type=script&lang=js
|
|
165580
165580
|
/* harmony default export */ var src_Attachmentvue_type_script_lang_js = (Attachmentvue_type_script_lang_js);
|
|
165581
|
-
// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=
|
|
165582
|
-
var
|
|
165583
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=
|
|
165581
|
+
// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=253829b2&prod&scoped=true&lang=scss
|
|
165582
|
+
var Attachmentvue_type_style_index_0_id_253829b2_prod_scoped_true_lang_scss = __webpack_require__(23758);
|
|
165583
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=253829b2&prod&scoped=true&lang=scss
|
|
165584
165584
|
|
|
165585
165585
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue
|
|
165586
165586
|
|
|
@@ -165593,11 +165593,11 @@ var Attachmentvue_type_style_index_0_id_30136eae_prod_scoped_true_lang_scss = __
|
|
|
165593
165593
|
|
|
165594
165594
|
var Attachment_component = (0,componentNormalizer/* default */.A)(
|
|
165595
165595
|
src_Attachmentvue_type_script_lang_js,
|
|
165596
|
-
|
|
165597
|
-
|
|
165596
|
+
Attachmentvue_type_template_id_253829b2_scoped_true_render,
|
|
165597
|
+
Attachmentvue_type_template_id_253829b2_scoped_true_staticRenderFns,
|
|
165598
165598
|
false,
|
|
165599
165599
|
null,
|
|
165600
|
-
"
|
|
165600
|
+
"253829b2",
|
|
165601
165601
|
null
|
|
165602
165602
|
|
|
165603
165603
|
)
|
|
@@ -178542,8 +178542,8 @@ var IdeaSignature_component = (0,componentNormalizer/* default */.A)(
|
|
|
178542
178542
|
)
|
|
178543
178543
|
|
|
178544
178544
|
/* harmony default export */ var IdeaSignature = (IdeaSignature_component.exports);
|
|
178545
|
-
;// 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/ecwapp/Wflowform/src/ReplaceFile.vue?vue&type=template&id=
|
|
178546
|
-
var
|
|
178545
|
+
;// 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/ecwapp/Wflowform/src/ReplaceFile.vue?vue&type=template&id=5addd913&scoped=true
|
|
178546
|
+
var ReplaceFilevue_type_template_id_5addd913_scoped_true_render = function render() {
|
|
178547
178547
|
var _vm = this,
|
|
178548
178548
|
_c = _vm._self._c;
|
|
178549
178549
|
return _c('div', [_vm.fileDialogVisible ? _c('el-dialog', {
|
|
@@ -178613,7 +178613,7 @@ var ReplaceFilevue_type_template_id_158213bc_scoped_true_render = function rende
|
|
|
178613
178613
|
expression: "'ecwapp.Wflowform.ReplaceFile.replaceFile'"
|
|
178614
178614
|
}],
|
|
178615
178615
|
staticStyle: {
|
|
178616
|
-
"color": "#
|
|
178616
|
+
"color": "#409eff",
|
|
178617
178617
|
"cursor": "pointer"
|
|
178618
178618
|
},
|
|
178619
178619
|
on: {
|
|
@@ -178623,7 +178623,7 @@ var ReplaceFilevue_type_template_id_158213bc_scoped_true_render = function rende
|
|
|
178623
178623
|
}
|
|
178624
178624
|
}, [_vm._v("替换文件")])])];
|
|
178625
178625
|
}
|
|
178626
|
-
}], null, false,
|
|
178626
|
+
}], null, false, 568644182)
|
|
178627
178627
|
})], 1)], 1), _c('div', {
|
|
178628
178628
|
staticClass: "dialog-footer",
|
|
178629
178629
|
attrs: {
|
|
@@ -178648,7 +178648,7 @@ var ReplaceFilevue_type_template_id_158213bc_scoped_true_render = function rende
|
|
|
178648
178648
|
}]
|
|
178649
178649
|
}, [_vm._v("关闭")])])], 1)]) : _vm._e()], 1);
|
|
178650
178650
|
};
|
|
178651
|
-
var
|
|
178651
|
+
var ReplaceFilevue_type_template_id_5addd913_scoped_true_staticRenderFns = [];
|
|
178652
178652
|
|
|
178653
178653
|
;// 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/ecwapp/Wflowform/src/ReplaceFile.vue?vue&type=script&lang=js
|
|
178654
178654
|
function ReplaceFilevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return ReplaceFilevue_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; }, ReplaceFilevue_type_script_lang_js_typeof(o); }
|
|
@@ -178699,13 +178699,13 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178699
178699
|
tableData: [],
|
|
178700
178700
|
fileDialogVisible: false,
|
|
178701
178701
|
oldFile: {},
|
|
178702
|
-
tbindex: ''
|
|
178702
|
+
tbindex: '',
|
|
178703
|
+
replaced: false //是否替换成功
|
|
178703
178704
|
};
|
|
178704
178705
|
},
|
|
178705
178706
|
computed: {},
|
|
178706
178707
|
watch: {},
|
|
178707
178708
|
created: function created() {
|
|
178708
|
-
this.getData();
|
|
178709
178709
|
this.$bus.on('clickReplaceFile', this.clickReplaceFile);
|
|
178710
178710
|
},
|
|
178711
178711
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -178714,9 +178714,11 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178714
178714
|
mounted: function mounted() {},
|
|
178715
178715
|
methods: {
|
|
178716
178716
|
confirm: function confirm() {
|
|
178717
|
+
if (this.replaced) location.reload();
|
|
178717
178718
|
this.fileDialogVisible = false;
|
|
178718
178719
|
},
|
|
178719
178720
|
clickReplaceFile: function clickReplaceFile() {
|
|
178721
|
+
this.getData();
|
|
178720
178722
|
this.fileDialogVisible = true;
|
|
178721
178723
|
},
|
|
178722
178724
|
handleUploadChange: function handleUploadChange(file, fileList) {
|
|
@@ -178735,9 +178737,10 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178735
178737
|
break;
|
|
178736
178738
|
}
|
|
178737
178739
|
_this.$message.warning(_this.$tx('ecwapp.Wflowform.ReplaceFile.replaceFileSuffix', '请替换相同后缀名的文件!'));
|
|
178738
|
-
_context.next =
|
|
178740
|
+
_context.next = 17;
|
|
178739
178741
|
break;
|
|
178740
178742
|
case 8:
|
|
178743
|
+
_this.$bus.emit('showDoingDialog', '正在替换文件...');
|
|
178741
178744
|
val = '';
|
|
178742
178745
|
if (newName === 'pdf') {
|
|
178743
178746
|
val = 'BODY';
|
|
@@ -178749,21 +178752,28 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178749
178752
|
busiDataId: _this.vo.id,
|
|
178750
178753
|
attachsType: val,
|
|
178751
178754
|
attachsSize: file.size,
|
|
178755
|
+
attachsName: _this.oldFile.bodyFileName || _this.oldFile.fileName,
|
|
178752
178756
|
bodyDocId: _this.wfInstance.bodyDocId,
|
|
178753
178757
|
clientType: 'uploader'
|
|
178754
178758
|
};
|
|
178755
|
-
_context.next =
|
|
178756
|
-
return _this.$wfEngine.upload(_this, _this.wfAttachUrl + '/
|
|
178757
|
-
case
|
|
178759
|
+
_context.next = 14;
|
|
178760
|
+
return _this.$wfEngine.upload(_this, _this.wfAttachUrl + '/rupload', file.raw, reqData);
|
|
178761
|
+
case 14:
|
|
178758
178762
|
uploadRst = _context.sent;
|
|
178763
|
+
_this.$bus.emit('closeDoingDialog');
|
|
178759
178764
|
if (uploadRst.code === 'success') {
|
|
178765
|
+
_this.replaced = true;
|
|
178760
178766
|
_this.$message.success(uploadRst.message); // '替换成功'
|
|
178761
178767
|
if (typeof _this.updateAttachList === 'function') {
|
|
178762
178768
|
_this.updateAttachList(uploadRst.body.uploadAttachList[0]);
|
|
178763
178769
|
}
|
|
178764
178770
|
_this.tableData[_this.tbindex] = uploadRst.body.uploadAttachList[0];
|
|
178771
|
+
} else {
|
|
178772
|
+
_this.$alert(uploadRst.message, '操作提示', {
|
|
178773
|
+
type: 'error'
|
|
178774
|
+
});
|
|
178765
178775
|
}
|
|
178766
|
-
case
|
|
178776
|
+
case 17:
|
|
178767
178777
|
case "end":
|
|
178768
178778
|
return _context.stop();
|
|
178769
178779
|
}
|
|
@@ -178776,6 +178786,7 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178776
178786
|
},
|
|
178777
178787
|
getData: function getData() {
|
|
178778
178788
|
var _this2 = this;
|
|
178789
|
+
this.tableData = [];
|
|
178779
178790
|
this.tableData.push(this.bodyfile);
|
|
178780
178791
|
this.attachments.forEach(function (item) {
|
|
178781
178792
|
if (item.fileType === 'ATTACH') {
|
|
@@ -178797,11 +178808,11 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178797
178808
|
;
|
|
178798
178809
|
var ReplaceFile_component = (0,componentNormalizer/* default */.A)(
|
|
178799
178810
|
src_ReplaceFilevue_type_script_lang_js,
|
|
178800
|
-
|
|
178801
|
-
|
|
178811
|
+
ReplaceFilevue_type_template_id_5addd913_scoped_true_render,
|
|
178812
|
+
ReplaceFilevue_type_template_id_5addd913_scoped_true_staticRenderFns,
|
|
178802
178813
|
false,
|
|
178803
178814
|
null,
|
|
178804
|
-
"
|
|
178815
|
+
"5addd913",
|
|
178805
178816
|
null
|
|
178806
178817
|
|
|
178807
178818
|
)
|
package/lib/ecwappaio.umd.js
CHANGED
|
@@ -42364,7 +42364,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-4ff4cf75] .wf-names-checkbox .
|
|
|
42364
42364
|
|
|
42365
42365
|
/***/ }),
|
|
42366
42366
|
|
|
42367
|
-
/***/
|
|
42367
|
+
/***/ 32212:
|
|
42368
42368
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42369
42369
|
|
|
42370
42370
|
"use strict";
|
|
@@ -42378,7 +42378,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42378
42378
|
|
|
42379
42379
|
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()));
|
|
42380
42380
|
// Module
|
|
42381
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
42381
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-253829b2]:export{stdMenuBgcolor:var(--lmBgColor);stdMenuHover:var(--lmBgColorActive)!important;stdMenuText:var(--lmTextColor)!important;stdMenuAcitveText:var(--lmTextColorActive)!important;stdSubMenuBgcolor:var(--lmBgColor);stdSubMenuHover:hsla(193,8%,67%,.42);stdSubMenuActiveText:var(--lmTextColorActive)!important;darkMenuBgcolor:#304156;darkMenuHover:#263445;darkMenuText:#bfcbd9;darkMenuAcitveText:#ffd04b;darkSubMenuBgcolor:#384b63;darkSubMenuHover:#263445;darkSubMenuActiveText:#ffd04b;sideBarWidth:210px;formLabelWidth:133px;lightBlue:var(--subjectColor)}.el-form[data-v-253829b2]{margin-top:20px}.el-form .svg-icon[data-v-253829b2]{margin:0 5px}.el-form .el-button[data-v-253829b2]{padding:7px 5px}.el-form .el-button[data-v-253829b2]:active{color:#606266}.el-form .el-button+.el-button[data-v-253829b2]{margin-left:0}.el-form .el-link[data-v-253829b2]{line-height:20px;color:var(--subjectColor);cursor:pointer!important}.el-form .is-disabled[data-v-253829b2]{color:#c4c5c7!important}.el-form .fileHovering[data-v-253829b2]{background:#a5c45d}.el-form .fileHovering table[data-v-253829b2]{opacity:.5}.el-form[data-v-253829b2] .attach-name{max-width:100%}.el-form[data-v-253829b2] .attach-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attach-row[data-v-253829b2]{padding-top:5px;padding-bottom:5px;line-height:21px}.no-attachments[data-v-253829b2]{height:50px;line-height:20px}.drag-handler[data-v-253829b2]{cursor:move}[data-v-253829b2] .atach-draggable .sortable-chosen{background:#f5f7fa}[data-v-253829b2] .el-progress-bar{padding-right:40px!important;margin-right:-47px!important}[data-v-253829b2] .el-progress__text{float:right}.attach-row[data-v-253829b2]:last-child{border-bottom:0!important}.docform-attach-container[data-v-253829b2]{padding:20px;margin:0!important;background-color:#fff;height:calc(100vh - 70px)}.attachment-sidebar .sidebar-area[data-v-253829b2]{border-bottom:1px solid #eee}.attachment-sidebar .sidebar-area .sidebar-area-title[data-v-253829b2]{font-weight:600;line-height:24px;padding:10px}.attachment-sidebar .sidebar-area .sidebar-area-title .el-button--primary[data-v-253829b2]{width:6px;padding:0;margin-right:6px;margin-top:5px;border-radius:1px;height:14px;cursor:default;vertical-align:top;display:inline-block}.attachment-sidebar .sidebar-area .sidebar-area-title div[data-v-253829b2]{display:inline-block;vertical-align:top}.attachment-sidebar .sidebar-area .sidebar-area-content[data-v-253829b2]{padding-left:20px;padding-right:10px;padding-bottom:10px}.attachment-sidebar .sidebar-area .sidebar-area-content .attach-row[data-v-253829b2]{border-bottom:1px solid #f3f3f3}.attachment-sidebar .sidebar-area .sidebar-area-content .attach-row .attach-name[data-v-253829b2]{margin-top:-3px;width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.attachment-sidebar .sidebar-area[data-v-253829b2]:last-child{border-bottom:0}.tb-row-attach-container .el-button--mini[data-v-253829b2]{font-size:12px;margin-right:6px}.drag-upload[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;height:36px}.drag-upload[data-v-253829b2] .el-upload,.drag-upload[data-v-253829b2] .el-upload-dragger{width:100%!important;height:100%!important}.drag-upload[data-v-253829b2] .el-upload-dragger .drag-upload-box{height:100%;background:#f9fbff}.upload-view .up-btn[data-v-253829b2]{text-align:end}.upload-view .up-btn .down[data-v-253829b2]{font-size:16px;margin-right:24px;color:#999}.upload-view .upload-box[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.upload-view .upload-box .upload-box-left[data-v-253829b2]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:40%}.upload-view .upload-box .upload-box-left .upload-label[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.upload-view .upload-box .upload-box-left .upload-label .label-l[data-v-253829b2]{width:20px;height:24px;margin-left:6px}.upload-view .upload-box .upload-box-left .upload-label .label-l img[data-v-253829b2]{width:100%;height:100%}.upload-view .upload-box .upload-box-left .upload-label .label-r[data-v-253829b2]{font-size:14px;color:#333;margin-left:10px;-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-view .upload-box .upload-box-right[data-v-253829b2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.upload-view .upload-box .upload-box-right .up-text[data-v-253829b2]{font-size:12px;color:#999}.upload-view .upload-box .upload-box-right .up-person[data-v-253829b2]{text-align:end;margin-right:60px;margin-left:15px}.upload-view .upload-box .upload-box-right .up-person .upload-name[data-v-253829b2]{margin-right:15px}@media (max-width:1740px){.up-person .upload-name[data-v-253829b2]{margin-right:5px!important}}.upload-err-desc[data-v-253829b2]{color:red;width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;text-align:left}", ""]);
|
|
42382
42382
|
// Exports
|
|
42383
42383
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
42384
42384
|
|
|
@@ -135012,19 +135012,19 @@ var update = add("a2ea98ac", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
135012
135012
|
|
|
135013
135013
|
/***/ }),
|
|
135014
135014
|
|
|
135015
|
-
/***/
|
|
135015
|
+
/***/ 84280:
|
|
135016
135016
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
135017
135017
|
|
|
135018
135018
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
135019
135019
|
|
|
135020
135020
|
// load the styles
|
|
135021
|
-
var content = __webpack_require__(
|
|
135021
|
+
var content = __webpack_require__(32212);
|
|
135022
135022
|
if(content.__esModule) content = content.default;
|
|
135023
135023
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
135024
135024
|
if(content.locals) module.exports = content.locals;
|
|
135025
135025
|
// add the styles to the DOM
|
|
135026
135026
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
135027
|
-
var update = add("
|
|
135027
|
+
var update = add("64f67090", content, true, {"sourceMap":false,"shadowMode":false});
|
|
135028
135028
|
|
|
135029
135029
|
/***/ }),
|
|
135030
135030
|
|
|
@@ -162477,8 +162477,8 @@ WfNames_src.install = function (Vue) {
|
|
|
162477
162477
|
Vue.component(WfNames_src.name, WfNames_src);
|
|
162478
162478
|
};
|
|
162479
162479
|
/* harmony default export */ var WfNames = (WfNames_src);
|
|
162480
|
-
;// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=template&id=
|
|
162481
|
-
var
|
|
162480
|
+
;// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=template&id=253829b2&scoped=true
|
|
162481
|
+
var Attachmentvue_type_template_id_253829b2_scoped_true_render = function render() {
|
|
162482
162482
|
var _vm = this,
|
|
162483
162483
|
_c = _vm._self._c;
|
|
162484
162484
|
return _c('div', [_vm.showMode == 'table' ? _c('el-form', {
|
|
@@ -164043,7 +164043,7 @@ var Attachmentvue_type_template_id_30136eae_scoped_true_render = function render
|
|
|
164043
164043
|
}
|
|
164044
164044
|
}, [_vm._v("确 定")])], 1)], 1) : _vm._e()], 1);
|
|
164045
164045
|
};
|
|
164046
|
-
var
|
|
164046
|
+
var Attachmentvue_type_template_id_253829b2_scoped_true_staticRenderFns = [];
|
|
164047
164047
|
|
|
164048
164048
|
// EXTERNAL MODULE: ./node_modules/sortablejs/modular/sortable.esm.js
|
|
164049
164049
|
var sortable_esm = __webpack_require__(10246);
|
|
@@ -164482,9 +164482,6 @@ var Attachmentvue_type_script_lang_js_this = null;
|
|
|
164482
164482
|
setCurTN: function setCurTN() {
|
|
164483
164483
|
var _this8 = this;
|
|
164484
164484
|
this.frmViewStyle = this.$vnode.context.frmViewStyle || this.frmViewStyle;
|
|
164485
|
-
if (!this.curTN.userName && this.$vnode.context.curTN) {
|
|
164486
|
-
this.curTN.userName = this.$vnode.context.curTN.userName;
|
|
164487
|
-
}
|
|
164488
164485
|
if (this.curTN.tnCanEdit !== undefined) {
|
|
164489
164486
|
// 流程表单
|
|
164490
164487
|
this.showMode = this.showMode || 'table';
|
|
@@ -164506,9 +164503,12 @@ var Attachmentvue_type_script_lang_js_this = null;
|
|
|
164506
164503
|
if (this.attachEdit.canUpload !== '' && this.attachEdit.canUpload !== null && this.attachEdit.canUpload !== undefined) this.canUpload = this.attachEdit.canUpload;
|
|
164507
164504
|
if (this.attachEdit.canDelete !== '' && this.attachEdit.canDelete !== null && this.attachEdit.canDelete !== undefined) this.canDelete = this.attachEdit.canDelete;
|
|
164508
164505
|
}
|
|
164509
|
-
this.curTN
|
|
164506
|
+
this.$set(this.curTN, 'tnCanEdit', this.canEdit || this.$vnode.context.canEdit);
|
|
164510
164507
|
this.$vnode.context.$attachments = this;
|
|
164511
164508
|
}
|
|
164509
|
+
if (!this.curTN.userName && this.$vnode.context.curTN) {
|
|
164510
|
+
this.curTN.userName = this.$vnode.context.curTN.userName;
|
|
164511
|
+
}
|
|
164512
164512
|
var attachContainer = document.querySelector('.attachments-container');
|
|
164513
164513
|
if (attachContainer !== null) {
|
|
164514
164514
|
if (this.showMode === 'list') {
|
|
@@ -165588,9 +165588,9 @@ var Attachmentvue_type_script_lang_js_this = null;
|
|
|
165588
165588
|
});
|
|
165589
165589
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue?vue&type=script&lang=js
|
|
165590
165590
|
/* harmony default export */ var src_Attachmentvue_type_script_lang_js = (Attachmentvue_type_script_lang_js);
|
|
165591
|
-
// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=
|
|
165592
|
-
var
|
|
165593
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=
|
|
165591
|
+
// 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/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=253829b2&prod&scoped=true&lang=scss
|
|
165592
|
+
var Attachmentvue_type_style_index_0_id_253829b2_prod_scoped_true_lang_scss = __webpack_require__(84280);
|
|
165593
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=253829b2&prod&scoped=true&lang=scss
|
|
165594
165594
|
|
|
165595
165595
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/Attachment.vue
|
|
165596
165596
|
|
|
@@ -165603,11 +165603,11 @@ var Attachmentvue_type_style_index_0_id_30136eae_prod_scoped_true_lang_scss = __
|
|
|
165603
165603
|
|
|
165604
165604
|
var Attachment_component = (0,componentNormalizer/* default */.A)(
|
|
165605
165605
|
src_Attachmentvue_type_script_lang_js,
|
|
165606
|
-
|
|
165607
|
-
|
|
165606
|
+
Attachmentvue_type_template_id_253829b2_scoped_true_render,
|
|
165607
|
+
Attachmentvue_type_template_id_253829b2_scoped_true_staticRenderFns,
|
|
165608
165608
|
false,
|
|
165609
165609
|
null,
|
|
165610
|
-
"
|
|
165610
|
+
"253829b2",
|
|
165611
165611
|
null
|
|
165612
165612
|
|
|
165613
165613
|
)
|
|
@@ -178552,8 +178552,8 @@ var IdeaSignature_component = (0,componentNormalizer/* default */.A)(
|
|
|
178552
178552
|
)
|
|
178553
178553
|
|
|
178554
178554
|
/* harmony default export */ var IdeaSignature = (IdeaSignature_component.exports);
|
|
178555
|
-
;// 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/ecwapp/Wflowform/src/ReplaceFile.vue?vue&type=template&id=
|
|
178556
|
-
var
|
|
178555
|
+
;// 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/ecwapp/Wflowform/src/ReplaceFile.vue?vue&type=template&id=5addd913&scoped=true
|
|
178556
|
+
var ReplaceFilevue_type_template_id_5addd913_scoped_true_render = function render() {
|
|
178557
178557
|
var _vm = this,
|
|
178558
178558
|
_c = _vm._self._c;
|
|
178559
178559
|
return _c('div', [_vm.fileDialogVisible ? _c('el-dialog', {
|
|
@@ -178623,7 +178623,7 @@ var ReplaceFilevue_type_template_id_158213bc_scoped_true_render = function rende
|
|
|
178623
178623
|
expression: "'ecwapp.Wflowform.ReplaceFile.replaceFile'"
|
|
178624
178624
|
}],
|
|
178625
178625
|
staticStyle: {
|
|
178626
|
-
"color": "#
|
|
178626
|
+
"color": "#409eff",
|
|
178627
178627
|
"cursor": "pointer"
|
|
178628
178628
|
},
|
|
178629
178629
|
on: {
|
|
@@ -178633,7 +178633,7 @@ var ReplaceFilevue_type_template_id_158213bc_scoped_true_render = function rende
|
|
|
178633
178633
|
}
|
|
178634
178634
|
}, [_vm._v("替换文件")])])];
|
|
178635
178635
|
}
|
|
178636
|
-
}], null, false,
|
|
178636
|
+
}], null, false, 568644182)
|
|
178637
178637
|
})], 1)], 1), _c('div', {
|
|
178638
178638
|
staticClass: "dialog-footer",
|
|
178639
178639
|
attrs: {
|
|
@@ -178658,7 +178658,7 @@ var ReplaceFilevue_type_template_id_158213bc_scoped_true_render = function rende
|
|
|
178658
178658
|
}]
|
|
178659
178659
|
}, [_vm._v("关闭")])])], 1)]) : _vm._e()], 1);
|
|
178660
178660
|
};
|
|
178661
|
-
var
|
|
178661
|
+
var ReplaceFilevue_type_template_id_5addd913_scoped_true_staticRenderFns = [];
|
|
178662
178662
|
|
|
178663
178663
|
;// 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/ecwapp/Wflowform/src/ReplaceFile.vue?vue&type=script&lang=js
|
|
178664
178664
|
function ReplaceFilevue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return ReplaceFilevue_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; }, ReplaceFilevue_type_script_lang_js_typeof(o); }
|
|
@@ -178709,13 +178709,13 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178709
178709
|
tableData: [],
|
|
178710
178710
|
fileDialogVisible: false,
|
|
178711
178711
|
oldFile: {},
|
|
178712
|
-
tbindex: ''
|
|
178712
|
+
tbindex: '',
|
|
178713
|
+
replaced: false //是否替换成功
|
|
178713
178714
|
};
|
|
178714
178715
|
},
|
|
178715
178716
|
computed: {},
|
|
178716
178717
|
watch: {},
|
|
178717
178718
|
created: function created() {
|
|
178718
|
-
this.getData();
|
|
178719
178719
|
this.$bus.on('clickReplaceFile', this.clickReplaceFile);
|
|
178720
178720
|
},
|
|
178721
178721
|
beforeDestroy: function beforeDestroy() {
|
|
@@ -178724,9 +178724,11 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178724
178724
|
mounted: function mounted() {},
|
|
178725
178725
|
methods: {
|
|
178726
178726
|
confirm: function confirm() {
|
|
178727
|
+
if (this.replaced) location.reload();
|
|
178727
178728
|
this.fileDialogVisible = false;
|
|
178728
178729
|
},
|
|
178729
178730
|
clickReplaceFile: function clickReplaceFile() {
|
|
178731
|
+
this.getData();
|
|
178730
178732
|
this.fileDialogVisible = true;
|
|
178731
178733
|
},
|
|
178732
178734
|
handleUploadChange: function handleUploadChange(file, fileList) {
|
|
@@ -178745,9 +178747,10 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178745
178747
|
break;
|
|
178746
178748
|
}
|
|
178747
178749
|
_this.$message.warning(_this.$tx('ecwapp.Wflowform.ReplaceFile.replaceFileSuffix', '请替换相同后缀名的文件!'));
|
|
178748
|
-
_context.next =
|
|
178750
|
+
_context.next = 17;
|
|
178749
178751
|
break;
|
|
178750
178752
|
case 8:
|
|
178753
|
+
_this.$bus.emit('showDoingDialog', '正在替换文件...');
|
|
178751
178754
|
val = '';
|
|
178752
178755
|
if (newName === 'pdf') {
|
|
178753
178756
|
val = 'BODY';
|
|
@@ -178759,21 +178762,28 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178759
178762
|
busiDataId: _this.vo.id,
|
|
178760
178763
|
attachsType: val,
|
|
178761
178764
|
attachsSize: file.size,
|
|
178765
|
+
attachsName: _this.oldFile.bodyFileName || _this.oldFile.fileName,
|
|
178762
178766
|
bodyDocId: _this.wfInstance.bodyDocId,
|
|
178763
178767
|
clientType: 'uploader'
|
|
178764
178768
|
};
|
|
178765
|
-
_context.next =
|
|
178766
|
-
return _this.$wfEngine.upload(_this, _this.wfAttachUrl + '/
|
|
178767
|
-
case
|
|
178769
|
+
_context.next = 14;
|
|
178770
|
+
return _this.$wfEngine.upload(_this, _this.wfAttachUrl + '/rupload', file.raw, reqData);
|
|
178771
|
+
case 14:
|
|
178768
178772
|
uploadRst = _context.sent;
|
|
178773
|
+
_this.$bus.emit('closeDoingDialog');
|
|
178769
178774
|
if (uploadRst.code === 'success') {
|
|
178775
|
+
_this.replaced = true;
|
|
178770
178776
|
_this.$message.success(uploadRst.message); // '替换成功'
|
|
178771
178777
|
if (typeof _this.updateAttachList === 'function') {
|
|
178772
178778
|
_this.updateAttachList(uploadRst.body.uploadAttachList[0]);
|
|
178773
178779
|
}
|
|
178774
178780
|
_this.tableData[_this.tbindex] = uploadRst.body.uploadAttachList[0];
|
|
178781
|
+
} else {
|
|
178782
|
+
_this.$alert(uploadRst.message, '操作提示', {
|
|
178783
|
+
type: 'error'
|
|
178784
|
+
});
|
|
178775
178785
|
}
|
|
178776
|
-
case
|
|
178786
|
+
case 17:
|
|
178777
178787
|
case "end":
|
|
178778
178788
|
return _context.stop();
|
|
178779
178789
|
}
|
|
@@ -178786,6 +178796,7 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178786
178796
|
},
|
|
178787
178797
|
getData: function getData() {
|
|
178788
178798
|
var _this2 = this;
|
|
178799
|
+
this.tableData = [];
|
|
178789
178800
|
this.tableData.push(this.bodyfile);
|
|
178790
178801
|
this.attachments.forEach(function (item) {
|
|
178791
178802
|
if (item.fileType === 'ATTACH') {
|
|
@@ -178807,11 +178818,11 @@ function ReplaceFilevue_type_script_lang_js_asyncToGenerator(n) { return functio
|
|
|
178807
178818
|
;
|
|
178808
178819
|
var ReplaceFile_component = (0,componentNormalizer/* default */.A)(
|
|
178809
178820
|
src_ReplaceFilevue_type_script_lang_js,
|
|
178810
|
-
|
|
178811
|
-
|
|
178821
|
+
ReplaceFilevue_type_template_id_5addd913_scoped_true_render,
|
|
178822
|
+
ReplaceFilevue_type_template_id_5addd913_scoped_true_staticRenderFns,
|
|
178812
178823
|
false,
|
|
178813
178824
|
null,
|
|
178814
|
-
"
|
|
178825
|
+
"5addd913",
|
|
178815
178826
|
null
|
|
178816
178827
|
|
|
178817
178828
|
)
|