diff --git a/src/views/dataSource/asset/dashboard/OverallAssetStructure.vue b/src/views/dataSource/asset/dashboard/OverallAssetStructure.vue deleted file mode 100644 index a87e273..0000000 --- a/src/views/dataSource/asset/dashboard/OverallAssetStructure.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - 资产模型基本信息 - - - {{ tableInfo.tableName }} - {{tableInfo.tableAnnotation}} - {{ tableInfo.recordCount }} - - 是 - - - - - - 资产模型详细信息 - - - - - - - - {{scope.row.isDictionary}} - - - - - - - - - - - {{scope.row.isEmpty}} - - - - - - - - {{scope.row.isDictionary}} - - - - - - - - - - - {{scope.row.dictKey}} - - - - - - 编辑 - - - - - - - - diff --git a/src/views/dataSource/asset/dashboard/OverallAssets.vue b/src/views/dataSource/asset/dashboard/OverallAssets.vue deleted file mode 100644 index 33e8e5c..0000000 --- a/src/views/dataSource/asset/dashboard/OverallAssets.vue +++ /dev/null @@ -1,189 +0,0 @@ - - - - 整体数据资产结构概述 - - - - - - - - - 数据接入 - - - - - - - - - - - - - 资产模型 - - - - - - - - - - - - - 数据模型 - - - - - - - - - - - diff --git a/src/views/dataSource/asset/dashboard/OverallSpecificAssets.vue b/src/views/dataSource/asset/dashboard/OverallSpecificAssets.vue deleted file mode 100644 index 579b764..0000000 --- a/src/views/dataSource/asset/dashboard/OverallSpecificAssets.vue +++ /dev/null @@ -1,318 +0,0 @@ - - - - {{dataSourceObj.dataSource.fromSystem}} - 资产结构概述 - - - - - - - - - 资产模型 - - - - - - - - - - - - - 数据模型 - - - - - - - - - 基础字典 - - - - - - - - - - 确定 - - - 新增字典 - - - - - - - {{dictionaryInfoResp.dictionary.dictionaryName}} - 新增 - - - - - {{scope.row.dictionaryInfoTag}} - - - - - - {{scope.row.dictionaryInfoValue}} - - - - - - 修改 - 确定 - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/dataSource/asset/index.vue b/src/views/dataSource/asset/index.vue deleted file mode 100644 index b5ba8ee..0000000 --- a/src/views/dataSource/asset/index.vue +++ /dev/null @@ -1,133 +0,0 @@ - - - - showAssets=data.type" - :props="defaultProps"> - - {{ data.dataSource.name + '('+data.dataSource.dataSourceDatabaseName + '-' + data.dataSource.fromSystem+')' }} - {{ data.dataTable.tableName + '-'+data.dataTable.tableAnnotation + '(' + data.dataTable.recordCount+'条)' }} - - - - - - - - - - - - - - diff --git a/src/views/dataSource/assetStructure/dashboard/OverallSpecificAssets.vue b/src/views/dataSource/assetStructure/dashboard/OverallSpecificAssets.vue index 8a2c536..5c72233 100644 --- a/src/views/dataSource/assetStructure/dashboard/OverallSpecificAssets.vue +++ b/src/views/dataSource/assetStructure/dashboard/OverallSpecificAssets.vue @@ -49,7 +49,7 @@ trigger="click"> - + 确定 @@ -59,31 +59,28 @@ - - {{dictionaryInfoResp.dictionaryList}} - {{dictionaryInfoResp.dictionaryNameAndValue}} + {{dictionaryInfoResp.dictionary.dictionaryName+'(+'+dictionaryInfoResp.dictionary.dictionaryValue+')'}} 新增 - + - - {{scope.row.label}} - - - - - {{scope.row.value}} + + + {{scope.row.label}} + + + 修改 + - + @@ -126,44 +123,54 @@ import OverallAssetStructure from './OverallAssetStructure.vue' import {getDictionaryRespByDataSourceId, insertDictionary, insertDictionaryInfo} from "@/api/dataSource/dictionary"; export default { - - + watch:{ + assetsModelRespArrayList:{ + // 此处监听variable变量,当期有变化时执行 + handler(item1,item2){ + console.log("新值",item1) + this.activeName=item1[0].dataTable.tableName + console.log("name:",this.activeName) + console.log("旧址",item2) + } + } + }, props: { - dictionaryInfoRespList:{ - type:Array, - // 设置默认值,如果父组件没有传递这个 prop,子组件将使用这个默认值 - default:()=>[], - }, assetsModelRespArrayList: { type: Array }, dataSourceObj: { type: Object }, - dataSourceId: { - type: Number, + dictionaryInfoRespList: { + type: Array } }, data() { return { - originalString: "性别(system_sex)", - dictionaryInfoRespList: [], - activeName: '0', - // activeName: assetsModelRespArrayList[0].dataTableList.tableList.tableName, - dictionaryNameAndVue:"", + nowTime: null, + activeName: '', dictionary: {}, + giveObj: [] } }, components: { - OverallAssetStructure, CountTo }, methods: { - - updateEdit(){ - - }, + // updateEdit(row) { + // this.$set(row,'isEdit',true) + // console.log("行对象:"+row) + // this.dictionaryInfoRespList.forEach(dictionaryInfoResp => { + // dictionaryInfoResp.dictionaryInfoList.forEach(dictionaryInfo => { + // if (dictionaryInfo.id == row){ + // console.log("进来了",dictionaryInfo.isEdit) + // this.$set(dictionaryInfo,'isEdit',true) + // dictionaryInfo.isEdit = true + // } + // }) + // }) + // }, editConfirm(row,dictionaryId){ if (!row.label || !row.value) { this.$message.error('字典标签或字典值,不可为空'); @@ -176,16 +183,27 @@ export default { console.log("插入字典",res) } ) + this.getDictionaryResp() + }, + getDictionaryResp() { + getDictionaryRespByDataSourceId(this.dataSourceObj.dataSource.id).then( + res => { + console.log("字典表响应对象:",res.data) + this.giveObj = res.data + this.giveObj.forEach(dictionaryInfoResp => { + dictionaryInfoResp.dictionaryInfoList.forEach(dictionaryInfo => { + this.$set(dictionaryInfo,'isEdit',false) + }) + }) + this.$emit('handleSetLineChartData', this.giveObj) + } + ) }, - - - - handleSetLineChartData(type) { this.$emit('handleSetLineChartData', type) }, addDict(){ - if (!this.dictionaryNameAndVue){ + if (!this.dictionary.dictionaryName){ this.$message.error('数据字典,不可为空'); return; } @@ -197,7 +215,8 @@ export default { res=>{ console.log("插入字典",res) this.$message.success("插入字典成功") - this.getBigStructure() + this.dictionary = {} + this.getDictionaryResp() } ) }, diff --git a/src/views/dataSource/assetStructure/index.vue b/src/views/dataSource/assetStructure/index.vue index cf111b2..358289b 100644 --- a/src/views/dataSource/assetStructure/index.vue +++ b/src/views/dataSource/assetStructure/index.vue @@ -35,7 +35,7 @@ export default { components: { OverallAssetStructure, OverallSpecificAssets, OverallAssets }, data() { return { - dataSourceId: null, + dataSourceId: 0, tableInfo: {}, assetsModelList: [], dataSourceObj: null,