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