dodo hold преди 1 година
родител
ревизия
14c4886e03
променени са 5 файла, в които са добавени 30 реда и са изтрити 11 реда
  1. 2 1
      src/api/taobao.ts
  2. 1 1
      src/views/jd/list.vue
  3. 2 2
      src/views/pdd/estimate_revenue.vue
  4. 1 1
      src/views/pdd/list.vue
  5. 24 6
      src/views/taobao/list.vue

+ 2 - 1
src/api/taobao.ts

@@ -84,13 +84,14 @@ export interface TkPoolRecord {
     appSecret: string;
     open_pid: string;
 
-    
+
     daily_income_limit: number;
     daily_calls_limit: number;
     current_hourly_calls: number;
     hourly_calls_limit: number;
     current_daily_calls: number;
     time_range: number;
+    is_banned: boolean;
 }
 
 export interface FormRes {

+ 1 - 1
src/views/jd/list.vue

@@ -268,7 +268,7 @@ const size = ref<SizeProps>('small');
 
 const basePagination: Pagination = {
     current: 1,
-    pageSize: 50,
+    pageSize: 500,
 };
 const pagination = reactive({
     ...basePagination,

+ 2 - 2
src/views/pdd/estimate_revenue.vue

@@ -13,7 +13,7 @@
                                 </a-form-item>
                             </a-col>
                             <a-col :span="8">
-                                <a-form-item field="query_date" label="订单完成日期">
+                                <a-form-item field="query_date" label="支付日期">
                                     <a-range-picker v-model="formModel.query_date" style="width: 100%"
                                         @change="search" />
                                 </a-form-item>
@@ -228,7 +228,7 @@ const densityList = computed(() => [
 
 const columns = computed<TableColumnData[]>(() => [
     {
-        title: '订单完成日期',
+        title: '支付日期',
         dataIndex: 'xAxis',
         slotName: 'xAxis',
         fixed: 'left',

+ 1 - 1
src/views/pdd/list.vue

@@ -274,7 +274,7 @@ const size = ref<SizeProps>('small');
 
 const basePagination: Pagination = {
     current: 1,
-    pageSize: 50,
+    pageSize: 500,
 };
 const pagination = reactive({
     ...basePagination,

+ 24 - 6
src/views/taobao/list.vue

@@ -137,14 +137,19 @@
                         正常</a-tag>
 
                 </template>
+                <template #is_banned="{ record }">
+                    <a-tag v-if="record.is_banned" size="small" bordered color="red">
+                        封号
+                    </a-tag>
+                </template>
                 <template #status="{ record }">
-                    <a-tag v-if="record.status" bordered color="green" @click="changeStatus(record.id, false)">
+                    <a-tag v-if="record.status" bordered color="green" @click="changeStatus(record, false)">
                         <template #icon>
                             <icon-check />
                         </template>
                         在线
                     </a-tag>
-                    <a-tag v-else bordered color="" @click="changeStatus(record.id, true)">
+                    <a-tag v-else bordered color="" @click="changeStatus(record, true)">
                         <template #icon>
                             <icon-stop />
                         </template>
@@ -310,7 +315,7 @@ const size = ref<SizeProps>('mini');
 
 const basePagination: Pagination = {
     current: 1,
-    pageSize: 50,
+    pageSize: 500,
 };
 const pagination = reactive({
     ...basePagination,
@@ -347,6 +352,11 @@ const columns = computed<TableColumnData[]>(() => [
         slotName: 'name',
         width: 200,
     },
+    {
+        title: '',
+        slotName: 'is_banned',
+        width: 40,
+    },
     {
         title: '工作时间',
         dataIndex: 'time_range',
@@ -433,7 +443,7 @@ const statusOptions = computed<SelectOptionData[]>(() => [
 const fetchData = async (
     params: TkPoolParams = {
         current: 1,
-        pageSize: 50,
+        pageSize: 500,
         sort: 'status',
         order: 'descending',
         getTotal: true,
@@ -463,13 +473,21 @@ const billView = async (data: TkPoolRecord) => {
     router.push({ name: 'taobao_bill_dailys', query: { name: data.company } });
 };
 
-const changeStatus = async (id: number, val: any) => {
+const changeStatus = async (data: TkPoolRecord, val: any) => {
+
+    if (data.is_banned && val) {
+        Message.error('被封账号,不能上线!');
+        return;
+    }
     const args = {
-        id,
+        id: data.id,
         name: 'status',
         val
     } as TkUpdateAccountModel;
 
+
+
+
     setLoading(true);
 
     try {