| | |
| | | </ProTableV2> |
| | | </AppContainer> |
| | | <ConfigureDialog v-bind="dialogProps" /> |
| | | <WechatWalletOpen v-bind="dialogWechatProps"></WechatWalletOpen> |
| | | </LoadingLayout> |
| | | </template> |
| | | |
| | |
| | | import ConfigureDialog from './components/ConfigureDialog.vue'; |
| | | import { Message } from '@bole-core/core'; |
| | | import * as enterpriseServices from '@/services/api/enterprise'; |
| | | import WechatWalletOpen from './components/WechatWalletOpen.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'EnterpriseManageList', |
| | |
| | | }); |
| | | } |
| | | |
| | | const { dialogProps, handleEdit, dialogState } = useFormDialog({ |
| | | const { dialogProps, handleEdit, dialogState, editForm } = useFormDialog({ |
| | | onConfirm: handleAddOrEdit, |
| | | defaultFormParams: { |
| | | id: '', |
| | |
| | | }, |
| | | }); |
| | | |
| | | async function handleAddOrEdit() { |
| | | const { dialogProps: dialogWechatProps, handleAdd } = useFormDialog({ |
| | | defaultFormParams: { |
| | | url: '', |
| | | }, |
| | | }); |
| | | |
| | | async function handleAddOrEdit(data?: any) { |
| | | try { |
| | | Message.successMessage('操作成功'); |
| | | if (editForm.enterpriseConfigureType === EnterpriseConfigureType.Wechat) { |
| | | handleAdd({ |
| | | url: data?.sign_url, |
| | | }); |
| | | } |
| | | Message.successMessage( |
| | | editForm.enterpriseConfigureType === EnterpriseConfigureType.Wechat |
| | | ? '提交成功,请超级管理员扫码进行签约操作' |
| | | : '操作成功' |
| | | ); |
| | | getList(paginationState.pageIndex); |
| | | dialogState.dialogVisible = false; |
| | | } catch (error) {} |