Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
99dca847
Commit
99dca847
authored
Jul 10, 2022
by
chenjiuping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改工作流组件
parent
e5127f8b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
definition.js
src/api/bpm/definition.js
+7
-0
create.vue
src/views/bpm/processInstance/create.vue
+8
-5
No files found.
src/api/bpm/definition.js
View file @
99dca847
...
...
@@ -22,3 +22,10 @@ export function getProcessDefinitionBpmnXML(id) {
method
:
'
get
'
})
}
export
function
getProcessDefinitionBpmnXMLByKey
(
id
)
{
return
request
({
url
:
'
/bpm/model/get-bpmn-xml-key?key=
'
+
id
,
method
:
'
get
'
})
}
src/views/bpm/processInstance/create.vue
View file @
99dca847
...
...
@@ -53,7 +53,11 @@
</template>
<
script
>
import
{
getProcessDefinitionBpmnXML
,
getProcessDefinitionList
}
from
"
@/api/bpm/definition
"
;
import
{
getProcessDefinitionBpmnXML
,
getProcessDefinitionBpmnXMLByKey
,
getProcessDefinitionList
}
from
"
@/api/bpm/definition
"
;
import
{
DICT_TYPE
,
getDictDatas
}
from
"
@/utils/dict
"
;
import
{
getForm
}
from
"
@/api/bpm/form
"
;
import
{
decodeFields
}
from
"
@/utils/formGenerator
"
;
...
...
@@ -118,15 +122,14 @@ export default {
...
JSON
.
parse
(
row
.
formConf
),
fields
:
decodeFields
(
row
.
formFields
)
}
// 加载流程图
getProcessDefinitionBpmnXML
(
row
.
id
).
then
(
response
=>
{
this
.
bpmnXML
=
response
.
data
})
/*getProcessDefinitionBpmnXMLByKey("sheet_sale").then(response => {
this.bpmnXML = response.data
})*/
}
else
if
(
row
.
formCustomCreatePath
)
{
//
console
.
log
(
"
-------------------------------
"
);
console
.
log
(
row
.
formCustomCreatePath
);
this
.
$router
.
push
({
path
:
row
.
formCustomCreatePath
});
// 这里暂时无需加载流程图,因为跳出到另外个 Tab;
}
...
...
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