|
|
@@ -36,6 +36,10 @@
|
|
|
rowKey="key"
|
|
|
:data-source="detailTableList"
|
|
|
:scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
|
|
|
+ <!-- 类型 -->
|
|
|
+ <template #logtype="{ record }">
|
|
|
+ <span>{{ getLogType(record.logtype) }}</span>
|
|
|
+ </template>
|
|
|
</a-table>
|
|
|
</Description>
|
|
|
</div>
|
|
|
@@ -55,6 +59,7 @@ import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { formatValue } from '@/common/methods';
|
|
|
import { formatNumber } from '@/common/methods/format';
|
|
|
+import {getBizTypeName, getContractTypeName, getLogType} from "@/common/constants/enumsName";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.exposure_realtime,
|
|
|
@@ -96,21 +101,22 @@ export default defineComponent({
|
|
|
// 注册表头
|
|
|
registerColumnDetail('table_pcweb_exposure_detail', []);
|
|
|
fn = QueryActualExposureDetail;
|
|
|
+
|
|
|
+ queryResultLoadingAndInfo(fn, loading, { middlegoodsid: selectedRow.value?.MiddleGoodsID }).then((res) => {
|
|
|
+ detailTableList.value = res;
|
|
|
+ });
|
|
|
} else if (code === 'exposure_realtime_futures_details') {
|
|
|
// 期货明细
|
|
|
// 注册表头
|
|
|
registerColumnDetail('table_pcweb_exposure_futures_detail', []);
|
|
|
fn = QueryAutualExposurePosition;
|
|
|
+ queryResultLoadingAndInfo(fn, loading, { middleGoodsId: selectedRow.value?.MiddleGoodsID }).then((res) => {
|
|
|
+ detailTableList.value = res;
|
|
|
+ });
|
|
|
} else {
|
|
|
console.error(`${lable}没有配置对应的code: ${code},`);
|
|
|
return;
|
|
|
}
|
|
|
- const middlegoodsid = selectedRow.value?.MiddleGoodsID;
|
|
|
- if (middlegoodsid) {
|
|
|
- queryResultLoadingAndInfo(fn, loading, { middlegoodsid }).then((res) => {
|
|
|
- detailTableList.value = res;
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
watchEffect(() => {
|
|
|
if (visible.value) {
|
|
|
@@ -120,7 +126,8 @@ export default defineComponent({
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- return { loading, tableList, visible, closeDrawer, columns, updateColumn, columnsDetail, detailTableList, expandedRowKeys, selectedRow, Rowclick, tabList, changeTab, formatNumber };
|
|
|
+ return { loading, tableList, visible, closeDrawer, columns, updateColumn, columnsDetail, detailTableList, expandedRowKeys, selectedRow, Rowclick, tabList, changeTab, formatNumber, getBizTypeName
|
|
|
+ ,getLogType };
|
|
|
},
|
|
|
});
|
|
|
</script>
|