update 优化 流程设计关闭后 跳转回打开的地方
This commit is contained in:
parent
bfc6e7b8da
commit
aef170f374
@ -29,7 +29,7 @@ const open = async (definitionId, disabled) => {
|
|||||||
};
|
};
|
||||||
/** 关闭按钮 */
|
/** 关闭按钮 */
|
||||||
function close() {
|
function close() {
|
||||||
const obj = { path: '/workflow/processDefinition' };
|
const obj = { path: '/workflow/processDefinition', query: {activeName: proxy.$route.query.activeName}};
|
||||||
proxy.$tab.closeOpenPage(obj);
|
proxy.$tab.closeOpenPage(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="warning" icon="Download" :disabled="single" @click="handleExportDef">导出</el-button>
|
<el-button type="warning" icon="Download" :disabled="single" @click="handleExportDef">导出</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar v-model:show-search="showSearch" @query-table="getList"></right-toolbar>
|
<right-toolbar v-model:show-search="showSearch" @query-table="handleQuery"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
||||||
@ -261,7 +261,7 @@ const form = ref<FlowDefinitionForm>({
|
|||||||
formPath: ''
|
formPath: ''
|
||||||
});
|
});
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
handleQuery();
|
getPageList();
|
||||||
getTreeselect();
|
getTreeselect();
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -324,6 +324,10 @@ const handleSelectionChange = (selection: any) => {
|
|||||||
};
|
};
|
||||||
//分页
|
//分页
|
||||||
const getPageList = async () => {
|
const getPageList = async () => {
|
||||||
|
console.log(proxy.$route.query.activeName)
|
||||||
|
if (proxy.$route.query.activeName) {
|
||||||
|
activeName.value = proxy.$route.query.activeName;
|
||||||
|
}
|
||||||
if (activeName.value === '0') {
|
if (activeName.value === '0') {
|
||||||
getList();
|
getList();
|
||||||
} else {
|
} else {
|
||||||
@ -430,7 +434,8 @@ const design = async (row: FlowDefinitionVo) => {
|
|||||||
path: `/workflow/design/index`,
|
path: `/workflow/design/index`,
|
||||||
query: {
|
query: {
|
||||||
definitionId: row.id,
|
definitionId: row.id,
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
activeName: activeName.value
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@ -444,7 +449,8 @@ const designView = async (row: FlowDefinitionVo) => {
|
|||||||
path: `/workflow/design/index`,
|
path: `/workflow/design/index`,
|
||||||
query: {
|
query: {
|
||||||
definitionId: row.id,
|
definitionId: row.id,
|
||||||
disabled: true
|
disabled: true,
|
||||||
|
activeName: activeName.value
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user