huangbin vor 4 Jahren
Ursprung
Commit
3335199548
1 geänderte Dateien mit 9 neuen und 14 gelöschten Zeilen
  1. 9 14
      src/views/business/exposure/list/realTime/index.vue

+ 9 - 14
src/views/business/exposure/list/realTime/index.vue

@@ -43,12 +43,7 @@ import { getBtnList } from '@/common/setup/contextMenu/index';
 import contextMenu from '@/common/components/contextMenu/index.vue';
 import { getColumsAndSearch } from '../setup';
 import { QueryActualExposure, QueryActualExposureDetail, QueryAutualExposurePosition } from '@/services/go/ermcp/exposure/index';
-import {
-    ErmcpRealExposureModel,
-    Ermcp3ExposureDetail,
-    ErmcpExposurePostion,
-    ErmcpExposurePostionReq, Ermcp3ExposureReq
-} from '@/services/go/ermcp/exposure/interface';
+import { ErmcpRealExposureModel, Ermcp3ExposureDetail, ErmcpExposurePostion, ErmcpExposurePostionReq, Ermcp3ExposureReq } from '@/services/go/ermcp/exposure/interface';
 import { message } from 'ant-design-vue';
 import { handleTableEvent } from '@/common/setup/event/index';
 import ThridMenu from '@/common/components/thirdMenu/index.vue';
@@ -93,7 +88,7 @@ function handleDeatil(loading: Ref<boolean>, selectedRow: ErmcpRealExposureModel
     const detailColumns = ref<ColumnType[]>([]);
     // 切换明细
     function selectMenu(index: number) {
-        let tableKey: keyof TableKey = 'table_pcweb_exposure_spotposition';
+        let tableKey: keyof TableKey = 'table_pcweb_exposure_detail';
         if (index) {
             AutualExposurePosition();
         } else {
@@ -109,9 +104,9 @@ function handleDeatil(loading: Ref<boolean>, selectedRow: ErmcpRealExposureModel
     function ActualExposureDetail() {
         loading.value = true;
         let param: Ermcp3ExposureReq = {
-            middlegoodsid: unref(selectedRow).MiddleGoodsID
-        }
-        if(undefined !== unref(selectedRow).MiddleGoodsID) {
+            middlegoodsid: unref(selectedRow).MiddleGoodsID,
+        };
+        if (undefined !== unref(selectedRow).MiddleGoodsID) {
             QueryActualExposureDetail(param)
                 .then((res) => {
                     detailTableList.value = res.map((e, i) => {
@@ -129,12 +124,12 @@ function handleDeatil(loading: Ref<boolean>, selectedRow: ErmcpRealExposureModel
     function AutualExposurePosition() {
         loading.value = true;
         let param: ErmcpExposurePostionReq = {
-            middlegoodsid: unref(selectedRow).MiddleGoodsID
-        }
-        if(undefined !== unref(selectedRow).MiddleGoodsID) {
+            middlegoodsid: unref(selectedRow).MiddleGoodsID,
+        };
+        if (undefined !== unref(selectedRow).MiddleGoodsID) {
             QueryAutualExposurePosition(param).then((res) => {
                 detailTableList.value = res.map((e, i) => {
-                    return {...e, key: String(i)};
+                    return { ...e, key: String(i) };
                 });
                 loading.value = false;
             });