feat: base myticket获取权限内的流程
This commit is contained in:
parent
369af3a3ab
commit
2408903b95
|
|
@ -208,8 +208,15 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
getWfOptions() {
|
||||
let permissions = this.$TOOL.data.get("PERMISSIONS");
|
||||
this.$API.wf.workflow.list.req({ page: 0 }).then((res) => {
|
||||
this.wfOptions = res;
|
||||
let wfOptions = [];
|
||||
res.forEach((item) => {
|
||||
if(item.key && permissions.includes(item.key)) {
|
||||
wfOptions.push(item)
|
||||
}
|
||||
})
|
||||
this.wfOptions = wfOptions;
|
||||
});
|
||||
},
|
||||
reStart(row) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue