wuheng 2 years ago
parent
commit
61ddfe7539
2 changed files with 4 additions and 2 deletions
  1. 1 1
      src/views/publisher/addPublisher.vue
  2. 3 1
      src/views/publisher/publisherList.vue

+ 1 - 1
src/views/publisher/addPublisher.vue

@@ -144,7 +144,7 @@ import {addPublisher} from '../../api/publisher/publisher.js';
         this.$refs[formName].validate((valid) => {
           if (valid) {
             // 校验通过 调接口提交数据
-            addPublisher().then((res)=>{
+            addPublisher( this.ruleForm ).then((res)=>{
                 console.log(res);
             })
           }

+ 3 - 1
src/views/publisher/publisherList.vue

@@ -125,7 +125,9 @@ export default {
 
     //搜索
     searchPublisher(){
-      searchPublisher(this.input).then((res) =>{
+      searchPublisher({
+        "publisherName": this.input
+      }).then((res) =>{
         console.log(res);
         this.tableData = res.rows
       })