Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
76225581
authored
Jul 21, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
启动工作流
parent
2215d6f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
components/workflow.vue
components/workflow.vue
View file @
76225581
...
...
@@ -42,10 +42,21 @@
<div
class=
"detal-btns"
>
<el-button>
查看详情
</el-button>
</div>
<start-process-dialog
@
dialog-confirm=
"startDialogConfirm"
:modelName=
"model_name"
:ids=
"[]"
:processName=
"processName"
actionName=
"startProcess"
:selected_list=
"selectedList"
ref=
"startProcessDialog"
/>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Prop
,
Vue
}
from
"vue-property-decorator"
;
import
{
EVENTS
}
from
"@/EventConsts"
;
import
startProcessDialog
from
"@/views/workflow2/components/startProcessDialog.vue"
;
import
{
Component
,
Prop
,
Ref
,
Vue
}
from
"vue-property-decorator"
;
import
Chat
from
"../xim/index"
;
...
...
@@ -55,8 +66,15 @@ enum WorkFlowStatus {
"已完成"
=
2
,
}
const
sdk
=
Chat
.
getSdk
;
@
Component
({
components
:
{}
})
@
Component
({
components
:
{
startProcessDialog
,
},
})
export
default
class
WorkFlow
extends
Vue
{
@
Ref
(
"startProcessDialog"
)
private
readonly
startProcessIns
!
:
startProcessDialog
;
@
Prop
({
type
:
String
,
required
:
true
,
...
...
@@ -75,6 +93,13 @@ export default class WorkFlow extends Vue {
})
private
readonly
name
!
:
string
;
private
processName
=
""
private
selectedProcess
=
[]
private
startDialogConfirm
()
{
console
.
log
(
"startDialogConfirm"
);
}
private
workFlowstatus
=
WorkFlowStatus
;
private
getStatus
(
status
:
WorkFlowStatus
)
{
return
WorkFlowStatus
[
status
];
...
...
@@ -250,10 +275,19 @@ export default class WorkFlow extends Vue {
public
start
(
workflow
:
any
)
{
console
.
log
(
"start"
,
workflow
);
this
.
processName
=
workflow
.
processName
;
this
.
selectedProcess
=
[{
id
:
workflow
.
id
}];
// this.startProcessIns.showDialog(this.model_name,)
}
public
goToDetail
(
workflow
:
any
)
{
console
.
log
(
"goToDetail"
,
workflow
);
this
.
$eventHub
.
$emit
(
EVENTS
.
ShowModalDialog
,
{
dialogName
:
"show_process_detail"
,
params
:
{
modelName
:
this
.
model_name
,
selected
:
JSON
.
stringify
([{
id
:
workflow
.
id
}]),
},
});
}
}
</
script
>
...
...
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