ecinc-cloud-wappaio 9.6.282 → 9.6.284
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 +290 -293
- package/lib/ecwappaio.umd.js +290 -293
- package/lib/ecwappaio.umd.min.js +5 -5
- package/package.json +1 -1
package/lib/ecwappaio.umd.js
CHANGED
|
@@ -9054,6 +9054,12 @@ function generateTitle(meta, $scope, moduleCode, i18npkg, variables) {
|
|
|
9054
9054
|
// debugger
|
|
9055
9055
|
}
|
|
9056
9056
|
$scope = $scope || this;
|
|
9057
|
+
if ($scope.$i18n && $scope.$i18n.locale === 'zhCN') {
|
|
9058
|
+
//中文,按钮,忽略语言包
|
|
9059
|
+
if (meta.btnName) {
|
|
9060
|
+
return meta.btnName;
|
|
9061
|
+
}
|
|
9062
|
+
}
|
|
9057
9063
|
if (meta.i18nCode && $scope.$te(meta.i18nCode)) {
|
|
9058
9064
|
return $scope.$t(meta.i18nCode, variables);
|
|
9059
9065
|
}
|
|
@@ -41896,7 +41902,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".list-border .more-btn-drop{padding:10
|
|
|
41896
41902
|
|
|
41897
41903
|
/***/ }),
|
|
41898
41904
|
|
|
41899
|
-
/***/
|
|
41905
|
+
/***/ 99782:
|
|
41900
41906
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
41901
41907
|
|
|
41902
41908
|
"use strict";
|
|
@@ -41910,7 +41916,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41910
41916
|
|
|
41911
41917
|
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()));
|
|
41912
41918
|
// Module
|
|
41913
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".content-column[data-v-
|
|
41919
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".content-column[data-v-09d60004]{cursor:pointer}.column_operate[data-v-09d60004],.column_operate[data-v-09d60004] .cell{white-space:nowrap!important;overflow:hidden!important;word-break:keep-all}.el-pagination-container[data-v-09d60004]{text-align:right;margin-top:10px}.el-pagination-container .selected-rows[data-v-09d60004]{float:left;color:#606266;font-size:13px;line-height:28px}.el-pagination[data-v-09d60004]{padding-right:0;font-weight:400}.el-icon[data-v-09d60004]:before{padding-right:3px}[data-v-09d60004] th>.cell{word-break:keep-all;white-space:nowrap}[data-v-09d60004] .el-table__header .is-fixed{color:#333;background-color:#f2f5fb}[data-v-09d60004] .close-tooltip .cell{word-break:normal}[data-v-09d60004] .el-table__body-wrapper::-webkit-scrollbar{width:6px;height:6px}[data-v-09d60004] .el-table--scrollable-x{padding-right:2px}[data-v-09d60004] .el-table--scrollable-x .el-table__body-wrapper{padding-bottom:2px;margin-bottom:2px;cursor:pointer}[data-v-09d60004] .el-table--scrollable-x .el-table__body-wrapper .el-table__body{cursor:default}[data-v-09d60004] .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:4px;background-color:hsla(220,4%,58%,.3)}[data-v-09d60004] .el-table__body-wrapper::-webkit-scrollbar-thumb:hover{background-color:hsla(220,4%,58%,.5);margin-right:2px}#card-table[data-v-09d60004]{padding:10px 0 10px 0}#card-table .card-item[data-v-09d60004]{background:#f7f9ff;border-radius:2px 0 0 2px;padding:20px;margin-bottom:15px;cursor:pointer}#card-table .card-item .card-top[data-v-09d60004]{color:#333;font-size:16px;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;line-height:21px}#card-table .card-item .card-top .card-top-left[data-v-09d60004],#card-table .card-item .card-top .card-top-right[data-v-09d60004]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#card-table .card-item .card-top .card-top-right[data-v-09d60004]{text-align:end}#card-table .card-item .card-bottom[data-v-09d60004]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:17px;margin-top:10px;color:#999;font-size:13px}#card-table .card-item .card-bottom[data-v-09d60004],#card-table .card-item .card-bottom .card-bottom-left[data-v-09d60004]{display:-webkit-box;display:-ms-flexbox;display:flex}#card-table .card-item .card-bottom .card-bottom-left .span-item[data-v-09d60004]{margin-right:30px}#card-table .card-item .card-bottom .card-bottom-right[data-v-09d60004]{display:-webkit-box;display:-ms-flexbox;display:flex}#card-table .card-item .card-bottom .card-bottom-right .span-item[data-v-09d60004]{margin-left:30px}#card-table .card-item[data-v-09d60004]:hover{background:#eef3ff}#card-table .card-item[data-v-09d60004]:last-child{margin-bottom:0}#card-table .card-empty[data-v-09d60004]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}#card-table .card-empty .empty-message[data-v-09d60004]{color:#999;margin-top:10px}", ""]);
|
|
41914
41920
|
// Exports
|
|
41915
41921
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
41916
41922
|
|
|
@@ -41938,7 +41944,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-45d3134b] .el-dialog__headerbt
|
|
|
41938
41944
|
|
|
41939
41945
|
/***/ }),
|
|
41940
41946
|
|
|
41941
|
-
/***/
|
|
41947
|
+
/***/ 8264:
|
|
41942
41948
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
41943
41949
|
|
|
41944
41950
|
"use strict";
|
|
@@ -41952,7 +41958,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41952
41958
|
|
|
41953
41959
|
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()));
|
|
41954
41960
|
// Module
|
|
41955
|
-
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-
|
|
41961
|
+
___CSS_LOADER_EXPORT___.push([module.id, "[data-v-2297e85a]: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)}[data-v-2297e85a] .el-link--inner{color:#1890ff}.inner-listpage-container[data-v-2297e85a] .el-table--border{border:0;margin:0 0 -1px 0}.inner-listpage-container[data-v-2297e85a] .el-table--border:after{display:none}.inner-listpage-container[data-v-2297e85a] .el-table--border td{padding:10px 0!important;font-weight:400}.inner-listpage-container[data-v-2297e85a] .el-table--border td:last-child{border-right:0}", ""]);
|
|
41956
41962
|
// Exports
|
|
41957
41963
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
41958
41964
|
|
|
@@ -42631,7 +42637,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-253e6ae2] .el-dialog__body .su
|
|
|
42631
42637
|
|
|
42632
42638
|
/***/ }),
|
|
42633
42639
|
|
|
42634
|
-
/***/
|
|
42640
|
+
/***/ 92675:
|
|
42635
42641
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42636
42642
|
|
|
42637
42643
|
"use strict";
|
|
@@ -42645,7 +42651,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42645
42651
|
|
|
42646
42652
|
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()));
|
|
42647
42653
|
// Module
|
|
42648
|
-
___CSS_LOADER_EXPORT___.push([module.id, "@media (max-width:1569px){.users-container .el-button[data-v-
|
|
42654
|
+
___CSS_LOADER_EXPORT___.push([module.id, "@media (max-width:1569px){.users-container .el-button[data-v-73cb65c4]{display:none}}.area-title[data-v-73cb65c4]{margin-bottom:10px;font-weight:600}.area-title .el-icon-check[data-v-73cb65c4],.area-title .el-icon-plus[data-v-73cb65c4]{margin-right:5px;font-size:14px;font-weight:600}.submit-handle-container[data-v-73cb65c4]{margin-top:20px}.submit-handle-container .tnLimit-container[data-v-73cb65c4]{border-bottom:1px solid #ebeef5;margin-left:-4px;margin-right:-4px;padding-left:4px;padding-bottom:5px;margin-bottom:5px}.submit-handle-container .tnLimit-container .el-input[data-v-73cb65c4]{width:45px}.submit-handle-container .tnLimit-container .el-input[data-v-73cb65c4] .el-input__inner{border-top:0;border-left:0;border-right:0;border-radius:0;text-align:center}.submit-handle-container .users-container[data-v-73cb65c4]{margin-right:45px}.submit-handle-container .users-container .el-button[data-v-73cb65c4]{padding-left:6px;padding-right:6px}.submit-handle-container .users-container div[data-v-73cb65c4]{float:left}.submit-handle-container .users-container div[data-v-73cb65c4]:after{content:\"、\"}.submit-handle-container .users-container div[data-v-73cb65c4]:last-child:after{content:\"\"}.submit-handle-container .selectPath[data-v-73cb65c4] .el-radio{width:auto;line-height:30px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.submit-handle-container[data-v-73cb65c4] .el-upload--text{width:100%}.submit-handle-container[data-v-73cb65c4] .el-upload .el-input-group .el-input__inner{display:inline-block;vertical-align:baseline}.submit-handle-container .shortcut-button[data-v-73cb65c4]{text-align:right}.submit-handle-container .shortcut-button[data-v-73cb65c4] .el-button{font-weight:600}.submit-handle-container .sidebar-area[data-v-73cb65c4]{border-bottom:1px solid #eee}.submit-handle-container .sidebar-area .sidebar-area-title[data-v-73cb65c4]{font-weight:600;line-height:24px;padding:10px}.submit-handle-container .sidebar-area .sidebar-area-title .el-button--primary[data-v-73cb65c4]{width:6px;padding:0;margin-right:6px;margin-top:5px;border-radius:1px;height:14px;cursor:default;vertical-align:top;display:inline-block}.submit-handle-container .sidebar-area .sidebar-area-title .required[data-v-73cb65c4]{padding-left:5px;color:red}.submit-handle-container .sidebar-area .sidebar-area-title div[data-v-73cb65c4]{display:inline-block;vertical-align:top}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4]{padding-left:20px;padding-right:10px;padding-bottom:10px}.submit-handle-container .sidebar-area .sidebar-area-content .el-checkbox[data-v-73cb65c4]{line-height:30px}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .select-group-container{padding-top:8px!important}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-button--medium,.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-input__inner{line-height:30px!important;height:30px}.submit-handle-container .sidebar-area .sidebar-area-content .el-radio[data-v-73cb65c4]{display:block}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-timeline{padding-left:0}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-timeline .el-timeline-item{padding-bottom:15px}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-timeline .el-timeline-item .el-timeline-item__node{background-color:#fff}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-timeline .el-timeline-item .el-timeline-item__node .el-timeline-item__icon{color:#606266}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-timeline .el-timeline-item .el-timeline-item__content{text-align:right}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-timeline .el-timeline-item .el-timeline-item__content span{float:left}.submit-handle-container .sidebar-area .sidebar-area-content[data-v-73cb65c4] .el-timeline .el-timeline-item .el-timeline-item__timestamp{width:calc(100% - 50px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.submit-handle-container .sidebar-area[data-v-73cb65c4]:last-child{border-bottom:0!important}", ""]);
|
|
42649
42655
|
// Exports
|
|
42650
42656
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
42651
42657
|
|
|
@@ -134654,19 +134660,19 @@ var update = add("70a31239", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
134654
134660
|
|
|
134655
134661
|
/***/ }),
|
|
134656
134662
|
|
|
134657
|
-
/***/
|
|
134663
|
+
/***/ 19762:
|
|
134658
134664
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
134659
134665
|
|
|
134660
134666
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
134661
134667
|
|
|
134662
134668
|
// load the styles
|
|
134663
|
-
var content = __webpack_require__(
|
|
134669
|
+
var content = __webpack_require__(99782);
|
|
134664
134670
|
if(content.__esModule) content = content.default;
|
|
134665
134671
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
134666
134672
|
if(content.locals) module.exports = content.locals;
|
|
134667
134673
|
// add the styles to the DOM
|
|
134668
134674
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
134669
|
-
var update = add("
|
|
134675
|
+
var update = add("53cd89d7", content, true, {"sourceMap":false,"shadowMode":false});
|
|
134670
134676
|
|
|
134671
134677
|
/***/ }),
|
|
134672
134678
|
|
|
@@ -134686,19 +134692,19 @@ var update = add("29461791", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
134686
134692
|
|
|
134687
134693
|
/***/ }),
|
|
134688
134694
|
|
|
134689
|
-
/***/
|
|
134695
|
+
/***/ 66756:
|
|
134690
134696
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
134691
134697
|
|
|
134692
134698
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
134693
134699
|
|
|
134694
134700
|
// load the styles
|
|
134695
|
-
var content = __webpack_require__(
|
|
134701
|
+
var content = __webpack_require__(8264);
|
|
134696
134702
|
if(content.__esModule) content = content.default;
|
|
134697
134703
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
134698
134704
|
if(content.locals) module.exports = content.locals;
|
|
134699
134705
|
// add the styles to the DOM
|
|
134700
134706
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
134701
|
-
var update = add("
|
|
134707
|
+
var update = add("27f164c3", content, true, {"sourceMap":false,"shadowMode":false});
|
|
134702
134708
|
|
|
134703
134709
|
/***/ }),
|
|
134704
134710
|
|
|
@@ -135214,19 +135220,19 @@ var update = add("019e7a44", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
135214
135220
|
|
|
135215
135221
|
/***/ }),
|
|
135216
135222
|
|
|
135217
|
-
/***/
|
|
135223
|
+
/***/ 55431:
|
|
135218
135224
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
135219
135225
|
|
|
135220
135226
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
135221
135227
|
|
|
135222
135228
|
// load the styles
|
|
135223
|
-
var content = __webpack_require__(
|
|
135229
|
+
var content = __webpack_require__(92675);
|
|
135224
135230
|
if(content.__esModule) content = content.default;
|
|
135225
135231
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
135226
135232
|
if(content.locals) module.exports = content.locals;
|
|
135227
135233
|
// add the styles to the DOM
|
|
135228
135234
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
135229
|
-
var update = add("
|
|
135235
|
+
var update = add("243472c8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
135230
135236
|
|
|
135231
135237
|
/***/ }),
|
|
135232
135238
|
|
|
@@ -150480,8 +150486,8 @@ TaskItemTypeTree.install = function (Vue) {
|
|
|
150480
150486
|
};
|
|
150481
150487
|
var BatchProcessing = BatchProcessing_src;
|
|
150482
150488
|
var BatchProcessing_TaskItemTypeTree = TaskItemTypeTree;
|
|
150483
|
-
;// 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/DataTable/src/index.vue?vue&type=template&id=
|
|
150484
|
-
var
|
|
150489
|
+
;// 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/DataTable/src/index.vue?vue&type=template&id=09d60004&scoped=true
|
|
150490
|
+
var srcvue_type_template_id_09d60004_scoped_true_render = function render() {
|
|
150485
150491
|
var _vm = this,
|
|
150486
150492
|
_c = _vm._self._c;
|
|
150487
150493
|
return _c('div', {
|
|
@@ -150808,7 +150814,7 @@ var srcvue_type_template_id_0669bd3e_scoped_true_render = function render() {
|
|
|
150808
150814
|
}
|
|
150809
150815
|
})], 1) : _vm._e(), _vm.showResPermission ? _c('ResPermission') : _vm._e(), _vm._t("default"), _c('DoingDialog')], 2);
|
|
150810
150816
|
};
|
|
150811
|
-
var
|
|
150817
|
+
var srcvue_type_template_id_09d60004_scoped_true_staticRenderFns = [];
|
|
150812
150818
|
|
|
150813
150819
|
;// 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/DataTable/src/TableColumn.vue?vue&type=template&id=91f5eb56&scoped=true
|
|
150814
150820
|
var TableColumnvue_type_template_id_91f5eb56_scoped_true_render = function render() {
|
|
@@ -153194,6 +153200,7 @@ var PAGE_INFO = {
|
|
|
153194
153200
|
},
|
|
153195
153201
|
beforeDestroy: function beforeDestroy() {
|
|
153196
153202
|
this.$bus.off('refreshListData', this.refreshListData);
|
|
153203
|
+
window.removeEventListener('resize', this.setOperateColumn);
|
|
153197
153204
|
},
|
|
153198
153205
|
mounted: function mounted() {
|
|
153199
153206
|
var _this2 = this;
|
|
@@ -153231,9 +153238,44 @@ var PAGE_INFO = {
|
|
|
153231
153238
|
}
|
|
153232
153239
|
}
|
|
153233
153240
|
this.loadListdata();
|
|
153241
|
+
window.addEventListener('resize', this.setOperateColumn);
|
|
153234
153242
|
},
|
|
153235
153243
|
updated: function updated() {},
|
|
153236
153244
|
methods: {
|
|
153245
|
+
setOperateColumn: function setOperateColumn() {
|
|
153246
|
+
var _this3 = this;
|
|
153247
|
+
if (this.tableStyle !== 1) return;
|
|
153248
|
+
var wapper = this.$el.querySelector('.el-table__body-wrapper');
|
|
153249
|
+
var tbBody = this.$el.querySelector('.el-table__body');
|
|
153250
|
+
if (wapper) {
|
|
153251
|
+
var operateCols = this.tbColumns.filter(function (col, index) {
|
|
153252
|
+
if (col.field === 'column_operate') {
|
|
153253
|
+
col.index = index;
|
|
153254
|
+
return true;
|
|
153255
|
+
}
|
|
153256
|
+
});
|
|
153257
|
+
if (operateCols.length > 0) {
|
|
153258
|
+
if (wapper.clientWidth < tbBody.clientWidth) {
|
|
153259
|
+
if (operateCols[0].fixed === undefined || operateCols[0].fixed === null) {
|
|
153260
|
+
operateCols[0].fixed = 'right';
|
|
153261
|
+
if ((operateCols[0].className || '').indexOf(' is-fixed') === -1) {
|
|
153262
|
+
operateCols[0].className = (operateCols[0].className || '') + ' is-fixed';
|
|
153263
|
+
}
|
|
153264
|
+
}
|
|
153265
|
+
} else {
|
|
153266
|
+
operateCols[0].fixed = null;
|
|
153267
|
+
operateCols[0].className = (operateCols[0].className || '').replace(' is-fixed', '');
|
|
153268
|
+
}
|
|
153269
|
+
this.tbColumns.splice(operateCols[0].index, 1, operateCols[0]);
|
|
153270
|
+
setTimeout(function () {
|
|
153271
|
+
var fixedRight = _this3.$el.querySelector('.el-table__fixed-right');
|
|
153272
|
+
if (fixedRight) {
|
|
153273
|
+
fixedRight.style.minHeight = _this3.$el.querySelector('.el-table__header').clientHeight + _this3.$el.querySelector('.el-table__body').clientHeight - 0.5 + 'px';
|
|
153274
|
+
}
|
|
153275
|
+
}, 100);
|
|
153276
|
+
}
|
|
153277
|
+
}
|
|
153278
|
+
},
|
|
153237
153279
|
tableRowClassName: function tableRowClassName(_ref) {
|
|
153238
153280
|
var row = _ref.row,
|
|
153239
153281
|
rowIndex = _ref.rowIndex;
|
|
@@ -153299,10 +153341,10 @@ var PAGE_INFO = {
|
|
|
153299
153341
|
this.tableStyle = tableStyle;
|
|
153300
153342
|
},
|
|
153301
153343
|
customComponent: function customComponent(list) {
|
|
153302
|
-
var
|
|
153344
|
+
var _this4 = this;
|
|
153303
153345
|
list.forEach(function (item) {
|
|
153304
153346
|
if (item.components.indexOf('component:') > -1) {
|
|
153305
|
-
|
|
153347
|
+
_this4.$options.components['card_' + item.value] = _this4.$loadComponent(item.components.split('component:')[1]);
|
|
153306
153348
|
item.widget = 'card_' + item.value;
|
|
153307
153349
|
}
|
|
153308
153350
|
});
|
|
@@ -153346,44 +153388,44 @@ var PAGE_INFO = {
|
|
|
153346
153388
|
}
|
|
153347
153389
|
},
|
|
153348
153390
|
cardCellClick: function cardCellClick(row) {
|
|
153349
|
-
var
|
|
153391
|
+
var _this5 = this;
|
|
153350
153392
|
new Promise(function (resolve, reject) {
|
|
153351
|
-
if (
|
|
153352
|
-
if (
|
|
153353
|
-
clearTimeout(
|
|
153393
|
+
if (_this5.onCellDblclick) {
|
|
153394
|
+
if (_this5.clickTime) {
|
|
153395
|
+
clearTimeout(_this5.clickTime);
|
|
153354
153396
|
}
|
|
153355
|
-
|
|
153397
|
+
_this5.clickTime = setTimeout(function () {
|
|
153356
153398
|
resolve(true);
|
|
153357
153399
|
}, 300);
|
|
153358
153400
|
} else {
|
|
153359
153401
|
resolve(true);
|
|
153360
153402
|
}
|
|
153361
153403
|
}).then(function (result) {
|
|
153362
|
-
if (
|
|
153363
|
-
|
|
153404
|
+
if (_this5.onCellClick !== null) {
|
|
153405
|
+
_this5.onCellClick(row);
|
|
153364
153406
|
} else {
|
|
153365
|
-
if (
|
|
153366
|
-
var moduleInfo =
|
|
153407
|
+
if (_this5.moduleInfo.openViewType === '1') {
|
|
153408
|
+
var moduleInfo = _this5.moduleInfo;
|
|
153367
153409
|
moduleInfo.addNew = false;
|
|
153368
|
-
var formUrl =
|
|
153369
|
-
var innerUrl =
|
|
153410
|
+
var formUrl = _this5.moduleInfo.busiFormTemplate ? _this5.moduleInfo.busiFormTemplate : '';
|
|
153411
|
+
var innerUrl = _this5.moduleInfo.busiTabFormTabTemplate ? _this5.moduleInfo.busiTabFormTabTemplate : '';
|
|
153370
153412
|
var edit = true;
|
|
153371
|
-
if (
|
|
153372
|
-
edit = !
|
|
153413
|
+
if (_this5.operateColumnBtns.length > 0) {
|
|
153414
|
+
edit = !_this5.operateColumnBtns.some(function (item) {
|
|
153373
153415
|
return item.id.indexOf('btn_edit') > -1;
|
|
153374
153416
|
});
|
|
153375
153417
|
}
|
|
153376
153418
|
var title = localStorage.getItem('setSysMenuName');
|
|
153377
|
-
var busiInfo =
|
|
153378
|
-
window.open("#/newBusiForm?voId=".concat(row.id, "&moduleInfo=").concat(encodeURIComponent(JSON.stringify(moduleInfo)), "&title=").concat(encodeURIComponent(title), "&busiInfo=").concat(encodeURIComponent(busiInfo), "&formUrl=").concat(formUrl, "&innerUrl=").concat(innerUrl, "&noEdit=").concat(edit, "&editShow=0&sysCode=").concat(
|
|
153419
|
+
var busiInfo = _this5.$vnode.context.formTitle;
|
|
153420
|
+
window.open("#/newBusiForm?voId=".concat(row.id, "&moduleInfo=").concat(encodeURIComponent(JSON.stringify(moduleInfo)), "&title=").concat(encodeURIComponent(title), "&busiInfo=").concat(encodeURIComponent(busiInfo), "&formUrl=").concat(formUrl, "&innerUrl=").concat(innerUrl, "&noEdit=").concat(edit, "&editShow=0&sysCode=").concat(_this5.$route.meta.sysCode || ''));
|
|
153379
153421
|
} else {
|
|
153380
|
-
|
|
153422
|
+
_this5.$bus.emit('openBusiform', _this5.moduleInfo, row, 0);
|
|
153381
153423
|
}
|
|
153382
153424
|
}
|
|
153383
153425
|
});
|
|
153384
153426
|
},
|
|
153385
153427
|
checkBtnPermission: function checkBtnPermission() {
|
|
153386
|
-
var
|
|
153428
|
+
var _this6 = this;
|
|
153387
153429
|
var _this = this;
|
|
153388
153430
|
var checkedPermission = {};
|
|
153389
153431
|
this.toolbarBtns.forEach( /*#__PURE__*/function () {
|
|
@@ -153397,7 +153439,7 @@ var PAGE_INFO = {
|
|
|
153397
153439
|
} else {
|
|
153398
153440
|
btn.btnI18nCode = btn.btnI18nCode || (btn.btnPermission || btn.id || btn.btnIcon || btn.btnName).replace('btn_', '').replace('Ids', '').replace('Object', '');
|
|
153399
153441
|
}
|
|
153400
|
-
btn.btnName =
|
|
153442
|
+
btn.btnName = _this6.$i18n.generateTitle(btn, _this6.$vnode.context);
|
|
153401
153443
|
if (!(_this.mode === 'design')) {
|
|
153402
153444
|
_context.next = 6;
|
|
153403
153445
|
break;
|
|
@@ -153425,7 +153467,7 @@ var PAGE_INFO = {
|
|
|
153425
153467
|
break;
|
|
153426
153468
|
case 13:
|
|
153427
153469
|
_context.next = 15;
|
|
153428
|
-
return
|
|
153470
|
+
return _this6.$store.dispatch('user/hasPermission', {
|
|
153429
153471
|
href: _this.$route.meta.href,
|
|
153430
153472
|
pcode: pcode
|
|
153431
153473
|
});
|
|
@@ -153474,7 +153516,7 @@ var PAGE_INFO = {
|
|
|
153474
153516
|
}
|
|
153475
153517
|
},
|
|
153476
153518
|
initTbColumns: function initTbColumns() {
|
|
153477
|
-
var
|
|
153519
|
+
var _this7 = this;
|
|
153478
153520
|
var _this = this;
|
|
153479
153521
|
this.listEdit = this.$vnode.context.formCanEdit;
|
|
153480
153522
|
var mergeColumns = [];
|
|
@@ -153497,24 +153539,26 @@ var PAGE_INFO = {
|
|
|
153497
153539
|
} else {
|
|
153498
153540
|
column.propFormatter = '';
|
|
153499
153541
|
}
|
|
153500
|
-
if (!
|
|
153542
|
+
if (!_this7.showOverflowTooltip) {
|
|
153501
153543
|
column.className = (column.className || '') + ' close-tooltip';
|
|
153502
153544
|
}
|
|
153503
153545
|
if (column.fixed === 'right' || column.fixed === 'left') {
|
|
153504
|
-
|
|
153546
|
+
if ((column.className || '').indexOf(' is-fixed') === -1) {
|
|
153547
|
+
column.className = (column.className || '') + ' is-fixed';
|
|
153548
|
+
}
|
|
153505
153549
|
} else if (column.field === 'column_operate' && (column.fixed === undefined || column.fixed === null)) {
|
|
153506
153550
|
//column.fixed = 'right'
|
|
153507
153551
|
//column.className = (column.className || '') + ' is-fixed'
|
|
153508
153552
|
} else {
|
|
153509
153553
|
column.fixed = false;
|
|
153510
153554
|
}
|
|
153511
|
-
column.title = (
|
|
153555
|
+
column.title = (_this7.$i18n.generateTitle(column, _this7) || '').trim();
|
|
153512
153556
|
var colFormater = column.propFormatter || column.elementFormatter;
|
|
153513
153557
|
if (!colFormater) colFormater = column.elementFormatter || '';
|
|
153514
153558
|
if (column.field === 'state' && column.title === '') {
|
|
153515
153559
|
column.width = '45px';
|
|
153516
153560
|
} else if (column.field === 'index') {
|
|
153517
|
-
if (
|
|
153561
|
+
if (_this7.lazyLoadRowChildren) {
|
|
153518
153562
|
column.width = '60px';
|
|
153519
153563
|
} else {
|
|
153520
153564
|
column.width = '50px';
|
|
@@ -153536,20 +153580,20 @@ var PAGE_INFO = {
|
|
|
153536
153580
|
if (!colFormater) colFormater = 'yyyy-MM-dd HH:mm:ss'; // Date类型未设置formatter,默认格式
|
|
153537
153581
|
if (colFormater.indexOf('yyyy') !== -1 && colFormater.indexOf('HH') === -1 && colFormater.indexOf('mm') === -1) {
|
|
153538
153582
|
// 包含年月日,不包含时分秒
|
|
153539
|
-
if (column.sortable && colFormater.indexOf('yyyy年') !== -1 && parseInt(column.width) <
|
|
153540
|
-
column.width =
|
|
153541
|
-
} else if (column.sortable && parseInt(column.width) <
|
|
153542
|
-
column.width =
|
|
153583
|
+
if (column.sortable && colFormater.indexOf('yyyy年') !== -1 && parseInt(column.width) < _this7.calculateNewWidth(150, uiFontSize, 'judge')) {
|
|
153584
|
+
column.width = _this7.calculateNewWidth(150, uiFontSize);
|
|
153585
|
+
} else if (column.sortable && parseInt(column.width) < _this7.calculateNewWidth(120, uiFontSize, 'judge')) {
|
|
153586
|
+
column.width = _this7.calculateNewWidth(120, uiFontSize);
|
|
153543
153587
|
}
|
|
153544
153588
|
} else if (colFormater.indexOf('yyyy') !== -1 && colFormater.indexOf('HH') !== -1 && colFormater.indexOf('ss') !== -1) {
|
|
153545
153589
|
// 包含年月日,时分秒
|
|
153546
|
-
if (column.sortable && parseInt(column.width) <
|
|
153547
|
-
column.width =
|
|
153590
|
+
if (column.sortable && parseInt(column.width) < _this7.calculateNewWidth(180, uiFontSize, 'judge')) {
|
|
153591
|
+
column.width = _this7.calculateNewWidth(180, uiFontSize);
|
|
153548
153592
|
}
|
|
153549
153593
|
} else if (colFormater.indexOf('yyyy') !== -1 && colFormater.indexOf('HH') !== -1 && colFormater.indexOf('mm') !== -1) {
|
|
153550
153594
|
// 包含年月日,时分秒
|
|
153551
|
-
if (column.sortable && parseInt(column.width) <
|
|
153552
|
-
column.width =
|
|
153595
|
+
if (column.sortable && parseInt(column.width) < _this7.calculateNewWidth(150, uiFontSize, 'judge')) {
|
|
153596
|
+
column.width = _this7.calculateNewWidth(150, uiFontSize);
|
|
153553
153597
|
}
|
|
153554
153598
|
}
|
|
153555
153599
|
} else if (/^[\u4e00-\u9fff]+$/.test(column.title)) {
|
|
@@ -153559,7 +153603,7 @@ var PAGE_INFO = {
|
|
|
153559
153603
|
column.width = '90px';
|
|
153560
153604
|
}
|
|
153561
153605
|
}
|
|
153562
|
-
if (
|
|
153606
|
+
if (_this7.isInlineEdit !== 0) {
|
|
153563
153607
|
if (column.listAdvSearchElement === 'staffDlg') {
|
|
153564
153608
|
column.staffDlg = true;
|
|
153565
153609
|
} else if (column.listAdvSearchElement === 'suborg2Dlg') {
|
|
@@ -153628,7 +153672,7 @@ var PAGE_INFO = {
|
|
|
153628
153672
|
mergeColumns.forEach(function (mergeCol) {
|
|
153629
153673
|
var subColumns = mergeCol.propFormatter.split(':')[1].split(',');
|
|
153630
153674
|
mergeCol.children = [];
|
|
153631
|
-
|
|
153675
|
+
_this7.tbColumns.forEach(function (col) {
|
|
153632
153676
|
if (subColumns.indexOf(col.field) !== -1) {
|
|
153633
153677
|
mergeCol.children.push(col);
|
|
153634
153678
|
col.isChild = 1;
|
|
@@ -153660,7 +153704,7 @@ var PAGE_INFO = {
|
|
|
153660
153704
|
this.loadListdata(searchMap, searchAndOr, customBtnVal);
|
|
153661
153705
|
},
|
|
153662
153706
|
loadListdata: function loadListdata(searchMap, searchAndOr, customBtnVal, moduleCode) {
|
|
153663
|
-
var
|
|
153707
|
+
var _this8 = this;
|
|
153664
153708
|
if (moduleCode && this.moduleInfo.moduleCode !== moduleCode) return;
|
|
153665
153709
|
var _this = this;
|
|
153666
153710
|
this.emptyText = '';
|
|
@@ -153704,51 +153748,51 @@ var PAGE_INFO = {
|
|
|
153704
153748
|
_this.setPageInfo(searchMap, searchAndOr, customBtnVal, orderBy);
|
|
153705
153749
|
_this.$app.listdata(this.moduleInfo.listDataUrl, _this.pageInfo).then(function (res) {
|
|
153706
153750
|
if (res.code === 'success') {
|
|
153707
|
-
|
|
153708
|
-
|
|
153751
|
+
_this8.pageInfo.list = [];
|
|
153752
|
+
_this8.$nextTick(function () {
|
|
153709
153753
|
var pageInfo = res.body.pageInfo;
|
|
153710
153754
|
pageInfo.orderBy = orderBy;
|
|
153711
153755
|
pageInfo.passenger = res.body.passenger;
|
|
153712
|
-
|
|
153713
|
-
|
|
153714
|
-
|
|
153715
|
-
|
|
153716
|
-
|
|
153717
|
-
if (
|
|
153756
|
+
_this8.onListDataLoaded(_this8, pageInfo);
|
|
153757
|
+
_this8.pageInfo = pageInfo;
|
|
153758
|
+
_this8.emptyText = _this8.$tx('common.noData', '暂无数据');
|
|
153759
|
+
_this8.loadingMast.close();
|
|
153760
|
+
_this8.loading = false;
|
|
153761
|
+
if (_this8.$route.meta && !_this8.moduleInfo.disableCache) {
|
|
153718
153762
|
var view = {
|
|
153719
|
-
fullPath:
|
|
153720
|
-
pageInfo:
|
|
153721
|
-
listDataUrl:
|
|
153763
|
+
fullPath: _this8.$route.fullPath,
|
|
153764
|
+
pageInfo: _this8.pageInfo,
|
|
153765
|
+
listDataUrl: _this8.moduleInfo.listDataUrl
|
|
153722
153766
|
};
|
|
153723
|
-
|
|
153767
|
+
_this8.$store.dispatch('tagsView/updateVisitedView', view);
|
|
153724
153768
|
}
|
|
153725
|
-
|
|
153726
|
-
|
|
153727
|
-
|
|
153728
|
-
|
|
153729
|
-
for (var key in
|
|
153730
|
-
|
|
153731
|
-
var item =
|
|
153769
|
+
_this8.$bus.emit('setTabFileCount');
|
|
153770
|
+
_this8.$nextTick(function () {
|
|
153771
|
+
_this8.setScrollPosition();
|
|
153772
|
+
_this8.setStyleSelectAll();
|
|
153773
|
+
for (var key in _this8.selectedAllRows) {
|
|
153774
|
+
_this8.selectedAllRows[key].forEach(function (data) {
|
|
153775
|
+
var item = _this8.$refs.listpageDataTable.data.filter(function (dataitem) {
|
|
153732
153776
|
return dataitem.id === data.id;
|
|
153733
153777
|
});
|
|
153734
153778
|
if (item.length > 0) {
|
|
153735
|
-
|
|
153779
|
+
_this8.$refs.listpageDataTable.toggleRowSelection(item[0]);
|
|
153736
153780
|
}
|
|
153737
153781
|
});
|
|
153738
153782
|
}
|
|
153739
|
-
if (
|
|
153740
|
-
|
|
153783
|
+
if (_this8.mode === 'innerTable') {
|
|
153784
|
+
_this8.$bus.emit('setSubmitSidebarHeight');
|
|
153741
153785
|
}
|
|
153742
|
-
|
|
153786
|
+
_this8.setOperateColumn();
|
|
153743
153787
|
});
|
|
153744
153788
|
});
|
|
153745
153789
|
} else {
|
|
153746
|
-
|
|
153790
|
+
_this8.$alert(res.message, _this8.$tx('common.operationTip', '操作提示'), {
|
|
153747
153791
|
type: 'error'
|
|
153748
153792
|
});
|
|
153749
|
-
|
|
153750
|
-
|
|
153751
|
-
|
|
153793
|
+
_this8.emptyText = _this8.$tx('common.noData', '暂无数据');
|
|
153794
|
+
_this8.loadingMast.close();
|
|
153795
|
+
_this8.loading = false;
|
|
153752
153796
|
}
|
|
153753
153797
|
});
|
|
153754
153798
|
},
|
|
@@ -153813,24 +153857,6 @@ var PAGE_INFO = {
|
|
|
153813
153857
|
}
|
|
153814
153858
|
}
|
|
153815
153859
|
},
|
|
153816
|
-
setOperateColumn: function setOperateColumn() {
|
|
153817
|
-
if (this.tableStyle === 1) {
|
|
153818
|
-
var operateCol = this.tbColumns.filter(function (column) {
|
|
153819
|
-
return column.field === 'column_operate' && column.enabled;
|
|
153820
|
-
});
|
|
153821
|
-
if (operateCol && operateCol.length > 0) {
|
|
153822
|
-
var scrollnone = this.$el.querySelector('.is-scrolling-none');
|
|
153823
|
-
if (!scrollnone) {
|
|
153824
|
-
//出现了滚动条,将操作列设置为固定右侧
|
|
153825
|
-
operateCol[0].fixed = 'right';
|
|
153826
|
-
operateCol[0].className = (operateCol[0].className || '') + ' is-fixed';
|
|
153827
|
-
} else {
|
|
153828
|
-
operateCol[0].fixed = false;
|
|
153829
|
-
operateCol[0].className = (operateCol[0].className || '').replace(' is-fixed', '');
|
|
153830
|
-
}
|
|
153831
|
-
}
|
|
153832
|
-
}
|
|
153833
|
-
},
|
|
153834
153860
|
getParentClassNode: function getParentClassNode(element, className) {
|
|
153835
153861
|
var pNode = element.parentNode;
|
|
153836
153862
|
if (!pNode) return null;
|
|
@@ -153932,14 +153958,14 @@ var PAGE_INFO = {
|
|
|
153932
153958
|
_this.selectedRowCount = _this.selectedRows.length;
|
|
153933
153959
|
},
|
|
153934
153960
|
handleCellClick: function handleCellClick(row, column, cell, event) {
|
|
153935
|
-
var
|
|
153961
|
+
var _this9 = this;
|
|
153936
153962
|
if (!this.isInlineEdit) {
|
|
153937
153963
|
new Promise(function (resolve, reject) {
|
|
153938
|
-
if (
|
|
153939
|
-
if (
|
|
153940
|
-
clearTimeout(
|
|
153964
|
+
if (_this9.onCellDblclick) {
|
|
153965
|
+
if (_this9.clickTime) {
|
|
153966
|
+
clearTimeout(_this9.clickTime);
|
|
153941
153967
|
}
|
|
153942
|
-
|
|
153968
|
+
_this9.clickTime = setTimeout(function () {
|
|
153943
153969
|
resolve(true);
|
|
153944
153970
|
}, 300);
|
|
153945
153971
|
} else {
|
|
@@ -153947,25 +153973,25 @@ var PAGE_INFO = {
|
|
|
153947
153973
|
}
|
|
153948
153974
|
}).then(function (result) {
|
|
153949
153975
|
if (cell.className.indexOf('content-column') !== -1) {
|
|
153950
|
-
if (
|
|
153951
|
-
|
|
153976
|
+
if (_this9.onCellClick !== null) {
|
|
153977
|
+
_this9.onCellClick(row, column, cell.innerText, cell.cellIndex);
|
|
153952
153978
|
} else {
|
|
153953
|
-
if (
|
|
153954
|
-
var moduleInfo =
|
|
153979
|
+
if (_this9.moduleInfo.openViewType === '1') {
|
|
153980
|
+
var moduleInfo = _this9.moduleInfo;
|
|
153955
153981
|
moduleInfo.addNew = false;
|
|
153956
|
-
var formUrl =
|
|
153957
|
-
var innerUrl =
|
|
153982
|
+
var formUrl = _this9.moduleInfo.busiFormTemplate ? _this9.moduleInfo.busiFormTemplate : '';
|
|
153983
|
+
var innerUrl = _this9.moduleInfo.busiTabFormTabTemplate ? _this9.moduleInfo.busiTabFormTabTemplate : '';
|
|
153958
153984
|
var edit = true;
|
|
153959
|
-
if (
|
|
153960
|
-
edit = !
|
|
153985
|
+
if (_this9.operateColumnBtns.length > 0) {
|
|
153986
|
+
edit = !_this9.operateColumnBtns.some(function (item) {
|
|
153961
153987
|
return item.id.indexOf('btn_edit') > -1;
|
|
153962
153988
|
});
|
|
153963
153989
|
}
|
|
153964
153990
|
var title = localStorage.getItem('setSysMenuName');
|
|
153965
|
-
var busiInfo =
|
|
153966
|
-
window.open("#/newBusiForm?voId=".concat(row.id, "&moduleInfo=").concat(encodeURIComponent(JSON.stringify(moduleInfo)), "&title=").concat(encodeURIComponent(title), "&busiInfo=").concat(encodeURIComponent(busiInfo), "&formUrl=").concat(formUrl, "&innerUrl=").concat(innerUrl, "&noEdit=").concat(edit, "&editShow=0&sysCode=").concat(
|
|
153991
|
+
var busiInfo = _this9.$vnode.context.formTitle;
|
|
153992
|
+
window.open("#/newBusiForm?voId=".concat(row.id, "&moduleInfo=").concat(encodeURIComponent(JSON.stringify(moduleInfo)), "&title=").concat(encodeURIComponent(title), "&busiInfo=").concat(encodeURIComponent(busiInfo), "&formUrl=").concat(formUrl, "&innerUrl=").concat(innerUrl, "&noEdit=").concat(edit, "&editShow=0&sysCode=").concat(_this9.$route.meta.sysCode || ''));
|
|
153967
153993
|
} else {
|
|
153968
|
-
|
|
153994
|
+
_this9.$bus.emit('openBusiform', _this9.moduleInfo, row, 0);
|
|
153969
153995
|
}
|
|
153970
153996
|
}
|
|
153971
153997
|
}
|
|
@@ -153996,7 +154022,7 @@ var PAGE_INFO = {
|
|
|
153996
154022
|
}
|
|
153997
154023
|
},
|
|
153998
154024
|
setColumnEnabled: function setColumnEnabled(val) {
|
|
153999
|
-
var
|
|
154025
|
+
var _this10 = this;
|
|
154000
154026
|
var enabledColums = val.join(',') + ',';
|
|
154001
154027
|
var tbColumns = JSON.parse(JSON.stringify(this.tbColumns));
|
|
154002
154028
|
tbColumns.forEach(function (column) {
|
|
@@ -154013,8 +154039,8 @@ var PAGE_INFO = {
|
|
|
154013
154039
|
}
|
|
154014
154040
|
}
|
|
154015
154041
|
this.$nextTick(function () {
|
|
154016
|
-
|
|
154017
|
-
|
|
154042
|
+
_this10.tbColumns = tbColumns;
|
|
154043
|
+
_this10.setLastColumnWidth();
|
|
154018
154044
|
});
|
|
154019
154045
|
},
|
|
154020
154046
|
// 自定义按钮点击回调事件
|
|
@@ -154027,7 +154053,7 @@ var PAGE_INFO = {
|
|
|
154027
154053
|
}
|
|
154028
154054
|
},
|
|
154029
154055
|
innerListAdd: function innerListAdd() {
|
|
154030
|
-
var
|
|
154056
|
+
var _this11 = this;
|
|
154031
154057
|
var _this = this;
|
|
154032
154058
|
if (_this.$vnode.context.$vnode.context.innerAddObject) {
|
|
154033
154059
|
_this.$vnode.context.$vnode.context.innerAddObject(_this.moduleInfo);
|
|
@@ -154040,7 +154066,7 @@ var PAGE_INFO = {
|
|
|
154040
154066
|
res.body.vo.isnew = true;
|
|
154041
154067
|
_this.pageInfo.list.push(res.body.vo);
|
|
154042
154068
|
} else {
|
|
154043
|
-
_this.$alert(res.message,
|
|
154069
|
+
_this.$alert(res.message, _this11.$tx('common.operationTip', '操作提示'), {
|
|
154044
154070
|
type: 'error'
|
|
154045
154071
|
});
|
|
154046
154072
|
}
|
|
@@ -154051,10 +154077,10 @@ var PAGE_INFO = {
|
|
|
154051
154077
|
}
|
|
154052
154078
|
},
|
|
154053
154079
|
insertList: function insertList(list) {
|
|
154054
|
-
var
|
|
154080
|
+
var _this12 = this;
|
|
154055
154081
|
if (list.length > 0) {
|
|
154056
154082
|
list.forEach(function (item) {
|
|
154057
|
-
|
|
154083
|
+
_this12.pageInfo.list.push(item);
|
|
154058
154084
|
});
|
|
154059
154085
|
this.$vnode.context.$vnode.context.innerListData = this.pageInfo.list;
|
|
154060
154086
|
} else {
|
|
@@ -154067,18 +154093,18 @@ var PAGE_INFO = {
|
|
|
154067
154093
|
this.$vnode.context.$vnode.context.innerListData = this.pageInfo.list;
|
|
154068
154094
|
},
|
|
154069
154095
|
addObject: function addObject() {
|
|
154070
|
-
var
|
|
154096
|
+
var _this13 = this;
|
|
154071
154097
|
this.innerTableBtnDisabled = true;
|
|
154072
154098
|
if (this.mode === 'inner' && this.$vnode.context.$vnode.context.vo.isnew) {
|
|
154073
154099
|
this.$bus.emit('submitBusiform', this.$vnode.context.$vnode.context.moduleInfo, function (callBack) {
|
|
154074
|
-
|
|
154075
|
-
|
|
154100
|
+
_this13.$nextTick(function () {
|
|
154101
|
+
_this13.innerTableBtnDisabled = false;
|
|
154076
154102
|
});
|
|
154077
154103
|
if (callBack) {
|
|
154078
|
-
if (
|
|
154079
|
-
|
|
154104
|
+
if (_this13.isInlineEdit !== 0) {
|
|
154105
|
+
_this13.innerListAdd();
|
|
154080
154106
|
} else {
|
|
154081
|
-
|
|
154107
|
+
_this13.$bus.emit('openBusiform', _this13.moduleInfo, null, 1);
|
|
154082
154108
|
}
|
|
154083
154109
|
}
|
|
154084
154110
|
}, 'InnerTableSave');
|
|
@@ -154088,20 +154114,20 @@ var PAGE_INFO = {
|
|
|
154088
154114
|
btnSubmitClick = this.$vnode.context.$vnode.context.$vnode.context.btnSubmitClick;
|
|
154089
154115
|
}
|
|
154090
154116
|
btnSubmitClick('AutoSave', function (saveRst) {
|
|
154091
|
-
|
|
154092
|
-
|
|
154117
|
+
_this13.$nextTick(function () {
|
|
154118
|
+
_this13.innerTableBtnDisabled = false;
|
|
154093
154119
|
});
|
|
154094
154120
|
if (saveRst) {
|
|
154095
|
-
if (
|
|
154096
|
-
|
|
154121
|
+
if (_this13.isInlineEdit !== 0) {
|
|
154122
|
+
_this13.innerListAdd();
|
|
154097
154123
|
} else {
|
|
154098
|
-
|
|
154124
|
+
_this13.$bus.emit('openBusiform', _this13.moduleInfo, null, 1);
|
|
154099
154125
|
}
|
|
154100
154126
|
}
|
|
154101
154127
|
}, 'InnerTableSave');
|
|
154102
154128
|
} else {
|
|
154103
154129
|
this.$nextTick(function () {
|
|
154104
|
-
|
|
154130
|
+
_this13.innerTableBtnDisabled = false;
|
|
154105
154131
|
});
|
|
154106
154132
|
if (this.moduleInfo.openViewType === '1') {
|
|
154107
154133
|
var formUrl = this.moduleInfo.busiFormTemplate ? this.moduleInfo.busiFormTemplate : '';
|
|
@@ -154121,7 +154147,7 @@ var PAGE_INFO = {
|
|
|
154121
154147
|
}
|
|
154122
154148
|
},
|
|
154123
154149
|
innerSave: function innerSave(row, column) {
|
|
154124
|
-
var
|
|
154150
|
+
var _this14 = this;
|
|
154125
154151
|
var requiredFiled = this.tbColumns.filter(function (item) {
|
|
154126
154152
|
return item.listTdEdit == 1 && item.listTdRequired == 1;
|
|
154127
154153
|
});
|
|
@@ -154148,9 +154174,9 @@ var PAGE_INFO = {
|
|
|
154148
154174
|
this.$app.insert(this.moduleInfo.insertUrl, row).then(function (res) {
|
|
154149
154175
|
if (res.code === 'success') {
|
|
154150
154176
|
row.isnew = false;
|
|
154151
|
-
|
|
154177
|
+
_this14.$message.success(res.message);
|
|
154152
154178
|
} else {
|
|
154153
|
-
|
|
154179
|
+
_this14.$alert(res.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
154154
154180
|
type: 'error'
|
|
154155
154181
|
});
|
|
154156
154182
|
}
|
|
@@ -154158,9 +154184,9 @@ var PAGE_INFO = {
|
|
|
154158
154184
|
} else {
|
|
154159
154185
|
this.$app.update(this.moduleInfo.updateUrl, row).then(function (res) {
|
|
154160
154186
|
if (res.code === 'success') {
|
|
154161
|
-
|
|
154187
|
+
_this14.$message.success(res.message);
|
|
154162
154188
|
} else {
|
|
154163
|
-
|
|
154189
|
+
_this14.$alert(res.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
154164
154190
|
type: 'error'
|
|
154165
154191
|
});
|
|
154166
154192
|
}
|
|
@@ -154183,7 +154209,7 @@ var PAGE_INFO = {
|
|
|
154183
154209
|
}
|
|
154184
154210
|
},
|
|
154185
154211
|
deleteIds: function deleteIds(row, column, value, index, rowIndex) {
|
|
154186
|
-
var
|
|
154212
|
+
var _this15 = this;
|
|
154187
154213
|
var ids = this.getSelectedRows(row, column, value, index);
|
|
154188
154214
|
if (ids.length === 0) {
|
|
154189
154215
|
this.$alert(this.$tx('ecwapp.DataTable.needDeleterRow', '请选择需要删除的数据。'), this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -154198,15 +154224,15 @@ var PAGE_INFO = {
|
|
|
154198
154224
|
return DataTable_srcvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
154199
154225
|
while (1) switch (_context3.prev = _context3.next) {
|
|
154200
154226
|
case 0:
|
|
154201
|
-
if (!(
|
|
154227
|
+
if (!(_this15.isInlineEdit !== 0)) {
|
|
154202
154228
|
_context3.next = 17;
|
|
154203
154229
|
break;
|
|
154204
154230
|
}
|
|
154205
|
-
if (!
|
|
154231
|
+
if (!_this15.$vnode.context.$vnode.context.deleteId) {
|
|
154206
154232
|
_context3.next = 5;
|
|
154207
154233
|
break;
|
|
154208
154234
|
}
|
|
154209
|
-
|
|
154235
|
+
_this15.$vnode.context.$vnode.context.deleteId(row, rowIndex);
|
|
154210
154236
|
_context3.next = 15;
|
|
154211
154237
|
break;
|
|
154212
154238
|
case 5:
|
|
@@ -154214,28 +154240,28 @@ var PAGE_INFO = {
|
|
|
154214
154240
|
_context3.next = 11;
|
|
154215
154241
|
break;
|
|
154216
154242
|
}
|
|
154217
|
-
|
|
154243
|
+
_this15.pageInfo.list = _this15.pageInfo.list.filter(function (item) {
|
|
154218
154244
|
return item.id !== row.id;
|
|
154219
154245
|
});
|
|
154220
|
-
|
|
154221
|
-
|
|
154246
|
+
_this15.$vnode.context.$vnode.context.innerListData = _this15.pageInfo.list;
|
|
154247
|
+
_this15.$message.success(_this15.$tx('ecwapp.Common.delSuccess', '删除成功'));
|
|
154222
154248
|
_context3.next = 15;
|
|
154223
154249
|
break;
|
|
154224
154250
|
case 11:
|
|
154225
154251
|
_context3.next = 13;
|
|
154226
|
-
return
|
|
154252
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids);
|
|
154227
154253
|
case 13:
|
|
154228
154254
|
res = _context3.sent;
|
|
154229
154255
|
if (res.code === 'success') {
|
|
154230
|
-
|
|
154231
|
-
|
|
154256
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
154257
|
+
_this15.$message({
|
|
154232
154258
|
type: res.code,
|
|
154233
154259
|
message: res.message,
|
|
154234
154260
|
showClose: true
|
|
154235
154261
|
});
|
|
154236
|
-
|
|
154262
|
+
_this15.loadListdata();
|
|
154237
154263
|
} else {
|
|
154238
|
-
|
|
154264
|
+
_this15.$alert(res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
154239
154265
|
type: 'error'
|
|
154240
154266
|
});
|
|
154241
154267
|
}
|
|
@@ -154244,19 +154270,19 @@ var PAGE_INFO = {
|
|
|
154244
154270
|
break;
|
|
154245
154271
|
case 17:
|
|
154246
154272
|
_context3.next = 19;
|
|
154247
|
-
return
|
|
154273
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids);
|
|
154248
154274
|
case 19:
|
|
154249
154275
|
_res = _context3.sent;
|
|
154250
154276
|
if (_res.code === 'success') {
|
|
154251
|
-
|
|
154252
|
-
|
|
154277
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
154278
|
+
_this15.$message({
|
|
154253
154279
|
type: _res.code,
|
|
154254
154280
|
message: _res.message,
|
|
154255
154281
|
showClose: true
|
|
154256
154282
|
});
|
|
154257
|
-
|
|
154283
|
+
_this15.loadListdata();
|
|
154258
154284
|
} else if (_res.code === 'confirm') {
|
|
154259
|
-
|
|
154285
|
+
_this15.$confirm(_res.message, _this15.$tx('common.confirmOperate', '确认操作'), {
|
|
154260
154286
|
type: 'warning'
|
|
154261
154287
|
}).then( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
154262
154288
|
var res;
|
|
@@ -154264,19 +154290,19 @@ var PAGE_INFO = {
|
|
|
154264
154290
|
while (1) switch (_context2.prev = _context2.next) {
|
|
154265
154291
|
case 0:
|
|
154266
154292
|
_context2.next = 2;
|
|
154267
|
-
return
|
|
154293
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids, true);
|
|
154268
154294
|
case 2:
|
|
154269
154295
|
res = _context2.sent;
|
|
154270
154296
|
if (res.code === 'success') {
|
|
154271
|
-
|
|
154272
|
-
|
|
154297
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
154298
|
+
_this15.$message({
|
|
154273
154299
|
type: res.code,
|
|
154274
154300
|
message: res.message,
|
|
154275
154301
|
showClose: true
|
|
154276
154302
|
});
|
|
154277
|
-
|
|
154303
|
+
_this15.loadListdata();
|
|
154278
154304
|
} else {
|
|
154279
|
-
|
|
154305
|
+
_this15.$alert(res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
154280
154306
|
type: 'error'
|
|
154281
154307
|
});
|
|
154282
154308
|
}
|
|
@@ -154291,7 +154317,7 @@ var PAGE_INFO = {
|
|
|
154291
154317
|
}
|
|
154292
154318
|
});
|
|
154293
154319
|
} else {
|
|
154294
|
-
|
|
154320
|
+
_this15.$alert(_res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
154295
154321
|
type: 'error'
|
|
154296
154322
|
});
|
|
154297
154323
|
}
|
|
@@ -154330,7 +154356,7 @@ var PAGE_INFO = {
|
|
|
154330
154356
|
return status;
|
|
154331
154357
|
},
|
|
154332
154358
|
setResPermission: function setResPermission(resEntityName, permissionCode, roleFilter) {
|
|
154333
|
-
var
|
|
154359
|
+
var _this16 = this;
|
|
154334
154360
|
var ids = [];
|
|
154335
154361
|
var errMsg = '';
|
|
154336
154362
|
var orgCode = null;
|
|
@@ -154340,11 +154366,11 @@ var PAGE_INFO = {
|
|
|
154340
154366
|
if (roleFilter === 'sysCode' || !row.orgCode) {
|
|
154341
154367
|
sysCode = row.sysCode || row.systemCode;
|
|
154342
154368
|
}
|
|
154343
|
-
if (index > 0 && row.orgCode &&
|
|
154344
|
-
errMsg =
|
|
154369
|
+
if (index > 0 && row.orgCode && _this16.selectedRows[0].orgCode !== row.orgCode) {
|
|
154370
|
+
errMsg = _this16.$tx('ecwapp.DataTable.onlyOneOrg', '只能设置同属一个机构的数据访问权限。');
|
|
154345
154371
|
}
|
|
154346
|
-
if (index > 0 && row.sysCode &&
|
|
154347
|
-
errMsg =
|
|
154372
|
+
if (index > 0 && row.sysCode && _this16.selectedRows[0].sysCode !== row.sysCode) {
|
|
154373
|
+
errMsg = _this16.$tx('ecwapp.DataTable.onlyOneProduct', '只能设置同属一个产品的数据访问权限。');
|
|
154348
154374
|
} else {
|
|
154349
154375
|
ids.push(row.id + '*' + row.orgCode + '*' + (row.sysCode || row.systemCode) + '*' + (row.sysName || row.systemName));
|
|
154350
154376
|
}
|
|
@@ -154365,7 +154391,7 @@ var PAGE_INFO = {
|
|
|
154365
154391
|
var _this = this;
|
|
154366
154392
|
this.$nextTick(function () {
|
|
154367
154393
|
var visitType = 1;
|
|
154368
|
-
if (
|
|
154394
|
+
if (_this16.selectedRows.length > 0) visitType = _this.selectedRows[0].visitType;
|
|
154369
154395
|
_this.$bus.emit('openResPermissionForm', ids, visitType, resEntityName, permissionCode, orgCode, sysCode);
|
|
154370
154396
|
});
|
|
154371
154397
|
},
|
|
@@ -154373,7 +154399,7 @@ var PAGE_INFO = {
|
|
|
154373
154399
|
* 批量导出数据项SQL脚本文件
|
|
154374
154400
|
*/
|
|
154375
154401
|
exportData: function exportData(tbName) {
|
|
154376
|
-
var
|
|
154402
|
+
var _this17 = this;
|
|
154377
154403
|
var ids = this.getSelectedRows();
|
|
154378
154404
|
if (this.pageInfo.total === 0) {
|
|
154379
154405
|
this.$alert(this.emptyText, this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -154405,7 +154431,7 @@ var PAGE_INFO = {
|
|
|
154405
154431
|
});
|
|
154406
154432
|
this.$bus.emit('openListitemDialog', this.$tx('ecwapp.DataTable.targetDatabase', '目标数据库'), dialectList, function (rst) {
|
|
154407
154433
|
if (rst.code === 'success') {
|
|
154408
|
-
|
|
154434
|
+
_this17.$http({
|
|
154409
154435
|
method: 'post',
|
|
154410
154436
|
params: {
|
|
154411
154437
|
ids: ids.join(),
|
|
@@ -154415,9 +154441,9 @@ var PAGE_INFO = {
|
|
|
154415
154441
|
url: 'base/codeGenerate/exportDataItemDbSql'
|
|
154416
154442
|
}).then(function (res) {
|
|
154417
154443
|
if (res.code === 'success') {
|
|
154418
|
-
|
|
154444
|
+
_this17.loadListdata();
|
|
154419
154445
|
var downloadUrl = '<br/>下载代码:<a href="' + "/apigw" + '/' + encodeURI(res.body.zipurl) + '" target="_blank">' + res.body.zipname + '</a>';
|
|
154420
|
-
|
|
154446
|
+
_this17.$alert(res.message + downloadUrl, _this17.$tx('common.operationTip', '操作提示'), {
|
|
154421
154447
|
type: 'success',
|
|
154422
154448
|
dangerouslyUseHTMLString: true,
|
|
154423
154449
|
callback: function callback(action) {
|
|
@@ -154427,7 +154453,7 @@ var PAGE_INFO = {
|
|
|
154427
154453
|
}
|
|
154428
154454
|
});
|
|
154429
154455
|
} else {
|
|
154430
|
-
|
|
154456
|
+
_this17.$alert(res.message, _this17.$tx('common.operationTip', '操作提示'), {
|
|
154431
154457
|
type: 'error'
|
|
154432
154458
|
});
|
|
154433
154459
|
}
|
|
@@ -154439,21 +154465,21 @@ var PAGE_INFO = {
|
|
|
154439
154465
|
* 批量导出流程表单EXCEL文件
|
|
154440
154466
|
*/
|
|
154441
154467
|
exportWform: function exportWform(filename, exportAll) {
|
|
154442
|
-
var
|
|
154468
|
+
var _this18 = this;
|
|
154443
154469
|
return DataTable_srcvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
154444
154470
|
var ids;
|
|
154445
154471
|
return DataTable_srcvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
154446
154472
|
while (1) switch (_context5.prev = _context5.next) {
|
|
154447
154473
|
case 0:
|
|
154448
|
-
ids =
|
|
154474
|
+
ids = _this18.getSelectedRows();
|
|
154449
154475
|
new Promise(function (resolve, reject) {
|
|
154450
|
-
if (
|
|
154451
|
-
|
|
154476
|
+
if (_this18.pageInfo.total === 0) {
|
|
154477
|
+
_this18.$alert(_this18.emptyText, _this18.$tx('common.operationTip', '操作提示'), {
|
|
154452
154478
|
type: 'warning'
|
|
154453
154479
|
});
|
|
154454
|
-
reject(
|
|
154480
|
+
reject(_this18.emptyText);
|
|
154455
154481
|
} else if (ids.length === 0) {
|
|
154456
|
-
|
|
154482
|
+
_this18.$confirm(_this18.$tx('ecwapp.DataTable.exportTipText', '您是否确认要导出当前列表的全部数据?<br/>如果仅需导出部分数据,请先选择或通过搜索筛选。'), _this18.$tx('common.confirmOperate', '确认操作'), {
|
|
154457
154483
|
type: 'warning',
|
|
154458
154484
|
dangerouslyUseHTMLString: true
|
|
154459
154485
|
}).then(function (res) {
|
|
@@ -154477,27 +154503,27 @@ var PAGE_INFO = {
|
|
|
154477
154503
|
pageSize: 65000,
|
|
154478
154504
|
pageNum: 1
|
|
154479
154505
|
};
|
|
154480
|
-
orderBy =
|
|
154481
|
-
reqParams.listpageId =
|
|
154482
|
-
reqParams.listpageViewUrl =
|
|
154506
|
+
orderBy = _this18.pageInfo.orderBy || _this18.moduleInfo.listDefaultOrderBy;
|
|
154507
|
+
reqParams.listpageId = _this18.moduleInfo.listpageId;
|
|
154508
|
+
reqParams.listpageViewUrl = _this18.moduleInfo.listpageViewUrl;
|
|
154483
154509
|
reqParams.orderBy = orderBy;
|
|
154484
|
-
reqParams.searchAndOr =
|
|
154485
|
-
reqParams.searchMap =
|
|
154486
|
-
if (
|
|
154487
|
-
params =
|
|
154510
|
+
reqParams.searchAndOr = _this18.searchAndOr;
|
|
154511
|
+
reqParams.searchMap = _this18.searchMap;
|
|
154512
|
+
if (_this18.mode === 'listpage' && _this18.$route.meta.params !== undefined && _this18.$route.meta.params !== null) {
|
|
154513
|
+
params = _this18.$route.meta.params.split('&');
|
|
154488
154514
|
params.forEach(function (param) {
|
|
154489
154515
|
reqParams[param.split('=')[0]] = param.split('=')[1];
|
|
154490
154516
|
});
|
|
154491
154517
|
}
|
|
154492
154518
|
_context4.next = 10;
|
|
154493
|
-
return
|
|
154519
|
+
return _this18.onListDataBeforeLoad(_this18, reqParams);
|
|
154494
154520
|
case 10:
|
|
154495
154521
|
urlsearch = reqParams.urlsearch;
|
|
154496
154522
|
delete reqParams.urlsearch;
|
|
154497
154523
|
reqParams = lib_default().stringify(reqParams);
|
|
154498
|
-
url = "/apigw" + '/' +
|
|
154499
|
-
if (
|
|
154500
|
-
url =
|
|
154524
|
+
url = "/apigw" + '/' + _this18.moduleInfo.listDataUrl.replace('listdata', 'exportdata').replace('listWfInstance', 'exportWfInstance').replace('joinListdata', 'joinExportdata');
|
|
154525
|
+
if (_this18.moduleInfo.exportDataUrl) {
|
|
154526
|
+
url = _this18.moduleInfo.exportDataUrl;
|
|
154501
154527
|
}
|
|
154502
154528
|
if (url.indexOf('?') === -1) {
|
|
154503
154529
|
url += '?' + reqParams;
|
|
@@ -154505,7 +154531,7 @@ var PAGE_INFO = {
|
|
|
154505
154531
|
url += '&' + reqParams;
|
|
154506
154532
|
}
|
|
154507
154533
|
exportCols = ''; // 只导出显示列
|
|
154508
|
-
|
|
154534
|
+
_this18.tbColumns.forEach(function (col) {
|
|
154509
154535
|
if (col.enabled || exportAll === 'true' || exportAll === true) exportCols += col.field + ',';
|
|
154510
154536
|
});
|
|
154511
154537
|
fileName = filename;
|
|
@@ -154513,8 +154539,8 @@ var PAGE_INFO = {
|
|
|
154513
154539
|
if (document.querySelector('#breadcrumb-container')) {
|
|
154514
154540
|
fileName = document.querySelector('#breadcrumb-container').innerText.replace('\r\n', '-').replace('\r', '-').replace('\n', '-');
|
|
154515
154541
|
}
|
|
154516
|
-
if (
|
|
154517
|
-
fileName += '-' +
|
|
154542
|
+
if (_this18.$route.meta.level === 4) {
|
|
154543
|
+
fileName += '-' + _this18.$route.meta.title;
|
|
154518
154544
|
}
|
|
154519
154545
|
if (!fileName) {
|
|
154520
154546
|
fileName = document.title;
|
|
@@ -154522,7 +154548,7 @@ var PAGE_INFO = {
|
|
|
154522
154548
|
}
|
|
154523
154549
|
url += '&fileName=' + encodeURI(encodeURI(fileName)) + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&exportCols=' + exportCols;
|
|
154524
154550
|
if (ids.length > 10) {
|
|
154525
|
-
|
|
154551
|
+
_this18.$http({
|
|
154526
154552
|
method: 'post',
|
|
154527
154553
|
contentType: 'application/json',
|
|
154528
154554
|
data: {
|
|
@@ -154569,7 +154595,7 @@ var PAGE_INFO = {
|
|
|
154569
154595
|
}))();
|
|
154570
154596
|
},
|
|
154571
154597
|
batchSaveAllFiles: function batchSaveAllFiles() {
|
|
154572
|
-
var
|
|
154598
|
+
var _this19 = this;
|
|
154573
154599
|
this.$bus.emit('showDoingDialog', null, false);
|
|
154574
154600
|
var orderBy = this.pageInfo.orderBy || this.moduleInfo.listDefaultOrderBy;
|
|
154575
154601
|
this.setPageInfo(this.searchMap, this.searchAndOr, null, orderBy);
|
|
@@ -154607,29 +154633,29 @@ var PAGE_INFO = {
|
|
|
154607
154633
|
var busiDataId = res.body.ids[i++];
|
|
154608
154634
|
var isLast = i === total;
|
|
154609
154635
|
if (typeof tozip === 'undefined') tozip = true;
|
|
154610
|
-
|
|
154636
|
+
_this19.$http({
|
|
154611
154637
|
method: 'post',
|
|
154612
154638
|
params: {
|
|
154613
|
-
module:
|
|
154639
|
+
module: _this19.moduleInfo.listDataUrl.split('/')[1],
|
|
154614
154640
|
dataKey: res.body.dataKey,
|
|
154615
154641
|
webTempPath: res.body.webTempPath,
|
|
154616
154642
|
busiDataId: busiDataId,
|
|
154617
154643
|
isLast: isLast,
|
|
154618
154644
|
tozip: tozip
|
|
154619
154645
|
},
|
|
154620
|
-
url:
|
|
154646
|
+
url: _this19.moduleInfo.listDataUrl.split('/')[0] + '/webForm/downloadFileToLocal'
|
|
154621
154647
|
}).then(function (res2) {
|
|
154622
154648
|
downloading = false;
|
|
154623
154649
|
if (res.code === 'success') {
|
|
154624
154650
|
if (isLast) {
|
|
154625
154651
|
clearInterval(eventid);
|
|
154626
|
-
|
|
154627
|
-
|
|
154652
|
+
_this19.$bus.emit('closeDoingDialog');
|
|
154653
|
+
_this19.loadListdata();
|
|
154628
154654
|
var downloadUrl = '<br/>下载文件:<a href="' + "/apigw" + '/' + encodeURI(res2.body.zipurl) + '" target="_blank">' + res2.body.zipname + '</a>';
|
|
154629
154655
|
if (!tozip) {
|
|
154630
154656
|
downloadUrl = '<br/>服务端文件路径:' + res2.body.filepath;
|
|
154631
154657
|
}
|
|
154632
|
-
|
|
154658
|
+
_this19.$alert(res.message + downloadUrl, _this19.$tx('common.operationTip', '操作提示'), {
|
|
154633
154659
|
type: 'success',
|
|
154634
154660
|
dangerouslyUseHTMLString: true,
|
|
154635
154661
|
callback: function callback(action) {
|
|
@@ -154639,21 +154665,21 @@ var PAGE_INFO = {
|
|
|
154639
154665
|
}
|
|
154640
154666
|
});
|
|
154641
154667
|
} else {
|
|
154642
|
-
|
|
154668
|
+
_this19.$bus.emit('showDoingDialog', '正在打包待下载文件,共' + res.body.count + '份,当前第' + i + '份', false);
|
|
154643
154669
|
}
|
|
154644
154670
|
}
|
|
154645
154671
|
});
|
|
154646
154672
|
}
|
|
154647
154673
|
}, 500);
|
|
154648
154674
|
} else {
|
|
154649
|
-
|
|
154675
|
+
_this19.$alert(res.message, _this19.$tx('common.operationTip', '操作提示'), {
|
|
154650
154676
|
type: 'error'
|
|
154651
154677
|
});
|
|
154652
154678
|
}
|
|
154653
154679
|
});
|
|
154654
154680
|
},
|
|
154655
154681
|
batchSaveFiles: function batchSaveFiles() {
|
|
154656
|
-
var
|
|
154682
|
+
var _this20 = this;
|
|
154657
154683
|
var ids = this.getSelectedRows();
|
|
154658
154684
|
if (ids.length === 0) {
|
|
154659
154685
|
this.$alert(this.$tx('ecwapp.DataTable.downloadRow', '请选择需要批量下载的数据。'), this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -154671,11 +154697,11 @@ var PAGE_INFO = {
|
|
|
154671
154697
|
},
|
|
154672
154698
|
url: url
|
|
154673
154699
|
}).then(function (res) {
|
|
154674
|
-
|
|
154700
|
+
_this20.$bus.emit('closeDoingDialog');
|
|
154675
154701
|
if (res.code === 'success') {
|
|
154676
|
-
|
|
154702
|
+
_this20.loadListdata();
|
|
154677
154703
|
var downloadUrl = '<br/>下载文件:<a href="' + "/apigw" + '/' + encodeURI(res.body.zipurl) + '" target="_blank">' + res.body.zipname + '</a>';
|
|
154678
|
-
|
|
154704
|
+
_this20.$alert(res.message + downloadUrl, _this20.$tx('common.operationTip', '操作提示'), {
|
|
154679
154705
|
type: 'success',
|
|
154680
154706
|
dangerouslyUseHTMLString: true,
|
|
154681
154707
|
callback: function callback(action) {
|
|
@@ -154685,19 +154711,19 @@ var PAGE_INFO = {
|
|
|
154685
154711
|
}
|
|
154686
154712
|
});
|
|
154687
154713
|
} else {
|
|
154688
|
-
|
|
154714
|
+
_this20.$alert(res.message, _this20.$tx('common.operationTip', '操作提示'), {
|
|
154689
154715
|
type: 'error'
|
|
154690
154716
|
});
|
|
154691
154717
|
}
|
|
154692
154718
|
});
|
|
154693
154719
|
},
|
|
154694
154720
|
decryptData: function decryptData(row, model) {
|
|
154695
|
-
var
|
|
154721
|
+
var _this21 = this;
|
|
154696
154722
|
this.$app.decryptData(row[model]).then(function (res) {
|
|
154697
154723
|
if (res.code === 'success') {
|
|
154698
|
-
|
|
154724
|
+
_this21.$set(row, model, res.body.data);
|
|
154699
154725
|
} else {
|
|
154700
|
-
|
|
154726
|
+
_this21.$alert(res.message, {
|
|
154701
154727
|
type: 'error'
|
|
154702
154728
|
});
|
|
154703
154729
|
}
|
|
@@ -154707,9 +154733,9 @@ var PAGE_INFO = {
|
|
|
154707
154733
|
});
|
|
154708
154734
|
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=script&lang=js
|
|
154709
154735
|
/* harmony default export */ var ecwapp_DataTable_srcvue_type_script_lang_js = (DataTable_srcvue_type_script_lang_js);
|
|
154710
|
-
// 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/DataTable/src/index.vue?vue&type=style&index=0&id=
|
|
154711
|
-
var
|
|
154712
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=style&index=0&id=
|
|
154736
|
+
// 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/DataTable/src/index.vue?vue&type=style&index=0&id=09d60004&prod&lang=scss&scoped=true
|
|
154737
|
+
var srcvue_type_style_index_0_id_09d60004_prod_lang_scss_scoped_true = __webpack_require__(19762);
|
|
154738
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=style&index=0&id=09d60004&prod&lang=scss&scoped=true
|
|
154713
154739
|
|
|
154714
154740
|
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue
|
|
154715
154741
|
|
|
@@ -154722,11 +154748,11 @@ var srcvue_type_style_index_0_id_0669bd3e_prod_lang_scss_scoped_true = __webpack
|
|
|
154722
154748
|
|
|
154723
154749
|
var DataTable_src_component = (0,componentNormalizer/* default */.A)(
|
|
154724
154750
|
ecwapp_DataTable_srcvue_type_script_lang_js,
|
|
154725
|
-
|
|
154726
|
-
|
|
154751
|
+
srcvue_type_template_id_09d60004_scoped_true_render,
|
|
154752
|
+
srcvue_type_template_id_09d60004_scoped_true_staticRenderFns,
|
|
154727
154753
|
false,
|
|
154728
154754
|
null,
|
|
154729
|
-
"
|
|
154755
|
+
"09d60004",
|
|
154730
154756
|
null
|
|
154731
154757
|
|
|
154732
154758
|
)
|
|
@@ -155076,17 +155102,14 @@ DoingDialog_src.install = function (Vue) {
|
|
|
155076
155102
|
Vue.component(DoingDialog_src.name, DoingDialog_src);
|
|
155077
155103
|
};
|
|
155078
155104
|
/* harmony default export */ var DoingDialog = (DoingDialog_src);
|
|
155079
|
-
;// 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/InnerTable/src/index.vue?vue&type=template&id=
|
|
155080
|
-
var
|
|
155105
|
+
;// 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/InnerTable/src/index.vue?vue&type=template&id=2297e85a&scoped=true
|
|
155106
|
+
var srcvue_type_template_id_2297e85a_scoped_true_render = function render() {
|
|
155081
155107
|
var _vm = this,
|
|
155082
155108
|
_c = _vm._self._c;
|
|
155083
155109
|
return _c('div', {
|
|
155084
155110
|
staticClass: "inner-app-container"
|
|
155085
155111
|
}, [_c('div', {
|
|
155086
|
-
staticClass: "inner-listpage-container"
|
|
155087
|
-
on: {
|
|
155088
|
-
"mouseup": _vm.onMouseup
|
|
155089
|
-
}
|
|
155112
|
+
staticClass: "inner-listpage-container"
|
|
155090
155113
|
}, [_vm.moduleInfo !== null ? _c('data-table', {
|
|
155091
155114
|
ref: "innerListTable",
|
|
155092
155115
|
attrs: {
|
|
@@ -155131,7 +155154,7 @@ var srcvue_type_template_id_1cbbd470_scoped_true_render = function render() {
|
|
|
155131
155154
|
}], null, false, 2019936513)
|
|
155132
155155
|
}) : _vm._e()], 1);
|
|
155133
155156
|
};
|
|
155134
|
-
var
|
|
155157
|
+
var srcvue_type_template_id_2297e85a_scoped_true_staticRenderFns = [];
|
|
155135
155158
|
|
|
155136
155159
|
;// 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/InnerTable/src/index.vue?vue&type=script&lang=js
|
|
155137
155160
|
function InnerTable_srcvue_type_script_lang_js_typeof(o) { "@babel/helpers - typeof"; return InnerTable_srcvue_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; }, InnerTable_srcvue_type_script_lang_js_typeof(o); }
|
|
@@ -155245,16 +155268,6 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155245
155268
|
},
|
|
155246
155269
|
updated: function updated() {},
|
|
155247
155270
|
methods: {
|
|
155248
|
-
onMouseup: function onMouseup() {
|
|
155249
|
-
var _this2 = this;
|
|
155250
|
-
setTimeout(function () {
|
|
155251
|
-
var fixCol = _this2.$el.querySelector('.el-table__fixed-right');
|
|
155252
|
-
if (fixCol) {
|
|
155253
|
-
fixCol.style.width = parseInt(fixCol.style.width) - 1 + 'px';
|
|
155254
|
-
fixCol.style.height = parseInt(fixCol.style.height) - 2 + 'px';
|
|
155255
|
-
}
|
|
155256
|
-
}, 0);
|
|
155257
|
-
},
|
|
155258
155271
|
insertPageList: function insertPageList(list) {
|
|
155259
155272
|
this.$refs.innerListTable.insertList(list);
|
|
155260
155273
|
},
|
|
@@ -155325,7 +155338,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155325
155338
|
}
|
|
155326
155339
|
},
|
|
155327
155340
|
createInnerListpage: function createInnerListpage() {
|
|
155328
|
-
var
|
|
155341
|
+
var _this2 = this;
|
|
155329
155342
|
var _this = this;
|
|
155330
155343
|
if (_this.loading) {
|
|
155331
155344
|
return;
|
|
@@ -155357,7 +155370,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155357
155370
|
tbColumns.splice(i--, 1);
|
|
155358
155371
|
}
|
|
155359
155372
|
}
|
|
155360
|
-
if (
|
|
155373
|
+
if (_this2.formCanEdit === 1 && _this2.excludeFields.indexOf('column_operate') === -1) {
|
|
155361
155374
|
tbColumns[tbColumns.length] = {
|
|
155362
155375
|
field: 'column_operate',
|
|
155363
155376
|
title: '操作',
|
|
@@ -155366,7 +155379,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155366
155379
|
valign: 'middle'
|
|
155367
155380
|
};
|
|
155368
155381
|
var toolbarBtns = JSON.parse(listpageInfo.listToolBtns);
|
|
155369
|
-
var parentVue =
|
|
155382
|
+
var parentVue = _this2.$vnode.context;
|
|
155370
155383
|
var columnHeaderBtn = toolbarBtns.filter(function (btn) {
|
|
155371
155384
|
if (btn.btnType === 'columnHeaderBtn') {
|
|
155372
155385
|
btn.btnType = 'tbheader';
|
|
@@ -155374,16 +155387,16 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155374
155387
|
}
|
|
155375
155388
|
});
|
|
155376
155389
|
for (var _i = 0; _i < toolbarBtns.length; _i++) {
|
|
155377
|
-
if (!
|
|
155390
|
+
if (!_this2.showToolbar) {
|
|
155378
155391
|
// 不显示列表右上操作按钮,把“新增”按钮显示在“操作”列表头中
|
|
155379
|
-
if (columnHeaderBtn.length === 0 && toolbarBtns[_i].btnType === 'toolbar' && toolbarBtns[_i].id === 'btn_add' &&
|
|
155392
|
+
if (columnHeaderBtn.length === 0 && toolbarBtns[_i].btnType === 'toolbar' && toolbarBtns[_i].id === 'btn_add' && _this2.canAdd !== 0) {
|
|
155380
155393
|
toolbarBtns[_i].btnType = 'tbheader';
|
|
155381
155394
|
} else if (toolbarBtns[_i].btnType !== 'column' && toolbarBtns[_i].btnType !== 'tbheader') {
|
|
155382
155395
|
toolbarBtns.splice(_i--, 1);
|
|
155383
155396
|
if (_i < 0) _i = 0;
|
|
155384
155397
|
} else if (toolbarBtns[_i].btnType === 'column') {
|
|
155385
155398
|
// 操作列只显示新增、删除
|
|
155386
|
-
if (!
|
|
155399
|
+
if (!_this2.canEdit && toolbarBtns[_i].btnPermission === 'editObject' || !_this2.canDelete && toolbarBtns[_i].btnPermission === 'deleteIds') {
|
|
155387
155400
|
toolbarBtns.splice(_i--, 1);
|
|
155388
155401
|
if (_i < 0) _i = 0;
|
|
155389
155402
|
}
|
|
@@ -155402,15 +155415,15 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155402
155415
|
btnParams = btnParams.replace(/'/g, '').split(',');
|
|
155403
155416
|
toolbarBtns[_i].btnParams = btnParams;
|
|
155404
155417
|
}
|
|
155405
|
-
toolbarBtns[_i].cloumHeaderBtnClick =
|
|
155418
|
+
toolbarBtns[_i].cloumHeaderBtnClick = _this2.onCloumHeaderBtnClick;
|
|
155406
155419
|
}
|
|
155407
155420
|
if (typeof parentVue[btnClick.split('(')[0]] === 'function') {
|
|
155408
155421
|
toolbarBtns[_i].btnClick = parentVue[btnClick.split('(')[0]];
|
|
155409
155422
|
}
|
|
155410
155423
|
}
|
|
155411
|
-
if (
|
|
155424
|
+
if (_this2.inLineEdit !== 0) {
|
|
155412
155425
|
var btnArray = [];
|
|
155413
|
-
if (
|
|
155426
|
+
if (_this2.canEdit === 1 || _this2.canEdit === true) {
|
|
155414
155427
|
btnArray.push({
|
|
155415
155428
|
btnClick: 'innerSave(row)',
|
|
155416
155429
|
btnIcon: '',
|
|
@@ -155421,7 +155434,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155421
155434
|
btnI18nCode: 'save'
|
|
155422
155435
|
});
|
|
155423
155436
|
}
|
|
155424
|
-
if (
|
|
155437
|
+
if (_this2.canDelete === 1 || _this2.canDelete === true) {
|
|
155425
155438
|
btnArray.push({
|
|
155426
155439
|
btnClick: 'deleteIds(row.id);',
|
|
155427
155440
|
btnIcon: '',
|
|
@@ -155492,7 +155505,6 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155492
155505
|
return parentId;
|
|
155493
155506
|
},
|
|
155494
155507
|
onListDataBeforeLoad: function onListDataBeforeLoad($scope, qparams) {
|
|
155495
|
-
var _this4 = this;
|
|
155496
155508
|
//urrsearch指定子数据筛选条件
|
|
155497
155509
|
var parentId = this.getChildDataParentId();
|
|
155498
155510
|
if (parentId !== null && parentId !== undefined) {
|
|
@@ -155514,28 +155526,13 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155514
155526
|
if (this.$vnode.context.onInnerTableListDataBeforeLoad) {
|
|
155515
155527
|
this.$vnode.context.onInnerTableListDataBeforeLoad($scope, qparams);
|
|
155516
155528
|
}
|
|
155517
|
-
setTimeout(function () {
|
|
155518
|
-
var fixCol = _this4.$el.querySelector('.el-table__fixed-right');
|
|
155519
|
-
if (fixCol) {
|
|
155520
|
-
fixCol.style.width = parseInt(fixCol.style.width) - 1 + 'px';
|
|
155521
|
-
fixCol.style.height = parseInt(fixCol.style.height) - 2 + 'px';
|
|
155522
|
-
}
|
|
155523
|
-
}, 0);
|
|
155524
155529
|
},
|
|
155525
155530
|
onListDataLoaded: function onListDataLoaded($scope, pageInfo) {
|
|
155526
|
-
var _this5 = this;
|
|
155527
155531
|
if (false) {}
|
|
155528
155532
|
this.$vnode.context.innerListData = pageInfo.list;
|
|
155529
155533
|
if (this.$vnode.context.onInnerTableListDataLoaded) {
|
|
155530
155534
|
this.$vnode.context.onInnerTableListDataLoaded($scope, pageInfo);
|
|
155531
155535
|
}
|
|
155532
|
-
setTimeout(function () {
|
|
155533
|
-
var fixCol = _this5.$el.querySelector('.el-table__fixed-right');
|
|
155534
|
-
if (fixCol) {
|
|
155535
|
-
fixCol.style.width = parseInt(fixCol.style.width) - 1 + 'px';
|
|
155536
|
-
fixCol.style.height = parseInt(fixCol.style.height) - 2 + 'px';
|
|
155537
|
-
}
|
|
155538
|
-
}, 0);
|
|
155539
155536
|
},
|
|
155540
155537
|
onCloumHeaderBtnClick: function onCloumHeaderBtnClick(btn) {
|
|
155541
155538
|
if (btn.btnParams !== null) {
|
|
@@ -155545,12 +155542,12 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155545
155542
|
}
|
|
155546
155543
|
},
|
|
155547
155544
|
onBasicFormBeforeOpen: function onBasicFormBeforeOpen($scope, vo, defer) {
|
|
155548
|
-
var
|
|
155545
|
+
var _this3 = this;
|
|
155549
155546
|
this.setFormToolbarBtns($scope.canEdit);
|
|
155550
155547
|
new Promise(function (resolve, reject) {
|
|
155551
|
-
if (
|
|
155552
|
-
$scope.innerModuleInfo =
|
|
155553
|
-
|
|
155548
|
+
if (_this3.$vnode.context.onInnerFormBeforeOpen) {
|
|
155549
|
+
$scope.innerModuleInfo = _this3.moduleInfo;
|
|
155550
|
+
_this3.$vnode.context.onInnerFormBeforeOpen($scope, vo, {
|
|
155554
155551
|
resolve: resolve,
|
|
155555
155552
|
reject: reject
|
|
155556
155553
|
});
|
|
@@ -155560,11 +155557,11 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155560
155557
|
}).then(function (result) {
|
|
155561
155558
|
if (result) {
|
|
155562
155559
|
console.log($scope.moduleInfo.moduleCode + ' form before open');
|
|
155563
|
-
if ($scope.moduleInfo.formTitle)
|
|
155560
|
+
if ($scope.moduleInfo.formTitle) _this3.formTitle = $scope.moduleInfo.formTitle;
|
|
155564
155561
|
// 新增子表 打开表单
|
|
155565
|
-
var formurl =
|
|
155562
|
+
var formurl = _this3.moduleInfo.formTemplate;
|
|
155566
155563
|
if (formurl.indexOf('@/') === -1 || formurl.indexOf('dcontent') > -1) {
|
|
155567
|
-
formurl =
|
|
155564
|
+
formurl = _this3.moduleInfo.formTemplate.split('url=')[1];
|
|
155568
155565
|
formurl = formurl.replace(/\//g, '.');
|
|
155569
155566
|
formurl = '#/dcontent/vuebusiform/W/' + formurl.substring(1).replace('.html', '.vue');
|
|
155570
155567
|
formurl += '?openMode=innerTable';
|
|
@@ -155576,20 +155573,20 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155576
155573
|
formurl += '&sysCode=' + $scope.wfInstance.sysCode;
|
|
155577
155574
|
}
|
|
155578
155575
|
}
|
|
155579
|
-
|
|
155576
|
+
_this3.$options.components['BusiForm'] = _this3.$loadComponent(formurl);
|
|
155580
155577
|
var parentId = null;
|
|
155581
|
-
var parent =
|
|
155578
|
+
var parent = _this3.$vnode.context;
|
|
155582
155579
|
if (parent.vo) {
|
|
155583
155580
|
parentId = parent.vo.id;
|
|
155584
155581
|
}
|
|
155585
155582
|
if (parentId !== null && parentId !== undefined) {
|
|
155586
|
-
if (
|
|
155583
|
+
if (_this3.linkPropName === undefined || _this3.linkPropName === null) {
|
|
155587
155584
|
vo.parentId = parentId;
|
|
155588
155585
|
} else {
|
|
155589
|
-
vo[
|
|
155586
|
+
vo[_this3.linkPropName] = parentId;
|
|
155590
155587
|
}
|
|
155591
155588
|
}
|
|
155592
|
-
|
|
155589
|
+
_this3.formVo = vo;
|
|
155593
155590
|
defer.resolve(true);
|
|
155594
155591
|
} else {
|
|
155595
155592
|
defer.resolve(false);
|
|
@@ -155602,10 +155599,10 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155602
155599
|
this.setFormToolbarBtns($scope.canEdit);
|
|
155603
155600
|
},
|
|
155604
155601
|
onBasicFormBeforeSubmit: function onBasicFormBeforeSubmit($scope, vo, defer) {
|
|
155605
|
-
var
|
|
155602
|
+
var _this4 = this;
|
|
155606
155603
|
new Promise(function (resolve, reject) {
|
|
155607
|
-
if (
|
|
155608
|
-
|
|
155604
|
+
if (_this4.$vnode.context.onInnerBasicFormBeforeSubmit) {
|
|
155605
|
+
_this4.$vnode.context.onInnerBasicFormBeforeSubmit($scope, vo, {
|
|
155609
155606
|
resolve: resolve,
|
|
155610
155607
|
reject: reject
|
|
155611
155608
|
});
|
|
@@ -155626,9 +155623,9 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155626
155623
|
});
|
|
155627
155624
|
;// CONCATENATED MODULE: ./packages/ecwapp/InnerTable/src/index.vue?vue&type=script&lang=js
|
|
155628
155625
|
/* harmony default export */ var ecwapp_InnerTable_srcvue_type_script_lang_js = (InnerTable_srcvue_type_script_lang_js);
|
|
155629
|
-
// 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/InnerTable/src/index.vue?vue&type=style&index=0&id=
|
|
155630
|
-
var
|
|
155631
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/InnerTable/src/index.vue?vue&type=style&index=0&id=
|
|
155626
|
+
// 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/InnerTable/src/index.vue?vue&type=style&index=0&id=2297e85a&prod&scoped=true&lang=scss
|
|
155627
|
+
var srcvue_type_style_index_0_id_2297e85a_prod_scoped_true_lang_scss = __webpack_require__(66756);
|
|
155628
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/InnerTable/src/index.vue?vue&type=style&index=0&id=2297e85a&prod&scoped=true&lang=scss
|
|
155632
155629
|
|
|
155633
155630
|
;// CONCATENATED MODULE: ./packages/ecwapp/InnerTable/src/index.vue
|
|
155634
155631
|
|
|
@@ -155641,11 +155638,11 @@ var srcvue_type_style_index_0_id_1cbbd470_prod_scoped_true_lang_scss = __webpack
|
|
|
155641
155638
|
|
|
155642
155639
|
var InnerTable_src_component = (0,componentNormalizer/* default */.A)(
|
|
155643
155640
|
ecwapp_InnerTable_srcvue_type_script_lang_js,
|
|
155644
|
-
|
|
155645
|
-
|
|
155641
|
+
srcvue_type_template_id_2297e85a_scoped_true_render,
|
|
155642
|
+
srcvue_type_template_id_2297e85a_scoped_true_staticRenderFns,
|
|
155646
155643
|
false,
|
|
155647
155644
|
null,
|
|
155648
|
-
"
|
|
155645
|
+
"2297e85a",
|
|
155649
155646
|
null
|
|
155650
155647
|
|
|
155651
155648
|
)
|
|
@@ -172037,8 +172034,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
|
|
|
172037
172034
|
)
|
|
172038
172035
|
|
|
172039
172036
|
/* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
|
|
172040
|
-
;// 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/SubmitHandle.vue?vue&type=template&id=
|
|
172041
|
-
var
|
|
172037
|
+
;// 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/SubmitHandle.vue?vue&type=template&id=73cb65c4&scoped=true
|
|
172038
|
+
var SubmitHandlevue_type_template_id_73cb65c4_scoped_true_render = function render() {
|
|
172042
172039
|
var _vm = this,
|
|
172043
172040
|
_c = _vm._self._c;
|
|
172044
172041
|
return _c('div', {
|
|
@@ -172584,7 +172581,7 @@ var SubmitHandlevue_type_template_id_6159988c_scoped_true_render = function rend
|
|
|
172584
172581
|
attrs: {
|
|
172585
172582
|
"plain": _vm.btnType.plain,
|
|
172586
172583
|
"type": _vm.btnType.type,
|
|
172587
|
-
"disabled":
|
|
172584
|
+
"disabled": _vm.doing
|
|
172588
172585
|
},
|
|
172589
172586
|
on: {
|
|
172590
172587
|
"click": _vm.btnSubmitClick
|
|
@@ -173122,7 +173119,7 @@ var SubmitHandlevue_type_template_id_6159988c_scoped_true_render = function rend
|
|
|
173122
173119
|
},
|
|
173123
173120
|
attrs: {
|
|
173124
173121
|
"type": "primary",
|
|
173125
|
-
"disabled":
|
|
173122
|
+
"disabled": _vm.doing
|
|
173126
173123
|
},
|
|
173127
173124
|
on: {
|
|
173128
173125
|
"click": _vm.btnSubmitClick
|
|
@@ -173156,7 +173153,7 @@ var SubmitHandlevue_type_template_id_6159988c_scoped_true_render = function rend
|
|
|
173156
173153
|
}
|
|
173157
173154
|
}) : _vm._e()], 1);
|
|
173158
173155
|
};
|
|
173159
|
-
var
|
|
173156
|
+
var SubmitHandlevue_type_template_id_73cb65c4_scoped_true_staticRenderFns = [];
|
|
173160
173157
|
|
|
173161
173158
|
;// 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/WfTaskNode.vue?vue&type=template&id=71ca57eb&scoped=true
|
|
173162
173159
|
var WfTaskNodevue_type_template_id_71ca57eb_scoped_true_render = function render() {
|
|
@@ -174973,9 +174970,9 @@ function SubmitHandlevue_type_script_lang_js_toPrimitive(t, r) { if ("object" !=
|
|
|
174973
174970
|
});
|
|
174974
174971
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
|
|
174975
174972
|
/* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
|
|
174976
|
-
// 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/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
174977
|
-
var
|
|
174978
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=
|
|
174973
|
+
// 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/SubmitHandle.vue?vue&type=style&index=0&id=73cb65c4&prod&scoped=true&lang=scss
|
|
174974
|
+
var SubmitHandlevue_type_style_index_0_id_73cb65c4_prod_scoped_true_lang_scss = __webpack_require__(55431);
|
|
174975
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=73cb65c4&prod&scoped=true&lang=scss
|
|
174979
174976
|
|
|
174980
174977
|
;// CONCATENATED MODULE: ./packages/ecwapp/Wflowform/src/SubmitHandle.vue
|
|
174981
174978
|
|
|
@@ -174988,11 +174985,11 @@ var SubmitHandlevue_type_style_index_0_id_6159988c_prod_scoped_true_lang_scss =
|
|
|
174988
174985
|
|
|
174989
174986
|
var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
|
|
174990
174987
|
src_SubmitHandlevue_type_script_lang_js,
|
|
174991
|
-
|
|
174992
|
-
|
|
174988
|
+
SubmitHandlevue_type_template_id_73cb65c4_scoped_true_render,
|
|
174989
|
+
SubmitHandlevue_type_template_id_73cb65c4_scoped_true_staticRenderFns,
|
|
174993
174990
|
false,
|
|
174994
174991
|
null,
|
|
174995
|
-
"
|
|
174992
|
+
"73cb65c4",
|
|
174996
174993
|
null
|
|
174997
174994
|
|
|
174998
174995
|
)
|