工作流路由重构
This commit is contained in:
@ -167,7 +167,7 @@ const handleSelectionChange = (selection: LeaveVO[]) => {
|
||||
const handleAdd = () => {
|
||||
proxy.$tab.closePage(proxy.$route);
|
||||
proxy.$router.push({
|
||||
path: `/workflows/leaveEdit/index`,
|
||||
path: `/test/leaveEdit/index`,
|
||||
query: {
|
||||
type: 'add'
|
||||
}
|
||||
@ -178,7 +178,7 @@ const handleAdd = () => {
|
||||
const handleUpdate = (row?: LeaveVO) => {
|
||||
proxy.$tab.closePage(proxy.$route);
|
||||
proxy.$router.push({
|
||||
path: `/workflows/leaveEdit/index`,
|
||||
path: `/test/leaveEdit/index`,
|
||||
query: {
|
||||
id: row.id,
|
||||
type: 'update'
|
||||
@ -190,7 +190,7 @@ const handleUpdate = (row?: LeaveVO) => {
|
||||
const handleView = (row?: LeaveVO) => {
|
||||
proxy.$tab.closePage(proxy.$route);
|
||||
proxy.$router.push({
|
||||
path: `/workflows/leaveEdit/index`,
|
||||
path: `/test/leaveEdit/index`,
|
||||
query: {
|
||||
id: row.id,
|
||||
type: 'view'
|
||||
@ -210,7 +210,7 @@ const handleDelete = async (row?: LeaveVO) => {
|
||||
/** 导出按钮操作 */
|
||||
const handleExport = () => {
|
||||
proxy?.download(
|
||||
'workflows/leave/export',
|
||||
'workflow/leave/export',
|
||||
{
|
||||
...queryParams.value
|
||||
},
|
||||
|
@ -30,7 +30,7 @@ const open = async (definitionId, disabled) => {
|
||||
};
|
||||
/** 关闭按钮 */
|
||||
function close() {
|
||||
const obj = { path: '/workflows/processDefinition', query: { activeName: proxy.$route.query.activeName } };
|
||||
const obj = { path: '/test/test/processDefinition', query: { activeName: proxy.$route.query.activeName } };
|
||||
proxy.$tab.closeOpenPage(obj);
|
||||
}
|
||||
|
||||
|
@ -442,7 +442,7 @@ const handlerImportDefinition = (data: UploadRequestOptions): XMLHttpRequest =>
|
||||
*/
|
||||
const design = async (row: FlowDefinitionVo) => {
|
||||
proxy.$router.push({
|
||||
path: `/workflows/design/index`,
|
||||
path: `/test/design/index`,
|
||||
query: {
|
||||
definitionId: row.id,
|
||||
disabled: false,
|
||||
@ -456,7 +456,7 @@ const design = async (row: FlowDefinitionVo) => {
|
||||
* @param row
|
||||
*/
|
||||
const designView = async (row: FlowDefinitionVo) => {
|
||||
proxy.$tab.openPage(`/workflows/design/index`, '', {
|
||||
proxy.$tab.openPage(`/test/design/index`, '', {
|
||||
definitionId: row.id,
|
||||
disabled: true,
|
||||
activeName: activeName.value
|
||||
|
Reference in New Issue
Block a user