guhongwei 5 роки тому
батько
коміт
827f335ae5

+ 1 - 1
src/layout/supermarket/fabu.vue

@@ -4,7 +4,7 @@
       <el-col :span="24" class="info">
         <el-col :span="24" class="topInfo">
           <el-col :span="21" class="left">{{ title }}</el-col>
-          <el-col :span="2" class="btn" @click.native="fabu()"><el-link :underline="false">我要发布</el-link></el-col>
+          <el-col :span="2" class="btn"><el-link :underline="false" @click.native="fabu()">我要发布</el-link></el-col>
           <el-col :span="1" class="more">
             <el-link :underline="false" @click="clickmore"><el-image :src="more"></el-image></el-link>
           </el-col>

+ 1 - 6
src/views/supermaket/supermarket.vue

@@ -182,8 +182,6 @@ export default {
     async searchInfo({ skip = 0, limit = 8, ...info } = {}) {
       const res = await this.ProductQuery({ skip, limit, ...info });
       for (const val of res.data) {
-        console.log(val.totaltype);
-
         if (val.totaltype === '0') {
           var arr = res.data.filter(item => item.totaltype === '0');
           this.$set(this, `jishuList`, arr);
@@ -192,13 +190,9 @@ export default {
           var arrs = res.data.filter(item => item.totaltype === '1');
           this.$set(this, `chanpinList`, arrs);
           this.$set(this, `chanpinTotal`, arrs.length);
-          console.log(arrs);
         } else if (val.totaltype === '2') {
-          console.log('344');
-
           var arrss = res.data.filter(item => item.totaltype === '2');
           this.$set(this, `serviceList`, arrss);
-          console.log(arrss);
           this.$set(this, `serveTotal`, arrss.length);
         }
       }
@@ -209,6 +203,7 @@ export default {
       this.$set(this, `tableData`, res.data);
     },
     fabu() {
+      console.log('闹');
       if (this.user.role == '2' || this.user.role == '3') {
         this.$router.push({ path: '/enterprise/enterprisexuqiu' });
       }