|
|
@@ -34,18 +34,14 @@
|
|
|
<script lang="ts">
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import { queryTableList, BtnList, defineAsyncComponent, defineComponent } from '@/common/export/commonTable';
|
|
|
-import { QueryPerformancePlan, queryWrTradeDetail } from '@/services/go/wrtrade';
|
|
|
-import { QueryPerformancePlanReq, WrPerformancePlan } from '@/services/go/wrtrade/interface';
|
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
-import { queryAmountLog } from '@/services/go/TaAccount';
|
|
|
-import { QueryAmountLogReq } from '@/services/go/TaAccount/interface';
|
|
|
-import { getSelectedAccountId } from '@/services/bus/account';
|
|
|
import { getOperateTypeEnumItemName, getOperateTypeName } from '@/common/constants/enumsName';
|
|
|
import { formatTime } from '@/common/methods';
|
|
|
-import Bus from '@/utils/eventBus/index';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
+import { queryTradePosition } from '@/services/go/ermcp/order';
|
|
|
+import { QueryTradePositionRsp } from '@/services/go/ermcp/order/interface';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: enumOrderComponents.commodity_contract_summary,
|
|
|
@@ -54,27 +50,19 @@ export default defineComponent({
|
|
|
},
|
|
|
setup() {
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<WrPerformancePlan>();
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<QueryTradePositionRsp>();
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
- const param: QueryAmountLogReq = {
|
|
|
- accountID: getSelectedAccountId().toString(),
|
|
|
- };
|
|
|
-
|
|
|
- queryTable(queryAmountLog, param);
|
|
|
+ queryTable(queryTradePosition);
|
|
|
};
|
|
|
// 表格通用逻辑
|
|
|
const param: ComposeOrderTableParam = {
|
|
|
queryFn: queryTableAction,
|
|
|
- tableName: 'table_pcweb_spot_trade_bottom_funding_info_log',
|
|
|
+ tableName: 'table_pcweb_spot_trade_bottom_commodity_contract_summary',
|
|
|
recordList: getRecordItemTab(),
|
|
|
};
|
|
|
- // 资金变化,重新加载数据
|
|
|
- Bus.$on('moneyChangedNtf_UI', () => {
|
|
|
- queryTableAction();
|
|
|
- });
|
|
|
return {
|
|
|
- ...handleComposeOrderTable<WrPerformancePlan>(param),
|
|
|
+ ...handleComposeOrderTable<QueryTradePositionRsp>(param),
|
|
|
loading,
|
|
|
tableList,
|
|
|
formatTime,
|