瀏覽代碼

添加按钮权限

tangning 2 年之前
父節點
當前提交
d8585f14f1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/productOperation/livestream.vue

+ 2 - 1
src/views/productOperation/livestream.vue

@@ -14,7 +14,7 @@
           {
             label: '删除',
             color: 'error',
-            ifShow:getCheckPerm('projects-delete'),
+            ifShow:getCheckPerm('livestream-delete'),
             onClick: handleDelete.bind(null, record),
           },
         ]"
@@ -127,6 +127,7 @@
             checked: record.isShow === 1,
             checkedChildren: '是',
             unCheckedChildren: '否',
+            disabled:!getCheckPerm('livestream-show'),
             loading: false,
             onChange: async (checked: boolean) => {
               record.pendingStatus = true;