guhongwei 4 vuotta sitten
vanhempi
commit
919abf4018

+ 1 - 0
src/views/adminCenter/vipInfo/index.vue

@@ -133,6 +133,7 @@ export default {
             email: this.form.email,
             content: this.form.content,
             role: '8',
+            status: '1',
             id: this.dock_id,
             vipid: this.form.vipid,
           };

+ 16 - 12
src/views/vipCenter/dynamicInfo/index.vue

@@ -54,19 +54,23 @@ export default {
   methods: {
     ...transactions({ transactionsfetch: 'fetch', transactionslist: 'query', transactiondetele: 'detele', transactionupdate: 'update' }),
     ...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
-    async searchInfo({ skip = 0, limit = 10, ...info } = {}) {
+    async searchInfo() {
       let res = await this.dockFetch(this.user.uid);
-      this.$set(this, `dock_id`, res.data.id);
-      let arr = await this.transactionslist({ skip, limit, dockid: this.dock_id, ...info });
-      var zzqt = arr.data.filter(item => item.status === '0');
-      var dcyx = arr.data.filter(item => item.status === '1');
-      var jywc = arr.data.filter(item => item.status === '2');
-      this.$set(this, `zzqtList`, zzqt);
-      this.$set(this, `zzqtTotal`, zzqt.length);
-      this.$set(this, `dcyxList`, dcyx);
-      this.$set(this, `dxyxTotal`, dcyx.length);
-      this.$set(this, `jywcList`, jywc);
-      this.$set(this, `jywcTotal`, jywc.length);
+      console.log(res);
+      // for (const val of res.data) {
+      //   console.log(val);
+      //   this.$set(this, `dock_id`, val.id);
+      // }
+      // let arr = await this.transactionslist({ skip, limit, dockid: this.dock_id, ...info });
+      // var zzqt = arr.data.filter(item => item.status === '0');
+      // var dcyx = arr.data.filter(item => item.status === '1');
+      // var jywc = arr.data.filter(item => item.status === '2');
+      // this.$set(this, `zzqtList`, zzqt);
+      // this.$set(this, `zzqtTotal`, zzqt.length);
+      // this.$set(this, `dcyxList`, dcyx);
+      // this.$set(this, `dxyxTotal`, dcyx.length);
+      // this.$set(this, `jywcList`, jywc);
+      // this.$set(this, `jywcTotal`, jywc.length);
     },
   },
   computed: {

+ 1 - 1
src/views/vipCenter/statisInfo/parts/technology.vue

@@ -115,7 +115,7 @@ export default {
       let res = await this.fetch(this.user.uid);
       let arr = res.data.apply.map(item => item.goodsList);
       arr = _.flattenDeep(arr);
-      var newArr = arr.filter(item => item.totaltype === '0');
+      var newArr = arr.filter(item => item.totaltype === '1');
       this.$set(this, `applyList`, newArr);
       this.$set(this, `total`, newArr.length);
     },