li.shaoyi преди 7 месеца
родител
ревизия
8b86709eb0
променени са 1 файла, в които са добавени 6 реда и са изтрити 5 реда
  1. 6 5
      src/packages/pc/views/report/fee/index.vue

+ 6 - 5
src/packages/pc/views/report/fee/index.vue

@@ -2,7 +2,7 @@
 <template>
     <app-view>
         <template #header>
-            <app-filter :option="filterOption"  :rules="filterRules">
+            <app-filter :option="filterOption" :rules="filterRules">
                 <template #startDate>
                     <el-form-item :label="t('report.fee.date')" prop="date">
                         <el-date-picker type="daterange" v-model="dateValue" value-format="YYYYMMDD"
@@ -13,8 +13,7 @@
         </template>
         <app-table :data="dataList" :columns="tableColumns" :loading="loading">
             <template #headerLeft>
-                <app-operation :data-list="getActionButtons(['report_bank_export'])"
-                    @click="openComponentOnClick" />
+                <app-operation :data-list="getActionButtons(['report_bank_export'])" @click="openComponentOnClick" />
             </template>
             <template #footer>
                 <app-pagination :total="total" v-model:page-size="pageSize" v-model:page-index="pageIndex"
@@ -30,6 +29,7 @@
 import { ref, shallowRef } from 'vue'
 import { ElMessage, FormRules } from 'element-plus'
 import { useDataFilter } from '@/hooks/datatable-v2'
+import { useEnum } from '@/hooks/enum'
 import { useRequest } from '@/hooks/request'
 import { useOperation } from '@/hooks/operation'
 import { manageDivReportQuery } from '@/services/api/report'
@@ -39,6 +39,8 @@ import AppPagination from '@pc/components/base/pagination/index.vue'
 import AppOperation from '@pc/components/base/operation/index.vue'
 import AppFilter from '@pc/components/base/table-filter-v2/index.vue'
 
+const roleTypeEnum = useEnum('roleType') // 角色
+
 const { global: { t } } = i18n
 const dateValue = shallowRef<string[] | null>([])
 
@@ -60,7 +62,7 @@ const { dataList, total, pageSize, pageIndex, loading, run } = useRequest(manage
 const tableColumns = ref<Model.TableColumn[]>([
     { field: 'tradedate', label: 'report.fee.tradedate' },
     { field: 'areaname', label: 'report.fee.areaname' },
-    { field: 'areatype', label: 'report.fee.areatype' },
+    { field: 'areatype', label: 'report.fee.areatype', formatValue: (val) => roleTypeEnum.getEnumTypeName(val) },
     { field: 'bankname', label: 'report.fee.bankname' },
     { field: 'totalcount', label: 'report.fee.totalcount' },
     { field: 'totalfee', label: 'report.fee.totalfee' }
@@ -113,7 +115,6 @@ const onReset = () => {
 }
 
 const openComponentOnClick = (code: string) => {
-    queryParams.value = processRequiredParams()
     openComponent(code)
 }
 </script>