|
|
@@ -3,11 +3,11 @@
|
|
|
<!-- 汇总损益报表 -->
|
|
|
<mtp-table-scroll>
|
|
|
<template #default="{ scroll }">
|
|
|
- <a-table :columns="getColumns()" class="srcollYTable" :scroll="scroll" :pagination="false" :expandedRowKeys="expandedRowKeys" :customRow="customRow" :rowKey="(record,index)=>index" :data-source="tableList"></a-table>
|
|
|
+ <a-table :columns="getColumns()" class="srcollYTable" :scroll="scroll" :pagination="false" :expandedRowKeys="expandedRowKeys" :customRow="Rowclick" :rowKey="(record,index)=>index" :data-source="tableList"></a-table>
|
|
|
</template>
|
|
|
</mtp-table-scroll>
|
|
|
- <!-- 明细 -->
|
|
|
- <mtp-table-detail :columns="columnsDetail" :data-source="detailTableList" :tabs="tabList" v-model:visible="visible" @change="changeTab">
|
|
|
+ <!-- 明细,日报表不显示“损益明细“标签页 -->
|
|
|
+ <mtp-table-detail :columns="columnsDetail" :data-source="detailTableList" :tabs="tabList" v-model:visible="visible" @change="changeTab" v-show="cycletype > 0">
|
|
|
<!-- 出现浮点失真 强行处理 * 2-->
|
|
|
<template #spotactualpl="{ record }">
|
|
|
<span>{{ record.spotactualpl.toFixed(2) }}</span>
|
|
|
@@ -96,15 +96,6 @@ export default defineComponent({
|
|
|
// 当前选中的标签
|
|
|
const tabIndex = ref(0);
|
|
|
|
|
|
- // 自定义表格事件
|
|
|
- const customRow = (record: Ermcp3ArealSumPL, index: number) => {
|
|
|
- // 日报表不显示“损益明细“标签页
|
|
|
- if (cycletype.value === 0) {
|
|
|
- return {};
|
|
|
- }
|
|
|
- return Rowclick(record, index);
|
|
|
- };
|
|
|
-
|
|
|
// 切换明细
|
|
|
function changeTab(index: number) {
|
|
|
tabIndex.value = index;
|
|
|
@@ -163,9 +154,10 @@ export default defineComponent({
|
|
|
detailTableList,
|
|
|
expandedRowKeys,
|
|
|
selectedRow,
|
|
|
- customRow,
|
|
|
+ Rowclick,
|
|
|
tabList,
|
|
|
changeTab,
|
|
|
+ cycletype,
|
|
|
};
|
|
|
},
|
|
|
});
|