cmy vor 2 Jahren
Ursprung
Commit
2758c72e54
2 geänderte Dateien mit 111 neuen und 1 gelöschten Zeilen
  1. 108 1
      src/pages/user/list/handle/userDetails.vue
  2. 3 0
      src/pages/user/list/index.vue

+ 108 - 1
src/pages/user/list/handle/userDetails.vue

@@ -1,6 +1,6 @@
 <template>
     <!-- <div style="width: 100%"> -->
-  <Drawer :closable="false" width="1000" class-name="order_box" v-model="modals" :styles="{ padding: 0 }">
+  <Drawer :closable="false" width="1100" class-name="order_box" v-model="modals" :styles="{ padding: 0 }">
         <div class="acea-row user-row">
             <div class="avatar mr15">
                 <img :src="psInfo.avatar">
@@ -63,6 +63,13 @@
                                 <div class="title">{{ row.store_name }}</div>
                             </div>
                         </template>
+						
+						<template slot-scope="{ row }" slot="status_type">
+							<div>
+								<Button type="waning" v-if="row.status==0" >未出局</Button>
+								<Button type="success" v-if="row.status==1" >已出局</Button>
+							</div>
+						</template>
                     </Table>
                     <div class="acea-row row-right page">
                         <Page :total="total" :current.sync="userFrom.page" show-elevator show-total @on-change="pageChange" :page-size="userFrom.limit"  />
@@ -128,6 +135,9 @@
                     { val: 'sign', label: '签到记录' },
                     { val: 'coupon', label: '持有优惠券' },
                     { val: 'balance_change', label: '余额变动' },
+                    { val: 'static_integral', label: '消费分' },
+                    { val: 'action_integral', label: '贡献分' },
+                    { val: 'energy', label: '能量值' },
                     { val: 'spread', label: '好友关系' },
                     { val: 'visit', label: '浏览足迹' },
                     { val: 'spread_change', label: '推荐人变更记录' }
@@ -453,6 +463,103 @@
                                 }
                             ]
                             break;
+						case 'static_integral':
+						    this.columns = [
+						        {
+						            title: '获得数量',
+						            key: 'num',
+						            minWidth: 100
+						        },
+								{
+								    title: '进场价格',
+								    key: 'price',
+								    minWidth: 120
+								},
+								{
+								    title: '出局总价',
+								    key: 'extract_sum',
+								    minWidth: 120
+								},
+						        {
+						            title: '获得时间',
+						            key: '_add_time',
+						            minWidth: 120
+						        },
+						        {
+						            title: '备注',
+						            key: 'mark',
+						            minWidth: 120
+						        },
+								{
+								    title: '状态',
+								    slot: 'status_type',
+								    minWidth: 80
+								}
+						    ]
+						    break;
+						case 'action_integral':
+						    this.columns = [
+						        {
+						            title: '获得数量',
+						            key: 'num',
+						            minWidth: 100
+						        },
+								{
+								    title: '进场价格',
+								    key: 'price',
+								    minWidth: 120
+								},
+								{
+								    title: '出局总价',
+								    key: 'extract_sum',
+								    minWidth: 120
+								},
+						        {
+						            title: '获得时间',
+						            key: '_add_time',
+						            minWidth: 100
+						        },
+						        {
+						            title: '备注',
+						            key: 'mark',
+						            minWidth: 120
+						        },
+								{
+								    title: '状态',
+								    slot: 'status_type',
+								    minWidth: 80
+								}
+						    ]
+						    break;
+						case 'energy':
+						    this.columns = [
+								{
+								    title: '来源',
+								    key: 'title',
+								    minWidth: 120
+								},
+						        {
+						            title: '获得数量',
+						            key: 'number',
+						            minWidth: 120
+						        },
+								{
+								    title: '变化后',
+								    key: 'balance',
+								    minWidth: 120
+								},
+						        {
+						            title: '获得时间',
+						            key: 'add_time',
+						            minWidth: 120
+						        },
+						        {
+						            title: '备注',
+						            key: 'mark',
+						            minWidth: 120
+						        }
+						    ]
+						    break;
                         case 'coupon':
                             this.columns = [
                                 {

+ 3 - 0
src/pages/user/list/index.vue

@@ -459,6 +459,9 @@
         <vxe-column field="user_type" title="用户类型" min-width="100"></vxe-column>
         <vxe-column field="spread_uid_nickname" title="推荐人" min-width="100"></vxe-column>
         <vxe-column field="now_money" title="余额" min-width="100"></vxe-column>
+        <vxe-column field="static_integral" title="消费分" min-width="100"></vxe-column>
+        <vxe-column field="action_integral" title="贡献分" min-width="100"></vxe-column>
+        <vxe-column field="energy" title="能量值" min-width="100"></vxe-column>
         <vxe-column field="action" title="操作" align="center" width="180" fixed="right">
           <template v-slot="{ row }">
             <span v-if="row.delete_time != null" style="color: #c5c8ce;">编辑</span>