mooho-base-admin-plus 2.10.31 → 2.10.33

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.
@@ -603,11 +603,6 @@
603
603
  @on-page-size-change="pageSizeChange"
604
604
  />
605
605
  </div>
606
- <modal-table ref="dialogTable" v-if="dialogActive">
607
- <template #command="{ row }">
608
- <Button size="small" :title="$t('Front_Btn_Select')" type="primary" custom-icon="fa fa-check-square-o" @click="dialogCheck(row)"></Button>
609
- </template>
610
- </modal-table>
611
606
  <table-setting ref="tableSetting" v-if="tableSettingActive" :is-setting="true" @on-change="viewCode => init(viewCode)" />
612
607
  <filter-setting ref="filterSetting" v-if="filterSettingActive" @on-change="viewCode => init(viewCode)" />
613
608
  <item-select ref="itemSelect" v-if="itemSelectActive" @save="saveItemSelect"></item-select>
@@ -746,7 +741,6 @@
746
741
  current: 1,
747
742
  total: 0,
748
743
  setting: false,
749
- dialogActive: false,
750
744
  tableSettingActive: false,
751
745
  filterSettingActive: false,
752
746
  itemSelectActive: false,
@@ -1728,7 +1722,35 @@
1728
1722
  }
1729
1723
  }
1730
1724
 
1731
- if (this.static) {
1725
+ if (!!(this.tableView.exportDataViewCode || '').trim()) {
1726
+ if (name === 'exportExcel') {
1727
+ dataViewApi.exportExcel(
1728
+ this.tableView,
1729
+ this.staticData
1730
+ // this.columns.filter(item => {
1731
+ // return item.slot == 'normal';
1732
+ // })
1733
+ );
1734
+ } else if (name === 'exportPdf') {
1735
+ dataViewApi.exportPdf(
1736
+ this.tableView,
1737
+ this.staticData
1738
+ // this.columns.filter(item => {
1739
+ // return item.slot == 'normal';
1740
+ // })
1741
+ );
1742
+ } else if (name === 'print') {
1743
+ dataViewApi.print(
1744
+ this.tableView,
1745
+ this.staticData
1746
+ // this.columns.filter(item => {
1747
+ // return item.slot == 'normal';
1748
+ // })
1749
+ );
1750
+ } else if (name === 'batchEdit') {
1751
+ this.error('Front_Msg_Not_Supported');
1752
+ }
1753
+ } else if (this.static) {
1732
1754
  if (name === 'exportExcel') {
1733
1755
  dataViewApi.exportExcel(
1734
1756
  this.tableView,