Browse Source

fix: 修复多个表格组件的引用方式,确保一致性

milestone-20260212-日常优化2.0
zhangrenyuan 3 weeks ago
parent
commit
931f5a7939
  1. 2
      src/views/activityManage/activity.vue
  2. 2
      src/views/channelManage/fans/fans.vue
  3. 2
      src/views/channelManage/reward/reward.vue
  4. 2
      src/views/moneyManage/executor/executor.vue
  5. 2
      src/views/moneyManage/financialAccount/cashFlow.vue
  6. 2
      src/views/moneyManage/financialAccount/performanceAttribution.vue
  7. 2
      src/views/moneyManage/refundDetail/refundFinance.vue
  8. 2
      src/views/moneyManage/refundDetail/refundHeader.vue
  9. 2
      src/views/moneyManage/refundDetail/refundService.vue

2
src/views/activityManage/activity.vue

@ -38,7 +38,7 @@
<el-button type="success" @click="showAdd = true">{{ t('common.addActivity') }}</el-button> <el-button type="success" @click="showAdd = true">{{ t('common.addActivity') }}</el-button>
</div> </div>
<div> <div>
<el-table :ref="tableRef" :data="tableData" style="width: 82vw;height:70vh;" :row-style="{ height: '50px' }">
<el-table ref="tableRef" :data="tableData" style="width: 82vw;height:70vh;" :row-style="{ height: '50px' }">
<el-table-column type="index" :label="t('common_list.id')" width="100px" fixed="left"> <el-table-column type="index" :label="t('common_list.id')" width="100px" fixed="left">
<template #default="scope"> <template #default="scope">
<span>{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }}</span> <span>{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }}</span>

2
src/views/channelManage/fans/fans.vue

