fix(sj_1.0.0): 修复首页跳转参数赋值问题
This commit is contained in:
parent
59c1589f7b
commit
5bfb638cfc
@ -20,8 +20,6 @@ const detailData = ref<Api.JobBatch.JobBatch | null>();
|
|||||||
/** 详情页可见状态 */
|
/** 详情页可见状态 */
|
||||||
const { bool: detailVisible, setTrue: openDetail } = useBoolean(false);
|
const { bool: detailVisible, setTrue: openDetail } = useBoolean(false);
|
||||||
|
|
||||||
const taskBatchStatus = history.state.taskBatchStatus;
|
|
||||||
|
|
||||||
const { columnChecks, columns, data, getData, loading, mobilePagination, searchParams, resetSearchParams } = useTable({
|
const { columnChecks, columns, data, getData, loading, mobilePagination, searchParams, resetSearchParams } = useTable({
|
||||||
apiFn: fetchGetJobBatchList,
|
apiFn: fetchGetJobBatchList,
|
||||||
apiParams: {
|
apiParams: {
|
||||||
@ -29,7 +27,7 @@ const { columnChecks, columns, data, getData, loading, mobilePagination, searchP
|
|||||||
size: 10,
|
size: 10,
|
||||||
groupName: null,
|
groupName: null,
|
||||||
jobName: null,
|
jobName: null,
|
||||||
taskBatchStatus
|
taskBatchStatus: null
|
||||||
},
|
},
|
||||||
columns: () => [
|
columns: () => [
|
||||||
{
|
{
|
||||||
@ -190,6 +188,16 @@ watch(
|
|||||||
},
|
},
|
||||||
{ immediate: true }
|
{ immediate: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function initParams() {
|
||||||
|
const taskBatchStatus = history.state.taskBatchStatus;
|
||||||
|
if (taskBatchStatus) {
|
||||||
|
searchParams.taskBatchStatus = taskBatchStatus;
|
||||||
|
getData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
initParams();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -18,8 +18,6 @@ const detailData = ref<Api.RetryLog.RetryLog | null>();
|
|||||||
/** 详情页可见状态 */
|
/** 详情页可见状态 */
|
||||||
const { bool: detailVisible, setTrue: openDetail } = useBoolean(false);
|
const { bool: detailVisible, setTrue: openDetail } = useBoolean(false);
|
||||||
|
|
||||||
const retryStatus = history.state.retryStatus;
|
|
||||||
|
|
||||||
const { columns, columnChecks, data, getData, loading, mobilePagination, searchParams, resetSearchParams } = useTable({
|
const { columns, columnChecks, data, getData, loading, mobilePagination, searchParams, resetSearchParams } = useTable({
|
||||||
apiFn: fetchRetryLogPageList,
|
apiFn: fetchRetryLogPageList,
|
||||||
apiParams: {
|
apiParams: {
|
||||||
@ -32,7 +30,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
sceneName: null,
|
sceneName: null,
|
||||||
idempotentId: null,
|
idempotentId: null,
|
||||||
bizNo: null,
|
bizNo: null,
|
||||||
retryStatus
|
retryStatus: null
|
||||||
},
|
},
|
||||||
columns: () => [
|
columns: () => [
|
||||||
{
|
{
|
||||||
@ -170,6 +168,16 @@ async function loadRetryInfo(row: Api.RetryLog.RetryLog) {
|
|||||||
const res = await fetchRetryLogById(row.id!);
|
const res = await fetchRetryLogById(row.id!);
|
||||||
detailData.value = (res.data as Api.RetryLog.RetryLog) || null;
|
detailData.value = (res.data as Api.RetryLog.RetryLog) || null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initParams() {
|
||||||
|
const retryStatus = history.state.retryStatus;
|
||||||
|
if (retryStatus) {
|
||||||
|
searchParams.retryStatus = retryStatus;
|
||||||
|
getData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
initParams();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -16,8 +16,6 @@ const workflowId =
|
|||||||
|
|
||||||
const appStore = useAppStore();
|
const appStore = useAppStore();
|
||||||
|
|
||||||
const taskBatchStatus = history.state.taskBatchStatus;
|
|
||||||
|
|
||||||
const { columns, columnChecks, data, getData, loading, mobilePagination, searchParams, resetSearchParams } = useTable({
|
const { columns, columnChecks, data, getData, loading, mobilePagination, searchParams, resetSearchParams } = useTable({
|
||||||
apiFn: fetchGetWorkflowBatchList,
|
apiFn: fetchGetWorkflowBatchList,
|
||||||
apiParams: {
|
apiParams: {
|
||||||
@ -27,7 +25,7 @@ const { columns, columnChecks, data, getData, loading, mobilePagination, searchP
|
|||||||
// the value can not be undefined, otherwise the property in Form will not be reactive
|
// the value can not be undefined, otherwise the property in Form will not be reactive
|
||||||
workflowId,
|
workflowId,
|
||||||
groupName: null,
|
groupName: null,
|
||||||
taskBatchStatus
|
taskBatchStatus: null
|
||||||
},
|
},
|
||||||
columns: () => [
|
columns: () => [
|
||||||
{
|
{
|
||||||
@ -157,6 +155,16 @@ async function handleStop(id: string) {
|
|||||||
function detail(id: string) {
|
function detail(id: string) {
|
||||||
router.push({ path: '/workflow/form/batch', query: { id } });
|
router.push({ path: '/workflow/form/batch', query: { id } });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function initParams() {
|
||||||
|
const taskBatchStatus = history.state.taskBatchStatus;
|
||||||
|
if (taskBatchStatus) {
|
||||||
|
searchParams.taskBatchStatus = taskBatchStatus;
|
||||||
|
getData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
initParams();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
Loading…
Reference in New Issue
Block a user