fix: 流程审批页面补充选项卡标题
This commit is contained in:
@ -68,6 +68,7 @@ const { bus, FLOW_PROCESSED } = useEventBus();
|
|||||||
const tabStore = useMultipleTabStore();
|
const tabStore = useMultipleTabStore();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const currentRoute = router.currentRoute.value;
|
const currentRoute = router.currentRoute.value;
|
||||||
|
const fullPath = currentRoute.fullPath;
|
||||||
const rQuery = currentRoute.query;
|
const rQuery = currentRoute.query;
|
||||||
const rParams = currentRoute.params;
|
const rParams = currentRoute.params;
|
||||||
const schemaId = ref(rParams.arg1);
|
const schemaId = ref(rParams.arg1);
|
||||||
@ -176,6 +177,11 @@ onMounted(async () => {
|
|||||||
try {
|
try {
|
||||||
let res = await getApprovalProcess(unref(taskId), unref(processId));
|
let res = await getApprovalProcess(unref(taskId), unref(processId));
|
||||||
initProcessData(res);
|
initProcessData(res);
|
||||||
|
const title = res?.schemaInfo?.name;
|
||||||
|
if (title) {
|
||||||
|
const tabPrefix = readonly.value ? '查看' : '审批';
|
||||||
|
tabStore.changeTitle(fullPath, `${tabPrefix}:${title}`);
|
||||||
|
}
|
||||||
if (!readonly.value) {
|
if (!readonly.value) {
|
||||||
if (res.buttonConfigs) {
|
if (res.buttonConfigs) {
|
||||||
approvalData.buttonConfigs = res.buttonConfigs;
|
approvalData.buttonConfigs = res.buttonConfigs;
|
||||||
|
|||||||
Reference in New Issue
Block a user