mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	fix: todo
This commit is contained in:
		| @@ -227,6 +227,7 @@ export default defineComponent({ | |||||||
|                   {...(autoSetPlaceholder && setTextPlaceholder(item))} |                   {...(autoSetPlaceholder && setTextPlaceholder(item))} | ||||||
|                   {...setComponentProps(item)} |                   {...setComponentProps(item)} | ||||||
|                   style={item.componentProps?.style} |                   style={item.componentProps?.style} | ||||||
|  |                   {...item.componentProps?.props} | ||||||
|                   {...(notRenderOptions.includes(item?.component as string) && |                   {...(notRenderOptions.includes(item?.component as string) && | ||||||
|                   item?.componentProps?.options |                   item?.componentProps?.options | ||||||
|                     ? { options: item?.componentProps?.options || [] } |                     ? { options: item?.componentProps?.options || [] } | ||||||
|   | |||||||
| @@ -1,10 +1,12 @@ | |||||||
| import { reactive } from 'vue' | import { reactive } from 'vue' | ||||||
| import { useI18n } from '@/hooks/web/useI18n' | import { useI18n } from '@/hooks/web/useI18n' | ||||||
| import { required } from '@/utils/formRules' | import { required } from '@/utils/formRules' | ||||||
| import { DICT_TYPE } from '@/utils/dict' | import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' | ||||||
| import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' | import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' | ||||||
| const { t } = useI18n() // 国际化 | const { t } = useI18n() // 国际化 | ||||||
|  |  | ||||||
|  | const authorizedGrantOptions = getStrDictOptions(DICT_TYPE.SYSTEM_OAUTH2_GRANT_TYPE) | ||||||
|  |  | ||||||
| // 表单校验 | // 表单校验 | ||||||
| export const rules = reactive({ | export const rules = reactive({ | ||||||
|   clientId: [required], |   clientId: [required], | ||||||
| @@ -76,36 +78,105 @@ const crudSchemas = reactive<VxeCrudSchema>({ | |||||||
|       title: '授权类型', |       title: '授权类型', | ||||||
|       field: 'authorizedGrantTypes', |       field: 'authorizedGrantTypes', | ||||||
|       table: { |       table: { | ||||||
|         width: 300, |         width: 400, | ||||||
|         slots: { |         slots: { | ||||||
|           default: 'authorizedGrantTypes_default' |           default: 'authorizedGrantTypes_default' | ||||||
|         } |         } | ||||||
|  |       }, | ||||||
|  |       form: { | ||||||
|  |         component: 'Select', | ||||||
|  |         componentProps: { | ||||||
|  |           options: authorizedGrantOptions, | ||||||
|  |           props: { | ||||||
|  |             multiple: true, | ||||||
|  |             filterable: true | ||||||
|  |           } | ||||||
|  |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '授权范围', |       title: '授权范围', | ||||||
|       field: 'scopes', // TODO @星语:带输入的 SELECT |       field: 'scopes', | ||||||
|       isTable: false |       isTable: false, | ||||||
|  |       form: { | ||||||
|  |         component: 'Select', | ||||||
|  |         componentProps: { | ||||||
|  |           options: [], | ||||||
|  |           props: { | ||||||
|  |             multiple: true, | ||||||
|  |             filterable: true, | ||||||
|  |             allowCreate: true, | ||||||
|  |             defaultFirstOption: true | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '自动授权范围', |       title: '自动授权范围', | ||||||
|       field: 'autoApproveScopes', // TODO @星语:带输入的 SELECT |       field: 'autoApproveScopes', | ||||||
|       isTable: false |       isTable: false, | ||||||
|  |       form: { | ||||||
|  |         component: 'Select', | ||||||
|  |         componentProps: { | ||||||
|  |           options: [], | ||||||
|  |           props: { | ||||||
|  |             multiple: true, | ||||||
|  |             filterable: true, | ||||||
|  |             allowCreate: true, | ||||||
|  |             defaultFirstOption: true | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '可重定向的 URI 地址', |       title: '可重定向的 URI 地址', | ||||||
|       field: 'redirectUris', // TODO @星语:带输入的 SELECT |       field: 'redirectUris', | ||||||
|       isTable: false |       isTable: false, | ||||||
|  |       form: { | ||||||
|  |         component: 'Select', | ||||||
|  |         componentProps: { | ||||||
|  |           options: [], | ||||||
|  |           props: { | ||||||
|  |             multiple: true, | ||||||
|  |             filterable: true, | ||||||
|  |             allowCreate: true, | ||||||
|  |             defaultFirstOption: true | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '权限', |       title: '权限', | ||||||
|       field: 'authorities', |       field: 'authorities', | ||||||
|       isTable: false |       isTable: false, | ||||||
|  |       form: { | ||||||
|  |         component: 'Select', | ||||||
|  |         componentProps: { | ||||||
|  |           options: [], | ||||||
|  |           props: { | ||||||
|  |             multiple: true, | ||||||
|  |             filterable: true, | ||||||
|  |             allowCreate: true, | ||||||
|  |             defaultFirstOption: true | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '资源', |       title: '资源', | ||||||
|       field: 'resourceIds', |       field: 'resourceIds', | ||||||
|       isTable: false |       isTable: false, | ||||||
|  |       form: { | ||||||
|  |         component: 'Select', | ||||||
|  |         componentProps: { | ||||||
|  |           options: [], | ||||||
|  |           props: { | ||||||
|  |             multiple: true, | ||||||
|  |             filterable: true, | ||||||
|  |             defaultFirstOption: true | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       } | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       title: '附加信息', |       title: '附加信息', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 xingyu
					xingyu