|
@@ -451,6 +451,7 @@ interface FormState {
|
|
|
|
|
|
export default defineComponent(
|
|
|
{
|
|
|
+ name: "CompanyEdit",
|
|
|
components: {BUploadFile,SelectLabel},
|
|
|
setup() {
|
|
|
const userStore = useUserStore();
|
|
@@ -494,7 +495,6 @@ export default defineComponent(
|
|
|
const companyTypeList = ref<SelectProps['options']>();
|
|
|
const companyModelList = ref<SelectProps['options']>();
|
|
|
const IndustryList = ref<SelectProps["options"]>();
|
|
|
- const fullPath = router.currentRoute.value.fullPath;
|
|
|
|
|
|
const onClose = () => {
|
|
|
tabsViewStore.closeCurrentTabByPath('/companyService/enterprise/add');
|
|
@@ -618,8 +618,9 @@ export default defineComponent(
|
|
|
if(isAllowCommit.value){
|
|
|
saveCompany(formState.dataModel).then(result => {
|
|
|
if (result) {
|
|
|
- tabsViewStore.closeCurrentTab(fullPath);
|
|
|
- tabsViewStore.addTabByPath('/companyService/enterprise/index', {reload: 1});
|
|
|
+ tabsViewStore.closeCurrentTabByPath('/companyService/enterprise/add');
|
|
|
+ tabsViewStore.closeCurrentTabByPath('/companyService/enterprise/edit');
|
|
|
+ tabsViewStore.openTab('/companyService/enterprise/index', {reload: 1});
|
|
|
}
|
|
|
})
|
|
|
}
|