wuhongyu 5 éve
szülő
commit
1741a910e6
2 módosított fájl, 38 hozzáadás és 33 törlés
  1. 20 16
      src/views/direct.vue
  2. 18 17
      src/views/hall/dock/dockDetail.vue

+ 20 - 16
src/views/direct.vue

@@ -300,7 +300,6 @@ export default {
     // 专家详情
     dialogExport: false,
     exportInfo: {},
-
     //搜索判断用
     panduan: '找技术',
     // 找技术
@@ -482,7 +481,6 @@ export default {
     },
     //tabs
     handleClick(tab, event) {
-      console.log(event.target.getAttribute('id'));
       if (event.target.getAttribute('id') == 'tab-0') {
         this.panduan = '找技术';
         if (this.name) {
@@ -505,25 +503,31 @@ export default {
         }
       }
     },
-
     resetForm(name) {
       if (this.panduan == '找技术') {
-        let newname = this.name;
-        this.searchInfo(newname);
-
-        console.log('1');
+        if (name) {
+          this.searchInfo(name);
+        } else {
+          this.searchInfo();
+        }
       } else if (this.panduan == '找产品') {
-        let newname = this.name;
-        this.searchchanpin(newname);
-        console.log('2');
+        if (name) {
+          this.searchchanpin(name);
+        } else {
+          this.searchchanpin();
+        }
       } else if (this.panduan == '找服务') {
-        let newname = this.name;
-        this.searchfuwu(newname);
-        console.log('3');
+        if (name) {
+          this.searchfuwu(name);
+        } else {
+          this.searchfuwu();
+        }
       } else if (this.panduan == '找专家') {
-        let newname = this.name;
-        this.searchzhanjia(newname);
-        console.log('4');
+        if (name) {
+          this.searchzhanjia(name);
+        } else {
+          this.searchzhanjia();
+        }
       }
     },
   },

+ 18 - 17
src/views/hall/dock/dockDetail.vue

@@ -96,7 +96,7 @@
         </el-col>
       </el-col>
     </el-row>
-    <el-dialog title="产品参数" :visible.sync="dialogVisible" width="50%" :before-close="handleClose">
+    <el-dialog title="产品参数" :visible.sync="dialogVisible" width="50%">
       <el-table :data="tableData" border style="width: 100%">
         <el-table-column prop="arg_name" label="参数名称" align="center"> </el-table-column>
         <el-table-column prop="memo" label="参数内容" align="center"> </el-table-column>
@@ -149,13 +149,13 @@ export default {
       this.dialogVisible = true;
       this.$set(this, `tableData`, data);
     },
-    handleClose(done) {
-      this.$confirm('确认关闭?')
-        .then(_ => {
-          done();
-        })
-        .catch(_ => {});
-    },
+    // handleClose(done) {
+    //   this.$confirm('确认关闭?')
+    //     .then(_ => {
+    //       done();
+    //     })
+    //     .catch(_ => {});
+    // },
     // 更多
     scopeMore() {
       this.scope = '';
@@ -384,24 +384,25 @@ p {
     height: 50px;
     line-height: 50px;
     text-align: center;
+
+    /deep/.el-dialog__body {
+      padding: 30px 20px;
+      color: #606266;
+      font-size: 14px;
+      height: 800px;
+      word-break: break-all;
+    }
   }
 }
 
-/deep/.el-dialog__body {
-  padding: 30px 20px;
-  color: #606266;
-  font-size: 14px;
-  height: 800px;
-  word-break: break-all;
-}
 .marketPublish {
   position: fixed;
   background: #0279d5;
   width: 100px;
   height: 100px;
   z-index: 999;
-  left: 2%;
-  top: 80%;
+  left: 13%;
+  top: 49%;
   border-radius: 20px;
   box-shadow: 2px 2px 2px #055c9f;
   text-align: center;