|
@@ -118,7 +118,7 @@ export default {
|
|
|
methods: {
|
|
|
//1.1 开始请求列表信息方法
|
|
|
getData(){
|
|
|
- getTopicClassList({ page: this.page,page_size: this.pageSize}).then(res=> {
|
|
|
+ getTopicClassList({ page: this.page,page_size: this.pageSize,topicname:this.tabbarName}).then(res=> {
|
|
|
if(res.code==200){
|
|
|
this.tableData = res.data.data;
|
|
|
this.total = res.data.total;
|
|
@@ -143,17 +143,7 @@ export default {
|
|
|
},
|
|
|
// 1.6 搜索按钮
|
|
|
goSearch() {
|
|
|
- if ( this.tabbarName) {
|
|
|
- getTopicClassList({
|
|
|
- page: this.page,
|
|
|
- page_size: this.pageSize,
|
|
|
- topicname: this.tabbarName, //课题分类名称
|
|
|
- }).then(data => {
|
|
|
- console.log(data);
|
|
|
- this.tableData = data.data.data
|
|
|
- this.total = data.data.total
|
|
|
- })
|
|
|
- }
|
|
|
+ this.getData()
|
|
|
},
|
|
|
//1.7 重置按钮
|
|
|
goReset() {
|
|
@@ -214,7 +204,6 @@ export default {
|
|
|
|
|
|
//1.7 添加
|
|
|
addTopicClass() {
|
|
|
- console.log('addTopicClass method is called');
|
|
|
this.dialogTableVisible = true
|
|
|
this.dialogName = "添加"
|
|
|
this.disabled=false
|