Commit 8c4eaf89 authored by 王纵's avatar 王纵

增加表格表单按钮自定义方法

parent eb63b2be
......@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-29 10:51:56
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-08-16 10:12:21
* @LastEditTime: 2024-08-16 10:13:28
* @Version: 1.0.0
* @Description: 表单渲染
* @Copyright: Copyright (c) 2021, Hand-RongJing
......@@ -341,7 +341,7 @@ export default {
buttonsClick(btn) {
const customBtn = this.componentButtons.find(o => o.name === btn.name); // 采用页面传入的方法
if (customBtn && customBtn.clickFunction) {
customBtn.clickFunction();
customBtn.clickFunction(this);
}
}
},
......
......@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-29 10:51:56
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-08-16 10:12:01
* @LastEditTime: 2024-08-16 10:13:40
* @Version: 1.0.0
* @Description: 表格渲染
* @Copyright: Copyright (c) 2021, Hand-RongJing
......@@ -257,7 +257,7 @@ export default {
buttonsClick(btn) {
const customBtn = this.componentButtons.find(o => o.name === btn.name); // 采用页面传入的方法
if (customBtn && customBtn.clickFunction) {
customBtn.clickFunction();
customBtn.clickFunction(this);
} else {
switch (btn.name) {
case 'create':
......
......@@ -2,7 +2,7 @@
* @Author: zong.wang01@hand-china.com
* @Date: 2024-07-29 10:51:56
* @LastEditors: zong.wang01@hand-china.com
* @LastEditTime: 2024-08-16 10:07:52
* @LastEditTime: 2024-08-16 10:13:35
* @Version: 1.0.0
* @Description: 查询表单渲染
* @Copyright: Copyright (c) 2021, Hand-RongJing
......@@ -98,7 +98,7 @@ export default {
btnFun(btn) {
const customBtn = this.componentButtons.find(o => o.name === btn.name);
if (customBtn && customBtn.clickFunction) {
customBtn.clickFunction();
customBtn.clickFunction(this);
} else {
if (btn.name === 'query') {
this.query();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment