guhongwei 4 tahun lalu
induk
melakukan
81b5652a27

+ 20 - 26
src/views/achieveLive/detail/topInfo.vue

@@ -10,29 +10,9 @@
           <span>{{ info.sponsor }}</span>
           <span>{{ info.sponsor }}</span>
         </el-col>
         </el-col>
         <el-col :span="24" class="thr">
         <el-col :span="24" class="thr">
-          <p>
-            <span>同时在线</span>
-            <span>{{ 1000 + statNum.tszx || 0 }}人</span>
-          </p>
-          <p>
-            <span>特邀嘉宾</span>
-            <span>{{ statNum.tyjb || 0 }}人</span>
-          </p>
-          <p>
-            <span>洽谈合作</span>
-            <span>{{ statNum.qthz || 0 }}项</span>
-          </p>
-          <p>
-            <span>达成意愿</span>
-            <span>{{ statNum.dcyx || 0 }}项</span>
-          </p>
-          <p>
-            <span>交易完成</span>
-            <span>{{ statNum.jywc || 0 }}项</span>
-          </p>
-          <p>
-            <span>参展项目</span>
-            <span>{{ statNum.czxm || 0 }}项</span>
+          <p v-for="(item, index) in list" :key="index">
+            <span>{{ item.name }}</span>
+            <span>{{ item.num || 0 }}{{ item.unit }}</span>
           </p>
           </p>
         </el-col>
         </el-col>
       </el-col>
       </el-col>
@@ -42,6 +22,7 @@
 
 
 <script>
 <script>
 import { mapState, createNamespacedHelpers } from 'vuex';
 import { mapState, createNamespacedHelpers } from 'vuex';
+const { mapActions: statistics } = createNamespacedHelpers('statistics');
 export default {
 export default {
   name: 'topInfo',
   name: 'topInfo',
   props: {
   props: {
@@ -50,13 +31,26 @@ export default {
   components: {},
   components: {},
   data: function() {
   data: function() {
     return {
     return {
-      statNum: {},
+      list: [],
     };
     };
   },
   },
-  created() {},
-  methods: {},
+  async created() {
+    await this.search();
+  },
+  methods: {
+    ...statistics(['dockQuery']),
+    async search() {
+      let res = await this.dockQuery({ dock_id: this.id });
+      if (this.$checkRes(res)) {
+        this.$set(this, `list`, res.data);
+      }
+    },
+  },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),
+    id() {
+      return this.$route.query.id;
+    },
   },
   },
   watch: {},
   watch: {},
 };
 };

+ 1 - 1
src/views/admin/live/achieve/apply/goodsList.vue

@@ -42,7 +42,7 @@ export default {
         { label: '联系电话', prop: 'phone' },
         { label: '联系电话', prop: 'phone' },
         { label: '所属领域', prop: 'field' },
         { label: '所属领域', prop: 'field' },
         { label: '合作方式', prop: 'cooperation' },
         { label: '合作方式', prop: 'cooperation' },
-        { label: '审核状态', prop: 'status', format: i => (i == '1' ? '已通过' : i == '2' ? '已拒绝' : '未审核') },
+        { label: '审核状态', prop: 'dockStatus', format: i => (i == '1' ? '已通过' : i == '2' ? '已拒绝' : '未审核') },
       ],
       ],
       info: {},
       info: {},
     };
     };

+ 1 - 1
src/views/admin/live/achieve/road_show.vue

@@ -95,7 +95,7 @@ export default {
   methods: {
   methods: {
     ...roadShow(['query', 'create', 'update', 'delete']),
     ...roadShow(['query', 'create', 'update', 'delete']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
     async search({ skip = 0, limit = 10, ...info } = {}) {
-      const res = await this.query({ skip, limit, ...info });
+      const res = await this.query({ skip, limit, dock_id: this.user.id, ...info });
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
         this.$set(this, `total`, res.total);