From 0f8c27aeca583152adb58011f0da5258626f2e60 Mon Sep 17 00:00:00 2001
From: xiaohuang <1559741705@qq.com>
Date: Sat, 27 Apr 2024 19:54:39 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E7=BB=93=E6=9E=84=E6=B5=8B?=
=?UTF-8?q?=E8=AF=956?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/etl/construction/AssetsModel.vue | 109 ++++++++++++---------
src/views/etl/construction/index.vue | 5 +-
2 files changed, 68 insertions(+), 46 deletions(-)
diff --git a/src/views/etl/construction/AssetsModel.vue b/src/views/etl/construction/AssetsModel.vue
index cf2d511..248613d 100644
--- a/src/views/etl/construction/AssetsModel.vue
+++ b/src/views/etl/construction/AssetsModel.vue
@@ -2,14 +2,40 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
新增字典
-
-
-
-
- {{ dictInfo.dictName }}({{ dictInfo.dictType }})
-
- 新增内容
-
-
-
-
-
- {{ scope.row.infoName }}
-
-
-
-
-
- {{ scope.row.infoValue }}
-
-
-
-
-
- 操作
- 确认
- {{ scope.row.isEdit }}
-
-
-
-
-
+
+
+
+
+
+ {{dictInfo.dictName}}
+ ({{dictInfo.dictType}})
+
+
+
+
+
@@ -171,10 +173,28 @@ import {insertDict,insertDictInfo} from "@/api/etl/etl";
export default {
props: {
+ name:null,
tableInfoList: Array,
dictList: Array
},
+ watch:{
+ tableInfoList: {
+ handler(newValue,oldValue){
+ this.structureNum = 0
+ console.log('new')
+ console.log(oldValue)
+ console.log(newValue)
+ newValue.forEach(asset =>{
+ this.structureNum += asset.info.structureList.length
+ })
+ console.log(this.structureNum)
+ },
+ immediate: true,
+ deep: true
+ }
+ },
+
name: 'AssetsModel',
components:{
CountTo
@@ -182,6 +202,7 @@ export default {
data(){
return {
+ structureNum: null,
tableInfoList: this.tableInfoList,
dictList: this.dictList,
//新增字典表
diff --git a/src/views/etl/construction/index.vue b/src/views/etl/construction/index.vue
index 7307b70..1aaa1ae 100644
--- a/src/views/etl/construction/index.vue
+++ b/src/views/etl/construction/index.vue
@@ -11,8 +11,7 @@
-
-
+
@@ -35,6 +34,7 @@ export default {
data() {
return {
+ vueName:null,
//表详情页面
tableInfoOpen: false,
//结构标题
@@ -118,6 +118,7 @@ export default {
//如果判断对象不存在,重新给form 和 list 赋值
if (data.children !== undefined) {
+ this.vueName = data.tableName
this.tableInfoList = data.children
this.tableInfoForm = data.children[0]
console.log(data.info.id)