From e330c3130c9eb0d7a10e1fe65885e5466263471e Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 14 五月 2024 11:43:26 +0800
Subject: [PATCH] 调整参数,配置文档
---
Source/ProjectWeb/src/views/base/buttonTable.js | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Source/ProjectWeb/src/views/base/buttonTable.js b/Source/ProjectWeb/src/views/base/buttonTable.js
index 32964b5..9b5342f 100644
--- a/Source/ProjectWeb/src/views/base/buttonTable.js
+++ b/Source/ProjectWeb/src/views/base/buttonTable.js
@@ -1,5 +1,5 @@
export default {
- buttonClick(item,that) {
+ buttonClick(item, that) {
that.formName = item.name;
const location = item.paramVOS.webUiButtonLocation;
const method = item.paramVOS.webUiButtonMethods;
@@ -7,9 +7,9 @@
const messageAllText = '璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹紒'
const handlers = {
- add: () => this.handleAdd(that,location),
- edit: () => this.handleEdit(that,location, messageOnlyText),
- delete: () => this.handleDelete(that,location, messageAllText),
+ add: () => this.handleAdd(that, location),
+ edit: () => this.handleEdit(that, location, messageOnlyText),
+ delete: () => this.handleDelete(that, location, messageAllText),
};
const handler = handlers[method];
@@ -20,7 +20,7 @@
}
},
- handleAdd(that,location) {
+ handleAdd(that, location) {
if (location === 'top') {
that.visible = true;
} else {
@@ -29,11 +29,11 @@
},
- handleEdit(that,location, messageOnlyText) {
+ handleEdit(that, location, messageOnlyText) {
if (location === 'menu') {
that.visible = true;
that.$refs.dynamicForm.form = that.scope.row;
- console.log(that.scope.row)
+
} else if (location === 'top' && that.selectList.length === 1) {
that.visible = true;
that.$refs.dynamicForm.form = that.selectList[0];
@@ -43,7 +43,7 @@
},
- handleDelete(that,location, messageAllText) {
+ handleDelete(that, location, messageAllText) {
if (location === 'top') {
if (that.selectList.length <= 0) {
that.$message.warning(messageAllText);
--
Gitblit v1.9.3