parent
							
								
									bd26cf87d0
								
							
						
					
					
						commit
						d41e280db3
					
				|  | @ -6,7 +6,7 @@ | ||||||
|     <Divider /> |     <Divider /> | ||||||
|     <div class="step2-button"> |     <div class="step2-button"> | ||||||
|       <a-button @click="customResetFunc">上一步</a-button> |       <a-button @click="customResetFunc">上一步</a-button> | ||||||
|       <a-button type="primary" @click="customSubmitFunc">下一步</a-button> |       <a-button type="primary" @click="customSubmitFunc">提交</a-button> | ||||||
|     </div> |     </div> | ||||||
|     <h3>说明</h3> |     <h3>说明</h3> | ||||||
|     <h4>配置字段</h4> |     <h4>配置字段</h4> | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
|   <div class="m-5 result-success"> |   <div class="m-5 result-success"> | ||||||
|     <Result status="success" title="代码生成成功" sub-title="可点击下方按钮预览、下载,或返回列表页。"> |     <Result status="success" title="代码生成成功" sub-title="可点击下方按钮预览、下载,或返回列表页。"> | ||||||
|       <template #extra> |       <template #extra> | ||||||
|         <a-button key="console" type="primary" @click="closeCurrent"> 返回列表 </a-button> |         <a-button key="console" type="primary" @click="handleGoList"> 返回列表 </a-button> | ||||||
|         <a-button key="preview" @click="handlePreview"> 预览 </a-button> |         <a-button key="preview" @click="handlePreview"> 预览 </a-button> | ||||||
|         <a-button key="download" @click="handleGenTable"> 生成 </a-button> |         <a-button key="download" @click="handleGenTable"> 生成 </a-button> | ||||||
|       </template> |       </template> | ||||||
|  | @ -14,12 +14,14 @@ | ||||||
| import { Result } from 'ant-design-vue' | import { Result } from 'ant-design-vue' | ||||||
| import { useRoute } from 'vue-router' | import { useRoute } from 'vue-router' | ||||||
| import { useModal } from '@/components/Modal' | import { useModal } from '@/components/Modal' | ||||||
|  | import { useGo } from '@/hooks/web/usePage' | ||||||
| import { useI18n } from '@/hooks/web/useI18n' | import { useI18n } from '@/hooks/web/useI18n' | ||||||
| import { useTabs } from '@/hooks/web/useTabs' | import { useTabs } from '@/hooks/web/useTabs' | ||||||
| import { useMessage } from '@/hooks/web/useMessage' | import { useMessage } from '@/hooks/web/useMessage' | ||||||
| import PreviewModal from './PreviewModal.vue' | import PreviewModal from './PreviewModal.vue' | ||||||
| import { downloadCodegen, getCodegenTable } from '@/api/infra/codegen' | import { downloadCodegen, getCodegenTable } from '@/api/infra/codegen' | ||||||
| 
 | 
 | ||||||
|  | const go = useGo() | ||||||
| const { closeCurrent } = useTabs() | const { closeCurrent } = useTabs() | ||||||
| const { query } = useRoute() | const { query } = useRoute() | ||||||
| const { t } = useI18n() | const { t } = useI18n() | ||||||
|  | @ -38,6 +40,11 @@ async function handleGenTable() { | ||||||
|   await downloadCodegen(res.table) |   await downloadCodegen(res.table) | ||||||
|   createMessage.success(t('common.successText')) |   createMessage.success(t('common.successText')) | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | function handleGoList() { | ||||||
|  |   closeCurrent() | ||||||
|  |   go('/infra/codegen') | ||||||
|  | } | ||||||
| </script> | </script> | ||||||
| <style lang="less" scoped> | <style lang="less" scoped> | ||||||
| .result-success { | .result-success { | ||||||
|  |  | ||||||
|  | @ -258,7 +258,7 @@ export const columns: BasicColumn[] = [ | ||||||
|         title: '查询方式', |         title: '查询方式', | ||||||
|         dataIndex: 'listOperationCondition', |         dataIndex: 'listOperationCondition', | ||||||
|         editRow: true, |         editRow: true, | ||||||
|         editComponent: 'Checkbox', |         editComponent: 'Select', | ||||||
|         editComponentProps: { |         editComponentProps: { | ||||||
|           options: [ |           options: [ | ||||||
|             { label: '=', value: '=' }, |             { label: '=', value: '=' }, | ||||||
|  | @ -271,7 +271,7 @@ export const columns: BasicColumn[] = [ | ||||||
|             { label: 'BETWEEN', value: 'BETWEEN' } |             { label: 'BETWEEN', value: 'BETWEEN' } | ||||||
|           ] |           ] | ||||||
|         }, |         }, | ||||||
|         width: 60 |         width: 80 | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '允许空', |         title: '允许空', | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 xingyu
						xingyu