Эх сурвалжийг харах

收入列表中查询时段改为accountid作为查询条件

dodo hold 2 жил өмнө
parent
commit
8af8e38b22

+ 1 - 1
src/api/taobao.ts

@@ -140,7 +140,7 @@ export interface TkReportRecord {
 }
 
 export interface TkReportParams extends Partial<TkReportRecord> {
-    accountName?: string;
+    accountId?: number;
     query_date?: string[]; // 覆盖 report_date 的类型为字符串数组
     current: number;
     pageSize: number;

+ 9 - 8
src/views/taobao/list.vue

@@ -116,15 +116,17 @@
                     <a-list-item-meta :title="record.company" :description="record.description" />
                 </template>
                 <template #daily_income_limit="{ record }">
-                    <a-tag bordered :color="record.current_amt > record.daily_income_limit &&
-                        record.daily_income_limit > 0
-                        ? 'red'
-                        : ''
-                        ">
+                    <a-tag bordered
+                        :color="record.current_amt > record.daily_income_limit && record.daily_income_limit > 0 ? 'red' : ''">
                         {{ record.current_amt }} /
                         {{ record.daily_income_limit }}
                     </a-tag>
                 </template>
+
+                <template #nodeName="{ record }">
+                    <a-tag color="gray">{{ record.end_point }} - {{ record.nodeName }} </a-tag>
+                </template>
+
                 <template #status="{ record }">
                     <a-tag v-if="record.status" bordered color="green" @click="changeStatus(record.id, false)">
                         <template #icon>
@@ -142,7 +144,7 @@
                 <template #actions="{ record }">
                     <div style="margin:5px 5px 0 0;">
                         <a-tag v-if="record.enable_parse" size="mini" bordered color="red"
-                            @click="changeStatus(record.id, 'enable_parse', false)">
+                            @click="changeAttr(record.id, 'enable_parse', false)">
                             <template #icon>
                                 <icon-check />
                             </template>
@@ -284,7 +286,6 @@ const columns = computed<TableColumnData[]>(() => [
     },
     {
         title: '每日收益限额',
-        dataIndex: 'daily_income_limit',
         slotName: 'daily_income_limit',
         width: 180,
     },
@@ -295,7 +296,7 @@ const columns = computed<TableColumnData[]>(() => [
     },
     {
         title: '运行节点',
-        dataIndex: 'nodeName',
+        slotName: 'nodeName',
         width: 120,
     },
     {

+ 1 - 1
src/views/taobao/report_daily.vue

@@ -537,7 +537,7 @@ const loadMore = async (
         } else {
             const params: TkReportParams = {
                 query_date: [row.report_date, row.report_date],
-                accountName: row.accountName,
+                accountId: row.accountId,
                 current: 1,
                 pageSize: 24,
                 sort: 'report_date',