Sfoglia il codice sorgente

积分/现金记录 整合

梁展鹏 3 anni fa
parent
commit
b6ee114671

+ 0 - 4
src/api/cash/index.js

@@ -1,4 +0,0 @@
-import api from '@/utils/request';
-
-export const getPage = params =>
-	api.post(`/yxl-back-end/admin/cash/record/page`, params);

+ 7 - 0
src/api/integral-cash/index.js

@@ -0,0 +1,7 @@
+import api from '@/utils/request';
+
+export const getCashPage = params =>
+	api.post(`/yxl-back-end/admin/record/cash/page`, params);
+
+export const getIntegralPage = params =>
+	api.post(`/yxl-back-end/admin/record/integral/page`, params);

+ 0 - 4
src/api/points/detail.js

@@ -1,4 +0,0 @@
-import api from '@/utils/request';
-
-export const getPage = params =>
-	api.post(`/yxl-back-end/admin/integral/record/page`, params);

+ 11 - 12
src/views/financialManagement/cashDetail/index.vue

@@ -15,7 +15,7 @@
 <script>
 import toolbar from './toolbar';
 import mxFilterList from '@/mixins/filterList';
-import { getPage } from '@/api/cash';
+import { getCashPage } from '@/api/integral-cash';
 
 export default {
   name: 'CashDetail',
@@ -24,7 +24,7 @@ export default {
 
   mixins: [
     mxFilterList({
-      fetchList: getPage // 在下方data再声明一个 fetchList: iGetList 同等效果
+      fetchList: getCashPage // 在下方data再声明一个 fetchList: iGetList 同等效果
     })
   ],
 
@@ -36,16 +36,15 @@ export default {
           name: '用户ID',
           width: this.$col.b
         },
-        // {
-        //   key: 'region',
-        //   name: '昵称',
-        //   width: '180'
-        // },
-        // {
-        //   key: 'region',
-        //   name: '手机号',
-        //   width: '120'
-        // },
+        {
+          key: 'nickname',
+          name: '账号昵称'
+        },
+        {
+          key: 'phonenumber',
+          name: '账号手机号码',
+          width: this.$col.b
+        },
         {
           key: 'scene',
           name: '场景',

+ 11 - 12
src/views/pointsManagement/pointsDetail/index.vue

@@ -15,7 +15,7 @@
 <script>
 import toolbar from './toolbar';
 import mxFilterList from '@/mixins/filterList';
-import { getPage, delItem } from '@/api/points/detail';
+import { getIntegralPage } from '@/api/integral-cash';
 
 export default {
   name: 'PointsDetail',
@@ -24,7 +24,7 @@ export default {
 
   mixins: [
     mxFilterList({
-      fetchList: getPage // 在下方data再声明一个 fetchList: iGetList 同等效果
+      fetchList: getIntegralPage // 在下方data再声明一个 fetchList: iGetList 同等效果
     })
   ],
 
@@ -36,16 +36,15 @@ export default {
           name: '用户ID',
           width: this.$col.b
         },
-        // {
-        //   key: 'region',
-        //   name: '昵称',
-        //   width: '180'
-        // },
-        // {
-        //   key: 'region',
-        //   name: '手机号',
-        //   width: '120'
-        // },
+        {
+          key: 'nickname',
+          name: '账号昵称'
+        },
+        {
+          key: 'phonenumber',
+          name: '账号手机号码',
+          width: this.$col.b
+        },
         {
           key: 'scene',
           name: '场景',