feat:知识库查询接口

This commit is contained in:
李想 2025-03-19 15:11:24 +08:00
parent 85a459fbf1
commit 0009a71602
3 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,9 @@
import * as redBlackApi from './redAndBlank'; import * as redBlackApi from './redAndBlank';
import * as materialApi from './material'; import * as materialApi from './material';
import * as knowledgeApi from './common';
export default { export default {
...materialApi, ...materialApi,
...redBlackApi, ...redBlackApi,
...knowledgeApi,
}; };

View File

@ -0,0 +1,7 @@
import request from '@/utils/axios';
function getQuestionList(params) {
return request('/knowledge/page', {
params,
});
}

View File

@ -71,6 +71,7 @@ const option = reactive({
label: '名称', label: '名称',
prop: 'question', prop: 'question',
renderForm: ({ row }) => { renderForm: ({ row }) => {
console.log('row ---', row);
return h('span', {}, row.question); return h('span', {}, row.question);
}, },
span: 24, span: 24,
@ -186,7 +187,7 @@ function handleReply({ row }) {
console.log('reply', row); console.log('reply', row);
curdRef.value.rowEdit(row); curdRef.value.rowEdit(row);
} }
function handleInfo(row) { function handleInfo({ row }) {
console.log('info', row); console.log('info', row);
curdRef.value.rowView(row); curdRef.value.rowView(row);
} }