feat:知识库查询接口
This commit is contained in:
parent
85a459fbf1
commit
0009a71602
@ -1,7 +1,9 @@
|
||||
import * as redBlackApi from './redAndBlank';
|
||||
import * as materialApi from './material';
|
||||
import * as knowledgeApi from './common';
|
||||
|
||||
export default {
|
||||
...materialApi,
|
||||
...redBlackApi,
|
||||
...knowledgeApi,
|
||||
};
|
||||
|
@ -0,0 +1,7 @@
|
||||
import request from '@/utils/axios';
|
||||
|
||||
function getQuestionList(params) {
|
||||
return request('/knowledge/page', {
|
||||
params,
|
||||
});
|
||||
}
|
@ -71,6 +71,7 @@ const option = reactive({
|
||||
label: '名称',
|
||||
prop: 'question',
|
||||
renderForm: ({ row }) => {
|
||||
console.log('row ---', row);
|
||||
return h('span', {}, row.question);
|
||||
},
|
||||
span: 24,
|
||||
@ -186,7 +187,7 @@ function handleReply({ row }) {
|
||||
console.log('reply', row);
|
||||
curdRef.value.rowEdit(row);
|
||||
}
|
||||
function handleInfo(row) {
|
||||
function handleInfo({ row }) {
|
||||
console.log('info', row);
|
||||
curdRef.value.rowView(row);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user