From 733b2a61b582334174962aac815050366dc21795 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 20 三月 2024 17:29:17 +0800
Subject: [PATCH] 整合代码
---
Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue | 12 ++++++++----
Source/ProjectWeb/src/components/dynamic-components/dynamic-table-form.vue | 2 +-
Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue | 2 +-
3 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
index 3ec92d0..7af45f9 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-button.vue
@@ -25,11 +25,12 @@
<div v-if="type === 'form'">
<el-button v-for="item in basicButtonList"
:key="item.oid"
- :type="(item.paramVOS.buttonType !== 'text' ? item.paramVOS.buttonType : 'primary') || 'primary'" plain
- size="small"
:icon="item.icon"
+ :type="(item.paramVOS.buttonType !== 'text' ? item.paramVOS.buttonType : 'primary') || 'primary'"
+ plain
+ size="small"
@click="buttonClick(item)">
- {{item.name}}
+ {{ item.name }}
</el-button>
</div>
</div>
@@ -67,11 +68,14 @@
const basicColumn = this.butttonList;
if (this.type === 'form') {
- console.log('basicColumn',basicColumn)
+
return basicColumn;
+
} else if (this.type === 'table') {
+
const top = basicColumn.filter(item => item.paramVOS.location === 'top' || func.isEmpty(item.paramVOS.location)); // 杩囨护鍑烘潵琛ㄦ牸涓婇潰鍖哄煙灞曠ず鐨勬寜閽�
const menu = basicColumn.filter(item => item.paramVOS.location === 'menu'); // 杩囨护鍑烘潵鎿嶄綔鏍忓睍绀虹殑鎸夐挳
+
return {
top: top,
menu: menu
diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
index 3d555d7..91a718e 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
@@ -78,7 +78,7 @@
prop: item.field,
type: typeValue,
value: item.defaultValue,
- dicData: item.type === 'combox' ? item.dicData : null,
+ dicData: item.type === 'combox' ? item.dicData : item.dicUrl,
readonly: item.readOnly,
disabled: item.disabled,
labelSuffix: item.suffix,
diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table-form.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table-form.vue
index 924ccf2..226164f 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table-form.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table-form.vue
@@ -99,7 +99,7 @@
prop: item.field,
type: typeValue,
value: item.defaultValue,
- dicData: item.type === 'combox' ? item.dicData : null,
+ dicData: item.type === 'combox' ? item.dicData : item.dicUrl,
readonly: item.readOnly,
disabled: item.disabled,
labelSuffix: item.suffix,
--
Gitblit v1.9.3