feat:知识库查询接口
This commit is contained in:
		
							parent
							
								
									85a459fbf1
								
							
						
					
					
						commit
						0009a71602
					
				| @ -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, | ||||||
| }; | }; | ||||||
|  | |||||||
| @ -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: '名称', |       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); | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user