新闻中心 新增评论模块
This commit is contained in:
@@ -13,11 +13,13 @@
|
||||
</ai-list>
|
||||
<Add v-else-if="component === 'Add'" :moduleName="moduleName" :moduleId="moduleId" :areaId="areaId" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Add>
|
||||
<Detail v-else-if="component === 'Detail'" :moduleName="moduleName" :moduleId="moduleId" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Detail>
|
||||
<Comment v-else-if="component === 'Comment'" :moduleName="moduleName" :moduleId="moduleId" :areaId="areaId" :params="params" :instance="instance" :dict="dict" :permissions="permissions" @change="onChange"></Comment>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import List from './components/List'
|
||||
import Add from './components/Add'
|
||||
import Comment from './components/Comment'
|
||||
import Detail from './components/Detail'
|
||||
import Audit from './components/Audit'
|
||||
import { mapState } from 'vuex'
|
||||
@@ -50,6 +52,7 @@
|
||||
Add,
|
||||
List,
|
||||
Audit,
|
||||
Comment,
|
||||
Detail
|
||||
},
|
||||
|
||||
@@ -85,7 +88,7 @@
|
||||
if (data.type === 'Detail') {
|
||||
this.component = 'Detail'
|
||||
this.params = data.params
|
||||
this.isShowDetail = true
|
||||
this.isShowDetail = Comment
|
||||
}
|
||||
|
||||
if (data.type === 'Audit') {
|
||||
@@ -99,6 +102,12 @@
|
||||
this.params = data.params
|
||||
this.isShowDetail = false
|
||||
}
|
||||
|
||||
if (data.type === 'Comment') {
|
||||
this.component = 'Comment'
|
||||
this.params = data.params
|
||||
this.isShowDetail = true
|
||||
}
|
||||
},
|
||||
|
||||
onAreaChange () {
|
||||
|
||||
Reference in New Issue
Block a user