diff --git a/src/views/flow/list.vue b/src/views/flow/list.vue index 54ff9f2..5d60a0d 100644 --- a/src/views/flow/list.vue +++ b/src/views/flow/list.vue @@ -123,11 +123,13 @@ }" :row-config="{ keyField: 'id' }" :custom-config="{ mode: 'popup' }" + :menu-config="menuConfig" :data="list" @cell-click="cellClickEvent" @cell-dblclick="cellDblclickEvent" @checkbox-change="checkboxChange" @checkbox-all="checkboxChange" + @menu-click="contextMenuClickEvent" > @@ -644,6 +646,20 @@ export default { } }, computed: { + menuConfig() { + if (this.$store.state.user.adminId === 1) { + return { + className: 'my-menus', + body: { + options: [ + [ + { code: 'edit', name: '编辑', prefixConfig: { icon: 'vxe-icon-feedback' } }, + ], + ] + } + } + } + } }, watch: { 'select.custom_model_id': {