CN-906 fix: 面包屑功能调整(部分)
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user