1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| export default {
| buttonClick(item,that) {
| this.formName = item.name;
| const method = item.paramVOS.webUiButtonMethods;
|
| const handlers = {
| add: () => this.handleAdd(that),
| edit: () => this.handleEdit(that),
| delete: () => this.handleDelete(that),
| };
|
| const handler = handlers[method];
| if (handler) {
| handler();
| } else {
| that.$message.error('请重新配置按钮!');
| }
| },
|
| handleAdd(that) {
| that.$message.success('表单添加')
| },
|
| handleEdit(that) {
| that.$message.success('表单编辑')
| },
|
| handleDelete(that) {
| that.$message.success('表单删除')
| },
| }
|
|