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)