CN-906 fix: 面包屑功能调整(部分)

This commit is contained in:
chenjinsong
2023-02-24 18:51:17 +08:00
parent def8851da0
commit f87714fae2
5 changed files with 95 additions and 44 deletions

View File

@@ -10,8 +10,8 @@
@search="search"
>
<template v-slot:top-tool-right>
<button id="roles-add" :title="$t('overall.createRole')" class="top-tool-btn margin-r-10"
type="button" @click="add">
<button id="knowledge-base-add" :title="$t('knowledgeBase.createKnowledgeBase')" class="top-tool-btn margin-r-10"
type="button" @click="jumpToCreatePage">
<i class="cn-icon-add cn-icon"></i>
</button>
</template>
@@ -54,15 +54,8 @@ export default {
data () {
return {
url: api.knowledgeBase,
tableId: 'knowledgeBaseTable', // 需要分页的table的id用于记录每页数量
blankObject: { // 空白对象
tagName: '',
buildIn: '',
id: '',
tagType: '',
remark: '',
updateTime: ''
}
tableId: 'knowledgeBaseTable' // 需要分页的table的id用于记录每页数量
}
},
methods: {
@@ -74,6 +67,14 @@ export default {
}
})
},
jumpToCreatePage () {
this.$router.push({
path: '/knowledgeBase/form',
query: {
t: +new Date()
}
})
},
getTableData () {
this.tools.loading = false
this.tableData = [