guhongwei 4 年之前
父节点
当前提交
cf1497edc1
共有 1 个文件被更改,包括 12 次插入12 次删除
  1. 12 12
      src/views/market/index.vue

+ 12 - 12
src/views/market/index.vue

@@ -133,21 +133,21 @@ export default {
     ...product(['query']),
     ...exportuser({ expertquery: 'query' }),
     async search() {
-      const res1 = await this.query({ skip: 0, type: '1', status: '1' });
-      if (this.$checkRes(res1)) {
-        this.$set(this, `tecList`, res1.data);
+      let res = await this.query({ skip: 0, type: '1', status: '1' });
+      if (this.$checkRes(res)) {
+        this.$set(this, `tecList`, res.data);
       }
-      const res2 = await this.query({ skip: 0, type: '0', status: '1' });
-      if (this.$checkRes(res2)) {
-        this.$set(this, `demandList`, res2.data);
+      res = await this.query({ skip: 0, type: '0', status: '1' });
+      if (this.$checkRes(res)) {
+        this.$set(this, `demandList`, res.data);
       }
-      const res3 = await this.query({ skip: 0, type: '2', status: '1' });
-      if (this.$checkRes(res3)) {
-        this.$set(this, `serveList`, res3.data);
+      res = await this.query({ skip: 0, type: '2', status: '1' });
+      if (this.$checkRes(res)) {
+        this.$set(this, `serveList`, res.data);
       }
-      const res4 = await this.expertquery({ skip: 0, status: '1' });
-      if (this.$checkRes(res4)) {
-        this.$set(this, `expertList`, res4.data);
+      res = await this.expertquery({ skip: 0, status: '1' });
+      if (this.$checkRes(res)) {
+        this.$set(this, `expertList`, res.data);
       }
     },
     //下拉选择