feat: base myticket获取权限内的流程

This commit is contained in:
caoqianming 2025-11-18 09:47:50 +08:00
parent 369af3a3ab
commit 2408903b95
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) {