Bläddra i källkod

代码提交:
1031知识分享

sunruiqi 2 år sedan
förälder
incheckning
ee28794c44

+ 1 - 3
src/views/modules/knowledgeShare/InfoForm.vue

@@ -6,7 +6,6 @@
       v-dialogDrag
       width="1300px"
       @close="close"
-      @keyup.enter.native="doSubmit"
       :visible.sync="visible">
       <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="method === 'view'"
                label-width="150px" @submit.native.prevent>
@@ -274,7 +273,7 @@
         }
         this.loading = true
         this.knowledgeShareInfoService.addComment(this.commentForm).then(({data}) => {
-          this.close()
+          this.init('view', this.inputForm.id)
           this.$message.success(data)
           this.$emit('refreshDataList')
           this.loading = false
@@ -297,7 +296,6 @@
         this.$refs.knowledgeShareTypePageForm.init()
       },
       getProgram (rows) {
-        console.log('aaaaaaaaaaa', rows[0])
         this.inputForm.typeId = rows[0].id
         this.inputForm.typeName = rows[0].klgsType
         this.$forceUpdate()

+ 1 - 1
src/views/modules/knowledgeShare/InfoList.vue

@@ -24,7 +24,7 @@
       </vxe-toolbar>
 
       <el-tabs v-model="typeId" type="card" @tab-click="handleClick">
-        <el-tab-pane :key="index" v-for="(item,index) in typeList" :label="item.klgsType" :name="item.klgsType" :value="item.id"></el-tab-pane>
+        <el-tab-pane :key="index" v-for="(item,index) in typeList" :label="item.klgsType" :name="item.id" :value="item.id"></el-tab-pane>
       </el-tabs>
 
       <div style="height: calc(100% - 50px)">