three-trees-ui 1.0.57 → 1.0.59
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/three-trees-ui.common.js +259 -26
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +259 -26
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/Table/src/Table.vue +4 -0
- package/src/mixins/onlineSubtable.js +283 -0
- package/src/mixins/templatePreview.js +31 -54
- package/src/utils.js +32 -1
|
@@ -1258,7 +1258,7 @@ var utils = {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
const keyPath = config[key];
|
|
1260
1260
|
// 获取当前组件所在的表单
|
|
1261
|
-
const formInst = utils.getOnlineFormInstance(inst
|
|
1261
|
+
const formInst = utils.getOnlineFormInstance(inst);
|
|
1262
1262
|
// 获取当前组件是否在子表中的某一行
|
|
1263
1263
|
const {
|
|
1264
1264
|
subScopeEl,
|
|
@@ -1536,6 +1536,37 @@ Date.prototype.format = function (format) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
return format;
|
|
1538
1538
|
};
|
|
1539
|
+
|
|
1540
|
+
//精确四舍五入
|
|
1541
|
+
Number.prototype.toFixedRound = function (d) {
|
|
1542
|
+
d = Number(d);
|
|
1543
|
+
var s = this + '';
|
|
1544
|
+
if (!d) d = 0;
|
|
1545
|
+
if (s.indexOf('.') == -1) s += '.';
|
|
1546
|
+
s += new Array(d + 1).join('0');
|
|
1547
|
+
if (new RegExp('^(-|\\+)?(\\d+(\\.\\d{0,' + (d + 1) + '})?)\\d*$').test(s)) {
|
|
1548
|
+
var s = '0' + RegExp.$2,
|
|
1549
|
+
pm = RegExp.$1,
|
|
1550
|
+
a = RegExp.$3.length,
|
|
1551
|
+
b = true;
|
|
1552
|
+
if (a == d + 2) {
|
|
1553
|
+
a = s.match(/\d/g);
|
|
1554
|
+
if (parseInt(a[a.length - 1]) > 4) {
|
|
1555
|
+
for (var i = a.length - 2; i >= 0; i--) {
|
|
1556
|
+
a[i] = parseInt(a[i]) + 1;
|
|
1557
|
+
if (a[i] == 10) {
|
|
1558
|
+
a[i] = 0;
|
|
1559
|
+
b = i != 1;
|
|
1560
|
+
} else break;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
s = a.join('').replace(new RegExp('(\\d+)(\\d{' + d + '})\\d$'), '$1.$2');
|
|
1564
|
+
}
|
|
1565
|
+
if (b) s = s.substr(1);
|
|
1566
|
+
return (pm + s).replace(/\.$/, '');
|
|
1567
|
+
}
|
|
1568
|
+
return this + '';
|
|
1569
|
+
};
|
|
1539
1570
|
/* harmony default export */ __webpack_exports__["a"] = (utils);
|
|
1540
1571
|
|
|
1541
1572
|
/***/ }),
|
|
@@ -8825,17 +8856,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
8825
8856
|
|
|
8826
8857
|
/* harmony default export */ var main = __webpack_exports__["default"] = (component.exports);
|
|
8827
8858
|
|
|
8828
|
-
/***/ }),
|
|
8829
|
-
|
|
8830
|
-
/***/ "2257":
|
|
8831
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8832
|
-
|
|
8833
|
-
"use strict";
|
|
8834
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Table_vue_vue_type_style_index_0_id_5c781f91_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3431");
|
|
8835
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Table_vue_vue_type_style_index_0_id_5c781f91_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Table_vue_vue_type_style_index_0_id_5c781f91_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
8836
|
-
/* unused harmony reexport * */
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
8859
|
/***/ }),
|
|
8840
8860
|
|
|
8841
8861
|
/***/ "22ea":
|
|
@@ -11638,13 +11658,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
11638
11658
|
/* unused harmony reexport * */
|
|
11639
11659
|
|
|
11640
11660
|
|
|
11641
|
-
/***/ }),
|
|
11642
|
-
|
|
11643
|
-
/***/ "3431":
|
|
11644
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
11645
|
-
|
|
11646
|
-
// extracted by mini-css-extract-plugin
|
|
11647
|
-
|
|
11648
11661
|
/***/ }),
|
|
11649
11662
|
|
|
11650
11663
|
/***/ "3465":
|
|
@@ -12556,9 +12569,12 @@ var SubPagination = __webpack_require__("1639");
|
|
|
12556
12569
|
|
|
12557
12570
|
// CONCATENATED MODULE: ./src/mixins/onlineSubtable.js
|
|
12558
12571
|
|
|
12572
|
+
|
|
12559
12573
|
/* harmony default export */ var onlineSubtable = ({
|
|
12560
12574
|
data() {
|
|
12561
12575
|
return {
|
|
12576
|
+
searchVal: '',
|
|
12577
|
+
//搜索关键字
|
|
12562
12578
|
fillOrg: {},
|
|
12563
12579
|
fillOrgConfMap: {},
|
|
12564
12580
|
transitionIndex: -1,
|
|
@@ -12608,6 +12624,200 @@ var SubPagination = __webpack_require__("1639");
|
|
|
12608
12624
|
}
|
|
12609
12625
|
},
|
|
12610
12626
|
methods: {
|
|
12627
|
+
//合计计算
|
|
12628
|
+
getSummaries(param, list) {
|
|
12629
|
+
let CancelTheCalculation = sessionStorage.getItem('Cancel_The_Calculation') ? JSON.parse(sessionStorage.getItem('Cancel_The_Calculation')) : {};
|
|
12630
|
+
//
|
|
12631
|
+
let listChange = JSON.parse(Base64.decode(list, 'utf-8'));
|
|
12632
|
+
|
|
12633
|
+
//
|
|
12634
|
+
|
|
12635
|
+
if (listChange.length < 1) {
|
|
12636
|
+
return;
|
|
12637
|
+
}
|
|
12638
|
+
const {
|
|
12639
|
+
columns,
|
|
12640
|
+
data
|
|
12641
|
+
} = param;
|
|
12642
|
+
this.tableData = data;
|
|
12643
|
+
const sums = [];
|
|
12644
|
+
let calcProp = [];
|
|
12645
|
+
let columnsDep = _.cloneDeep(columns);
|
|
12646
|
+
listChange.forEach((item, idex) => {
|
|
12647
|
+
if (item.addFunc == 'calcFunc') {
|
|
12648
|
+
columnsDep.forEach((column, index) => {
|
|
12649
|
+
if (item.mathExp && item.mathExp.indexOf('.' + column.property) > -1) {
|
|
12650
|
+
calcProp.push(column.property);
|
|
12651
|
+
}
|
|
12652
|
+
});
|
|
12653
|
+
}
|
|
12654
|
+
columnsDep.forEach((column, index) => {
|
|
12655
|
+
if (item.columnField == column.property) {
|
|
12656
|
+
column.combinedOption = item;
|
|
12657
|
+
}
|
|
12658
|
+
});
|
|
12659
|
+
});
|
|
12660
|
+
columnsDep.forEach((column, index) => {
|
|
12661
|
+
if (index === 0 && columnsDep[0].type == 'index') {
|
|
12662
|
+
sums[index] = '';
|
|
12663
|
+
return;
|
|
12664
|
+
}
|
|
12665
|
+
//当有需要才合计
|
|
12666
|
+
if (column.combinedOption) {
|
|
12667
|
+
let {
|
|
12668
|
+
addFunc,
|
|
12669
|
+
columnField,
|
|
12670
|
+
name,
|
|
12671
|
+
unit,
|
|
12672
|
+
showType,
|
|
12673
|
+
num,
|
|
12674
|
+
tag,
|
|
12675
|
+
mainTarget
|
|
12676
|
+
} = column.combinedOption;
|
|
12677
|
+
let Bol = tag && CancelTheCalculation && CancelTheCalculation[tag] && CancelTheCalculation[tag].length > 0;
|
|
12678
|
+
const values = data.map(item => Number(item[column.property]));
|
|
12679
|
+
let depValues = _.cloneDeep(values);
|
|
12680
|
+
if (Bol) {
|
|
12681
|
+
let delMin = [];
|
|
12682
|
+
depValues.forEach((item, i) => {
|
|
12683
|
+
if (!CancelTheCalculation[tag].includes(i)) {
|
|
12684
|
+
delMin.push(item);
|
|
12685
|
+
}
|
|
12686
|
+
});
|
|
12687
|
+
depValues = delMin;
|
|
12688
|
+
}
|
|
12689
|
+
let units = unit ? unit : '';
|
|
12690
|
+
//求和
|
|
12691
|
+
if (addFunc === 'add') {
|
|
12692
|
+
if (!depValues.every(value => isNaN(value))) {
|
|
12693
|
+
sums[index] = depValues.reduce((prev, curr) => {
|
|
12694
|
+
const value = Number(curr);
|
|
12695
|
+
if (!isNaN(value)) {
|
|
12696
|
+
return prev + curr;
|
|
12697
|
+
} else {
|
|
12698
|
+
return prev;
|
|
12699
|
+
}
|
|
12700
|
+
}, 0);
|
|
12701
|
+
sums[index] = this.dealWithDataHtml(name, sums[index], showType, num, units, mainTarget);
|
|
12702
|
+
} else {
|
|
12703
|
+
sums[index] = this.dealWithDataHtml(name, 0, showType, num, units, mainTarget);
|
|
12704
|
+
}
|
|
12705
|
+
}
|
|
12706
|
+
//计数
|
|
12707
|
+
if (addFunc === 'count') {
|
|
12708
|
+
let numCount = values.length;
|
|
12709
|
+
if (Bol) {
|
|
12710
|
+
numCount = values.length - CancelTheCalculation[tag].length;
|
|
12711
|
+
}
|
|
12712
|
+
sums[index] = this.dealWithDataHtml(name, numCount, showType, num, units, mainTarget);
|
|
12713
|
+
}
|
|
12714
|
+
//平均值
|
|
12715
|
+
if (addFunc === 'average') {
|
|
12716
|
+
let sum = 0;
|
|
12717
|
+
var average = 0;
|
|
12718
|
+
for (var i = 0; i < depValues.length; i++) {
|
|
12719
|
+
sum += depValues[i];
|
|
12720
|
+
}
|
|
12721
|
+
depValues.length > 0 ? average = sum / depValues.length : average = 0;
|
|
12722
|
+
sums[index] = this.dealWithDataHtml(name, average, showType, num, units, mainTarget);
|
|
12723
|
+
}
|
|
12724
|
+
//最大值
|
|
12725
|
+
if (addFunc === 'max') {
|
|
12726
|
+
let maxNum = Math.max.apply(null, depValues.length > 0 ? depValues : [0]);
|
|
12727
|
+
sums[index] = this.dealWithDataHtml(name, maxNum, showType, num, units, mainTarget);
|
|
12728
|
+
}
|
|
12729
|
+
//最小值
|
|
12730
|
+
if (addFunc === 'min') {
|
|
12731
|
+
let minNum = Math.min.apply(null, depValues.length > 0 ? depValues : [0]);
|
|
12732
|
+
sums[index] = this.dealWithDataHtml(name, minNum, showType, num, units, mainTarget);
|
|
12733
|
+
}
|
|
12734
|
+
|
|
12735
|
+
//公式计算
|
|
12736
|
+
if (addFunc === 'calcFunc') {
|
|
12737
|
+
const calcVal = this.dealCustomCalc(data, column.combinedOption);
|
|
12738
|
+
sums[index] = this.dealWithDataHtml(name, calcVal, showType, num, units, mainTarget);
|
|
12739
|
+
}
|
|
12740
|
+
} else if (calcProp.indexOf(column.property) > -1) {
|
|
12741
|
+
const values = data.map(item => Number(item[column.property]));
|
|
12742
|
+
}
|
|
12743
|
+
});
|
|
12744
|
+
return sums;
|
|
12745
|
+
},
|
|
12746
|
+
//合计行
|
|
12747
|
+
handleSummary(summary) {
|
|
12748
|
+
return summary && !this.searchVal ? true : false;
|
|
12749
|
+
},
|
|
12750
|
+
dealWithDataHtml(name, type, showType, num, units, mainTarget) {
|
|
12751
|
+
let {
|
|
12752
|
+
data,
|
|
12753
|
+
monCap
|
|
12754
|
+
} = this.dealWithData(type, showType, num, mainTarget);
|
|
12755
|
+
if (monCap) {
|
|
12756
|
+
return name + ':' + data + units + '\n' + monCap;
|
|
12757
|
+
}
|
|
12758
|
+
return name + ':' + data + units;
|
|
12759
|
+
},
|
|
12760
|
+
//处理数据
|
|
12761
|
+
dealWithData(data, showType, numfix = 0, mainTarget) {
|
|
12762
|
+
data = Number(data);
|
|
12763
|
+
let list = showType;
|
|
12764
|
+
let num = {
|
|
12765
|
+
data: 0,
|
|
12766
|
+
monCap: ''
|
|
12767
|
+
};
|
|
12768
|
+
// 保留小数位
|
|
12769
|
+
if (list.includes('keepSmall')) {
|
|
12770
|
+
const fixData = data.toFixedRound(numfix);
|
|
12771
|
+
num.data = fixData;
|
|
12772
|
+
if (mainTarget) {
|
|
12773
|
+
mainTarget = !mainTarget.startsWith('data.') ? 'data.' + mainTarget : mainTarget;
|
|
12774
|
+
utils["a" /* default */].setValueByConfigKey(this, {
|
|
12775
|
+
trget: mainTarget
|
|
12776
|
+
}, 'trget', data);
|
|
12777
|
+
}
|
|
12778
|
+
} else {
|
|
12779
|
+
if (mainTarget && data != null) {
|
|
12780
|
+
mainTarget = !mainTarget.startsWith('data.') ? 'data.' + mainTarget : mainTarget;
|
|
12781
|
+
utils["a" /* default */].setValueByConfigKey(this, {
|
|
12782
|
+
trget: mainTarget
|
|
12783
|
+
}, 'trget', data.toFixedRound(4));
|
|
12784
|
+
}
|
|
12785
|
+
}
|
|
12786
|
+
|
|
12787
|
+
//百分比
|
|
12788
|
+
if (list.includes('percentage')) {
|
|
12789
|
+
num.data = Number(data * 100) + '%';
|
|
12790
|
+
}
|
|
12791
|
+
// 千分位
|
|
12792
|
+
if (list.includes('Micrometer')) {
|
|
12793
|
+
num.data = utils["a" /* default */].thousandBit(data);
|
|
12794
|
+
}
|
|
12795
|
+
if (list.includes('keepSmall') && list.includes('percentage') && list.includes('Micrometer')) {
|
|
12796
|
+
num.data = utils["a" /* default */].thousandBit(Number(data * 100).toFixedRound(numfix)) + '%';
|
|
12797
|
+
return num;
|
|
12798
|
+
}
|
|
12799
|
+
if (list.includes('keepSmall') && list.includes('percentage')) {
|
|
12800
|
+
num.data = Number(data * 100).toFixedRound(numfix) + '%';
|
|
12801
|
+
return num;
|
|
12802
|
+
}
|
|
12803
|
+
if (list.includes('Micrometer') && list.includes('percentage')) {
|
|
12804
|
+
num.data = utils["a" /* default */].thousandBit(Number(data * 100)) + '%';
|
|
12805
|
+
return num;
|
|
12806
|
+
}
|
|
12807
|
+
if (list.includes('keepSmall') && list.includes('Micrometer')) {
|
|
12808
|
+
num.data = utils["a" /* default */].thousandBit(data.toFixedRound(numfix));
|
|
12809
|
+
}
|
|
12810
|
+
|
|
12811
|
+
// 货币大写
|
|
12812
|
+
if (list.includes('monCap')) {
|
|
12813
|
+
num = {
|
|
12814
|
+
data: data,
|
|
12815
|
+
monCap: utils["a" /* default */].convertCurrency(data)
|
|
12816
|
+
};
|
|
12817
|
+
return num;
|
|
12818
|
+
}
|
|
12819
|
+
return num;
|
|
12820
|
+
},
|
|
12611
12821
|
getExpandArr(data, type) {
|
|
12612
12822
|
if (type === 'expand' && data) {
|
|
12613
12823
|
let arr = [];
|
|
@@ -15150,12 +15360,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
15150
15360
|
// ESM COMPAT FLAG
|
|
15151
15361
|
__webpack_require__.r(__webpack_exports__);
|
|
15152
15362
|
|
|
15153
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2283df13-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/Table/src/Table.vue?vue&type=template&id=
|
|
15363
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2283df13-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/Table/src/Table.vue?vue&type=template&id=c26fbdf8&scoped=true
|
|
15154
15364
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-main',{ref:"tablePanel",staticClass:"ht-table-panel"},[(!_vm.noHeader && !_vm.justShowSearch)?_c('div',{ref:"toolbarPanel",staticClass:"toolbar-panel"},[(!_vm.justShowSearch)?_c('div',{staticClass:"toolbar-panel__search",class:{ 'ht-quick__search': !_vm.hideTableSearch }},[(_vm.quickSearchConfig && _vm.quickSearchConfig.length > 0)?_c('ht-input',{ref:"quickSearch",staticClass:"quick-search",staticStyle:{"margin-right":"20px"},style:(_vm.quickSearchWidthStyle),attrs:{"placeholder":_vm.quickSearchPlaceholder,"autofocus":true,"disabled":_vm.loading || _vm.showAdvancedSearch,"debounce":2000,"suffix-icon":"el-icon-search"},nativeOn:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.doQuickSearch($event)},"click":function($event){return _vm.clickQuickSearch($event)}},model:{value:(_vm.quickSearchWord),callback:function ($$v) {_vm.quickSearchWord=$$v},expression:"quickSearchWord"}}):_vm._e(),_c('div',{staticClass:"common-tools"},[(_vm.hasSearchPanel && !_vm.justShowSearch)?_c('el-button',{staticClass:"advance-search__button",on:{"click":function($event){_vm.showAdvancedSearch = !_vm.showAdvancedSearch}}},[_vm._v("\n "+_vm._s(_vm.showAdvancedSearch ? '基础搜索' : '高级搜索')+"\n "),_c('i',{class:_vm.showAdvancedSearch ? 'el-icon-arrow-up' : 'el-icon-arrow-down'})]):_vm._e(),(_vm.showExport)?_c('el-tooltip',{attrs:{"content":"导出数据","placement":"top"}},[_c('el-button',{on:{"click":function($event){return _vm.$emit('export')}}},[_c('ht-icon',{attrs:{"name":"arrow"}})],1)],1):_vm._e(),(_vm.showRefresh)?_c('el-tooltip',{attrs:{"content":"刷新数据","placement":"top"}},[_c('el-button',{staticClass:"refresh-btn-icon",attrs:{"icon":"el-icon-refresh"},on:{"click":function($event){return _vm.load(true)}}})],1):_vm._e(),(_vm.showCustomColumn && !_vm.isCardView)?_c('el-tooltip',{attrs:{"content":"自定义列","placement":"top"}},[_c('el-button',{on:{"click":function($event){_vm.customColumnDialogVisible = true}}},[_c('ht-icon',{attrs:{"name":"setting"}})],1)],1):_vm._e(),(_vm.multiViewSwitch)?_c('el-button-group',{staticClass:"multiview-switcher"},[_c('el-tooltip',{attrs:{"content":"卡片视图","placement":"top"}},[_c('el-button',{attrs:{"type":_vm.isCardView ? 'primary' : 'default'},on:{"click":function($event){_vm.isCardView = true}}},[_c('ht-icon',{attrs:{"name":"block"}})],1)],1),_c('el-tooltip',{attrs:{"content":"表格视图","placement":"top"}},[_c('el-button',{attrs:{"type":_vm.isCardView ? 'default' : 'primary'},on:{"click":function($event){_vm.isCardView = false}}},[_c('ht-icon',{attrs:{"name":"line"}})],1)],1)],1):_vm._e()],1)],1):_vm._e()]):_vm._e(),_c('el-collapse-transition',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showAdvancedSearch || _vm.justShowSearch),expression:"showAdvancedSearch || justShowSearch"}],ref:"searchPanel",staticClass:"search-panel"},[_vm._t("search")],2)]),(_vm.hasToolBar)?_c('div',{ref:"toolbarContainer",staticClass:"toolbar-container"},[_vm._t("toolbar")],2):_vm._e(),(!_vm.isCardView)?_c('el-table',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.isLoading),expression:"isLoading"}],ref:"htTable",staticClass:"ht-table",class:{ 'no-data-table': _vm.data.length < 1 },attrs:{"stripe":_vm.stripe,"border":"","data":_vm.data,"size":_vm.size,"empty-text":_vm.emptyText,"show-header":_vm.showHeader,"max-height":_vm.tableMaxHeight ? _vm.tableMaxHeight : 400,"tooltip-effect":_vm.tooltipEffect,"default-querys":_vm.defaultQuerys,"header-row-class-name":_vm.headerRowClassName,"header-cell-class-name":_vm.headerCellClassName,"highlight-current-row":_vm.highlightCurrentRow,"row-class-name":_vm.rowClassName,"cell-class-name":_vm.cellClassName,"height":("" + (_vm.tableMaxHeight ? _vm.tableMaxHeight : 400)),"row-key":_vm.rowKey,"show-summary":_vm.showSummary,"summary-method":_vm.getSummaries},on:{"row-click":_vm.handleRowClick,"select":_vm.handleTableSelect,"select-all":_vm.handleTableSelect,"sort-change":_vm.handleSortChange,"filter-change":_vm.handleFilterChange,"selection-change":function (selection) { return _vm.$emit('selection-change', selection); }}},[(_vm.selectable)?_c('el-table-column',{attrs:{"type":"selection","align":"center","reserve-selection":_vm.reserveSelection,"width":"45"}}):_vm._e(),_vm._t("default"),_c('template',{slot:"empty"},[_c('el-image',{attrs:{"src":_vm.tableNoDataImg}}),_c('p',{staticClass:"no-data-text"},[_vm._v(_vm._s(_vm.emptyText || _vm.t('el.table.emptyText')))])],1)],2):_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.isLoading),expression:"isLoading"}],staticClass:"ht-card",style:({ height: "" + _vm.tableMaxHeight + 'px' })},[(_vm.loading || (_vm.data && _vm.data.length > 0))?[(_vm.cardItemMode)?_c('div',{staticClass:"ht-card__container"},_vm._l((_vm.data),function(item,index){return _c('el-card',{key:index,attrs:{"shadow":"hover"},nativeOn:{"click":function($event){return _vm.$emit('card-click', item)}}},[_vm._t("card",null,{"item":item})],2)}),1):_c('div',[_vm._t("card",null,{"data":_vm.data})],2)]:_c('div',{staticClass:"el-table__empty-block"},[(_vm.data.length < 1 && !_vm.emptyText)?[_vm._t("empty-card")]:(_vm.emptyText)?_c('span',{staticClass:"el-table__empty-text"},[_vm._v("\n "+_vm._s(_vm.emptyText || _vm.t('el.table.emptyText'))+"\n ")]):_vm._e()],2)],2),(!_vm.nopagination)?_c('div',{ref:"paginationPanel",staticClass:"pagination-panel"},[_c('el-row',{attrs:{"type":"flex","justify":_vm.tablePaginationJustify}},[_c('el-pagination',{class:{ 'page-sizes__hidden': _vm.hidePageSizes },attrs:{"small":_vm.small,"disabled":_vm.loading,"current-page":_vm.pagination.page,"page-sizes":_vm.pageSizes,"page-size":_vm.pagination.pageSize,"pager-count":_vm.pagerCount,"background":_vm.$paginationBackground,"layout":_vm.layout,"total":_vm.pagination.total},on:{"size-change":_vm.handleSizeChange,"current-change":_vm.handleCurrentChange}})],1)],1):_vm._e(),_c('custom-column',{attrs:{"custom-columns":_vm.customColumns,"visible":_vm.customColumnDialogVisible},on:{"update:visible":function($event){_vm.customColumnDialogVisible=$event},"apply-custom-column":_vm.handleApplyCustomColumn}})],1)}
|
|
15155
15365
|
var staticRenderFns = []
|
|
15156
15366
|
|
|
15157
15367
|
|
|
15158
|
-
// CONCATENATED MODULE: ./packages/Table/src/Table.vue?vue&type=template&id=
|
|
15368
|
+
// CONCATENATED MODULE: ./packages/Table/src/Table.vue?vue&type=template&id=c26fbdf8&scoped=true
|
|
15159
15369
|
|
|
15160
15370
|
// EXTERNAL MODULE: ./src/mixins/locale.js
|
|
15161
15371
|
var locale = __webpack_require__("b255");
|
|
@@ -16094,6 +16304,10 @@ const METHOD_MAP = {
|
|
|
16094
16304
|
oldTableField,
|
|
16095
16305
|
fieldDesc
|
|
16096
16306
|
} = tableFieldItem;
|
|
16307
|
+
if (!summaryMethod) {
|
|
16308
|
+
sums[index] = '';
|
|
16309
|
+
return;
|
|
16310
|
+
}
|
|
16097
16311
|
let field = '';
|
|
16098
16312
|
if (oldTableField) {
|
|
16099
16313
|
// 数据列表
|
|
@@ -16159,8 +16373,8 @@ const METHOD_MAP = {
|
|
|
16159
16373
|
});
|
|
16160
16374
|
// CONCATENATED MODULE: ./packages/Table/src/Table.vue?vue&type=script&lang=js
|
|
16161
16375
|
/* harmony default export */ var src_Tablevue_type_script_lang_js = (Tablevue_type_script_lang_js);
|
|
16162
|
-
// EXTERNAL MODULE: ./packages/Table/src/Table.vue?vue&type=style&index=0&id=
|
|
16163
|
-
var
|
|
16376
|
+
// EXTERNAL MODULE: ./packages/Table/src/Table.vue?vue&type=style&index=0&id=c26fbdf8&prod&lang=scss&scoped=true
|
|
16377
|
+
var Tablevue_type_style_index_0_id_c26fbdf8_prod_lang_scss_scoped_true = __webpack_require__("5820");
|
|
16164
16378
|
|
|
16165
16379
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
16166
16380
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -16180,7 +16394,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
16180
16394
|
staticRenderFns,
|
|
16181
16395
|
false,
|
|
16182
16396
|
null,
|
|
16183
|
-
"
|
|
16397
|
+
"c26fbdf8",
|
|
16184
16398
|
null
|
|
16185
16399
|
|
|
16186
16400
|
)
|
|
@@ -19697,6 +19911,17 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
|
|
|
19697
19911
|
/* unused harmony reexport * */
|
|
19698
19912
|
|
|
19699
19913
|
|
|
19914
|
+
/***/ }),
|
|
19915
|
+
|
|
19916
|
+
/***/ "5820":
|
|
19917
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
19918
|
+
|
|
19919
|
+
"use strict";
|
|
19920
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Table_vue_vue_type_style_index_0_id_c26fbdf8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a9a8");
|
|
19921
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Table_vue_vue_type_style_index_0_id_c26fbdf8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Table_vue_vue_type_style_index_0_id_c26fbdf8_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
19922
|
+
/* unused harmony reexport * */
|
|
19923
|
+
|
|
19924
|
+
|
|
19700
19925
|
/***/ }),
|
|
19701
19926
|
|
|
19702
19927
|
/***/ "5877":
|
|
@@ -33473,7 +33698,7 @@ _main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].register({
|
|
|
33473
33698
|
/***/ "9224":
|
|
33474
33699
|
/***/ (function(module) {
|
|
33475
33700
|
|
|
33476
|
-
module.exports = JSON.parse("{\"a\":\"1.0.
|
|
33701
|
+
module.exports = JSON.parse("{\"a\":\"1.0.59\"}");
|
|
33477
33702
|
|
|
33478
33703
|
/***/ }),
|
|
33479
33704
|
|
|
@@ -37203,6 +37428,13 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
|
|
|
37203
37428
|
/* unused harmony reexport * */
|
|
37204
37429
|
|
|
37205
37430
|
|
|
37431
|
+
/***/ }),
|
|
37432
|
+
|
|
37433
|
+
/***/ "a9a8":
|
|
37434
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
37435
|
+
|
|
37436
|
+
// extracted by mini-css-extract-plugin
|
|
37437
|
+
|
|
37206
37438
|
/***/ }),
|
|
37207
37439
|
|
|
37208
37440
|
/***/ "aa99":
|
|
@@ -54699,7 +54931,8 @@ const req = function (url, data = {}, option = {}) {
|
|
|
54699
54931
|
this.printDetail(parameter.templateId, parameter.id, parameter.action);
|
|
54700
54932
|
} else if (btnAlias == 'sub' && this.checkSelect()) {
|
|
54701
54933
|
this.showSubList(this.tableData.selectRows[0].id_, parameter);
|
|
54702
|
-
} else if (btnAlias == 'js'
|
|
54934
|
+
} else if (btnAlias == 'js') {
|
|
54935
|
+
if (parameter.needValidateSelect && !this.checkSelect()) return;
|
|
54703
54936
|
this.customEvilJS(this.tableData.selectRows[0], parameter.jsValue);
|
|
54704
54937
|
} else if (btnAlias == 'startFlow' && parameter.defId && !parameter.isStartFlow) {
|
|
54705
54938
|
this.operating(parameter.templateId, parameter.id, parameter.action, parameter.defId, parameter.isStartFlow, parameter.openType, parameter.quitAfterSaving);
|