|
|
@@ -1,7 +1,8 @@
|
|
|
import BsTable from './Table.vue';
|
|
|
import { reactive, onMounted, onBeforeMount, toRaw } from 'vue';
|
|
|
import { set, get, isEmpty, isUndefined } from 'lodash';
|
|
|
-import { getTableDataApi } from '/@/api/system/table-api.js';
|
|
|
+import {getTableDataApi} from "/@/api/system/table-api.js";
|
|
|
+
|
|
|
|
|
|
export const useBsTable = (options, tableRef) => {
|
|
|
let tableOptions = reactive(options.tableOptions);
|
|
|
@@ -102,7 +103,7 @@ export const useBsTable = (options, tableRef) => {
|
|
|
}
|
|
|
|
|
|
const getTableData = () => {
|
|
|
- options.tableSearchBeforeBiz && options.tableSearchBeforeBiz();
|
|
|
+ tableOptions.tableSearchBeforeBiz && tableOptions.tableSearchBeforeBiz();
|
|
|
setLoading(true);
|
|
|
return new Promise(async (resolve, reject) => {
|
|
|
const pageNum = tableOptions?.pagerConfig.pageNum;
|