Compare commits

...

2 Commits

1 changed files with 8 additions and 1 deletions

View File

@ -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) {