ecinc-cloud-wappaio 9.6.539 → 9.6.541
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 +142 -149
- package/lib/ecwappaio.umd.js +142 -149
- package/lib/ecwappaio.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/ecwappaio.common.js
CHANGED
|
@@ -42256,7 +42256,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".list-border .more-btn-drop{padding:10
|
|
|
42256
42256
|
|
|
42257
42257
|
/***/ }),
|
|
42258
42258
|
|
|
42259
|
-
/***/
|
|
42259
|
+
/***/ 64326:
|
|
42260
42260
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42261
42261
|
|
|
42262
42262
|
"use strict";
|
|
@@ -42270,7 +42270,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42270
42270
|
|
|
42271
42271
|
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()));
|
|
42272
42272
|
// Module
|
|
42273
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".content-column[data-v-
|
|
42273
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".content-column[data-v-a9c1fddc]{cursor:pointer}.column_operate[data-v-a9c1fddc]{background-color:#fff}.column_operate[data-v-a9c1fddc],.column_operate[data-v-a9c1fddc] .cell{white-space:nowrap!important;overflow:hidden!important;word-break:keep-all}.el-pagination-container[data-v-a9c1fddc]{text-align:right;margin-top:10px}.el-pagination-container .selected-rows[data-v-a9c1fddc]{float:left;color:#606266;font-size:13px;line-height:28px}.el-pagination[data-v-a9c1fddc]{padding-right:0;font-weight:400}.el-icon[data-v-a9c1fddc]:before{padding-right:3px}[data-v-a9c1fddc] th>.cell{word-break:keep-all;white-space:nowrap}[data-v-a9c1fddc] .el-table__header .is-fixed{color:#333;background-color:#f2f5fb}[data-v-a9c1fddc] .close-tooltip .cell{word-break:normal}[data-v-a9c1fddc] .el-table__body-wrapper::-webkit-scrollbar{width:6px;height:6px}[data-v-a9c1fddc] .el-table--scrollable-x{padding-right:2px}[data-v-a9c1fddc] .el-table--scrollable-x .el-table__body-wrapper{padding-bottom:2px;margin-bottom:2px;cursor:pointer}[data-v-a9c1fddc] .el-table--scrollable-x .el-table__body-wrapper .el-table__body{cursor:default}[data-v-a9c1fddc] .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:4px;background-color:hsla(220,4%,58%,.3)}[data-v-a9c1fddc] .el-table__body-wrapper::-webkit-scrollbar-thumb:hover{background-color:hsla(220,4%,58%,.5);margin-right:2px}#card-table[data-v-a9c1fddc]{padding:10px 0 10px 0}#card-table .card-item[data-v-a9c1fddc]{background:#f7f9ff;border-radius:2px 0 0 2px;padding:20px;margin-bottom:15px;cursor:pointer}#card-table .card-item .card-top[data-v-a9c1fddc]{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-a9c1fddc],#card-table .card-item .card-top .card-top-right[data-v-a9c1fddc]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#card-table .card-item .card-top .card-top-right[data-v-a9c1fddc]{text-align:end}#card-table .card-item .card-bottom[data-v-a9c1fddc]{-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-a9c1fddc],#card-table .card-item .card-bottom .card-bottom-left[data-v-a9c1fddc]{display:-webkit-box;display:-ms-flexbox;display:flex}#card-table .card-item .card-bottom .card-bottom-left .span-item[data-v-a9c1fddc]{margin-right:30px}#card-table .card-item .card-bottom .card-bottom-right[data-v-a9c1fddc]{display:-webkit-box;display:-ms-flexbox;display:flex}#card-table .card-item .card-bottom .card-bottom-right .span-item[data-v-a9c1fddc]{margin-left:30px}#card-table .card-item[data-v-a9c1fddc]:hover{background:#eef3ff}#card-table .card-item[data-v-a9c1fddc]:last-child{margin-bottom:0}#card-table .card-empty[data-v-a9c1fddc]{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-a9c1fddc]{color:#999;margin-top:10px}", ""]);
|
|
42274
42274
|
// Exports
|
|
42275
42275
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
42276
42276
|
|
|
@@ -136774,19 +136774,19 @@ var update = add("28e5668b", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
136774
136774
|
|
|
136775
136775
|
/***/ }),
|
|
136776
136776
|
|
|
136777
|
-
/***/
|
|
136777
|
+
/***/ 22456:
|
|
136778
136778
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
136779
136779
|
|
|
136780
136780
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
136781
136781
|
|
|
136782
136782
|
// load the styles
|
|
136783
|
-
var content = __webpack_require__(
|
|
136783
|
+
var content = __webpack_require__(64326);
|
|
136784
136784
|
if(content.__esModule) content = content.default;
|
|
136785
136785
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
136786
136786
|
if(content.locals) module.exports = content.locals;
|
|
136787
136787
|
// add the styles to the DOM
|
|
136788
136788
|
var add = (__webpack_require__(99548)/* ["default"] */ .A)
|
|
136789
|
-
var update = add("
|
|
136789
|
+
var update = add("312e5f62", content, true, {"sourceMap":false,"shadowMode":false});
|
|
136790
136790
|
|
|
136791
136791
|
/***/ }),
|
|
136792
136792
|
|
|
@@ -153126,8 +153126,8 @@ TaskItemTypeTree.install = function (Vue) {
|
|
|
153126
153126
|
};
|
|
153127
153127
|
var BatchProcessing = BatchProcessing_src;
|
|
153128
153128
|
var BatchProcessing_TaskItemTypeTree = TaskItemTypeTree;
|
|
153129
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/DataTable/src/index.vue?vue&type=template&id=
|
|
153130
|
-
var
|
|
153129
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/DataTable/src/index.vue?vue&type=template&id=a9c1fddc&scoped=true
|
|
153130
|
+
var srcvue_type_template_id_a9c1fddc_scoped_true_render = function render() {
|
|
153131
153131
|
var _vm = this,
|
|
153132
153132
|
_c = _vm._self._c;
|
|
153133
153133
|
return _c('div', {
|
|
@@ -153193,7 +153193,7 @@ var srcvue_type_template_id_daa1b066_scoped_true_render = function render() {
|
|
|
153193
153193
|
return col.enabled;
|
|
153194
153194
|
}), function (column, index) {
|
|
153195
153195
|
return [column.checkbox ? _c('el-table-column', {
|
|
153196
|
-
key:
|
|
153196
|
+
key: column.uuid + '_checkbox',
|
|
153197
153197
|
attrs: {
|
|
153198
153198
|
"align": "center",
|
|
153199
153199
|
"type": "selection",
|
|
@@ -153203,7 +153203,7 @@ var srcvue_type_template_id_daa1b066_scoped_true_render = function render() {
|
|
|
153203
153203
|
"selectable": _vm.selectable
|
|
153204
153204
|
}
|
|
153205
153205
|
}) : column.field === 'index' ? _c('el-table-column', {
|
|
153206
|
-
key:
|
|
153206
|
+
key: column.uuid + '_index',
|
|
153207
153207
|
attrs: {
|
|
153208
153208
|
"align": "center",
|
|
153209
153209
|
"type": "index",
|
|
@@ -153219,7 +153219,7 @@ var srcvue_type_template_id_daa1b066_scoped_true_render = function render() {
|
|
|
153219
153219
|
}
|
|
153220
153220
|
}], null, true)
|
|
153221
153221
|
}) : column.field === 'column_operate' ? _c('el-table-column', {
|
|
153222
|
-
key:
|
|
153222
|
+
key: column.uuid + '_operate',
|
|
153223
153223
|
attrs: {
|
|
153224
153224
|
"label": column.title,
|
|
153225
153225
|
"align": column.align,
|
|
@@ -153280,7 +153280,7 @@ var srcvue_type_template_id_daa1b066_scoped_true_render = function render() {
|
|
|
153280
153280
|
}
|
|
153281
153281
|
}], null, true)
|
|
153282
153282
|
}) : column.children ? _c('el-table-column', {
|
|
153283
|
-
key:
|
|
153283
|
+
key: column.uuid + '_group',
|
|
153284
153284
|
attrs: {
|
|
153285
153285
|
"label": column.title,
|
|
153286
153286
|
"align": column.align,
|
|
@@ -153302,7 +153302,7 @@ var srcvue_type_template_id_daa1b066_scoped_true_render = function render() {
|
|
|
153302
153302
|
}
|
|
153303
153303
|
});
|
|
153304
153304
|
}), 1) : !column.isChild ? _c('TableColumn', {
|
|
153305
|
-
key:
|
|
153305
|
+
key: column.uuid + '_column',
|
|
153306
153306
|
attrs: {
|
|
153307
153307
|
"col-index": index,
|
|
153308
153308
|
"page-info": _vm.pageInfo,
|
|
@@ -153454,7 +153454,7 @@ var srcvue_type_template_id_daa1b066_scoped_true_render = function render() {
|
|
|
153454
153454
|
}
|
|
153455
153455
|
})], 1) : _vm._e(), _vm.showResPermission ? _c('ResPermission') : _vm._e(), _vm._t("default"), _c('DoingDialog')], 2);
|
|
153456
153456
|
};
|
|
153457
|
-
var
|
|
153457
|
+
var srcvue_type_template_id_a9c1fddc_scoped_true_staticRenderFns = [];
|
|
153458
153458
|
|
|
153459
153459
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/DataTable/src/TableColumn.vue?vue&type=template&id=35525f86&scoped=true
|
|
153460
153460
|
var TableColumnvue_type_template_id_35525f86_scoped_true_render = function render() {
|
|
@@ -155930,7 +155930,7 @@ var PAGE_INFO = {
|
|
|
155930
155930
|
innerTableBtnDisabled: false,
|
|
155931
155931
|
cardStyleSetting: {},
|
|
155932
155932
|
rememberPageSize: false,
|
|
155933
|
-
dynamicFields: false
|
|
155933
|
+
dynamicFields: false // 是否有动态扩展字段
|
|
155934
155934
|
};
|
|
155935
155935
|
},
|
|
155936
155936
|
computed: DataTable_srcvue_type_script_lang_js_objectSpread({
|
|
@@ -156010,12 +156010,12 @@ var PAGE_INFO = {
|
|
|
156010
156010
|
if (search) {
|
|
156011
156011
|
_this2.$bus.emit('newSearch', search);
|
|
156012
156012
|
setTimeout(function () {
|
|
156013
|
-
|
|
156013
|
+
// 解决上一路由页面不显示NavSearch导致搜索关键词不显示的问题
|
|
156014
156014
|
_this2.$bus.emit('newSearch', search);
|
|
156015
156015
|
}, 1100);
|
|
156016
156016
|
}
|
|
156017
156017
|
} else if (_this2.searchAndOr === 'and') {
|
|
156018
|
-
//this.$bus.emit('unfloadAdvSearch', true)
|
|
156018
|
+
// this.$bus.emit('unfloadAdvSearch', true)
|
|
156019
156019
|
_this2.$refs['search'].handleSearch(null, 'and');
|
|
156020
156020
|
_this2.$bus.emit('setAdvSearchMap', v.pageInfo.searchMap);
|
|
156021
156021
|
}
|
|
@@ -156027,7 +156027,7 @@ var PAGE_INFO = {
|
|
|
156027
156027
|
}
|
|
156028
156028
|
});
|
|
156029
156029
|
|
|
156030
|
-
|
|
156030
|
+
// 解决通过历史记录标签打开列表,工具栏按钮不刷新的问题
|
|
156031
156031
|
if (this.showToolbar) {
|
|
156032
156032
|
this.showToolbar = 0;
|
|
156033
156033
|
setTimeout(function () {
|
|
@@ -156081,7 +156081,7 @@ var PAGE_INFO = {
|
|
|
156081
156081
|
}
|
|
156082
156082
|
var times = 0;
|
|
156083
156083
|
var timer = setInterval(function () {
|
|
156084
|
-
//console.log(times)
|
|
156084
|
+
// console.log(times)
|
|
156085
156085
|
var fixedRight = _this3.$el.querySelector('.el-table__fixed-right');
|
|
156086
156086
|
if (fixedRight) {
|
|
156087
156087
|
fixedRight.style.minHeight = _this3.$el.querySelector('.el-table__header').clientHeight + _this3.$el.querySelector('.el-table__body').clientHeight - 0.5 + 'px';
|
|
@@ -156364,6 +156364,9 @@ var PAGE_INFO = {
|
|
|
156364
156364
|
uiFontSize = +Number(sessionStorage.getItem(this.loginUser.sysCode + '-' + this.loginUser.personId + '-uiFontSize'));
|
|
156365
156365
|
}
|
|
156366
156366
|
this.tbColumns.forEach(function (column) {
|
|
156367
|
+
if (!column.uuid) {
|
|
156368
|
+
column.uuid = (0,utils/* uuid */.bu)();
|
|
156369
|
+
}
|
|
156367
156370
|
if (column.enabled === undefined) column.enabled = true;
|
|
156368
156371
|
if (column.propFormatter !== undefined && column.propFormatter !== null) {
|
|
156369
156372
|
column.propFormatter = column.propFormatter.trim();
|
|
@@ -156386,8 +156389,8 @@ var PAGE_INFO = {
|
|
|
156386
156389
|
column.className = (column.className || '') + ' is-fixed';
|
|
156387
156390
|
}
|
|
156388
156391
|
} else if (column.field === 'column_operate' && (column.fixed === undefined || column.fixed === null)) {
|
|
156389
|
-
//column.fixed = 'right'
|
|
156390
|
-
//column.className = (column.className || '') + ' is-fixed'
|
|
156392
|
+
// column.fixed = 'right'
|
|
156393
|
+
// column.className = (column.className || '') + ' is-fixed'
|
|
156391
156394
|
} else {
|
|
156392
156395
|
column.fixed = false;
|
|
156393
156396
|
}
|
|
@@ -156534,7 +156537,7 @@ var PAGE_INFO = {
|
|
|
156534
156537
|
return col.enabled;
|
|
156535
156538
|
});
|
|
156536
156539
|
if (fixedWidth && showColumns.length > 1) {
|
|
156537
|
-
|
|
156540
|
+
// 所有列都设计了宽度,将最后一个非操作列设置为不限宽度
|
|
156538
156541
|
if (showColumns[showColumns.length - 1].field === 'column_operate') {
|
|
156539
156542
|
showColumns[showColumns.length - 2].minWidth = showColumns[showColumns.length - 2].width;
|
|
156540
156543
|
showColumns[showColumns.length - 2].width = '';
|
|
@@ -156753,10 +156756,10 @@ var PAGE_INFO = {
|
|
|
156753
156756
|
pClassList = pNode.getAttribute('class');
|
|
156754
156757
|
}
|
|
156755
156758
|
if (!pClassList) {
|
|
156756
|
-
|
|
156759
|
+
// 如果未找到类名数组,就是父类无类名,则再次递归
|
|
156757
156760
|
return this.getParentClassNode(pNode, className);
|
|
156758
156761
|
} else if (pClassList && pClassList.indexOf(className) < 0) {
|
|
156759
|
-
|
|
156762
|
+
// 如果父类的类名中没有预期类名,则再次递归
|
|
156760
156763
|
return this.getParentClassNode(pNode, className);
|
|
156761
156764
|
} else if (pClassList && pClassList.indexOf(className) > -1) {
|
|
156762
156765
|
return pNode;
|
|
@@ -156910,26 +156913,16 @@ var PAGE_INFO = {
|
|
|
156910
156913
|
}
|
|
156911
156914
|
},
|
|
156912
156915
|
setColumnEnabled: function setColumnEnabled(val) {
|
|
156913
|
-
var _this11 = this;
|
|
156914
156916
|
var enabledColums = val.join(',') + ',';
|
|
156915
|
-
|
|
156916
|
-
tbColumns.forEach(function (column) {
|
|
156917
|
+
this.tbColumns.forEach(function (column) {
|
|
156917
156918
|
if (enabledColums.indexOf(column.field + ',') !== -1 || column.field === 'state') {
|
|
156918
156919
|
column.enabled = true;
|
|
156919
156920
|
} else {
|
|
156920
156921
|
column.enabled = false;
|
|
156921
156922
|
}
|
|
156922
156923
|
});
|
|
156923
|
-
|
|
156924
|
-
|
|
156925
|
-
if (tbColumns.length > 1 && tbColumns[1].field === 'index') {
|
|
156926
|
-
this.tbColumns = [tbColumns[0], tbColumns[1]];
|
|
156927
|
-
}
|
|
156928
|
-
}
|
|
156929
|
-
this.$nextTick(function () {
|
|
156930
|
-
_this11.tbColumns = tbColumns;
|
|
156931
|
-
_this11.setLastColumnWidth();
|
|
156932
|
-
});
|
|
156924
|
+
this.setLastColumnWidth();
|
|
156925
|
+
this.$forceUpdate();
|
|
156933
156926
|
},
|
|
156934
156927
|
// 自定义按钮点击回调事件
|
|
156935
156928
|
selectCustomToolbar: function selectCustomToolbar(val) {
|
|
@@ -156941,7 +156934,7 @@ var PAGE_INFO = {
|
|
|
156941
156934
|
}
|
|
156942
156935
|
},
|
|
156943
156936
|
innerListAdd: function innerListAdd() {
|
|
156944
|
-
var
|
|
156937
|
+
var _this11 = this;
|
|
156945
156938
|
var _this = this;
|
|
156946
156939
|
if (_this.$vnode.context.$vnode.context.innerAddObject) {
|
|
156947
156940
|
_this.$vnode.context.$vnode.context.innerAddObject(_this.moduleInfo);
|
|
@@ -156954,7 +156947,7 @@ var PAGE_INFO = {
|
|
|
156954
156947
|
res.body.vo.isnew = true;
|
|
156955
156948
|
_this.pageInfo.list.push(res.body.vo);
|
|
156956
156949
|
} else {
|
|
156957
|
-
_this.$alert(res.message,
|
|
156950
|
+
_this.$alert(res.message, _this11.$tx('common.operationTip', '操作提示'), {
|
|
156958
156951
|
type: 'error'
|
|
156959
156952
|
});
|
|
156960
156953
|
}
|
|
@@ -156965,10 +156958,10 @@ var PAGE_INFO = {
|
|
|
156965
156958
|
}
|
|
156966
156959
|
},
|
|
156967
156960
|
insertList: function insertList(list) {
|
|
156968
|
-
var
|
|
156961
|
+
var _this12 = this;
|
|
156969
156962
|
if (list.length > 0) {
|
|
156970
156963
|
list.forEach(function (item) {
|
|
156971
|
-
|
|
156964
|
+
_this12.pageInfo.list.push(item);
|
|
156972
156965
|
});
|
|
156973
156966
|
this.$vnode.context.$vnode.context.innerListData = this.pageInfo.list;
|
|
156974
156967
|
} else {
|
|
@@ -156981,18 +156974,18 @@ var PAGE_INFO = {
|
|
|
156981
156974
|
this.$vnode.context.$vnode.context.innerListData = this.pageInfo.list;
|
|
156982
156975
|
},
|
|
156983
156976
|
addObject: function addObject() {
|
|
156984
|
-
var
|
|
156977
|
+
var _this13 = this;
|
|
156985
156978
|
this.innerTableBtnDisabled = true;
|
|
156986
156979
|
if (this.mode === 'inner' && this.$vnode.context.$vnode.context.vo.isnew) {
|
|
156987
156980
|
this.$bus.emit('submitBusiform', this.$vnode.context.$vnode.context.moduleInfo, function (callBack) {
|
|
156988
|
-
|
|
156989
|
-
|
|
156981
|
+
_this13.$nextTick(function () {
|
|
156982
|
+
_this13.innerTableBtnDisabled = false;
|
|
156990
156983
|
});
|
|
156991
156984
|
if (callBack) {
|
|
156992
|
-
if (
|
|
156993
|
-
|
|
156985
|
+
if (_this13.isInlineEdit !== 0) {
|
|
156986
|
+
_this13.innerListAdd();
|
|
156994
156987
|
} else {
|
|
156995
|
-
|
|
156988
|
+
_this13.$bus.emit('openBusiform', _this13.moduleInfo, null, 1);
|
|
156996
156989
|
}
|
|
156997
156990
|
}
|
|
156998
156991
|
}, 'InnerTableSave');
|
|
@@ -157002,20 +156995,20 @@ var PAGE_INFO = {
|
|
|
157002
156995
|
btnSubmitClick = this.$vnode.context.$vnode.context.$vnode.context.btnSubmitClick;
|
|
157003
156996
|
}
|
|
157004
156997
|
btnSubmitClick('AutoSave', function (saveRst) {
|
|
157005
|
-
|
|
157006
|
-
|
|
156998
|
+
_this13.$nextTick(function () {
|
|
156999
|
+
_this13.innerTableBtnDisabled = false;
|
|
157007
157000
|
});
|
|
157008
157001
|
if (saveRst) {
|
|
157009
|
-
if (
|
|
157010
|
-
|
|
157002
|
+
if (_this13.isInlineEdit !== 0) {
|
|
157003
|
+
_this13.innerListAdd();
|
|
157011
157004
|
} else {
|
|
157012
|
-
|
|
157005
|
+
_this13.$bus.emit('openBusiform', _this13.moduleInfo, null, 1);
|
|
157013
157006
|
}
|
|
157014
157007
|
}
|
|
157015
157008
|
}, 'InnerTableSave');
|
|
157016
157009
|
} else {
|
|
157017
157010
|
this.$nextTick(function () {
|
|
157018
|
-
|
|
157011
|
+
_this13.innerTableBtnDisabled = false;
|
|
157019
157012
|
});
|
|
157020
157013
|
if (this.moduleInfo.openViewType === '1') {
|
|
157021
157014
|
var formUrl = this.moduleInfo.busiFormTemplate ? this.moduleInfo.busiFormTemplate : '';
|
|
@@ -157035,26 +157028,26 @@ var PAGE_INFO = {
|
|
|
157035
157028
|
}
|
|
157036
157029
|
},
|
|
157037
157030
|
innerSave: function innerSave(row, column) {
|
|
157038
|
-
var
|
|
157031
|
+
var _this14 = this;
|
|
157039
157032
|
new Promise(function (resolve, reject) {
|
|
157040
|
-
if (
|
|
157033
|
+
if (_this14.$el.querySelector('.invalid-field')) {
|
|
157041
157034
|
var tooltip = document.querySelector('.el-tooltip__popper');
|
|
157042
157035
|
if (tooltip && tooltip.innerText) {
|
|
157043
|
-
|
|
157036
|
+
_this14.$alert(tooltip.innerText, _this14.$tx('common.operationTip', '操作提示'), {
|
|
157044
157037
|
type: 'warning'
|
|
157045
157038
|
});
|
|
157046
157039
|
}
|
|
157047
157040
|
resolve(false);
|
|
157048
157041
|
}
|
|
157049
|
-
var requiredFiled =
|
|
157042
|
+
var requiredFiled = _this14.tbColumns.filter(function (item) {
|
|
157050
157043
|
return item.listTdEdit == 1 && item.listTdRequired == 1;
|
|
157051
157044
|
});
|
|
157052
157045
|
if (requiredFiled.length > 0) {
|
|
157053
157046
|
for (var i = 0; i <= requiredFiled.length - 1; i++) {
|
|
157054
157047
|
if (!row[requiredFiled[i].field]) {
|
|
157055
|
-
|
|
157048
|
+
_this14.$alert(_this14.$tx('ecwapp.DataTable.requiredFiledTip', {
|
|
157056
157049
|
content: requiredFiled[i].title
|
|
157057
|
-
}, "".concat(requiredFiled[i].title, "\u662F\u5FC5\u987B\u7684")),
|
|
157050
|
+
}, "".concat(requiredFiled[i].title, "\u662F\u5FC5\u987B\u7684")), _this14.$tx('common.operationTip', '操作提示'), {
|
|
157058
157051
|
type: 'warning'
|
|
157059
157052
|
});
|
|
157060
157053
|
resolve(false);
|
|
@@ -157062,9 +157055,9 @@ var PAGE_INFO = {
|
|
|
157062
157055
|
}
|
|
157063
157056
|
}
|
|
157064
157057
|
}
|
|
157065
|
-
if (
|
|
157066
|
-
|
|
157067
|
-
|
|
157058
|
+
if (_this14.$vnode.context.$vnode.context.onInnerFormBeforeOpen) {
|
|
157059
|
+
_this14.$vnode.context.innerModuleInfo = _this14.moduleInfo;
|
|
157060
|
+
_this14.$vnode.context.$vnode.context.onInnerFormBeforeOpen(_this14.$vnode.context, row, {
|
|
157068
157061
|
resolve: resolve,
|
|
157069
157062
|
reject: reject
|
|
157070
157063
|
});
|
|
@@ -157073,27 +157066,27 @@ var PAGE_INFO = {
|
|
|
157073
157066
|
}
|
|
157074
157067
|
}).then(function (result) {
|
|
157075
157068
|
if (result) {
|
|
157076
|
-
if (
|
|
157069
|
+
if (_this14.$vnode.context.$vnode.context.innerSave) {
|
|
157077
157070
|
// 主表单重写保存方法
|
|
157078
|
-
|
|
157071
|
+
_this14.$vnode.context.$vnode.context.innerSave(row, column);
|
|
157079
157072
|
} else {
|
|
157080
157073
|
if (row.isnew) {
|
|
157081
|
-
|
|
157074
|
+
_this14.$app.insert(_this14.moduleInfo.insertUrl, row).then(function (res) {
|
|
157082
157075
|
if (res.code === 'success') {
|
|
157083
157076
|
row.isnew = false;
|
|
157084
|
-
|
|
157077
|
+
_this14.$message.success(res.message);
|
|
157085
157078
|
} else {
|
|
157086
|
-
|
|
157079
|
+
_this14.$alert(res.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
157087
157080
|
type: 'error'
|
|
157088
157081
|
});
|
|
157089
157082
|
}
|
|
157090
157083
|
});
|
|
157091
157084
|
} else {
|
|
157092
|
-
|
|
157085
|
+
_this14.$app.update(_this14.moduleInfo.updateUrl, row).then(function (res) {
|
|
157093
157086
|
if (res.code === 'success') {
|
|
157094
|
-
|
|
157087
|
+
_this14.$message.success(res.message);
|
|
157095
157088
|
} else {
|
|
157096
|
-
|
|
157089
|
+
_this14.$alert(res.message, _this14.$tx('common.operationTip', '操作提示'), {
|
|
157097
157090
|
type: 'error'
|
|
157098
157091
|
});
|
|
157099
157092
|
}
|
|
@@ -157117,7 +157110,7 @@ var PAGE_INFO = {
|
|
|
157117
157110
|
}
|
|
157118
157111
|
},
|
|
157119
157112
|
deleteIds: function deleteIds(row, column, value, index, rowIndex) {
|
|
157120
|
-
var
|
|
157113
|
+
var _this15 = this;
|
|
157121
157114
|
var ids = this.getSelectedRows(row, column, value, index);
|
|
157122
157115
|
if (ids.length === 0) {
|
|
157123
157116
|
this.$alert(this.$tx('ecwapp.DataTable.needDeleterRow', '请选择需要删除的数据。'), this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -157132,15 +157125,15 @@ var PAGE_INFO = {
|
|
|
157132
157125
|
return DataTable_srcvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
157133
157126
|
while (1) switch (_context3.prev = _context3.next) {
|
|
157134
157127
|
case 0:
|
|
157135
|
-
if (!(
|
|
157128
|
+
if (!(_this15.isInlineEdit !== 0)) {
|
|
157136
157129
|
_context3.next = 17;
|
|
157137
157130
|
break;
|
|
157138
157131
|
}
|
|
157139
|
-
if (!
|
|
157132
|
+
if (!_this15.$vnode.context.$vnode.context.deleteId) {
|
|
157140
157133
|
_context3.next = 5;
|
|
157141
157134
|
break;
|
|
157142
157135
|
}
|
|
157143
|
-
|
|
157136
|
+
_this15.$vnode.context.$vnode.context.deleteId(row, rowIndex);
|
|
157144
157137
|
_context3.next = 15;
|
|
157145
157138
|
break;
|
|
157146
157139
|
case 5:
|
|
@@ -157148,28 +157141,28 @@ var PAGE_INFO = {
|
|
|
157148
157141
|
_context3.next = 11;
|
|
157149
157142
|
break;
|
|
157150
157143
|
}
|
|
157151
|
-
|
|
157144
|
+
_this15.pageInfo.list = _this15.pageInfo.list.filter(function (item) {
|
|
157152
157145
|
return item.id !== row.id;
|
|
157153
157146
|
});
|
|
157154
|
-
|
|
157155
|
-
|
|
157147
|
+
_this15.$vnode.context.$vnode.context.innerListData = _this15.pageInfo.list;
|
|
157148
|
+
_this15.$message.success(_this15.$tx('ecwapp.Common.delSuccess', '删除成功'));
|
|
157156
157149
|
_context3.next = 15;
|
|
157157
157150
|
break;
|
|
157158
157151
|
case 11:
|
|
157159
157152
|
_context3.next = 13;
|
|
157160
|
-
return
|
|
157153
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids);
|
|
157161
157154
|
case 13:
|
|
157162
157155
|
res = _context3.sent;
|
|
157163
157156
|
if (res.code === 'success') {
|
|
157164
|
-
|
|
157165
|
-
|
|
157157
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
157158
|
+
_this15.$message({
|
|
157166
157159
|
type: res.code,
|
|
157167
157160
|
message: res.message,
|
|
157168
157161
|
showClose: true
|
|
157169
157162
|
});
|
|
157170
|
-
|
|
157163
|
+
_this15.loadListdata();
|
|
157171
157164
|
} else {
|
|
157172
|
-
|
|
157165
|
+
_this15.$alert(res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
157173
157166
|
type: 'error'
|
|
157174
157167
|
});
|
|
157175
157168
|
}
|
|
@@ -157178,19 +157171,19 @@ var PAGE_INFO = {
|
|
|
157178
157171
|
break;
|
|
157179
157172
|
case 17:
|
|
157180
157173
|
_context3.next = 19;
|
|
157181
|
-
return
|
|
157174
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids);
|
|
157182
157175
|
case 19:
|
|
157183
157176
|
_res = _context3.sent;
|
|
157184
157177
|
if (_res.code === 'success') {
|
|
157185
|
-
|
|
157186
|
-
|
|
157178
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
157179
|
+
_this15.$message({
|
|
157187
157180
|
type: _res.code,
|
|
157188
157181
|
message: _res.message,
|
|
157189
157182
|
showClose: true
|
|
157190
157183
|
});
|
|
157191
|
-
|
|
157184
|
+
_this15.loadListdata();
|
|
157192
157185
|
} else if (_res.code === 'confirm') {
|
|
157193
|
-
|
|
157186
|
+
_this15.$confirm(_res.message, _this15.$tx('common.confirmOperate', '确认操作'), {
|
|
157194
157187
|
type: 'warning'
|
|
157195
157188
|
}).then( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_regeneratorRuntime().mark(function _callee2() {
|
|
157196
157189
|
var res;
|
|
@@ -157198,19 +157191,19 @@ var PAGE_INFO = {
|
|
|
157198
157191
|
while (1) switch (_context2.prev = _context2.next) {
|
|
157199
157192
|
case 0:
|
|
157200
157193
|
_context2.next = 2;
|
|
157201
|
-
return
|
|
157194
|
+
return _this15.$app.deleteByIds(_this15.moduleInfo.delUrl, ids, true);
|
|
157202
157195
|
case 2:
|
|
157203
157196
|
res = _context2.sent;
|
|
157204
157197
|
if (res.code === 'success') {
|
|
157205
|
-
|
|
157206
|
-
|
|
157198
|
+
_this15.onDeleteSuccessed(_this15, ids);
|
|
157199
|
+
_this15.$message({
|
|
157207
157200
|
type: res.code,
|
|
157208
157201
|
message: res.message,
|
|
157209
157202
|
showClose: true
|
|
157210
157203
|
});
|
|
157211
|
-
|
|
157204
|
+
_this15.loadListdata();
|
|
157212
157205
|
} else {
|
|
157213
|
-
|
|
157206
|
+
_this15.$alert(res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
157214
157207
|
type: 'error'
|
|
157215
157208
|
});
|
|
157216
157209
|
}
|
|
@@ -157225,7 +157218,7 @@ var PAGE_INFO = {
|
|
|
157225
157218
|
}
|
|
157226
157219
|
});
|
|
157227
157220
|
} else {
|
|
157228
|
-
|
|
157221
|
+
_this15.$alert(_res.message, _this15.$tx('common.operationTip', '操作提示'), {
|
|
157229
157222
|
type: 'error'
|
|
157230
157223
|
});
|
|
157231
157224
|
}
|
|
@@ -157264,7 +157257,7 @@ var PAGE_INFO = {
|
|
|
157264
157257
|
return status;
|
|
157265
157258
|
},
|
|
157266
157259
|
setResPermission: function setResPermission(resEntityName, permissionCode, roleFilter) {
|
|
157267
|
-
var
|
|
157260
|
+
var _this16 = this;
|
|
157268
157261
|
var ids = [];
|
|
157269
157262
|
var errMsg = '';
|
|
157270
157263
|
var orgCode = null;
|
|
@@ -157274,11 +157267,11 @@ var PAGE_INFO = {
|
|
|
157274
157267
|
if (roleFilter === 'sysCode' || !row.orgCode) {
|
|
157275
157268
|
sysCode = row.sysCode || row.systemCode;
|
|
157276
157269
|
}
|
|
157277
|
-
if (index > 0 && row.orgCode &&
|
|
157278
|
-
errMsg =
|
|
157270
|
+
if (index > 0 && row.orgCode && _this16.selectedRows[0].orgCode !== row.orgCode) {
|
|
157271
|
+
errMsg = _this16.$tx('ecwapp.DataTable.onlyOneOrg', '只能设置同属一个机构的数据访问权限。');
|
|
157279
157272
|
}
|
|
157280
|
-
if (index > 0 && row.sysCode &&
|
|
157281
|
-
errMsg =
|
|
157273
|
+
if (index > 0 && row.sysCode && _this16.selectedRows[0].sysCode !== row.sysCode) {
|
|
157274
|
+
errMsg = _this16.$tx('ecwapp.DataTable.onlyOneProduct', '只能设置同属一个产品的数据访问权限。');
|
|
157282
157275
|
} else {
|
|
157283
157276
|
ids.push(row.id + '*' + row.orgCode + '*' + (row.sysCode || row.systemCode) + '*' + (row.sysName || row.systemName));
|
|
157284
157277
|
}
|
|
@@ -157299,7 +157292,7 @@ var PAGE_INFO = {
|
|
|
157299
157292
|
var _this = this;
|
|
157300
157293
|
this.$nextTick(function () {
|
|
157301
157294
|
var visitType = 1;
|
|
157302
|
-
if (
|
|
157295
|
+
if (_this16.selectedRows.length > 0) visitType = _this.selectedRows[0].visitType;
|
|
157303
157296
|
_this.$bus.emit('openResPermissionForm', ids, visitType, resEntityName, permissionCode, orgCode, sysCode);
|
|
157304
157297
|
});
|
|
157305
157298
|
},
|
|
@@ -157307,7 +157300,7 @@ var PAGE_INFO = {
|
|
|
157307
157300
|
* 批量导出数据项SQL脚本文件
|
|
157308
157301
|
*/
|
|
157309
157302
|
exportData: function exportData(tbName) {
|
|
157310
|
-
var
|
|
157303
|
+
var _this17 = this;
|
|
157311
157304
|
var ids = this.getSelectedRows();
|
|
157312
157305
|
if (this.pageInfo.total === 0) {
|
|
157313
157306
|
this.$alert(this.emptyText, this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -157339,7 +157332,7 @@ var PAGE_INFO = {
|
|
|
157339
157332
|
});
|
|
157340
157333
|
this.$bus.emit('openListitemDialog', this.$tx('ecwapp.DataTable.targetDatabase', '目标数据库'), dialectList, function (rst) {
|
|
157341
157334
|
if (rst.code === 'success') {
|
|
157342
|
-
|
|
157335
|
+
_this17.$http({
|
|
157343
157336
|
method: 'post',
|
|
157344
157337
|
params: {
|
|
157345
157338
|
ids: ids.join(),
|
|
@@ -157349,9 +157342,9 @@ var PAGE_INFO = {
|
|
|
157349
157342
|
url: 'base/codeGenerate/exportDataItemDbSql'
|
|
157350
157343
|
}).then(function (res) {
|
|
157351
157344
|
if (res.code === 'success') {
|
|
157352
|
-
|
|
157345
|
+
_this17.loadListdata();
|
|
157353
157346
|
var downloadUrl = '<br/>下载代码:<a href="' + "/apigw" + '/' + encodeURI(res.body.zipurl) + '" target="_blank">' + res.body.zipname + '</a>';
|
|
157354
|
-
|
|
157347
|
+
_this17.$alert(res.message + downloadUrl, _this17.$tx('common.operationTip', '操作提示'), {
|
|
157355
157348
|
type: 'success',
|
|
157356
157349
|
dangerouslyUseHTMLString: true,
|
|
157357
157350
|
callback: function callback(action) {
|
|
@@ -157361,7 +157354,7 @@ var PAGE_INFO = {
|
|
|
157361
157354
|
}
|
|
157362
157355
|
});
|
|
157363
157356
|
} else {
|
|
157364
|
-
|
|
157357
|
+
_this17.$alert(res.message, _this17.$tx('common.operationTip', '操作提示'), {
|
|
157365
157358
|
type: 'error'
|
|
157366
157359
|
});
|
|
157367
157360
|
}
|
|
@@ -157373,21 +157366,21 @@ var PAGE_INFO = {
|
|
|
157373
157366
|
* 批量导出流程表单EXCEL文件
|
|
157374
157367
|
*/
|
|
157375
157368
|
exportWform: function exportWform(filename, exportAll) {
|
|
157376
|
-
var
|
|
157369
|
+
var _this18 = this;
|
|
157377
157370
|
return DataTable_srcvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/DataTable_srcvue_type_script_lang_js_regeneratorRuntime().mark(function _callee5() {
|
|
157378
157371
|
var ids;
|
|
157379
157372
|
return DataTable_srcvue_type_script_lang_js_regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
157380
157373
|
while (1) switch (_context5.prev = _context5.next) {
|
|
157381
157374
|
case 0:
|
|
157382
|
-
ids =
|
|
157375
|
+
ids = _this18.getSelectedRows();
|
|
157383
157376
|
new Promise(function (resolve, reject) {
|
|
157384
|
-
if (
|
|
157385
|
-
|
|
157377
|
+
if (_this18.pageInfo.total === 0) {
|
|
157378
|
+
_this18.$alert(_this18.emptyText, _this18.$tx('common.operationTip', '操作提示'), {
|
|
157386
157379
|
type: 'warning'
|
|
157387
157380
|
});
|
|
157388
|
-
reject(
|
|
157381
|
+
reject(_this18.emptyText);
|
|
157389
157382
|
} else if (ids.length === 0) {
|
|
157390
|
-
|
|
157383
|
+
_this18.$confirm(_this18.$tx('ecwapp.DataTable.exportTipText', '您是否确认要导出当前列表的全部数据?<br/>如果仅需导出部分数据,请先选择或通过搜索筛选。'), _this18.$tx('common.confirmOperate', '确认操作'), {
|
|
157391
157384
|
type: 'warning',
|
|
157392
157385
|
dangerouslyUseHTMLString: true
|
|
157393
157386
|
}).then(function (res) {
|
|
@@ -157411,27 +157404,27 @@ var PAGE_INFO = {
|
|
|
157411
157404
|
pageSize: 65000,
|
|
157412
157405
|
pageNum: 1
|
|
157413
157406
|
};
|
|
157414
|
-
orderBy =
|
|
157415
|
-
reqParams.listpageId =
|
|
157416
|
-
reqParams.listpageViewUrl =
|
|
157407
|
+
orderBy = _this18.pageInfo.orderBy || _this18.moduleInfo.listDefaultOrderBy;
|
|
157408
|
+
reqParams.listpageId = _this18.moduleInfo.listpageId;
|
|
157409
|
+
reqParams.listpageViewUrl = _this18.moduleInfo.listpageViewUrl;
|
|
157417
157410
|
reqParams.orderBy = orderBy;
|
|
157418
|
-
reqParams.searchAndOr =
|
|
157419
|
-
reqParams.searchMap =
|
|
157420
|
-
if (
|
|
157421
|
-
params =
|
|
157411
|
+
reqParams.searchAndOr = _this18.searchAndOr;
|
|
157412
|
+
reqParams.searchMap = _this18.searchMap;
|
|
157413
|
+
if (_this18.mode === 'listpage' && _this18.$route.meta.params !== undefined && _this18.$route.meta.params !== null) {
|
|
157414
|
+
params = _this18.$route.meta.params.split('&');
|
|
157422
157415
|
params.forEach(function (param) {
|
|
157423
157416
|
reqParams[param.split('=')[0]] = param.split('=')[1];
|
|
157424
157417
|
});
|
|
157425
157418
|
}
|
|
157426
157419
|
_context4.next = 10;
|
|
157427
|
-
return
|
|
157420
|
+
return _this18.onListDataBeforeLoad(_this18, reqParams);
|
|
157428
157421
|
case 10:
|
|
157429
157422
|
urlsearch = reqParams.urlsearch;
|
|
157430
157423
|
delete reqParams.urlsearch;
|
|
157431
157424
|
reqParams = lib_default().stringify(reqParams);
|
|
157432
|
-
url = "/apigw" + '/' +
|
|
157433
|
-
if (
|
|
157434
|
-
url =
|
|
157425
|
+
url = "/apigw" + '/' + _this18.moduleInfo.listDataUrl.replace('listdata', 'exportdata').replace('listWfInstance', 'exportWfInstance').replace('joinListdata', 'joinExportdata');
|
|
157426
|
+
if (_this18.moduleInfo.exportDataUrl) {
|
|
157427
|
+
url = _this18.moduleInfo.exportDataUrl;
|
|
157435
157428
|
}
|
|
157436
157429
|
if (url.indexOf('?') === -1) {
|
|
157437
157430
|
url += '?' + reqParams;
|
|
@@ -157439,7 +157432,7 @@ var PAGE_INFO = {
|
|
|
157439
157432
|
url += '&' + reqParams;
|
|
157440
157433
|
}
|
|
157441
157434
|
exportCols = ''; // 只导出显示列
|
|
157442
|
-
|
|
157435
|
+
_this18.tbColumns.forEach(function (col) {
|
|
157443
157436
|
if (col.enabled || exportAll === 'true' || exportAll === true) exportCols += col.field + ',';
|
|
157444
157437
|
});
|
|
157445
157438
|
fileName = filename;
|
|
@@ -157447,8 +157440,8 @@ var PAGE_INFO = {
|
|
|
157447
157440
|
if (document.querySelector('#breadcrumb-container')) {
|
|
157448
157441
|
fileName = document.querySelector('#breadcrumb-container').innerText.replace('\r\n', '-').replace('\r', '-').replace('\n', '-');
|
|
157449
157442
|
}
|
|
157450
|
-
if (
|
|
157451
|
-
fileName += '-' +
|
|
157443
|
+
if (_this18.$route.meta.level === 4) {
|
|
157444
|
+
fileName += '-' + _this18.$route.meta.title;
|
|
157452
157445
|
}
|
|
157453
157446
|
if (!fileName) {
|
|
157454
157447
|
fileName = document.title;
|
|
@@ -157456,7 +157449,7 @@ var PAGE_INFO = {
|
|
|
157456
157449
|
}
|
|
157457
157450
|
url += '&fileName=' + encodeURI(encodeURI(fileName)) + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken() + '&exportCols=' + exportCols;
|
|
157458
157451
|
if (ids.length > 10) {
|
|
157459
|
-
|
|
157452
|
+
_this18.$http({
|
|
157460
157453
|
method: 'post',
|
|
157461
157454
|
contentType: 'application/json',
|
|
157462
157455
|
data: {
|
|
@@ -157503,7 +157496,7 @@ var PAGE_INFO = {
|
|
|
157503
157496
|
}))();
|
|
157504
157497
|
},
|
|
157505
157498
|
batchSaveAllFiles: function batchSaveAllFiles(tozip) {
|
|
157506
|
-
var
|
|
157499
|
+
var _this19 = this;
|
|
157507
157500
|
this.$bus.emit('showDoingDialog', null, false);
|
|
157508
157501
|
var orderBy = this.pageInfo.orderBy || this.moduleInfo.listDefaultOrderBy;
|
|
157509
157502
|
this.setPageInfo(this.searchMap, this.searchAndOr, null, orderBy);
|
|
@@ -157513,7 +157506,7 @@ var PAGE_INFO = {
|
|
|
157513
157506
|
delete param.busiformFields;
|
|
157514
157507
|
var ids = this.getSelectedRows();
|
|
157515
157508
|
if (ids && ids.length > 0) {
|
|
157516
|
-
|
|
157509
|
+
// 选择下载,服务端打包生成zip
|
|
157517
157510
|
tozip = true;
|
|
157518
157511
|
if (param.urlsearch) {
|
|
157519
157512
|
param.urlsearch += ';id in ' + ids.join(',');
|
|
@@ -157521,7 +157514,7 @@ var PAGE_INFO = {
|
|
|
157521
157514
|
param.urlsearch += 'id in ' + ids.join(',');
|
|
157522
157515
|
}
|
|
157523
157516
|
} else {
|
|
157524
|
-
|
|
157517
|
+
// 下载全部,服务端默认不打包zip
|
|
157525
157518
|
if (typeof tozip === 'undefined') tozip = false;
|
|
157526
157519
|
}
|
|
157527
157520
|
var url = this.moduleInfo.listDataUrl.split('/')[0] + '/webForm/findBatchDownloadFiles?module=' + this.moduleInfo.listDataUrl.split('/')[1];
|
|
@@ -157542,29 +157535,29 @@ var PAGE_INFO = {
|
|
|
157542
157535
|
downloading = true;
|
|
157543
157536
|
var busiDataId = res.body.ids[i++];
|
|
157544
157537
|
var isLast = i === total;
|
|
157545
|
-
|
|
157538
|
+
_this19.$http({
|
|
157546
157539
|
method: 'post',
|
|
157547
157540
|
params: {
|
|
157548
|
-
module:
|
|
157541
|
+
module: _this19.moduleInfo.listDataUrl.split('/')[1],
|
|
157549
157542
|
dataKey: res.body.dataKey,
|
|
157550
157543
|
webTempPath: res.body.webTempPath,
|
|
157551
157544
|
busiDataId: busiDataId,
|
|
157552
157545
|
isLast: isLast,
|
|
157553
157546
|
tozip: tozip
|
|
157554
157547
|
},
|
|
157555
|
-
url:
|
|
157548
|
+
url: _this19.moduleInfo.listDataUrl.split('/')[0] + '/webForm/downloadFileToLocal'
|
|
157556
157549
|
}).then(function (res2) {
|
|
157557
157550
|
downloading = false;
|
|
157558
157551
|
if (res.code === 'success') {
|
|
157559
157552
|
if (isLast) {
|
|
157560
157553
|
clearInterval(eventid);
|
|
157561
|
-
|
|
157562
|
-
|
|
157554
|
+
_this19.$bus.emit('closeDoingDialog');
|
|
157555
|
+
_this19.loadListdata();
|
|
157563
157556
|
var downloadUrl = '<br/>下载文件:<a href="' + "/apigw" + '/' + encodeURI(res2.body.zipurl) + '" target="_blank">' + res2.body.zipname + '</a>';
|
|
157564
157557
|
if (!res2.body.zipurl) {
|
|
157565
157558
|
downloadUrl = '<br/>服务端文件路径:' + res2.body.filepath;
|
|
157566
157559
|
}
|
|
157567
|
-
|
|
157560
|
+
_this19.$alert(res.message + downloadUrl, _this19.$tx('common.operationTip', '操作提示'), {
|
|
157568
157561
|
type: 'success',
|
|
157569
157562
|
dangerouslyUseHTMLString: true,
|
|
157570
157563
|
callback: function callback(action) {
|
|
@@ -157574,21 +157567,21 @@ var PAGE_INFO = {
|
|
|
157574
157567
|
}
|
|
157575
157568
|
});
|
|
157576
157569
|
} else {
|
|
157577
|
-
|
|
157570
|
+
_this19.$bus.emit('showDoingDialog', '正在打包待下载文件,共' + res.body.count + '份,当前第' + i + '份', false);
|
|
157578
157571
|
}
|
|
157579
157572
|
}
|
|
157580
157573
|
});
|
|
157581
157574
|
}
|
|
157582
157575
|
}, 500);
|
|
157583
157576
|
} else {
|
|
157584
|
-
|
|
157577
|
+
_this19.$alert(res.message, _this19.$tx('common.operationTip', '操作提示'), {
|
|
157585
157578
|
type: 'error'
|
|
157586
157579
|
});
|
|
157587
157580
|
}
|
|
157588
157581
|
});
|
|
157589
157582
|
},
|
|
157590
157583
|
batchSaveFiles: function batchSaveFiles() {
|
|
157591
|
-
var
|
|
157584
|
+
var _this20 = this;
|
|
157592
157585
|
var ids = this.getSelectedRows();
|
|
157593
157586
|
if (ids.length === 0) {
|
|
157594
157587
|
this.$alert(this.$tx('ecwapp.DataTable.downloadRow', '请选择需要批量下载的数据。'), this.$tx('common.operationTip', '操作提示'), {
|
|
@@ -157606,11 +157599,11 @@ var PAGE_INFO = {
|
|
|
157606
157599
|
},
|
|
157607
157600
|
url: url
|
|
157608
157601
|
}).then(function (res) {
|
|
157609
|
-
|
|
157602
|
+
_this20.$bus.emit('closeDoingDialog');
|
|
157610
157603
|
if (res.code === 'success') {
|
|
157611
|
-
|
|
157604
|
+
_this20.loadListdata();
|
|
157612
157605
|
var downloadUrl = '<br/>下载文件:<a href="' + "/apigw" + '/' + encodeURI(res.body.zipurl) + '" target="_blank">' + res.body.zipname + '</a>';
|
|
157613
|
-
|
|
157606
|
+
_this20.$alert(res.message + downloadUrl, _this20.$tx('common.operationTip', '操作提示'), {
|
|
157614
157607
|
type: 'success',
|
|
157615
157608
|
dangerouslyUseHTMLString: true,
|
|
157616
157609
|
callback: function callback(action) {
|
|
@@ -157620,19 +157613,19 @@ var PAGE_INFO = {
|
|
|
157620
157613
|
}
|
|
157621
157614
|
});
|
|
157622
157615
|
} else {
|
|
157623
|
-
|
|
157616
|
+
_this20.$alert(res.message, _this20.$tx('common.operationTip', '操作提示'), {
|
|
157624
157617
|
type: 'error'
|
|
157625
157618
|
});
|
|
157626
157619
|
}
|
|
157627
157620
|
});
|
|
157628
157621
|
},
|
|
157629
157622
|
decryptData: function decryptData(row, model) {
|
|
157630
|
-
var
|
|
157623
|
+
var _this21 = this;
|
|
157631
157624
|
this.$app.decryptData(row[model]).then(function (res) {
|
|
157632
157625
|
if (res.code === 'success') {
|
|
157633
|
-
|
|
157626
|
+
_this21.$set(row, model, res.body.data);
|
|
157634
157627
|
} else {
|
|
157635
|
-
|
|
157628
|
+
_this21.$alert(res.message, {
|
|
157636
157629
|
type: 'error'
|
|
157637
157630
|
});
|
|
157638
157631
|
}
|
|
@@ -157642,9 +157635,9 @@ var PAGE_INFO = {
|
|
|
157642
157635
|
});
|
|
157643
157636
|
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=script&lang=js
|
|
157644
157637
|
/* harmony default export */ var ecwapp_DataTable_srcvue_type_script_lang_js = (DataTable_srcvue_type_script_lang_js);
|
|
157645
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/DataTable/src/index.vue?vue&type=style&index=0&id=
|
|
157646
|
-
var
|
|
157647
|
-
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=style&index=0&id=
|
|
157638
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecwapp/DataTable/src/index.vue?vue&type=style&index=0&id=a9c1fddc&prod&lang=scss&scoped=true
|
|
157639
|
+
var srcvue_type_style_index_0_id_a9c1fddc_prod_lang_scss_scoped_true = __webpack_require__(22456);
|
|
157640
|
+
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue?vue&type=style&index=0&id=a9c1fddc&prod&lang=scss&scoped=true
|
|
157648
157641
|
|
|
157649
157642
|
;// CONCATENATED MODULE: ./packages/ecwapp/DataTable/src/index.vue
|
|
157650
157643
|
|
|
@@ -157657,11 +157650,11 @@ var srcvue_type_style_index_0_id_daa1b066_prod_lang_scss_scoped_true = __webpack
|
|
|
157657
157650
|
|
|
157658
157651
|
var DataTable_src_component = (0,componentNormalizer/* default */.A)(
|
|
157659
157652
|
ecwapp_DataTable_srcvue_type_script_lang_js,
|
|
157660
|
-
|
|
157661
|
-
|
|
157653
|
+
srcvue_type_template_id_a9c1fddc_scoped_true_render,
|
|
157654
|
+
srcvue_type_template_id_a9c1fddc_scoped_true_staticRenderFns,
|
|
157662
157655
|
false,
|
|
157663
157656
|
null,
|
|
157664
|
-
"
|
|
157657
|
+
"a9c1fddc",
|
|
157665
157658
|
null
|
|
157666
157659
|
|
|
157667
157660
|
)
|