@ -573,7 +573,7 @@ const getTagText = (state) => {
{{ t('common.freeGoldBean') }}{{ format3(Math.abs(freeBean)) }} {{ t('common.freeGoldBean') }}{{ format3(Math.abs(freeBean)) }}
</div> </div>
<div style="overflow-y: auto"> <div style="overflow-y: auto">
<el-table :data="tableData" style="width: 82vw" height="65vh" @sort-change="handleSortChange"
<el-table ref="tableRef" :data="tableData" style="width: 82vw" height="65vh" @sort-change="handleSortChange"
:row-style="{ height: '50px' }"> :row-style="{ height: '50px' }">
<el-table-column type="index" :label="t('common_list.id')" width="80px" fixed="left"> <el-table-column type="index" :label="t('common_list.id')" width="80px" fixed="left">
<template #default="scope"> <template #default="scope">

2
src/views/channelManage/reward/reward.vue

@ -615,7 +615,7 @@ const getTagText = (state) => {
{{ t('common.freeGoldBean') }}{{ format3(Math.abs(freeBean)) }} {{ t('common.freeGoldBean') }}{{ format3(Math.abs(freeBean)) }}
</div> </div>
<div style="overflow-y: auto"> <div style="overflow-y: auto">
<el-table :ref="tableRef" :data="tableData" style="width: 82vw" height="65vh" @sort-change="handleSortChange"
<el-table ref="tableRef" :data="tableData" style="width: 82vw" height="65vh" @sort-change="handleSortChange"
:row-style="{ height: '50px' }"> :row-style="{ height: '50px' }">
<el-table-column type="index" :label="t('common_list.id')" width="80px" fixed="left"> <el-table-column type="index" :label="t('common_list.id')" width="80px" fixed="left">
<template #default="scope"> <template #default="scope">

2
src/views/moneyManage/executor/executor.vue

@ -53,7 +53,7 @@
</el-card> </el-card>
<el-card style="background-color: rgb(231,244,253);height:80vh;"> <el-card style="background-color: rgb(231,244,253);height:80vh;">
<el-table :ref="tableRef" :data="tableData" style="height:70vh;width:82vw;">
<el-table ref="tableRef" :data="tableData" style="height:70vh;width:82vw;">
<el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left"> <el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left">
<template #default="scope"> <template #default="scope">
{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }} {{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }}

2
src/views/moneyManage/financialAccount/cashFlow.vue

@ -461,7 +461,7 @@ onMounted(async () => {
<!-- 表格区域 --> <!-- 表格区域 -->
<el-card class="table-card"> <el-card class="table-card">
<el-table :ref="tableRef" :data="tableData" v-loading="loading" style="width: 100%; flex: 1;" :cell-style="{ textAlign: 'center' }" :header-cell-style="{ background: '#F3FAFE', color: '#333',textAlign: 'center' }">
<el-table ref="tableRef" :data="tableData" v-loading="loading" style="width: 100%; flex: 1;" :cell-style="{ textAlign: 'center' }" :header-cell-style="{ background: '#F3FAFE', color: '#333',textAlign: 'center' }">
<el-table-column type="index" :label="t('common_list.id')" width="60" align="center" fixed="left" /> <el-table-column type="index" :label="t('common_list.id')" width="60" align="center" fixed="left" />
<el-table-column prop="jwcode" :label="t('common_list.jwcode')" width="120" fixed="left" /> <el-table-column prop="jwcode" :label="t('common_list.jwcode')" width="120" fixed="left" />
<el-table-column prop="name" :label="t('common_list.name')" width="150" show-overflow-tooltip /> <el-table-column prop="name" :label="t('common_list.name')" width="150" show-overflow-tooltip />

2
src/views/moneyManage/financialAccount/performanceAttribution.vue

@ -318,7 +318,7 @@ onMounted( async() => {
<!-- 表格区域 --> <!-- 表格区域 -->
<el-card class="table-card"> <el-card class="table-card">
<el-table :ref="tableRef" :data="tableData" v-loading="loading" style="width: 100%; flex: 1;" :cell-style="{ textAlign: 'center' }" :header-cell-style="{ background: '#F3FAFE', color: '#333',textAlign: 'center' }">
<el-table ref="tableRef" :data="tableData" v-loading="loading" style="width: 100%; flex: 1;" :cell-style="{ textAlign: 'center' }" :header-cell-style="{ background: '#F3FAFE', color: '#333',textAlign: 'center' }">
<el-table-column type="index" :label="t('common_list.id')" min-width="60" align="center" fixed="left" /> <el-table-column type="index" :label="t('common_list.id')" min-width="60" align="center" fixed="left" />
<el-table-column prop="jwcode" :label="t('common_list.jwcode')" min-width="120" fixed="left" /> <el-table-column prop="jwcode" :label="t('common_list.jwcode')" min-width="120" fixed="left" />
<el-table-column prop="name" :label="t('common_list.name')" min-width="150" show-overflow-tooltip /> <el-table-column prop="name" :label="t('common_list.name')" min-width="150" show-overflow-tooltip />

2
src/views/moneyManage/refundDetail/refundFinance.vue

@ -41,7 +41,7 @@
</el-card> </el-card>
<el-card style="margin-top: 0.5vh;background-color: rgb(231,244,253);"> <el-card style="margin-top: 0.5vh;background-color: rgb(231,244,253);">
<el-table :ref="tableRef" :data="tableData" style="height:73vh;width:82vw">
<el-table ref="tableRef" :data="tableData" style="height:73vh;width:82vw">
<el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left"> <el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left">
<template #default="scope"> <template #default="scope">
{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }} {{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }}

2
src/views/moneyManage/refundDetail/refundHeader.vue

@ -41,7 +41,7 @@
</el-card> </el-card>
<el-card style="margin-top: 0.5vh;background-color: rgb(231,244,253);"> <el-card style="margin-top: 0.5vh;background-color: rgb(231,244,253);">
<el-table :ref="tableRef" :data="tableData" style="height:73vh;width:82vw">
<el-table ref="tableRef" :data="tableData" style="height:73vh;width:82vw">
<el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left"> <el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left">
<template #default="scope"> <template #default="scope">
{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }} {{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }}

2
src/views/moneyManage/refundDetail/refundService.vue

@ -57,7 +57,7 @@
</el-card> </el-card>
<el-card style="margin-top: 0.5vh;background-color: rgb(231,244,253);"> <el-card style="margin-top: 0.5vh;background-color: rgb(231,244,253);">
<el-table :ref="tableRef" :data="tableData" style="height:73vh;width:82vw;background-color: rgb(243,250,254);">
<el-table ref="tableRef" :data="tableData" style="height:73vh;width:82vw;background-color: rgb(243,250,254);">
<el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left"> <el-table-column type="index" :label="t('common_list.id')" width="60" fixed="left">
<template #default="scope"> <template #default="scope">
{{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }} {{ scope.$index + 1 + (pagination.pageNum - 1) * pagination.pageSize }}

Loading…
Cancel
Save