three-trees-ui 1.0.59 → 1.0.60
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 +27 -256
- package/lib/three-trees-ui.css +1 -1
- package/lib/three-trees-ui.umd.js +27 -256
- package/lib/three-trees-ui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/Table/src/Table.vue +1 -1
- package/src/mixins/onlineSubtable.js +0 -283
- package/src/mixins/templatePreview.js +54 -31
- package/src/utils.js +1 -32
|
@@ -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.$parent);
|
|
1262
1262
|
// 获取当前组件是否在子表中的某一行
|
|
1263
1263
|
const {
|
|
1264
1264
|
subScopeEl,
|
|
@@ -1536,37 +1536,6 @@ 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
|
-
};
|
|
1570
1539
|
/* harmony default export */ __webpack_exports__["a"] = (utils);
|
|
1571
1540
|
|
|
1572
1541
|
/***/ }),
|
|
@@ -12569,12 +12538,9 @@ var SubPagination = __webpack_require__("1639");
|
|
|
12569
12538
|
|
|
12570
12539
|
// CONCATENATED MODULE: ./src/mixins/onlineSubtable.js
|
|
12571
12540
|
|
|
12572
|
-
|
|
12573
12541
|
/* harmony default export */ var onlineSubtable = ({
|
|
12574
12542
|
data() {
|
|
12575
12543
|
return {
|
|
12576
|
-
searchVal: '',
|
|
12577
|
-
//搜索关键字
|
|
12578
12544
|
fillOrg: {},
|
|
12579
12545
|
fillOrgConfMap: {},
|
|
12580
12546
|
transitionIndex: -1,
|
|
@@ -12624,200 +12590,6 @@ var SubPagination = __webpack_require__("1639");
|
|
|
12624
12590
|
}
|
|
12625
12591
|
},
|
|
12626
12592
|
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
|
-
},
|
|
12821
12593
|
getExpandArr(data, type) {
|
|
12822
12594
|
if (type === 'expand' && data) {
|
|
12823
12595
|
let arr = [];
|
|
@@ -15209,6 +14981,13 @@ _main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].register({
|
|
|
15209
14981
|
|
|
15210
14982
|
/***/ }),
|
|
15211
14983
|
|
|
14984
|
+
/***/ "3dc5":
|
|
14985
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14986
|
+
|
|
14987
|
+
// extracted by mini-css-extract-plugin
|
|
14988
|
+
|
|
14989
|
+
/***/ }),
|
|
14990
|
+
|
|
15212
14991
|
/***/ "3e58":
|
|
15213
14992
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15214
14993
|
|
|
@@ -15360,12 +15139,12 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
15360
15139
|
// ESM COMPAT FLAG
|
|
15361
15140
|
__webpack_require__.r(__webpack_exports__);
|
|
15362
15141
|
|
|
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=
|
|
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,"
|
|
15142
|
+
// 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=fa68b638&scoped=true
|
|
15143
|
+
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 },style:({ height: "" + (_vm.tableMaxHeight ? _vm.tableMaxHeight : 400) + 'px' }),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,"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)}
|
|
15365
15144
|
var staticRenderFns = []
|
|
15366
15145
|
|
|
15367
15146
|
|
|
15368
|
-
// CONCATENATED MODULE: ./packages/Table/src/Table.vue?vue&type=template&id=
|
|
15147
|
+
// CONCATENATED MODULE: ./packages/Table/src/Table.vue?vue&type=template&id=fa68b638&scoped=true
|
|
15369
15148
|
|
|
15370
15149
|
// EXTERNAL MODULE: ./src/mixins/locale.js
|
|
15371
15150
|
var locale = __webpack_require__("b255");
|
|
@@ -16373,8 +16152,8 @@ const METHOD_MAP = {
|
|
|
16373
16152
|
});
|
|
16374
16153
|
// CONCATENATED MODULE: ./packages/Table/src/Table.vue?vue&type=script&lang=js
|
|
16375
16154
|
/* harmony default export */ var src_Tablevue_type_script_lang_js = (Tablevue_type_script_lang_js);
|
|
16376
|
-
// EXTERNAL MODULE: ./packages/Table/src/Table.vue?vue&type=style&index=0&id=
|
|
16377
|
-
var
|
|
16155
|
+
// EXTERNAL MODULE: ./packages/Table/src/Table.vue?vue&type=style&index=0&id=fa68b638&prod&lang=scss&scoped=true
|
|
16156
|
+
var Tablevue_type_style_index_0_id_fa68b638_prod_lang_scss_scoped_true = __webpack_require__("63ff");
|
|
16378
16157
|
|
|
16379
16158
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
16380
16159
|
var componentNormalizer = __webpack_require__("2877");
|
|
@@ -16394,7 +16173,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
16394
16173
|
staticRenderFns,
|
|
16395
16174
|
false,
|
|
16396
16175
|
null,
|
|
16397
|
-
"
|
|
16176
|
+
"fa68b638",
|
|
16398
16177
|
null
|
|
16399
16178
|
|
|
16400
16179
|
)
|
|
@@ -19911,17 +19690,6 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
|
|
|
19911
19690
|
/* unused harmony reexport * */
|
|
19912
19691
|
|
|
19913
19692
|
|
|
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
|
-
|
|
19925
19693
|
/***/ }),
|
|
19926
19694
|
|
|
19927
19695
|
/***/ "5877":
|
|
@@ -23461,6 +23229,17 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
|
|
|
23461
23229
|
};
|
|
23462
23230
|
/* harmony default export */ __webpack_exports__["default"] = (_src_main_vue__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
23463
23231
|
|
|
23232
|
+
/***/ }),
|
|
23233
|
+
|
|
23234
|
+
/***/ "63ff":
|
|
23235
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
23236
|
+
|
|
23237
|
+
"use strict";
|
|
23238
|
+
/* 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_fa68b638_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3dc5");
|
|
23239
|
+
/* 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_fa68b638_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_fa68b638_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
23240
|
+
/* unused harmony reexport * */
|
|
23241
|
+
|
|
23242
|
+
|
|
23464
23243
|
/***/ }),
|
|
23465
23244
|
|
|
23466
23245
|
/***/ "6421":
|
|
@@ -33698,7 +33477,7 @@ _main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].register({
|
|
|
33698
33477
|
/***/ "9224":
|
|
33699
33478
|
/***/ (function(module) {
|
|
33700
33479
|
|
|
33701
|
-
module.exports = JSON.parse("{\"a\":\"1.0.
|
|
33480
|
+
module.exports = JSON.parse("{\"a\":\"1.0.60\"}");
|
|
33702
33481
|
|
|
33703
33482
|
/***/ }),
|
|
33704
33483
|
|
|
@@ -37428,13 +37207,6 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
|
|
|
37428
37207
|
/* unused harmony reexport * */
|
|
37429
37208
|
|
|
37430
37209
|
|
|
37431
|
-
/***/ }),
|
|
37432
|
-
|
|
37433
|
-
/***/ "a9a8":
|
|
37434
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
37435
|
-
|
|
37436
|
-
// extracted by mini-css-extract-plugin
|
|
37437
|
-
|
|
37438
37210
|
/***/ }),
|
|
37439
37211
|
|
|
37440
37212
|
/***/ "aa99":
|
|
@@ -54931,8 +54703,7 @@ const req = function (url, data = {}, option = {}) {
|
|
|
54931
54703
|
this.printDetail(parameter.templateId, parameter.id, parameter.action);
|
|
54932
54704
|
} else if (btnAlias == 'sub' && this.checkSelect()) {
|
|
54933
54705
|
this.showSubList(this.tableData.selectRows[0].id_, parameter);
|
|
54934
|
-
} else if (btnAlias == 'js') {
|
|
54935
|
-
if (parameter.needValidateSelect && !this.checkSelect()) return;
|
|
54706
|
+
} else if (btnAlias == 'js' && this.checkSelect()) {
|
|
54936
54707
|
this.customEvilJS(this.tableData.selectRows[0], parameter.jsValue);
|
|
54937
54708
|
} else if (btnAlias == 'startFlow' && parameter.defId && !parameter.isStartFlow) {
|
|
54938
54709
|
this.operating(parameter.templateId, parameter.id, parameter.action, parameter.defId, parameter.isStartFlow, parameter.openType, parameter.quitAfterSaving);
|