wupengfei
3 天以前 1f8b6081c575c6159ee1cde2ace4165773d3a1c3
src/views/EnterpriseManage/EnterpriseManageList.vue
@@ -35,6 +35,7 @@
      </ProTableV2>
    </AppContainer>
    <ConfigureDialog v-bind="dialogProps" />
    <WechatWalletOpen v-bind="dialogWechatProps"></WechatWalletOpen>
  </LoadingLayout>
</template>
@@ -56,6 +57,7 @@
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',
@@ -132,7 +134,7 @@
  });
}
const { dialogProps, handleEdit, dialogState } = useFormDialog({
const { dialogProps, handleEdit, dialogState, editForm } = useFormDialog({
  onConfirm: handleAddOrEdit,
  defaultFormParams: {
    id: '',
@@ -140,9 +142,24 @@
  },
});
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) {}