Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
fea2f4bf
Commit
fea2f4bf
authored
Aug 13, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程管理调试
parent
46b7b896
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
22 deletions
+65
-22
src/pages/workbench/component-center/process-management/designer/index.vue
...ch/component-center/process-management/designer/index.vue
+65
-22
No files found.
src/pages/workbench/component-center/process-management/designer/index.vue
View file @
fea2f4bf
...
...
@@ -108,16 +108,8 @@ export default {
copyTempItem
:
null
,
copyTempItem_rules
:
{
newName
:
[
{
required
:
true
,
message
:
"
请输入流程名称
"
,
trigger
:
"
blur
"
,
},
{
max
:
16
,
message
:
"
长度小于16个字符
"
,
trigger
:
"
blur
"
,
},
{
required
:
true
,
message
:
"
请输入流程名称
"
,
trigger
:
"
blur
"
},
{
max
:
16
,
message
:
"
不能超过16个字符
"
,
trigger
:
"
blur
"
},
],
},
}),
...
...
@@ -319,48 +311,99 @@ export default {
this
.
dialogInfo
.
cancelText
=
"
暂不
"
;
this
.
dialogInfo
.
sunbmitText
=
"
取消发布
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
`取消发布
${
item
.
name
}
`
);
this
.
$http
.
delete
(
"
/apaas/serviceapp/v3/workflows/cancelPublish
"
,
{
params
:
{
id
:
item
.
workflows_id
,
},
})
.
then
(({
data
})
=>
{
if
(
data
.
success
===
1
)
{
this
.
$message
.
success
(
data
.
errMsg
||
"
取消发布成功
"
);
this
.
refreshPage
();
}
else
{
this
.
$message
.
error
(
data
.
errMsg
||
"
取消发布失败
"
);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
.
error
(
"
取消发布失败
"
);
});
};
this
.
showDialog
();
},
// TODO: 取消发布流程
},
deployItem
(
item
)
{
this
.
dialogInfo
.
title
=
"
提示
"
;
this
.
dialogInfo
.
msg
=
`部署流程后,流程将部署到工作区域,但不会上架到服务超市,是否部署该流程?`
;
this
.
dialogInfo
.
cancelText
=
"
取消
"
;
this
.
dialogInfo
.
sunbmitText
=
"
部署
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
`部署
${
item
.
name
}
`
);
let
form
=
new
FormData
();
form
.
append
(
"
id
"
,
item
.
workflows_id
);
this
.
$http
.
post
(
"
/apaas/serviceapp/v3/workflows/deploy
"
,
form
)
.
then
(({
data
})
=>
{
if
(
data
.
success
===
1
)
{
this
.
$message
.
success
(
data
.
errMsg
||
"
部署成功
"
);
this
.
refreshPage
();
}
else
{
this
.
$message
.
error
(
data
.
errMsg
||
"
部署失败
"
);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
.
error
(
"
部署失败
"
);
});
};
this
.
showDialog
();
},
// TODO: 部署流程
},
cancelDeployItem
(
item
)
{
this
.
dialogInfo
.
title
=
"
提示
"
;
this
.
dialogInfo
.
msg
=
`取消部署后,该流程服务不能通过链接访问,是否取消部署流程服务“
${
item
.
name
}
”?`
;
this
.
dialogInfo
.
cancelText
=
"
取消
"
;
this
.
dialogInfo
.
sunbmitText
=
"
取消部署
"
;
this
.
dialogInfo
.
submit
=
()
=>
{
console
.
log
(
`取消部署
${
item
.
name
}
`
);
this
.
$http
.
delete
(
"
/apaas/serviceapp/v3/workflows/cancelDeploy
"
,
{
params
:
{
id
:
item
.
workflows_id
,
},
})
.
then
(({
data
})
=>
{
if
(
data
.
success
===
1
)
{
this
.
$message
.
success
(
data
.
errMsg
||
"
取消部署成功
"
);
this
.
refreshPage
();
}
else
{
this
.
$message
.
error
(
data
.
errMsg
||
"
取消部署失败
"
);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
this
.
$message
.
error
(
"
取消部署失败
"
);
});
};
this
.
showDialog
();
},
// TODO: 取消部署流程
},
copyItem
(
item
)
{
this
.
copyTempItem
=
{
...
item
,
newName
:
""
,
};
this
.
copyProcessShow
();
},
// 复制流程
},
cancelCopyProcess
()
{
this
.
copyProcessHide
();
},
// 复制流程-取消
},
submitCopyProcess
()
{
this
.
$refs
.
detail_form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
let
form
=
new
FormData
();
form
.
append
(
"
id
"
,
this
.
copyTempItem
.
workflows_id
);
form
.
append
(
"
name
"
,
this
.
copyTempItem
.
newName
);
this
.
$http
.
post
(
"
/apaas/serviceapp/v3/workflows/copy
"
,
{
id
:
this
.
copyTempItem
.
workflows_id
,
name
:
this
.
copyTempItem
.
newName
,
})
.
post
(
"
/apaas/serviceapp/v3/workflows/copy
"
,
form
)
.
then
(({
data
})
=>
{
if
(
data
.
success
===
1
)
{
this
.
$message
.
success
(
data
.
errMsg
||
"
复制成功
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment