|
|
@@ -16,9 +16,8 @@ import { queryTableList, MtpTableButton, defineComponent, handleComposeTable, Co
|
|
|
import filterCustomTable from './components/filter/index.vue';
|
|
|
import { formatTime, formatValue } from '@/common/methods';
|
|
|
import { columns } from './setup';
|
|
|
-import { Ermcp3SellBuyContract } from '@/services/go/ermcp/purchase/interface';
|
|
|
-import { QueryPurchase } from '@/services/go/ermcp/purchase';
|
|
|
-import { QueryWareHouse } from '@/services/go/ermcp/sell';
|
|
|
+import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
|
+import { QuerySpotContract } from '@/services/go/ermcp/spot-contract';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
|
|
|
@@ -31,16 +30,16 @@ export default defineComponent({
|
|
|
setup() {
|
|
|
const { name: routeName } = useRoute();
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<Ermcp3SellBuyContract>();
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<Ermcp3ContractRsp>();
|
|
|
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
switch (routeName) {
|
|
|
case 'search_purchase':
|
|
|
- queryTable(QueryPurchase, { querytype: 1 });
|
|
|
+ queryTable(QuerySpotContract, { contracttype: 1, querytype: '3,4' });
|
|
|
break;
|
|
|
case 'search_sell':
|
|
|
- queryTable(QueryWareHouse, { querytype: 1 });
|
|
|
+ queryTable(QuerySpotContract, { contracttype: -1, querytype: '3,4' });
|
|
|
break;
|
|
|
}
|
|
|
};
|
|
|
@@ -55,7 +54,7 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
return {
|
|
|
- ...handleComposeTable<Ermcp3SellBuyContract>(param),
|
|
|
+ ...handleComposeTable<Ermcp3ContractRsp>(param),
|
|
|
loading,
|
|
|
tableList,
|
|
|
queryTable,
|