diff --git a/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue b/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue index 9d15af1f2..cb2bb38f7 100644 --- a/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue +++ b/nezha-fronted/src/components/common/rightBox/software/softwareAssetBox.vue @@ -15,11 +15,12 @@ - + + - - - - - - @@ -190,7 +185,6 @@ export default { name: '', typeId: '', assetId: '', - projectId: '', params: {}, remark: '' }, @@ -209,7 +203,6 @@ export default { { required: true, message: this.$t('validate.required'), trigger: 'change' } ] }, - projectList: [], softwareTypeArr: [], assetList: [], columns: [ @@ -253,9 +246,6 @@ export default { this.isEdit = true const editSoftwareAsset = JSON.parse(JSON.stringify(n)) editSoftwareAsset.paramObj = [] - if (editSoftwareAsset.projectId === -1) { - editSoftwareAsset.projectId = '' - } editSoftwareAsset.assetId = '' // if (editSoftwareAsset.params) { // Object.keys(editSoftwareAsset.params).forEach(key => { @@ -268,7 +258,6 @@ export default { } }, created () { - this.getProjectList() this.getAsset() this.getSoftwareTypeList() }, @@ -342,14 +331,6 @@ export default { } }) }, - /* 获取project列表 */ - getProjectList () { - this.$get('monitor/project', { pageSize: -1, pageNo: 1 }).then(response => { - if (response.code === 200) { - this.projectList = response.data.list - } - }) - }, /* 获取asset列表 */ getAsset () { this.$get('asset/asset', { pageSize: -1 }).then(res => { diff --git a/nezha-fronted/src/components/common/table/settings/softwareAssetTable.vue b/nezha-fronted/src/components/common/table/settings/softwareAssetTable.vue index 242dda939..a6cb1b783 100644 --- a/nezha-fronted/src/components/common/table/settings/softwareAssetTable.vue +++ b/nezha-fronted/src/components/common/table/settings/softwareAssetTable.vue @@ -70,7 +70,7 @@ {{ scope.row[item.prop] ? momentTz(scope.row[item.prop] ) : '-'}}