ecinc-cloud-wappaio 9.6.283 → 9.6.285
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 +279 -277
- package/lib/ecwappaio.umd.js +279 -277
- package/lib/ecwappaio.umd.min.js +4 -4
- 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
|
+
/***/ 91595:
|
|
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-6dc45822]{cursor:pointer}.column_operate[data-v-6dc45822],.column_operate[data-v-6dc45822] .cell{white-space:nowrap!important;overflow:hidden!important;word-break:keep-all}.el-pagination-container[data-v-6dc45822]{text-align:right;margin-top:10px}.el-pagination-container .selected-rows[data-v-6dc45822]{float:left;color:#606266;font-size:13px;line-height:28px}.el-pagination[data-v-6dc45822]{padding-right:0;font-weight:400}.el-icon[data-v-6dc45822]:before{padding-right:3px}[data-v-6dc45822] th>.cell{word-break:keep-all;white-space:nowrap}[data-v-6dc45822] .el-table__header .is-fixed{color:#333;background-color:#f2f5fb}[data-v-6dc45822] .close-tooltip .cell{word-break:normal}[data-v-6dc45822] .el-table__body-wrapper::-webkit-scrollbar{width:6px;height:6px}[data-v-6dc45822] .el-table--scrollable-x{padding-right:2px}[data-v-6dc45822] .el-table--scrollable-x .el-table__body-wrapper{padding-bottom:2px;margin-bottom:2px;cursor:pointer}[data-v-6dc45822] .el-table--scrollable-x .el-table__body-wrapper .el-table__body{cursor:default}[data-v-6dc45822] .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:4px;background-color:hsla(220,4%,58%,.3)}[data-v-6dc45822] .el-table__body-wrapper::-webkit-scrollbar-thumb:hover{background-color:hsla(220,4%,58%,.5);margin-right:2px}#card-table[data-v-6dc45822]{padding:10px 0 10px 0}#card-table .card-item[data-v-6dc45822]{background:#f7f9ff;border-radius:2px 0 0 2px;padding:20px;margin-bottom:15px;cursor:pointer}#card-table .card-item .card-top[data-v-6dc45822]{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-6dc45822],#card-table .card-item .card-top .card-top-right[data-v-6dc45822]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#card-table .card-item .card-top .card-top-right[data-v-6dc45822]{text-align:end}#card-table .card-item .card-bottom[data-v-6dc45822]{-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-6dc45822],#card-table .card-item .card-bottom .card-bottom-left[data-v-6dc45822]{display:-webkit-box;display:-ms-flexbox;display:flex}#card-table .card-item .card-bottom .card-bottom-left .span-item[data-v-6dc45822]{margin-right:30px}#card-table .card-item .card-bottom .card-bottom-right[data-v-6dc45822]{display:-webkit-box;display:-ms-flexbox;display:flex}#card-table .card-item .card-bottom .card-bottom-right .span-item[data-v-6dc45822]{margin-left:30px}#card-table .card-item[data-v-6dc45822]:hover{background:#eef3ff}#card-table .card-item[data-v-6dc45822]:last-child{margin-bottom:0}#card-table .card-empty[data-v-6dc45822]{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-6dc45822]{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
|
|
|
@@ -134654,19 +134660,19 @@ var update = add("70a31239", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
134654
134660
|
|
|
134655
134661
|
/***/ }),
|
|
134656
134662
|
|
|
134657
|
-
/***/
|
|
134663
|
+
/***/ 95839:
|
|
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__(91595);
|
|
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("26cf28d8", 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
|
|
|
@@ -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=6dc45822&scoped=true
|
|
150490
|
+
var srcvue_type_template_id_6dc45822_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_6dc45822_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,49 @@ 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
|
+
var times = 0;
|
|
153266
|
+
var timer = setInterval(function () {
|
|
153267
|
+
console.log(times);
|
|
153268
|
+
var fixedRight = _this3.$el.querySelector('.el-table__fixed-right');
|
|
153269
|
+
if (fixedRight) {
|
|
153270
|
+
fixedRight.style.minHeight = _this3.$el.querySelector('.el-table__header').clientHeight + _this3.$el.querySelector('.el-table__body').clientHeight - 0.5 + 'px';
|
|
153271
|
+
}
|
|
153272
|
+
if (fixedRight || times++ > 20) {
|
|
153273
|
+
clearInterval(timer);
|
|
153274
|
+
}
|
|
153275
|
+
}, 100);
|
|
153276
|
+
} else {
|
|
153277
|
+
operateCols[0].fixed = null;
|
|
153278
|
+
operateCols[0].className = (operateCols[0].className || '').replace(' is-fixed', '');
|
|
153279
|
+
}
|
|
153280
|
+
this.tbColumns.splice(operateCols[0].index, 1, operateCols[0]);
|
|
153281
|
+
}
|
|
153282
|
+
}
|
|
153283
|
+
},
|
|
153237
153284
|
tableRowClassName: function tableRowClassName(_ref) {
|
|
153238
153285
|
var row = _ref.row,
|
|
153239
153286
|
rowIndex = _ref.rowIndex;
|
|
@@ -153299,10 +153346,10 @@ var PAGE_INFO = {
|
|
|
153299
153346
|
this.tableStyle = tableStyle;
|
|
153300
153347
|
},
|
|
153301
153348
|
customComponent: function customComponent(list) {
|
|
153302
|
-
var
|
|
153349
|
+
var _this4 = this;
|
|
153303
153350
|
list.forEach(function (item) {
|
|
153304
153351
|
if (item.components.indexOf('component:') > -1) {
|
|
153305
|
-
|
|
153352
|
+
_this4.$options.components['card_' + item.value] = _this4.$loadComponent(item.components.split('component:')[1]);
|
|
153306
153353
|
item.widget = 'card_' + item.value;
|
|
153307
153354
|
}
|
|
153308
153355
|
});
|
|
@@ -153346,44 +153393,44 @@ var PAGE_INFO = {
|
|
|
153346
153393
|
}
|
|
153347
153394
|
},
|
|
153348
153395
|
cardCellClick: function cardCellClick(row) {
|
|
153349
|
-
var
|
|
153396
|
+
var _this5 = this;
|
|
153350
153397
|
new Promise(function (resolve, reject) {
|
|
153351
|
-
if (
|
|
153352
|
-
if (
|
|
153353
|
-
clearTimeout(
|
|
153398
|
+
if (_this5.onCellDblclick) {
|
|
153399
|
+
if (_this5.clickTime) {
|
|
153400
|
+
clearTimeout(_this5.clickTime);
|
|
153354
153401
|
}
|
|
153355
|
-
|
|
153402
|
+
_this5.clickTime = setTimeout(function () {
|
|
153356
153403
|
resolve(true);
|
|
153357
153404
|
}, 300);
|
|
153358
153405
|
} else {
|
|
153359
153406
|
resolve(true);
|
|
153360
153407
|
}
|
|
153361
153408
|
}).then(function (result) {
|
|
153362
|
-
if (
|
|
153363
|
-
|
|
153409
|
+
if (_this5.onCellClick !== null) {
|
|
153410
|
+
_this5.onCellClick(row);
|
|
153364
153411
|
} else {
|
|
153365
|
-
if (
|
|
153366
|
-
var moduleInfo =
|
|
153412
|
+
if (_this5.moduleInfo.openViewType === '1') {
|
|
153413
|
+
var moduleInfo = _this5.moduleInfo;
|
|
153367
153414
|
moduleInfo.addNew = false;
|
|
153368
|
-
var formUrl =
|
|
153369
|
-
var innerUrl =
|
|
153415
|
+
var formUrl = _this5.moduleInfo.busiFormTemplate ? _this5.moduleInfo.busiFormTemplate : '';
|
|
153416
|
+
var innerUrl = _this5.moduleInfo.busiTabFormTabTemplate ? _this5.moduleInfo.busiTabFormTabTemplate : '';
|
|
153370
153417
|
var edit = true;
|
|
153371
|
-
if (
|
|
153372
|
-
edit = !
|
|
153418
|
+
if (_this5.operateColumnBtns.length > 0) {
|
|
153419
|
+
edit = !_this5.operateColumnBtns.some(function (item) {
|
|
153373
153420
|
return item.id.indexOf('btn_edit') > -1;
|
|
153374
153421
|
});
|
|
153375
153422
|
}
|
|
153376
153423
|
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(
|
|
153424
|
+
var busiInfo = _this5.$vnode.context.formTitle;
|
|
153425
|
+
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
153426
|
} else {
|
|
153380
|
-
|
|
153427
|
+
_this5.$bus.emit('openBusiform', _this5.moduleInfo, row, 0);
|
|
153381
153428
|
}
|
|
153382
153429
|
}
|
|
153383
153430
|
});
|
|
153384
153431
|
},
|
|
153385
153432
|
checkBtnPermission: function checkBtnPermission() {
|
|
153386
|
-
var
|
|
153433
|
+
var _this6 = this;
|
|
153387
153434
|
var _this = this;
|
|
153388
153435
|
var checkedPermission = {};
|
|
153389
153436
|
this.toolbarBtns.forEach( /*#__PURE__*/function () {
|
|
@@ -153397,7 +153444,7 @@ var PAGE_INFO = {
|
|
|
153397
153444
|
} else {
|
|
153398
153445
|
btn.btnI18nCode = btn.btnI18nCode || (btn.btnPermission || btn.id || btn.btnIcon || btn.btnName).replace('btn_', '').replace('Ids', '').replace('Object', '');
|
|
153399
153446
|
}
|
|
153400
|
-
btn.btnName =
|
|
153447
|
+
btn.btnName = _this6.$i18n.generateTitle(btn, _this6.$vnode.context);
|
|
153401
153448
|
if (!(_this.mode === 'design')) {
|
|
153402
153449
|
_context.next = 6;
|
|
153403
153450
|
break;
|
|
@@ -153425,7 +153472,7 @@ var PAGE_INFO = {
|
|
|
153425
153472
|
break;
|
|
153426
153473
|
case 13:
|
|
153427
153474
|
_context.next = 15;
|
|
153428
|
-
return
|
|
153475
|
+
return _this6.$store.dispatch('user/hasPermission', {
|
|
153429
153476
|
href: _this.$route.meta.href,
|
|
153430
153477
|
pcode: pcode
|
|
153431
153478
|
});
|
|
@@ -153474,7 +153521,7 @@ var PAGE_INFO = {
|
|
|
153474
153521
|
}
|
|
153475
153522
|
},
|
|
153476
153523
|
initTbColumns: function initTbColumns() {
|
|
153477
|
-
var
|
|
153524
|
+
var _this7 = this;
|
|
153478
153525
|
var _this = this;
|
|
153479
153526
|
this.listEdit = this.$vnode.context.formCanEdit;
|
|
153480
153527
|
var mergeColumns = [];
|
|
@@ -153497,24 +153544,26 @@ var PAGE_INFO = {
|
|
|
153497
153544
|
} else {
|
|
153498
153545
|
column.propFormatter = '';
|
|
153499
153546
|
}
|
|
153500
|
-
if (!
|
|
153547
|
+
if (!_this7.showOverflowTooltip) {
|
|
153501
153548
|
column.className = (column.className || '') + ' close-tooltip';
|
|
153502
153549
|
}
|
|
153503
153550
|
if (column.fixed === 'right' || column.fixed === 'left') {
|
|
153504
|
-
|
|
153551
|
+
if ((column.className || '').indexOf(' is-fixed') === -1) {
|
|
153552
|
+
column.className = (column.className || '') + ' is-fixed';
|
|
153553
|
+
}
|
|
153505
153554
|
} else if (column.field === 'column_operate' && (column.fixed === undefined || column.fixed === null)) {
|
|
153506
153555
|
//column.fixed = 'right'
|
|
153507
153556
|
//column.className = (column.className || '') + ' is-fixed'
|
|
153508
153557
|
} else {
|
|
153509
153558
|
column.fixed = false;
|
|
153510
153559
|
}
|
|
153511
|
-
column.title = (
|
|
153560
|
+
column.title = (_this7.$i18n.generateTitle(column, _this7) || '').trim();
|
|
153512
153561
|
var colFormater = column.propFormatter || column.elementFormatter;
|
|
153513
153562
|
if (!colFormater) colFormater = column.elementFormatter || '';
|
|
153514
153563
|
if (column.field === 'state' && column.title === '') {
|
|
153515
153564
|
column.width = '45px';
|
|
153516
153565
|
} else if (column.field === 'index') {
|
|
153517
|
-
if (
|
|
153566
|
+
if (_this7.lazyLoadRowChildren) {
|
|
153518
153567
|
column.width = '60px';
|
|
153519
153568
|
} else {
|
|
153520
153569
|
column.width = '50px';
|
|
@@ -153536,20 +153585,20 @@ var PAGE_INFO = {
|
|
|
153536
153585
|
if (!colFormater) colFormater = 'yyyy-MM-dd HH:mm:ss'; // Date类型未设置formatter,默认格式
|
|
153537
153586
|
if (colFormater.indexOf('yyyy') !== -1 && colFormater.indexOf('HH') === -1 && colFormater.indexOf('mm') === -1) {
|
|
153538
153587
|
// 包含年月日,不包含时分秒
|
|
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 =
|
|
153588
|
+
if (column.sortable && colFormater.indexOf('yyyy年') !== -1 && parseInt(column.width) < _this7.calculateNewWidth(150, uiFontSize, 'judge')) {
|
|
153589
|
+
column.width = _this7.calculateNewWidth(150, uiFontSize);
|
|
153590
|
+
} else if (column.sortable && parseInt(column.width) < _this7.calculateNewWidth(120, uiFontSize, 'judge')) {
|
|
153591
|
+
column.width = _this7.calculateNewWidth(120, uiFontSize);
|
|
153543
153592
|
}
|
|
153544
153593
|
} else if (colFormater.indexOf('yyyy') !== -1 && colFormater.indexOf('HH') !== -1 && colFormater.indexOf('ss') !== -1) {
|
|
153545
153594
|
// 包含年月日,时分秒
|
|
153546
|
-
if (column.sortable && parseInt(column.width) <
|
|
153547
|
-
column.width =
|
|
153595
|
+
if (column.sortable && parseInt(column.width) < _this7.calculateNewWidth(180, uiFontSize, 'judge')) {
|
|
153596
|
+
column.width = _this7.calculateNewWidth(180, uiFontSize);
|
|
153548
153597
|
}
|
|
153549
153598
|
} else if (colFormater.indexOf('yyyy') !== -1 && colFormater.indexOf('HH') !== -1 && colFormater.indexOf('mm') !== -1) {
|
|
153550
153599
|
// 包含年月日,时分秒
|
|
153551
|
-
if (column.sortable && parseInt(column.width) <
|
|
153552
|
-
column.width =
|
|
153600
|
+
if (column.sortable && parseInt(column.width) < _this7.calculateNewWidth(150, uiFontSize, 'judge')) {
|
|
153601
|
+
column.width = _this7.calculateNewWidth(150, uiFontSize);
|
|
153553
153602
|
}
|
|
153554
153603
|
}
|
|
153555
153604
|
} else if (/^[\u4e00-\u9fff]+$/.test(column.title)) {
|
|
@@ -153559,7 +153608,7 @@ var PAGE_INFO = {
|
|
|
153559
153608
|
column.width = '90px';
|
|
153560
153609
|
}
|
|
153561
153610
|
}
|
|
153562
|
-
if (
|
|
153611
|
+
if (_this7.isInlineEdit !== 0) {
|
|
153563
153612
|
if (column.listAdvSearchElement === 'staffDlg') {
|
|
153564
153613
|
column.staffDlg = true;
|
|
153565
153614
|
} else if (column.listAdvSearchElement === 'suborg2Dlg') {
|
|
@@ -153628,7 +153677,7 @@ var PAGE_INFO = {
|
|
|
153628
153677
|
mergeColumns.forEach(function (mergeCol) {
|
|
153629
153678
|
var subColumns = mergeCol.propFormatter.split(':')[1].split(',');
|
|
153630
153679
|
mergeCol.children = [];
|
|
153631
|
-
|
|
153680
|
+
_this7.tbColumns.forEach(function (col) {
|
|
153632
153681
|
if (subColumns.indexOf(col.field) !== -1) {
|
|
153633
153682
|
mergeCol.children.push(col);
|
|
153634
153683
|
col.isChild = 1;
|
|
@@ -153660,7 +153709,7 @@ var PAGE_INFO = {
|
|
|
153660
153709
|
this.loadListdata(searchMap, searchAndOr, customBtnVal);
|
|
153661
153710
|
},
|
|
153662
153711
|
loadListdata: function loadListdata(searchMap, searchAndOr, customBtnVal, moduleCode) {
|
|
153663
|
-
var
|
|
153712
|
+
var _this8 = this;
|
|
153664
153713
|
if (moduleCode && this.moduleInfo.moduleCode !== moduleCode) return;
|
|
153665
153714
|
var _this = this;
|
|
153666
153715
|
this.emptyText = '';
|
|
@@ -153704,51 +153753,51 @@ var PAGE_INFO = {
|
|
|
153704
153753
|
_this.setPageInfo(searchMap, searchAndOr, customBtnVal, orderBy);
|
|
153705
153754
|
_this.$app.listdata(this.moduleInfo.listDataUrl, _this.pageInfo).then(function (res) {
|
|
153706
153755
|
if (res.code === 'success') {
|
|
153707
|
-
|
|
153708
|
-
|
|
153756
|
+
_this8.pageInfo.list = [];
|
|
153757
|
+
_this8.$nextTick(function () {
|
|
153709
153758
|
var pageInfo = res.body.pageInfo;
|
|
153710
153759
|
pageInfo.orderBy = orderBy;
|
|
153711
153760
|
pageInfo.passenger = res.body.passenger;
|
|
153712
|
-
|
|
153713
|
-
|
|
153714
|
-
|
|
153715
|
-
|
|
153716
|
-
|
|
153717
|
-
if (
|
|
153761
|
+
_this8.onListDataLoaded(_this8, pageInfo);
|
|
153762
|
+
_this8.pageInfo = pageInfo;
|
|
153763
|
+
_this8.emptyText = _this8.$tx('common.noData', '暂无数据');
|
|
153764
|
+
_this8.loadingMast.close();
|
|
153765
|
+
_this8.loading = false;
|
|
153766
|
+
if (_this8.$route.meta && !_this8.moduleInfo.disableCache) {
|
|
153718
153767
|
var view = {
|
|
153719
|
-
fullPath:
|
|
153720
|
-
pageInfo:
|
|
153721
|
-
listDataUrl:
|
|
153768
|
+
fullPath: _this8.$route.fullPath,
|
|
153769
|
+
pageInfo: _this8.pageInfo,
|
|
153770
|
+
listDataUrl: _this8.moduleInfo.listDataUrl
|
|
153722
153771
|
};
|
|
153723
|
-
|
|
153772
|
+
_this8.$store.dispatch('tagsView/updateVisitedView', view);
|
|
153724
153773
|
}
|
|
153725
|
-
|
|
153726
|
-
|
|
153727
|
-
|
|
153728
|
-
|
|
153729
|
-
for (var key in
|
|
153730
|
-
|
|
153731
|
-
var item =
|
|
153774
|
+
_this8.$bus.emit('setTabFileCount');
|
|
153775
|
+
_this8.$nextTick(function () {
|
|
153776
|
+
_this8.setScrollPosition();
|
|
153777
|
+
_this8.setStyleSelectAll();
|
|
153778
|
+
for (var key in _this8.selectedAllRows) {
|
|
153779
|
+
_this8.selectedAllRows[key].forEach(function (data) {
|
|
153780
|
+
var item = _this8.$refs.listpageDataTable.data.filter(function (dataitem) {
|
|
153732
153781
|
return dataitem.id === data.id;
|
|
153733
153782
|
});
|
|
153734
153783
|
if (item.length > 0) {
|
|
153735
|
-
|
|
153784
|
+
_this8.$refs.listpageDataTable.toggleRowSelection(item[0]);
|
|
153736
153785
|
}
|
|
153737
153786
|
});
|
|
153738
153787
|
}
|
|
153739
|
-
if (
|
|
153740
|
-
|
|
153788
|
+
if (_this8.mode === 'innerTable') {
|
|
153789
|
+
_this8.$bus.emit('setSubmitSidebarHeight');
|
|
153741
153790
|
}
|
|
153742
|
-
|
|
153791
|
+
_this8.setOperateColumn();
|
|
153743
153792
|
});
|
|
153744
153793
|
});
|
|
153745
153794
|
} else {
|
|
153746
|
-
|
|
153795
|
+
_this8.$alert(res.message, _this8.$tx('common.operationTip', '操作提示'), {
|
|
153747
153796
|
type: 'error'
|
|
153748
153797
|
});
|
|
153749
|
-
|
|
153750
|
-
|
|
153751
|
-
|
|
153798
|
+
_this8.emptyText = _this8.$tx('common.noData', '暂无数据');
|
|
153799
|
+
_this8.loadingMast.close();
|
|
153800
|
+
_this8.loading = false;
|
|
153752
153801
|
}
|
|
153753
153802
|
});
|
|
153754
153803
|
},
|
|
@@ -153813,24 +153862,6 @@ var PAGE_INFO = {
|
|
|
153813
153862
|
}
|
|
153814
153863
|
}
|
|
153815
153864
|
},
|
|
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
153865
|
getParentClassNode: function getParentClassNode(element, className) {
|
|
153835
153866
|
var pNode = element.parentNode;
|
|
153836
153867
|
if (!pNode) return null;
|
|
@@ -153932,14 +153963,14 @@ var PAGE_INFO = {
|
|
|
153932
153963
|
_this.selectedRowCount = _this.selectedRows.length;
|
|
153933
153964
|
},
|
|
153934
153965
|
handleCellClick: function handleCellClick(row, column, cell, event) {
|
|
153935
|
-
var
|
|
153966
|
+
var _this9 = this;
|
|
153936
153967
|
if (!this.isInlineEdit) {
|
|
153937
153968
|
new Promise(function (resolve, reject) {
|
|
153938
|
-
if (
|
|
153939
|
-
if (
|
|
153940
|
-
clearTimeout(
|
|
153969
|
+
if (_this9.onCellDblclick) {
|
|
153970
|
+
if (_this9.clickTime) {
|
|
153971
|
+
clearTimeout(_this9.clickTime);
|
|
153941
153972
|
}
|
|
153942
|
-
|
|
153973
|
+
_this9.clickTime = setTimeout(function () {
|
|
153943
153974
|
resolve(true);
|
|
153944
153975
|
}, 300);
|
|
153945
153976
|
} else {
|
|
@@ -153947,25 +153978,25 @@ var PAGE_INFO = {
|
|
|
153947
153978
|
}
|
|
153948
153979
|
}).then(function (result) {
|
|
153949
153980
|
if (cell.className.indexOf('content-column') !== -1) {
|
|
153950
|
-
if (
|
|
153951
|
-
|
|
153981
|
+
if (_this9.onCellClick !== null) {
|
|
153982
|
+
_this9.onCellClick(row, column, cell.innerText, cell.cellIndex);
|
|
153952
153983
|
} else {
|
|
153953
|
-
if (
|
|
153954
|
-
var moduleInfo =
|
|
153984
|
+
if (_this9.moduleInfo.openViewType === '1') {
|
|
153985
|
+
var moduleInfo = _this9.moduleInfo;
|
|
153955
153986
|
moduleInfo.addNew = false;
|
|
153956
|
-
var formUrl =
|
|
153957
|
-
var innerUrl =
|
|
153987
|
+
var formUrl = _this9.moduleInfo.busiFormTemplate ? _this9.moduleInfo.busiFormTemplate : '';
|
|
153988
|
+
var innerUrl = _this9.moduleInfo.busiTabFormTabTemplate ? _this9.moduleInfo.busiTabFormTabTemplate : '';
|
|
153958
153989
|
var edit = true;
|
|
153959
|
-
if (
|
|
153960
|
-
edit = !
|
|
153990
|
+
if (_this9.operateColumnBtns.length > 0) {
|
|
153991
|
+
edit = !_this9.operateColumnBtns.some(function (item) {
|
|
153961
153992
|
return item.id.indexOf('btn_edit') > -1;
|
|
153962
153993
|
});
|
|
153963
153994
|
}
|
|
153964
153995
|
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(
|
|
153996
|
+
var busiInfo = _this9.$vnode.context.formTitle;
|
|
153997
|
+
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
153998
|
} else {
|
|
153968
|
-
|
|
153999
|
+
_this9.$bus.emit('openBusiform', _this9.moduleInfo, row, 0);
|
|
153969
154000
|
}
|
|
153970
154001
|
}
|
|
153971
154002
|
}
|
|
@@ -153996,7 +154027,7 @@ var PAGE_INFO = {
|
|
|
153996
154027
|
}
|
|
153997
154028
|
},
|
|
153998
154029
|
setColumnEnabled: function setColumnEnabled(val) {
|
|
153999
|
-
var
|
|
154030
|
+
var _this10 = this;
|
|
154000
154031
|
var enabledColums = val.join(',') + ',';
|
|
154001
154032
|
var tbColumns = JSON.parse(JSON.stringify(this.tbColumns));
|
|
154002
154033
|
tbColumns.forEach(function (column) {
|
|
@@ -154013,8 +154044,8 @@ var PAGE_INFO = {
|
|
|
154013
154044
|
}
|
|
154014
154045
|
}
|
|
154015
154046
|
this.$nextTick(function () {
|
|
154016
|
-
|
|
154017
|
-
|
|
154047
|
+
_this10.tbColumns = tbColumns;
|
|
154048
|
+
_this10.setLastColumnWidth();
|
|
154018
154049
|
});
|
|
154019
154050
|
},
|
|
154020
154051
|
// 自定义按钮点击回调事件
|
|
@@ -154027,7 +154058,7 @@ var PAGE_INFO = {
|
|
|
154027
154058
|
}
|
|
154028
154059
|
},
|
|
154029
154060
|
innerListAdd: function innerListAdd() {
|
|
154030
|
-
var
|
|
154061
|
+
var _this11 = this;
|
|
154031
154062
|
var _this = this;
|
|
154032
154063
|
if (_this.$vnode.context.$vnode.context.innerAddObject) {
|
|
154033
154064
|
_this.$vnode.context.$vnode.context.innerAddObject(_this.moduleInfo);
|
|
@@ -154040,7 +154071,7 @@ var PAGE_INFO = {
|
|
|
154040
154071
|
res.body.vo.isnew = true;
|
|
154041
154072
|
_this.pageInfo.list.push(res.body.vo);
|
|
154042
154073
|
} else {
|
|
154043
|
-
_this.$alert(res.message,
|
|
154074
|
+
_this.$alert(res.message, _this11.$tx('common.operationTip', '操作提示'), {
|
|
154044
154075
|
type: 'error'
|
|
154045
154076
|
});
|
|
154046
154077
|
}
|
|
@@ -154051,10 +154082,10 @@ var PAGE_INFO = {
|
|
|
154051
154082
|
}
|
|
154052
154083
|
},
|
|
154053
154084
|
insertList: function insertList(list) {
|
|
154054
|
-
var
|
|
154085
|
+
var _this12 = this;
|
|
154055
154086
|
if (list.length > 0) {
|
|
154056
154087
|
list.forEach(function (item) {
|
|
154057
|
-
|
|
154088
|
+
_this12.pageInfo.list.push(item);
|
|
154058
154089
|
});
|
|
154059
154090
|
this.$vnode.context.$vnode.context.innerListData = this.pageInfo.list;
|
|
154060
154091
|
} else {
|
|
@@ -154067,18 +154098,18 @@ var PAGE_INFO = {
|
|
|
154067
154098
|
this.$vnode.context.$vnode.context.innerListData = this.pageInfo.list;
|
|
154068
154099
|
},
|
|
154069
154100
|
addObject: function addObject() {
|
|
154070
|
-
var
|
|
154101
|
+
var _this13 = this;
|
|
154071
154102
|
this.innerTableBtnDisabled = true;
|
|
154072
154103
|
if (this.mode === 'inner' && this.$vnode.context.$vnode.context.vo.isnew) {
|
|
154073
154104
|
this.$bus.emit('submitBusiform', this.$vnode.context.$vnode.context.moduleInfo, function (callBack) {
|
|
154074
|
-
|
|
154075
|
-
|
|
154105
|
+
_this13.$nextTick(function () {
|
|
154106
|
+
_this13.innerTableBtnDisabled = false;
|
|
154076
154107
|
});
|
|
154077
154108
|
if (callBack) {
|
|
154078
|
-
if (
|
|
154079
|
-
|
|
154109
|
+
if (_this13.isInlineEdit !== 0) {
|
|
154110
|
+
_this13.innerListAdd();
|
|
154080
154111
|
} else {
|
|
154081
|
-
|
|
154112
|
+
_this13.$bus.emit('openBusiform', _this13.moduleInfo, null, 1);
|
|
154082
154113
|
}
|
|
154083
154114
|
}
|
|
154084
154115
|
}, 'InnerTableSave');
|
|
@@ -154088,20 +154119,20 @@ var PAGE_INFO = {
|
|
|
154088
154119
|
btnSubmitClick = this.$vnode.context.$vnode.context.$vnode.context.btnSubmitClick;
|
|
154089
154120
|
}
|
|
154090
154121
|
btnSubmitClick('AutoSave', function (saveRst) {
|
|
154091
|
-
|
|
154092
|
-
|
|
154122
|
+
_this13.$nextTick(function () {
|
|
154123
|
+
_this13.innerTableBtnDisabled = false;
|
|
154093
154124
|
});
|
|
154094
154125
|
if (saveRst) {
|
|
154095
|
-
if (
|
|
154096
|
-
|
|
154126
|
+
if (_this13.isInlineEdit !== 0) {
|
|
154127
|
+
_this13.innerListAdd();
|
|
154097
154128
|
} else {
|
|
154098
|
-
|
|
154129
|
+
_this13.$bus.emit('openBusiform', _this13.moduleInfo, null, 1);
|
|
154099
154130
|
}
|
|
154100
154131
|
}
|
|
154101
154132
|
}, 'InnerTableSave');
|
|
154102
154133
|
} else {
|
|
154103
154134
|
this.$nextTick(function () {
|
|
154104
|
-
|
|
154135
|
+
_this13.innerTableBtnDisabled = false;
|
|
154105
154136
|
});
|
|
154106
154137
|
if (this.moduleInfo.openViewType === '1') {
|
|
154107
154138
|
var formUrl = this.moduleInfo.busiFormTemplate ? this.moduleInfo.busiFormTemplate : '';
|
|
@@ -154121,7 +154152,7 @@ var PAGE_INFO = {
|
|
|
154121
154152
|
}
|
|
154122
154153
|
},
|
|
154123
154154
|
innerSave: function innerSave(row, column) {
|
|
154124
|
-
var
|
|
154155
|
+
var _this14 = this;
|
|
154125
154156
|
var requiredFiled = this.tbColumns.filter(function (item) {
|
|
154126
154157
|
return item.listTdEdit == 1 && item.listTdRequired == 1;
|
|
154127
154158
|
});
|
|
@@ -154148,9 +154179,9 @@ var PAGE_INFO = {
|
|
|
154148
154179
|
this.$app.insert(this.moduleInfo.insertUrl, row).then(function (res) {
|
|
154149
154180
|
if (res.code === 'success') {
|
|
154150
154181
|
row.isnew = false;
|
|
154151
|
-
|
|
154182
|
+
_this14.$message.success(res.message);
|
|
154152
154183
|
} else {
|
|
154153
|
-
|
|
154184
|
+
_this14.$alert(res.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
154154
154185
|
type: 'error'
|
|
154155
154186
|
});
|
|
154156
154187
|
}
|
|
@@ -154158,9 +154189,9 @@ var PAGE_INFO = {
|
|
|
154158
154189
|
} else {
|
|
154159
154190
|
this.$app.update(this.moduleInfo.updateUrl, row).then(function (res) {
|
|
154160
154191
|
if (res.code === 'success') {
|
|
154161
|
-
|
|
154192
|
+
_this14.$message.success(res.message);
|
|
154162
154193
|
} else {
|
|
154163
|
-
|
|
154194
|
+
_this14.$alert(res.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
154164
154195
|
type: 'error'
|
|
154165
154196
|
});
|
|
154166
154197
|
}
|
|
@@ -154183,7 +154214,7 @@ var PAGE_INFO = {
|
|
|
154183
154214
|
}
|
|
154184
154215
|
},
|
|
154185
154216
|
deleteIds: function deleteIds(row, column, value, index, rowIndex) {
|
|
154186
|
-
var
|
|
154217
|
+
var _this15 = this;
|
|
154187
154218
|
var ids = this.getSelectedRows(row, column, value, index);
|
|
154188
154219
|
if (ids.length === 0) {
|
|
154189
154220
|
this.$alert(this.$tx('ecwapp.DataTable.needDeleterRow', '请选择需要删除的数据。'), this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -154198,15 +154229,15 @@ var PAGE_INFO = {
|
|
|
154198
154229
|
return DataTable_srcvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
154199
154230
|
while (1) switch (_context3.prev = _context3.next) {
|
|
154200
154231
|
case 0:
|
|
154201
|
-
if (!(
|
|
154232
|
+
if (!(_this15.isInlineEdit !== 0)) {
|
|
154202
154233
|
_context3.next = 17;
|
|
154203
154234
|
break;
|
|
154204
154235
|
}
|
|
154205
|
-
if (!
|
|
154236
|
+
if (!_this15.$vnode.context.$vnode.context.deleteId) {
|
|
154206
154237
|
_context3.next = 5;
|
|
154207
154238
|
break;
|
|
154208
154239
|
}
|
|
154209
|
-
|
|
154240
|
+
_this15.$vnode.context.$vnode.context.deleteId(row, rowIndex);
|
|
154210
154241
|
_context3.next = 15;
|
|
154211
154242
|
break;
|
|
154212
154243
|
case 5:
|
|
@@ -154214,28 +154245,28 @@ var PAGE_INFO = {
|
|
|
154214
154245
|
_context3.next = 11;
|
|
154215
154246
|
break;
|
|
154216
154247
|
}
|
|
154217
|
-
|
|
154248
|
+
_this15.pageInfo.list = _this15.pageInfo.list.filter(function (item) {
|
|
154218
154249
|
return item.id !== row.id;
|
|
154219
154250
|
});
|
|
154220
|
-
|
|
154221
|
-
|
|
154251
|
+
_this15.$vnode.context.$vnode.context.innerListData = _this15.pageInfo.list;
|
|
154252
|
+
_this15.$message.success(_this15.$tx('ecwapp.Common.delSuccess', '删除成功'));
|
|
154222
154253
|
_context3.next = 15;
|
|
154223
154254
|
break;
|
|
154224
154255
|
case 11:
|
|
154225
154256
|
_context3.next = 13;
|
|
154226
|
-
return
|
|
154257
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids);
|
|
154227
154258
|
case 13:
|
|
154228
154259
|
res = _context3.sent;
|
|
154229
154260
|
if (res.code === 'success') {
|
|
154230
|
-
|
|
154231
|
-
|
|
154261
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
154262
|
+
_this15.$message({
|
|
154232
154263
|
type: res.code,
|
|
154233
154264
|
message: res.message,
|
|
154234
154265
|
showClose: true
|
|
154235
154266
|
});
|
|
154236
|
-
|
|
154267
|
+
_this15.loadListdata();
|
|
154237
154268
|
} else {
|
|
154238
|
-
|
|
154269
|
+
_this15.$alert(res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
154239
154270
|
type: 'error'
|
|
154240
154271
|
});
|
|
154241
154272
|
}
|
|
@@ -154244,19 +154275,19 @@ var PAGE_INFO = {
|
|
|
154244
154275
|
break;
|
|
154245
154276
|
case 17:
|
|
154246
154277
|
_context3.next = 19;
|
|
154247
|
-
return
|
|
154278
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids);
|
|
154248
154279
|
case 19:
|
|
154249
154280
|
_res = _context3.sent;
|
|
154250
154281
|
if (_res.code === 'success') {
|
|
154251
|
-
|
|
154252
|
-
|
|
154282
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
154283
|
+
_this15.$message({
|
|
154253
154284
|
type: _res.code,
|
|
154254
154285
|
message: _res.message,
|
|
154255
154286
|
showClose: true
|
|
154256
154287
|
});
|
|
154257
|
-
|
|
154288
|
+
_this15.loadListdata();
|
|
154258
154289
|
} else if (_res.code === 'confirm') {
|
|
154259
|
-
|
|
154290
|
+
_this15.$confirm(_res.message, _this15.$tx('common.confirmOperate', '确认操作'), {
|
|
154260
154291
|
type: 'warning'
|
|
154261
154292
|
}).then( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
154262
154293
|
var res;
|
|
@@ -154264,19 +154295,19 @@ var PAGE_INFO = {
|
|
|
154264
154295
|
while (1) switch (_context2.prev = _context2.next) {
|
|
154265
154296
|
case 0:
|
|
154266
154297
|
_context2.next = 2;
|
|
154267
|
-
return
|
|
154298
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids, true);
|
|
154268
154299
|
case 2:
|
|
154269
154300
|
res = _context2.sent;
|
|
154270
154301
|
if (res.code === 'success') {
|
|
154271
|
-
|
|
154272
|
-
|
|
154302
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
154303
|
+
_this15.$message({
|
|
154273
154304
|
type: res.code,
|
|
154274
154305
|
message: res.message,
|
|
154275
154306
|
showClose: true
|
|
154276
154307
|
});
|
|
154277
|
-
|
|
154308
|
+
_this15.loadListdata();
|
|
154278
154309
|
} else {
|
|
154279
|
-
|
|
154310
|
+
_this15.$alert(res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
154280
154311
|
type: 'error'
|
|
154281
154312
|
});
|
|
154282
154313
|
}
|
|
@@ -154291,7 +154322,7 @@ var PAGE_INFO = {
|
|
|
154291
154322
|
}
|
|
154292
154323
|
});
|
|
154293
154324
|
} else {
|
|
154294
|
-
|
|
154325
|
+
_this15.$alert(_res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
154295
154326
|
type: 'error'
|
|
154296
154327
|
});
|
|
154297
154328
|
}
|
|
@@ -154330,7 +154361,7 @@ var PAGE_INFO = {
|
|
|
154330
154361
|
return status;
|
|
154331
154362
|
},
|
|
154332
154363
|
setResPermission: function setResPermission(resEntityName, permissionCode, roleFilter) {
|
|
154333
|
-
var
|
|
154364
|
+
var _this16 = this;
|
|
154334
154365
|
var ids = [];
|
|
154335
154366
|
var errMsg = '';
|
|
154336
154367
|
var orgCode = null;
|
|
@@ -154340,11 +154371,11 @@ var PAGE_INFO = {
|
|
|
154340
154371
|
if (roleFilter === 'sysCode' || !row.orgCode) {
|
|
154341
154372
|
sysCode = row.sysCode || row.systemCode;
|
|
154342
154373
|
}
|
|
154343
|
-
if (index > 0 && row.orgCode &&
|
|
154344
|
-
errMsg =
|
|
154374
|
+
if (index > 0 && row.orgCode && _this16.selectedRows[0].orgCode !== row.orgCode) {
|
|
154375
|
+
errMsg = _this16.$tx('ecwapp.DataTable.onlyOneOrg', '只能设置同属一个机构的数据访问权限。');
|
|
154345
154376
|
}
|
|
154346
|
-
if (index > 0 && row.sysCode &&
|
|
154347
|
-
errMsg =
|
|
154377
|
+
if (index > 0 && row.sysCode && _this16.selectedRows[0].sysCode !== row.sysCode) {
|
|
154378
|
+
errMsg = _this16.$tx('ecwapp.DataTable.onlyOneProduct', '只能设置同属一个产品的数据访问权限。');
|
|
154348
154379
|
} else {
|
|
154349
154380
|
ids.push(row.id + '*' + row.orgCode + '*' + (row.sysCode || row.systemCode) + '*' + (row.sysName || row.systemName));
|
|
154350
154381
|
}
|
|
@@ -154365,7 +154396,7 @@ var PAGE_INFO = {
|
|
|
154365
154396
|
var _this = this;
|
|
154366
154397
|
this.$nextTick(function () {
|
|
154367
154398
|
var visitType = 1;
|
|
154368
|
-
if (
|
|
154399
|
+
if (_this16.selectedRows.length > 0) visitType = _this.selectedRows[0].visitType;
|
|
154369
154400
|
_this.$bus.emit('openResPermissionForm', ids, visitType, resEntityName, permissionCode, orgCode, sysCode);
|
|
154370
154401
|
});
|
|
154371
154402
|
},
|
|
@@ -154373,7 +154404,7 @@ var PAGE_INFO = {
|
|
|
154373
154404
|
* 批量导出数据项SQL脚本文件
|
|
154374
154405
|
*/
|
|
154375
154406
|
exportData: function exportData(tbName) {
|
|
154376
|
-
var
|
|
154407
|
+
var _this17 = this;
|
|
154377
154408
|
var ids = this.getSelectedRows();
|
|
154378
154409
|
if (this.pageInfo.total === 0) {
|
|
154379
154410
|
this.$alert(this.emptyText, this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -154405,7 +154436,7 @@ var PAGE_INFO = {
|
|
|
154405
154436
|
});
|
|
154406
154437
|
this.$bus.emit('openListitemDialog', this.$tx('ecwapp.DataTable.targetDatabase', '目标数据库'), dialectList, function (rst) {
|
|
154407
154438
|
if (rst.code === 'success') {
|
|
154408
|
-
|
|
154439
|
+
_this17.$http({
|
|
154409
154440
|
method: 'post',
|
|
154410
154441
|
params: {
|
|
154411
154442
|
ids: ids.join(),
|
|
@@ -154415,9 +154446,9 @@ var PAGE_INFO = {
|
|
|
154415
154446
|
url: 'base/codeGenerate/exportDataItemDbSql'
|
|
154416
154447
|
}).then(function (res) {
|
|
154417
154448
|
if (res.code === 'success') {
|
|
154418
|
-
|
|
154449
|
+
_this17.loadListdata();
|
|
154419
154450
|
var downloadUrl = '<br/>下载代码:<a href="' + "/apigw" + '/' + encodeURI(res.body.zipurl) + '" target="_blank">' + res.body.zipname + '</a>';
|
|
154420
|
-
|
|
154451
|
+
_this17.$alert(res.message + downloadUrl, _this17.$tx('common.operationTip', '操作提示'), {
|
|
154421
154452
|
type: 'success',
|
|
154422
154453
|
dangerouslyUseHTMLString: true,
|
|
154423
154454
|
callback: function callback(action) {
|
|
@@ -154427,7 +154458,7 @@ var PAGE_INFO = {
|
|
|
154427
154458
|
}
|
|
154428
154459
|
});
|
|
154429
154460
|
} else {
|
|
154430
|
-
|
|
154461
|
+
_this17.$alert(res.message, _this17.$tx('common.operationTip', '操作提示'), {
|
|
154431
154462
|
type: 'error'
|
|
154432
154463
|
});
|
|
154433
154464
|
}
|
|
@@ -154439,21 +154470,21 @@ var PAGE_INFO = {
|
|
|
154439
154470
|
* 批量导出流程表单EXCEL文件
|
|
154440
154471
|
*/
|
|
154441
154472
|
exportWform: function exportWform(filename, exportAll) {
|
|
154442
|
-
var
|
|
154473
|
+
var _this18 = this;
|
|
154443
154474
|
return DataTable_srcvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
154444
154475
|
var ids;
|
|
154445
154476
|
return DataTable_srcvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
154446
154477
|
while (1) switch (_context5.prev = _context5.next) {
|
|
154447
154478
|
case 0:
|
|
154448
|
-
ids =
|
|
154479
|
+
ids = _this18.getSelectedRows();
|
|
154449
154480
|
new Promise(function (resolve, reject) {
|
|
154450
|
-
if (
|
|
154451
|
-
|
|
154481
|
+
if (_this18.pageInfo.total === 0) {
|
|
154482
|
+
_this18.$alert(_this18.emptyText, _this18.$tx('common.operationTip', '操作提示'), {
|
|
154452
154483
|
type: 'warning'
|
|
154453
154484
|
});
|
|
154454
|
-
reject(
|
|
154485
|
+
reject(_this18.emptyText);
|
|
154455
154486
|
} else if (ids.length === 0) {
|
|
154456
|
-
|
|
154487
|
+
_this18.$confirm(_this18.$tx('ecwapp.DataTable.exportTipText', '您是否确认要导出当前列表的全部数据?<br/>如果仅需导出部分数据,请先选择或通过搜索筛选。'), _this18.$tx('common.confirmOperate', '确认操作'), {
|
|
154457
154488
|
type: 'warning',
|
|
154458
154489
|
dangerouslyUseHTMLString: true
|
|
154459
154490
|
}).then(function (res) {
|
|
@@ -154477,27 +154508,27 @@ var PAGE_INFO = {
|
|
|
154477
154508
|
pageSize: 65000,
|
|
154478
154509
|
pageNum: 1
|
|
154479
154510
|
};
|
|
154480
|
-
orderBy =
|
|
154481
|
-
reqParams.listpageId =
|
|
154482
|
-
reqParams.listpageViewUrl =
|
|
154511
|
+
orderBy = _this18.pageInfo.orderBy || _this18.moduleInfo.listDefaultOrderBy;
|
|
154512
|
+
reqParams.listpageId = _this18.moduleInfo.listpageId;
|
|
154513
|
+
reqParams.listpageViewUrl = _this18.moduleInfo.listpageViewUrl;
|
|
154483
154514
|
reqParams.orderBy = orderBy;
|
|
154484
|
-
reqParams.searchAndOr =
|
|
154485
|
-
reqParams.searchMap =
|
|
154486
|
-
if (
|
|
154487
|
-
params =
|
|
154515
|
+
reqParams.searchAndOr = _this18.searchAndOr;
|
|
154516
|
+
reqParams.searchMap = _this18.searchMap;
|
|
154517
|
+
if (_this18.mode === 'listpage' && _this18.$route.meta.params !== undefined && _this18.$route.meta.params !== null) {
|
|
154518
|
+
params = _this18.$route.meta.params.split('&');
|
|
154488
154519
|
params.forEach(function (param) {
|
|
154489
154520
|
reqParams[param.split('=')[0]] = param.split('=')[1];
|
|
154490
154521
|
});
|
|
154491
154522
|
}
|
|
154492
154523
|
_context4.next = 10;
|
|
154493
|
-
return
|
|
154524
|
+
return _this18.onListDataBeforeLoad(_this18, reqParams);
|
|
154494
154525
|
case 10:
|
|
154495
154526
|
urlsearch = reqParams.urlsearch;
|
|
154496
154527
|
delete reqParams.urlsearch;
|
|
154497
154528
|
reqParams = lib_default().stringify(reqParams);
|
|
154498
|
-
url = "/apigw" + '/' +
|
|
154499
|
-
if (
|
|
154500
|
-
url =
|
|
154529
|
+
url = "/apigw" + '/' + _this18.moduleInfo.listDataUrl.replace('listdata', 'exportdata').replace('listWfInstance', 'exportWfInstance').replace('joinListdata', 'joinExportdata');
|
|
154530
|
+
if (_this18.moduleInfo.exportDataUrl) {
|
|
154531
|
+
url = _this18.moduleInfo.exportDataUrl;
|
|
154501
154532
|
}
|
|
154502
154533
|
if (url.indexOf('?') === -1) {
|
|
154503
154534
|
url += '?' + reqParams;
|
|
@@ -154505,7 +154536,7 @@ var PAGE_INFO = {
|
|
|
154505
154536
|
url += '&' + reqParams;
|
|
154506
154537
|
}
|
|
154507
154538
|
exportCols = ''; // 只导出显示列
|
|
154508
|
-
|
|
154539
|
+
_this18.tbColumns.forEach(function (col) {
|
|
154509
154540
|
if (col.enabled || exportAll === 'true' || exportAll === true) exportCols += col.field + ',';
|
|
154510
154541
|
});
|
|
154511
154542
|
fileName = filename;
|
|
@@ -154513,8 +154544,8 @@ var PAGE_INFO = {
|
|
|
154513
154544
|
if (document.querySelector('#breadcrumb-container')) {
|
|
154514
154545
|
fileName = document.querySelector('#breadcrumb-container').innerText.replace('\r\n', '-').replace('\r', '-').replace('\n', '-');
|
|
154515
154546
|
}
|
|
154516
|
-
if (
|
|
154517
|
-
fileName += '-' +
|
|
154547
|
+
if (_this18.$route.meta.level === 4) {
|
|
154548
|
+
fileName += '-' + _this18.$route.meta.title;
|
|
154518
154549
|
}
|
|
154519
154550
|
if (!fileName) {
|
|
154520
154551
|
fileName = document.title;
|
|
@@ -154522,7 +154553,7 @@ var PAGE_INFO = {
|
|
|
154522
154553
|
}
|
|
154523
154554
|
url += '&fileName=' + encodeURI(encodeURI(fileName)) + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&exportCols=' + exportCols;
|
|
154524
154555
|
if (ids.length > 10) {
|
|
154525
|
-
|
|
154556
|
+
_this18.$http({
|
|
154526
154557
|
method: 'post',
|
|
154527
154558
|
contentType: 'application/json',
|
|
154528
154559
|
data: {
|
|
@@ -154569,7 +154600,7 @@ var PAGE_INFO = {
|
|
|
154569
154600
|
}))();
|
|
154570
154601
|
},
|
|
154571
154602
|
batchSaveAllFiles: function batchSaveAllFiles() {
|
|
154572
|
-
var
|
|
154603
|
+
var _this19 = this;
|
|
154573
154604
|
this.$bus.emit('showDoingDialog', null, false);
|
|
154574
154605
|
var orderBy = this.pageInfo.orderBy || this.moduleInfo.listDefaultOrderBy;
|
|
154575
154606
|
this.setPageInfo(this.searchMap, this.searchAndOr, null, orderBy);
|
|
@@ -154607,29 +154638,29 @@ var PAGE_INFO = {
|
|
|
154607
154638
|
var busiDataId = res.body.ids[i++];
|
|
154608
154639
|
var isLast = i === total;
|
|
154609
154640
|
if (typeof tozip === 'undefined') tozip = true;
|
|
154610
|
-
|
|
154641
|
+
_this19.$http({
|
|
154611
154642
|
method: 'post',
|
|
154612
154643
|
params: {
|
|
154613
|
-
module:
|
|
154644
|
+
module: _this19.moduleInfo.listDataUrl.split('/')[1],
|
|
154614
154645
|
dataKey: res.body.dataKey,
|
|
154615
154646
|
webTempPath: res.body.webTempPath,
|
|
154616
154647
|
busiDataId: busiDataId,
|
|
154617
154648
|
isLast: isLast,
|
|
154618
154649
|
tozip: tozip
|
|
154619
154650
|
},
|
|
154620
|
-
url:
|
|
154651
|
+
url: _this19.moduleInfo.listDataUrl.split('/')[0] + '/webForm/downloadFileToLocal'
|
|
154621
154652
|
}).then(function (res2) {
|
|
154622
154653
|
downloading = false;
|
|
154623
154654
|
if (res.code === 'success') {
|
|
154624
154655
|
if (isLast) {
|
|
154625
154656
|
clearInterval(eventid);
|
|
154626
|
-
|
|
154627
|
-
|
|
154657
|
+
_this19.$bus.emit('closeDoingDialog');
|
|
154658
|
+
_this19.loadListdata();
|
|
154628
154659
|
var downloadUrl = '<br/>下载文件:<a href="' + "/apigw" + '/' + encodeURI(res2.body.zipurl) + '" target="_blank">' + res2.body.zipname + '</a>';
|
|
154629
154660
|
if (!tozip) {
|
|
154630
154661
|
downloadUrl = '<br/>服务端文件路径:' + res2.body.filepath;
|
|
154631
154662
|
}
|
|
154632
|
-
|
|
154663
|
+
_this19.$alert(res.message + downloadUrl, _this19.$tx('common.operationTip', '操作提示'), {
|
|
154633
154664
|
type: 'success',
|
|
154634
154665
|
dangerouslyUseHTMLString: true,
|
|
154635
154666
|
callback: function callback(action) {
|
|
@@ -154639,21 +154670,21 @@ var PAGE_INFO = {
|
|
|
154639
154670
|
}
|
|
154640
154671
|
});
|
|
154641
154672
|
} else {
|
|
154642
|
-
|
|
154673
|
+
_this19.$bus.emit('showDoingDialog', '正在打包待下载文件,共' + res.body.count + '份,当前第' + i + '份', false);
|
|
154643
154674
|
}
|
|
154644
154675
|
}
|
|
154645
154676
|
});
|
|
154646
154677
|
}
|
|
154647
154678
|
}, 500);
|
|
154648
154679
|
} else {
|
|
154649
|
-
|
|
154680
|
+
_this19.$alert(res.message, _this19.$tx('common.operationTip', '操作提示'), {
|
|
154650
154681
|
type: 'error'
|
|
154651
154682
|
});
|
|
154652
154683
|
}
|
|
154653
154684
|
});
|
|
154654
154685
|
},
|
|
154655
154686
|
batchSaveFiles: function batchSaveFiles() {
|
|
154656
|
-
var
|
|
154687
|
+
var _this20 = this;
|
|
154657
154688
|
var ids = this.getSelectedRows();
|
|
154658
154689
|
if (ids.length === 0) {
|
|
154659
154690
|
this.$alert(this.$tx('ecwapp.DataTable.downloadRow', '请选择需要批量下载的数据。'), this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -154671,11 +154702,11 @@ var PAGE_INFO = {
|
|
|
154671
154702
|
},
|
|
154672
154703
|
url: url
|
|
154673
154704
|
}).then(function (res) {
|
|
154674
|
-
|
|
154705
|
+
_this20.$bus.emit('closeDoingDialog');
|
|
154675
154706
|
if (res.code === 'success') {
|
|
154676
|
-
|
|
154707
|
+
_this20.loadListdata();
|
|
154677
154708
|
var downloadUrl = '<br/>下载文件:<a href="' + "/apigw" + '/' + encodeURI(res.body.zipurl) + '" target="_blank">' + res.body.zipname + '</a>';
|
|
154678
|
-
|
|
154709
|
+
_this20.$alert(res.message + downloadUrl, _this20.$tx('common.operationTip', '操作提示'), {
|
|
154679
154710
|
type: 'success',
|
|
154680
154711
|
dangerouslyUseHTMLString: true,
|
|
154681
154712
|
callback: function callback(action) {
|
|
@@ -154685,19 +154716,19 @@ var PAGE_INFO = {
|
|
|
154685
154716
|
}
|
|
154686
154717
|
});
|
|
154687
154718
|
} else {
|
|
154688
|
-
|
|
154719
|
+
_this20.$alert(res.message, _this20.$tx('common.operationTip', '操作提示'), {
|
|
154689
154720
|
type: 'error'
|
|
154690
154721
|
});
|
|
154691
154722
|
}
|
|
154692
154723
|
});
|
|
154693
154724
|
},
|
|
154694
154725
|
decryptData: function decryptData(row, model) {
|
|
154695
|
-
var
|
|
154726
|
+
var _this21 = this;
|
|
154696
154727
|
this.$app.decryptData(row[model]).then(function (res) {
|
|
154697
154728
|
if (res.code === 'success') {
|
|
154698
|
-
|
|
154729
|
+
_this21.$set(row, model, res.body.data);
|
|
154699
154730
|
} else {
|
|
154700
|
-
|
|
154731
|
+
_this21.$alert(res.message, {
|
|
154701
154732
|
type: 'error'
|
|
154702
154733
|
});
|
|
154703
154734
|
}
|
|
@@ -154707,9 +154738,9 @@ var PAGE_INFO = {
|
|
|
154707
154738
|
});
|
|
154708
154739
|
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=script&lang=js
|
|
154709
154740
|
/* 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=
|
|
154741
|
+
// 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=6dc45822&prod&lang=scss&scoped=true
|
|
154742
|
+
var srcvue_type_style_index_0_id_6dc45822_prod_lang_scss_scoped_true = __webpack_require__(95839);
|
|
154743
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=style&index=0&id=6dc45822&prod&lang=scss&scoped=true
|
|
154713
154744
|
|
|
154714
154745
|
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue
|
|
154715
154746
|
|
|
@@ -154722,11 +154753,11 @@ var srcvue_type_style_index_0_id_0669bd3e_prod_lang_scss_scoped_true = __webpack
|
|
|
154722
154753
|
|
|
154723
154754
|
var DataTable_src_component = (0,componentNormalizer/* default */.A)(
|
|
154724
154755
|
ecwapp_DataTable_srcvue_type_script_lang_js,
|
|
154725
|
-
|
|
154726
|
-
|
|
154756
|
+
srcvue_type_template_id_6dc45822_scoped_true_render,
|
|
154757
|
+
srcvue_type_template_id_6dc45822_scoped_true_staticRenderFns,
|
|
154727
154758
|
false,
|
|
154728
154759
|
null,
|
|
154729
|
-
"
|
|
154760
|
+
"6dc45822",
|
|
154730
154761
|
null
|
|
154731
154762
|
|
|
154732
154763
|
)
|
|
@@ -155076,17 +155107,14 @@ DoingDialog_src.install = function (Vue) {
|
|
|
155076
155107
|
Vue.component(DoingDialog_src.name, DoingDialog_src);
|
|
155077
155108
|
};
|
|
155078
155109
|
/* 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
|
|
155110
|
+
;// 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
|
|
155111
|
+
var srcvue_type_template_id_2297e85a_scoped_true_render = function render() {
|
|
155081
155112
|
var _vm = this,
|
|
155082
155113
|
_c = _vm._self._c;
|
|
155083
155114
|
return _c('div', {
|
|
155084
155115
|
staticClass: "inner-app-container"
|
|
155085
155116
|
}, [_c('div', {
|
|
155086
|
-
staticClass: "inner-listpage-container"
|
|
155087
|
-
on: {
|
|
155088
|
-
"mouseup": _vm.onMouseup
|
|
155089
|
-
}
|
|
155117
|
+
staticClass: "inner-listpage-container"
|
|
155090
155118
|
}, [_vm.moduleInfo !== null ? _c('data-table', {
|
|
155091
155119
|
ref: "innerListTable",
|
|
155092
155120
|
attrs: {
|
|
@@ -155131,7 +155159,7 @@ var srcvue_type_template_id_1cbbd470_scoped_true_render = function render() {
|
|
|
155131
155159
|
}], null, false, 2019936513)
|
|
155132
155160
|
}) : _vm._e()], 1);
|
|
155133
155161
|
};
|
|
155134
|
-
var
|
|
155162
|
+
var srcvue_type_template_id_2297e85a_scoped_true_staticRenderFns = [];
|
|
155135
155163
|
|
|
155136
155164
|
;// 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
155165
|
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 +155273,6 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155245
155273
|
},
|
|
155246
155274
|
updated: function updated() {},
|
|
155247
155275
|
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
155276
|
insertPageList: function insertPageList(list) {
|
|
155259
155277
|
this.$refs.innerListTable.insertList(list);
|
|
155260
155278
|
},
|
|
@@ -155325,7 +155343,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155325
155343
|
}
|
|
155326
155344
|
},
|
|
155327
155345
|
createInnerListpage: function createInnerListpage() {
|
|
155328
|
-
var
|
|
155346
|
+
var _this2 = this;
|
|
155329
155347
|
var _this = this;
|
|
155330
155348
|
if (_this.loading) {
|
|
155331
155349
|
return;
|
|
@@ -155357,7 +155375,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155357
155375
|
tbColumns.splice(i--, 1);
|
|
155358
155376
|
}
|
|
155359
155377
|
}
|
|
155360
|
-
if (
|
|
155378
|
+
if (_this2.formCanEdit === 1 && _this2.excludeFields.indexOf('column_operate') === -1) {
|
|
155361
155379
|
tbColumns[tbColumns.length] = {
|
|
155362
155380
|
field: 'column_operate',
|
|
155363
155381
|
title: '操作',
|
|
@@ -155366,7 +155384,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155366
155384
|
valign: 'middle'
|
|
155367
155385
|
};
|
|
155368
155386
|
var toolbarBtns = JSON.parse(listpageInfo.listToolBtns);
|
|
155369
|
-
var parentVue =
|
|
155387
|
+
var parentVue = _this2.$vnode.context;
|
|
155370
155388
|
var columnHeaderBtn = toolbarBtns.filter(function (btn) {
|
|
155371
155389
|
if (btn.btnType === 'columnHeaderBtn') {
|
|
155372
155390
|
btn.btnType = 'tbheader';
|
|
@@ -155374,16 +155392,16 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155374
155392
|
}
|
|
155375
155393
|
});
|
|
155376
155394
|
for (var _i = 0; _i < toolbarBtns.length; _i++) {
|
|
155377
|
-
if (!
|
|
155395
|
+
if (!_this2.showToolbar) {
|
|
155378
155396
|
// 不显示列表右上操作按钮,把“新增”按钮显示在“操作”列表头中
|
|
155379
|
-
if (columnHeaderBtn.length === 0 && toolbarBtns[_i].btnType === 'toolbar' && toolbarBtns[_i].id === 'btn_add' &&
|
|
155397
|
+
if (columnHeaderBtn.length === 0 && toolbarBtns[_i].btnType === 'toolbar' && toolbarBtns[_i].id === 'btn_add' && _this2.canAdd !== 0) {
|
|
155380
155398
|
toolbarBtns[_i].btnType = 'tbheader';
|
|
155381
155399
|
} else if (toolbarBtns[_i].btnType !== 'column' && toolbarBtns[_i].btnType !== 'tbheader') {
|
|
155382
155400
|
toolbarBtns.splice(_i--, 1);
|
|
155383
155401
|
if (_i < 0) _i = 0;
|
|
155384
155402
|
} else if (toolbarBtns[_i].btnType === 'column') {
|
|
155385
155403
|
// 操作列只显示新增、删除
|
|
155386
|
-
if (!
|
|
155404
|
+
if (!_this2.canEdit && toolbarBtns[_i].btnPermission === 'editObject' || !_this2.canDelete && toolbarBtns[_i].btnPermission === 'deleteIds') {
|
|
155387
155405
|
toolbarBtns.splice(_i--, 1);
|
|
155388
155406
|
if (_i < 0) _i = 0;
|
|
155389
155407
|
}
|
|
@@ -155402,15 +155420,15 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155402
155420
|
btnParams = btnParams.replace(/'/g, '').split(',');
|
|
155403
155421
|
toolbarBtns[_i].btnParams = btnParams;
|
|
155404
155422
|
}
|
|
155405
|
-
toolbarBtns[_i].cloumHeaderBtnClick =
|
|
155423
|
+
toolbarBtns[_i].cloumHeaderBtnClick = _this2.onCloumHeaderBtnClick;
|
|
155406
155424
|
}
|
|
155407
155425
|
if (typeof parentVue[btnClick.split('(')[0]] === 'function') {
|
|
155408
155426
|
toolbarBtns[_i].btnClick = parentVue[btnClick.split('(')[0]];
|
|
155409
155427
|
}
|
|
155410
155428
|
}
|
|
155411
|
-
if (
|
|
155429
|
+
if (_this2.inLineEdit !== 0) {
|
|
155412
155430
|
var btnArray = [];
|
|
155413
|
-
if (
|
|
155431
|
+
if (_this2.canEdit === 1 || _this2.canEdit === true) {
|
|
155414
155432
|
btnArray.push({
|
|
155415
155433
|
btnClick: 'innerSave(row)',
|
|
155416
155434
|
btnIcon: '',
|
|
@@ -155421,7 +155439,7 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155421
155439
|
btnI18nCode: 'save'
|
|
155422
155440
|
});
|
|
155423
155441
|
}
|
|
155424
|
-
if (
|
|
155442
|
+
if (_this2.canDelete === 1 || _this2.canDelete === true) {
|
|
155425
155443
|
btnArray.push({
|
|
155426
155444
|
btnClick: 'deleteIds(row.id);',
|
|
155427
155445
|
btnIcon: '',
|
|
@@ -155492,7 +155510,6 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155492
155510
|
return parentId;
|
|
155493
155511
|
},
|
|
155494
155512
|
onListDataBeforeLoad: function onListDataBeforeLoad($scope, qparams) {
|
|
155495
|
-
var _this4 = this;
|
|
155496
155513
|
//urrsearch指定子数据筛选条件
|
|
155497
155514
|
var parentId = this.getChildDataParentId();
|
|
155498
155515
|
if (parentId !== null && parentId !== undefined) {
|
|
@@ -155514,28 +155531,13 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155514
155531
|
if (this.$vnode.context.onInnerTableListDataBeforeLoad) {
|
|
155515
155532
|
this.$vnode.context.onInnerTableListDataBeforeLoad($scope, qparams);
|
|
155516
155533
|
}
|
|
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
155534
|
},
|
|
155525
155535
|
onListDataLoaded: function onListDataLoaded($scope, pageInfo) {
|
|
155526
|
-
var _this5 = this;
|
|
155527
155536
|
if (false) {}
|
|
155528
155537
|
this.$vnode.context.innerListData = pageInfo.list;
|
|
155529
155538
|
if (this.$vnode.context.onInnerTableListDataLoaded) {
|
|
155530
155539
|
this.$vnode.context.onInnerTableListDataLoaded($scope, pageInfo);
|
|
155531
155540
|
}
|
|
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
155541
|
},
|
|
155540
155542
|
onCloumHeaderBtnClick: function onCloumHeaderBtnClick(btn) {
|
|
155541
155543
|
if (btn.btnParams !== null) {
|
|
@@ -155545,12 +155547,12 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155545
155547
|
}
|
|
155546
155548
|
},
|
|
155547
155549
|
onBasicFormBeforeOpen: function onBasicFormBeforeOpen($scope, vo, defer) {
|
|
155548
|
-
var
|
|
155550
|
+
var _this3 = this;
|
|
155549
155551
|
this.setFormToolbarBtns($scope.canEdit);
|
|
155550
155552
|
new Promise(function (resolve, reject) {
|
|
155551
|
-
if (
|
|
155552
|
-
$scope.innerModuleInfo =
|
|
155553
|
-
|
|
155553
|
+
if (_this3.$vnode.context.onInnerFormBeforeOpen) {
|
|
155554
|
+
$scope.innerModuleInfo = _this3.moduleInfo;
|
|
155555
|
+
_this3.$vnode.context.onInnerFormBeforeOpen($scope, vo, {
|
|
155554
155556
|
resolve: resolve,
|
|
155555
155557
|
reject: reject
|
|
155556
155558
|
});
|
|
@@ -155560,11 +155562,11 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155560
155562
|
}).then(function (result) {
|
|
155561
155563
|
if (result) {
|
|
155562
155564
|
console.log($scope.moduleInfo.moduleCode + ' form before open');
|
|
155563
|
-
if ($scope.moduleInfo.formTitle)
|
|
155565
|
+
if ($scope.moduleInfo.formTitle) _this3.formTitle = $scope.moduleInfo.formTitle;
|
|
155564
155566
|
// 新增子表 打开表单
|
|
155565
|
-
var formurl =
|
|
155567
|
+
var formurl = _this3.moduleInfo.formTemplate;
|
|
155566
155568
|
if (formurl.indexOf('@/') === -1 || formurl.indexOf('dcontent') > -1) {
|
|
155567
|
-
formurl =
|
|
155569
|
+
formurl = _this3.moduleInfo.formTemplate.split('url=')[1];
|
|
155568
155570
|
formurl = formurl.replace(/\//g, '.');
|
|
155569
155571
|
formurl = '#/dcontent/vuebusiform/W/' + formurl.substring(1).replace('.html', '.vue');
|
|
155570
155572
|
formurl += '?openMode=innerTable';
|
|
@@ -155576,20 +155578,20 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155576
155578
|
formurl += '&sysCode=' + $scope.wfInstance.sysCode;
|
|
155577
155579
|
}
|
|
155578
155580
|
}
|
|
155579
|
-
|
|
155581
|
+
_this3.$options.components['BusiForm'] = _this3.$loadComponent(formurl);
|
|
155580
155582
|
var parentId = null;
|
|
155581
|
-
var parent =
|
|
155583
|
+
var parent = _this3.$vnode.context;
|
|
155582
155584
|
if (parent.vo) {
|
|
155583
155585
|
parentId = parent.vo.id;
|
|
155584
155586
|
}
|
|
155585
155587
|
if (parentId !== null && parentId !== undefined) {
|
|
155586
|
-
if (
|
|
155588
|
+
if (_this3.linkPropName === undefined || _this3.linkPropName === null) {
|
|
155587
155589
|
vo.parentId = parentId;
|
|
155588
155590
|
} else {
|
|
155589
|
-
vo[
|
|
155591
|
+
vo[_this3.linkPropName] = parentId;
|
|
155590
155592
|
}
|
|
155591
155593
|
}
|
|
155592
|
-
|
|
155594
|
+
_this3.formVo = vo;
|
|
155593
155595
|
defer.resolve(true);
|
|
155594
155596
|
} else {
|
|
155595
155597
|
defer.resolve(false);
|
|
@@ -155602,10 +155604,10 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155602
155604
|
this.setFormToolbarBtns($scope.canEdit);
|
|
155603
155605
|
},
|
|
155604
155606
|
onBasicFormBeforeSubmit: function onBasicFormBeforeSubmit($scope, vo, defer) {
|
|
155605
|
-
var
|
|
155607
|
+
var _this4 = this;
|
|
155606
155608
|
new Promise(function (resolve, reject) {
|
|
155607
|
-
if (
|
|
155608
|
-
|
|
155609
|
+
if (_this4.$vnode.context.onInnerBasicFormBeforeSubmit) {
|
|
155610
|
+
_this4.$vnode.context.onInnerBasicFormBeforeSubmit($scope, vo, {
|
|
155609
155611
|
resolve: resolve,
|
|
155610
155612
|
reject: reject
|
|
155611
155613
|
});
|
|
@@ -155626,9 +155628,9 @@ function InnerTable_srcvue_type_script_lang_js_toPrimitive(t, r) { if ("object"
|
|
|
155626
155628
|
});
|
|
155627
155629
|
;// CONCATENATED MODULE: ./packages/ecwapp/InnerTable/src/index.vue?vue&type=script&lang=js
|
|
155628
155630
|
/* 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=
|
|
155631
|
+
// 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
|
|
155632
|
+
var srcvue_type_style_index_0_id_2297e85a_prod_scoped_true_lang_scss = __webpack_require__(66756);
|
|
155633
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/InnerTable/src/index.vue?vue&type=style&index=0&id=2297e85a&prod&scoped=true&lang=scss
|
|
155632
155634
|
|
|
155633
155635
|
;// CONCATENATED MODULE: ./packages/ecwapp/InnerTable/src/index.vue
|
|
155634
155636
|
|
|
@@ -155641,11 +155643,11 @@ var srcvue_type_style_index_0_id_1cbbd470_prod_scoped_true_lang_scss = __webpack
|
|
|
155641
155643
|
|
|
155642
155644
|
var InnerTable_src_component = (0,componentNormalizer/* default */.A)(
|
|
155643
155645
|
ecwapp_InnerTable_srcvue_type_script_lang_js,
|
|
155644
|
-
|
|
155645
|
-
|
|
155646
|
+
srcvue_type_template_id_2297e85a_scoped_true_render,
|
|
155647
|
+
srcvue_type_template_id_2297e85a_scoped_true_staticRenderFns,
|
|
155646
155648
|
false,
|
|
155647
155649
|
null,
|
|
155648
|
-
"
|
|
155650
|
+
"2297e85a",
|
|
155649
155651
|
null
|
|
155650
155652
|
|
|
155651
155653
|
)
|