diff --git a/src/views/flow/list.vue b/src/views/flow/list.vue index 02a0ce7..01aec96 100644 --- a/src/views/flow/list.vue +++ b/src/views/flow/list.vue @@ -688,7 +688,7 @@ import payMx from "./components/payMx.vue"; import FieldExport from "./components/FieldExport.vue"; import { departmentListNoAuth } from "@/api/common"; import { deepCopy } from "@/utils"; - + export default { name: "flowList", components: { @@ -976,7 +976,7 @@ export default { } catch (err) {} }, async destroy(row) { - if (row.can_delete || this.$store.state.user.adminId === 1) { + if (row.can_delete || this.$store.state.user.adminId === 1 || this.$store.state.user.roles.includes('全局流程监管')) { try { await destroy({ id: row.id }); await this.getList(); @@ -1032,7 +1032,7 @@ export default { if (refresh) { this.select.page = 1; } - + const res = await flowList(this.$route.params.type, this.select, false); res.data?.data?.forEach((i) => this.contentFormatter(i)); this.list = res?.data?.data || [];