Explorar o código

代码生成index.vue模板调整

Yue %!s(int64=2) %!d(string=hai) anos
pai
achega
852e21bc6e
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      vber-generator/src/main/resources/vm/vue/index.vue.vm

+ 10 - 1
vber-generator/src/main/resources/vm/vue/index.vue.vm

@@ -128,7 +128,16 @@ const opts = reactive({
   ],
   permission: permissionNames.${ModuleName}${BusinessName}List,
   handleBtns: [],
-  handleFuns: {},
+  handleFuns: {
+    handleUpdate: () => {
+      const row = tableRef.value.getSelected()
+      handleUpdate(row)
+    },
+    handleDelete: () => {
+      const rows = tableRef.value.getSelecteds()
+      handleDelete(rows)
+    },
+  },
   customBtns: [],
   tableListFun: apis.${moduleName}.${businessName}Api.list${BusinessName},
   getEntityFun: apis.${moduleName}.${businessName}Api.get${BusinessName},