Forráskód Böngészése

Merge branch '2025_0226_fr_topictype' into dev

15313670163 3 hónapja
szülő
commit
56e2adabc9
1 módosított fájl, 3 hozzáadás és 14 törlés
  1. 3 14
      src/views/chat/topicType.vue

+ 3 - 14
src/views/chat/topicType.vue

@@ -76,7 +76,7 @@
                 </div>
                 <div class="dialogBtn">
                     <el-button type="info" @click="dialogTableVisible = false">取消</el-button>
-                    <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
+                    <el-button type="primary" @click="submitForm('ruleForm')" v-if="dialogTableVisible">提交</el-button>
                 </div>
             </el-form>
         </el-dialog>
@@ -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