소스 검색

去除假数据

wuhongyu 4 년 전
부모
커밋
db2332d87c

+ 2 - 20
src/views/achievement/index.vue

@@ -164,22 +164,8 @@ export default {
     total: 1,
     limit: 16,
     details: {},
-    list: [
-      {
-        title: '标题',
-        date: '2020-02-02',
-      },
-      {
-        title: '16条数据',
-        date: '2020-02-02',
-      },
-    ],
-    details: {
-      title: '信息标题',
-      source: '信息部',
-      date: '2020-02-02',
-      content: '信息内容',
-    },
+    list: [],
+    details: {},
   }),
   created() {
     this.search();
@@ -200,13 +186,11 @@ export default {
     ...news({ newsQuery: 'query', newsFetch: 'fetch' }),
     async search() {
       this.columnName = this.col_name;
-      console.log(this.columnName);
       if (this.display == '0') {
         let res = await this.newsQuery({ skip: 0, limit: 16, col_name: this.col_name, status: 2 });
         if (this.$checkRes(res)) this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       } else {
-        console.log('sdada');
         let res = await this.newsFetch(this.id);
         if (this.$checkRes(res)) this.$set(this, `details`, res.data);
         this.$set(this, `displays`, this.display);
@@ -232,8 +216,6 @@ export default {
 
     //分页
     async searchinfo({ skip, limit }) {
-      console.log(skip);
-      console.log(limit);
       let res = await this.newsQuery({ skip, limit: 16, col_name: this.columnName, status: 2 });
       if (this.$checkRes(res)) this.$set(this, `list`, res.data);
       this.$set(this, `total`, res.total);

+ 1 - 16
src/views/communication/list.vue

@@ -110,26 +110,13 @@ export default {
       columnName: '',
       displays: '0',
       // 列表
-      list: [
-        {
-          title: '标题',
-          date: '2020-02-02',
-        },
-        {
-          title: '十四数据',
-          date: '2020-02-02',
-        },
-      ],
+      list: [],
       // 总数
       total: 0,
       limit: 14,
       newsid: '',
       // 详情
       details: {
-        title: '信息标题',
-        source: '信息部',
-        date: '2020-02-02',
-        content: '信息内容',
       },
     };
   },
@@ -149,7 +136,6 @@ export default {
       } else if (this.col_name == '技术问答') {
         this.menuIndex = 1;
         this.columnName = this.col_name;
-        console.log('cc');
         this.menuColor = 'rgb(5,73,130)';
 
         this.$set(this, `displays`, this.display);
@@ -189,7 +175,6 @@ export default {
 
     // 点击详情
     detailBtn(item) {
-      console.log(item);
       if (item.url) {
         window.open(item.url);
       } else {

+ 0 - 2
src/views/communication/parts/technologyDetail.vue

@@ -61,11 +61,9 @@ export default {
       if (this.id) {
         const res = await this.fetch(this.id);
         this.$set(this, `detailinfo`, res.data);
-        console.log(res.data);
       } else {
         const res = await this.fetch(this.newsid);
         this.$set(this, `detailinfo`, res.data);
-        console.log(res.data);
       }
     },
   },

+ 0 - 4
src/views/communication/parts/topicDetail.vue

@@ -142,13 +142,11 @@ export default {
       if (this.id) {
         newsid = this.id;
         let res = await this.commentquery({ skip, limit, newsid, status: 1 });
-        console.log(res);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       } else {
         newsid = this.newsid;
         let res = await this.commentquery({ skip, limit, newsid, status: 1 });
-        console.log(res);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       }
@@ -163,7 +161,6 @@ export default {
           this.form.uid = this.user.uid;
           let data = this.form;
           let res = await this.commentCreate(data);
-          console.log(res);
           this.$checkRes(res, '评论成功', '评论失败');
           this.search();
         } else {
@@ -171,7 +168,6 @@ export default {
           this.form.uid = this.user.uid;
           let data = this.form;
           let res = await this.commentCreate(data);
-          console.log(res);
           this.$checkRes(res, '评论成功', '评论失败');
           this.search();
         }

+ 1 - 8
src/views/news/listDetail.vue

@@ -82,12 +82,7 @@ export default {
       total: 0,
       limit: 10,
       // 详情
-      details: {
-        title: '信息标题',
-        source: '信息部',
-        date: '2020-02-02',
-        content: '信息内容',
-      },
+      details: {},
     };
   },
   created() {
@@ -130,7 +125,6 @@ export default {
       this.columnName = name;
       let res = await this.newsQuery({ skip: 0, limit: 14, col_name: name, status: 2 });
       if (this.$checkRes(res)) {
-        console.log(res);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       }
@@ -140,7 +134,6 @@ export default {
     async search({ skip, limit }) {
       let res = await this.newsQuery({ skip, limit: 14, col_name: this.columnName, status: 2 });
       if (this.$checkRes(res)) {
-        console.log(res);
         this.$set(this, `list`, res.data);
         this.$set(this, `total`, res.total);
       }

+ 1 - 10
src/views/partisan/listDetail.vue

@@ -77,16 +77,7 @@ export default {
       columnName: '',
       displays: '0',
       // 列表
-      list: [
-        {
-          title: '标题',
-          date: '2020-02-02',
-        },
-        {
-          title: '十四数据',
-          date: '2020-02-02',
-        },
-      ],
+      list: [],
       // 总数
       total: 10,
       // 详情

+ 0 - 1
src/views/pcenter/demand.vue

@@ -209,7 +209,6 @@ export default {
     },
     // 返回
     back() {
-      console.log(this.display);
       this.display = true;
     },
     async onSubmit() {