diff --git a/front/src/views/capacityOnTheShelf/Algorithm.vue b/front/src/views/capacityOnTheShelf/Algorithm.vue index 61d51591..7bfd8929 100644 --- a/front/src/views/capacityOnTheShelf/Algorithm.vue +++ b/front/src/views/capacityOnTheShelf/Algorithm.vue @@ -192,6 +192,7 @@ ], }, ]) + let shiyongshouce = ref({}) const navList = ref([]) const navList2 = ref([]) const fileList = ref({}) @@ -315,6 +316,9 @@ } init() mybus.on('chageDataFrom', (obj) => { + if (obj.attrType == '技术文档' && obj.attrValue != null) { + shiyongshouce.value = obj + } dataFrom.value.infoList = dataFrom.value.infoList.filter( (item) => item.attrType !== obj.attrType ) @@ -322,6 +326,13 @@ obj.attrValue = '' } dataFrom.value.infoList.push(obj) + if (shiyongshouce.value.attrValue) { + dataFrom.value.infoList.map((syscitem, syscindex) => { + if (syscitem.attrType == '技术文档') { + dataFrom.value.infoList[syscindex] = shiyongshouce.value + } + }) + } console.log('数据变更=================》', obj, dataFrom.value.infoList) }) mybus.on('chageFileList', (obj) => { diff --git a/front/src/views/capacityOnTheShelf/Application.vue b/front/src/views/capacityOnTheShelf/Application.vue index 38d71e39..4ec9bbfc 100644 --- a/front/src/views/capacityOnTheShelf/Application.vue +++ b/front/src/views/capacityOnTheShelf/Application.vue @@ -286,7 +286,7 @@ } init() mybus.on('chageDataFrom', (obj) => { - if (obj.attrType == '使用手册' && obj.attrValue != null) { + if (obj.attrType == '技术文档' && obj.attrValue != null) { shiyongshouce.value = obj } dataFrom.value.infoList = dataFrom.value.infoList.filter( @@ -298,7 +298,7 @@ dataFrom.value.infoList.push(obj) if (shiyongshouce.value.attrValue) { dataFrom.value.infoList.map((syscitem, syscindex) => { - if (syscitem.attrType == '使用手册') { + if (syscitem.attrType == '技术文档') { dataFrom.value.infoList[syscindex] = shiyongshouce.value } }) diff --git a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue index 135e5e0f..d66cb874 100644 --- a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue +++ b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue @@ -298,7 +298,7 @@ } init() mybus.on('chageDataFrom', (obj) => { - if (obj.attrType == '使用手册' && obj.attrValue != null) { + if (obj.attrType == '技术文档' && obj.attrValue != null) { shiyongshouce.value = obj } dataFrom.value.infoList = dataFrom.value.infoList.filter( @@ -310,7 +310,7 @@ dataFrom.value.infoList.push(obj) if (shiyongshouce.value.attrValue) { dataFrom.value.infoList.map((syscitem, syscindex) => { - if (syscitem.attrType == '使用手册') { + if (syscitem.attrType == '技术文档') { dataFrom.value.infoList[syscindex] = shiyongshouce.value } }) diff --git a/front/src/views/capacityOnTheShelf/FilesUpload.vue b/front/src/views/capacityOnTheShelf/FilesUpload.vue index ce675fe4..9140988c 100644 --- a/front/src/views/capacityOnTheShelf/FilesUpload.vue +++ b/front/src/views/capacityOnTheShelf/FilesUpload.vue @@ -47,7 +47,7 @@ const res = resData mybus.emit('showTextFunctionEmit', false) let infoList = ref({ - attrType: '使用手册', + attrType: '技术文档', attrValue: res.data.data, delFlag: 0, }) diff --git a/front/src/views/capacityOnTheShelf/LayerServices.vue b/front/src/views/capacityOnTheShelf/LayerServices.vue index 507eba4a..37da99ce 100644 --- a/front/src/views/capacityOnTheShelf/LayerServices.vue +++ b/front/src/views/capacityOnTheShelf/LayerServices.vue @@ -246,7 +246,7 @@ } init() mybus.on('chageDataFrom', (obj) => { - if (obj.attrType == '使用手册' && obj.attrValue != null) { + if (obj.attrType == '技术文档' && obj.attrValue != null) { shiyongshouce.value = obj } dataFrom.value.infoList = dataFrom.value.infoList.filter( @@ -258,7 +258,7 @@ dataFrom.value.infoList.push(obj) if (shiyongshouce.value.attrValue) { dataFrom.value.infoList.map((syscitem, syscindex) => { - if (syscitem.attrType == '使用手册') { + if (syscitem.attrType == '技术文档') { dataFrom.value.infoList[syscindex] = shiyongshouce.value } }) diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue index 9cbd5f94..7ecb6a0e 100644 --- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue +++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue @@ -146,8 +146,18 @@ :list="props.fileList" tip="支持文件类型,大小不超过100M" > -