审批后跳转页面和发起变更提交后跳转页面
This commit is contained in:
@@ -397,6 +397,7 @@ const rejectSave = async () => {
|
|||||||
if(!error){
|
if(!error){
|
||||||
rejectModal.value = false;
|
rejectModal.value = false;
|
||||||
window.$message?.success('驳回成功');
|
window.$message?.success('驳回成功');
|
||||||
|
back();
|
||||||
}
|
}
|
||||||
rejectSaving.value = false;
|
rejectSaving.value = false;
|
||||||
}
|
}
|
||||||
@@ -406,6 +407,7 @@ const agreeSave = async () => {
|
|||||||
const {error} = await agreeApi({change_id:currentId.value,opinion:comment.value});
|
const {error} = await agreeApi({change_id:currentId.value,opinion:comment.value});
|
||||||
if(!error){
|
if(!error){
|
||||||
window.$message?.success('同意成功');
|
window.$message?.success('同意成功');
|
||||||
|
back();
|
||||||
}
|
}
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { computed, nextTick, onMounted, provide, ref } from 'vue';
|
|||||||
import { Icon } from '@iconify/vue'
|
import { Icon } from '@iconify/vue'
|
||||||
import { useThemeStore } from '@/store/modules/theme';
|
import { useThemeStore } from '@/store/modules/theme';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
import { useRouterPush } from '@/hooks/common/router';
|
||||||
import { getColorWithOpacity } from "@/utils/common";
|
import { getColorWithOpacity } from "@/utils/common";
|
||||||
import { localStg } from '@/utils/storage';
|
import { localStg } from '@/utils/storage';
|
||||||
import { queryUnsavedApi, saveChangeApi, submitChangeApi, getChangeDetailApi } from '@/service/api/change';
|
import { queryUnsavedApi, saveChangeApi, submitChangeApi, getChangeDetailApi } from '@/service/api/change';
|
||||||
@@ -19,6 +20,7 @@ import CloseConfirm from "./modules/closeConfirm.vue";
|
|||||||
|
|
||||||
const themeStore = useThemeStore();
|
const themeStore = useThemeStore();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
const { routerPushByKey } = useRouterPush();
|
||||||
|
|
||||||
const saveLoading = ref<boolean>(false)
|
const saveLoading = ref<boolean>(false)
|
||||||
const btnDisabled = ref<boolean>(false);
|
const btnDisabled = ref<boolean>(false);
|
||||||
@@ -241,6 +243,7 @@ const submitConfirm = async (type: string) => {
|
|||||||
const {error} = await submitChangeApi(currentId.value, form);
|
const {error} = await submitChangeApi(currentId.value, form);
|
||||||
if(!error){
|
if(!error){
|
||||||
window.$message?.success("提交成功");
|
window.$message?.success("提交成功");
|
||||||
|
routerPushByKey('my_mytask');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user