chenjun 1 年之前
父節點
當前提交
f47475b7ca
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/components/AuthButton/index.vue

+ 3 - 1
src/components/AuthButton/index.vue

@@ -26,8 +26,10 @@ export default {
 
 
       //根据服务类型显示按钮类型设置按钮方法 1=查询 2=新增 3=编辑 4=删除 ...其他
       //根据服务类型显示按钮类型设置按钮方法 1=查询 2=新增 3=编辑 4=删除 ...其他
       let func = null
       let func = null
-      if (servicetype == 1) {
+      if (servicetype == 0) {
         func = () => context.parent.handleQuery()
         func = () => context.parent.handleQuery()
+      } else if (servicetype == 1) {
+        func = () => context.parent.handleDetail()
       } else if (servicetype == 2) {
       } else if (servicetype == 2) {
         func = () => context.parent.handleAdd()
         func = () => context.parent.handleAdd()
       } else if (servicetype == 3) {
       } else if (servicetype == 3) {