From bfc0afdb143fbcf5d9844d591f0564c5a5fa2d4a Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 16 Nov 2023 11:40:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=9B=9B=E4=B8=AA=E7=89=88=E6=9C=AC=E6=8E=92=E7=89=88-=5F-||?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/configManage/configParam/index.vue | 21 +- .../configManage/configParamForm/index.vue | 2 - .../configManage/configParamTree/index.vue | 39 +- .../configParamTreeTable/index.vue | 747 ++++++------------ 4 files changed, 284 insertions(+), 525 deletions(-) diff --git a/src/views/configManage/configParam/index.vue b/src/views/configManage/configParam/index.vue index 2f3c15a3..a07094bd 100644 --- a/src/views/configManage/configParam/index.vue +++ b/src/views/configManage/configParam/index.vue @@ -1424,14 +1424,19 @@ onMounted(() => { - - {{ t('common.viewText') }} - +
{{ `${text.value}` || ' ' }}
diff --git a/src/views/configManage/configParamForm/index.vue b/src/views/configManage/configParamForm/index.vue index 60931955..6a8be1d4 100644 --- a/src/views/configManage/configParamForm/index.vue +++ b/src/views/configManage/configParamForm/index.vue @@ -239,7 +239,6 @@ let arrayState: ArrayStateType = reactive({ /**多列表编辑 */ function arrayEdit(item: Record, index: number) { - console.log(item, index); const row: Record = {}; for (const v of item.record) { row[v.name] = Object.assign({}, v); @@ -521,7 +520,6 @@ function arrayChildExpandClose() { /**多列表嵌套行编辑 */ function arrayChildEdit(item: Record, index: number) { - console.log(item, index); const row: Record = {}; for (const v of item.record) { row[v.name] = Object.assign({}, v); diff --git a/src/views/configManage/configParamTree/index.vue b/src/views/configManage/configParamTree/index.vue index 78af7cd6..0d03c25c 100644 --- a/src/views/configManage/configParamTree/index.vue +++ b/src/views/configManage/configParamTree/index.vue @@ -267,7 +267,6 @@ let arrayState: ArrayStateType = reactive({ /**多列表编辑 */ function arrayEdit(item: Record, index: number) { - console.log(item, index); const row: Record = {}; for (const v of item.record) { row[v.name] = Object.assign({}, v); @@ -395,7 +394,6 @@ function arrayAdd() { row[v.name] = Object.assign({}, v); } - console.log(Array.isArray(from.record), from.record); modalState.from = row; modalState.type = 'array'; modalState.title = from.title; @@ -550,7 +548,6 @@ function arrayChildExpandClose() { /**多列表嵌套行编辑 */ function arrayChildEdit(item: Record, index: number) { - console.log(item, index); const row: Record = {}; for (const v of item.record) { row[v.name] = Object.assign({}, v); @@ -1386,20 +1383,25 @@ onMounted(() => { - - {{ - arrayState.newIndex === -1 - ? '-' - : t( - 'views.configManage.configParamForm.arrayMore' - ) - }} - +
{{ `${item.value}` || ' ' }} @@ -1614,7 +1616,7 @@ onMounted(() => { {{ arrayChildState.newIndex === -1 @@ -1668,6 +1670,7 @@ onMounted(() => { :label="item.display" :name="item.name" :required="item.optional === 'false'" + style="margin-bottom: 2px" >