CN-906 fix: 知识库列表排序字段名更正

This commit is contained in:
chenjinsong
2023-03-06 14:19:29 +08:00
parent e2f9eb7f59
commit ac28e52ca7
4 changed files with 28 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ import cnDataList from '@/components/table/CnDataList'
import dataListMixin from '@/mixins/data-list'
import KnowledgeBaseTable from '@/components/table/setting/KnowledgeBaseTable'
import { api } from '@/utils/api'
import { get } from '@/utils/http'
import {del, get} from '@/utils/http'
export default {
name: 'knowledgeBase',
@@ -67,6 +67,23 @@ export default {
}
})
},
del (row) {
this.$confirm(this.$t('tip.confirmDelete'), {
confirmButtonText: this.$t('tip.yes'),
cancelButtonText: this.$t('tip.no'),
type: 'warning'
}).then(() => {
del(this.url + '?ids=' + row.knowledgeId).then(response => {
if (response.code === 200) {
this.delFlag = true
this.$message({ duration: 2000, type: 'success', message: this.$t('tip.deleteSuccess') })
this.getTableData()
} else {
this.$message.error(response.msg)
}
})
})
},
jumpToCreatePage () {
this.$router.push({
path: '/knowledgeBase/form',