diff --git a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue index 426d31e5..ef660a4e 100644 --- a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue +++ b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue @@ -176,29 +176,30 @@ export default { itemViewSon.children.map((itemSon, indexSon) => { // console.log('itemSon', itemSon) if (itemSon.name.indexOf('描述') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.description } else if (itemSon.name.indexOf('名称') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.name } else if (itemSon.name.indexOf('能力类型') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.type + } else if (itemSon.name === '部门联系人') { + console.log('itemSon.name', itemSon.name) + this.dataView.children[indexView].children[indexViewSon].children[ + indexSon + ].note1 = this.dataForm.deptContacts } else if (itemSon.name.indexOf('属部门') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.unit - } else if (itemSon.name.indexOf('共享条件') != -1) { - this.dataView.children[indexView].children[ - indexViewSon - ].children[indexSon].note1 = this.dataForm.shareCondition - } else if (itemSon.name.indexOf('共享类型') != -1) { - this.dataView.children[indexView].children[ - indexViewSon - ].children[indexSon].note1 = this.dataForm.shareType + } else if (itemSon.name === '部门联系人电话') { + this.dataView.children[indexView].children[indexViewSon].children[ + indexSon + ].note1 = this.dataForm.deptPhone } else if ( itemSon.name === '关联组件信息' && item.attrType === '关联组件信息' @@ -247,39 +248,40 @@ export default { itemViewSon.children.map((itemSon, indexSon) => { console.log('itemSon', itemSon) if (itemSon.name.indexOf('描述') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.description } else if (itemSon.name.indexOf('名称') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.name } else if (itemSon.name.indexOf('共享条件') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.shareCondition } else if (itemSon.name.indexOf('共享方式') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.shareMode } else if (itemSon.name.indexOf('共享类型') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.shareType - } else if (itemSon.name.indexOf('部门联系人') != -1) { - this.dataView.children[indexView].children[0].children[ + } else if (itemSon.name === '部门联系人') { + console.log('itemSon.name', itemSon.name) + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.deptContacts } else if (itemSon.name.indexOf('属部门') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.unit - } else if (itemSon.name.indexOf('部门联系人电话') != -1) { - this.dataView.children[indexView].children[0].children[ + } else if (itemSon.name === '部门联系人电话') { + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.deptPhone } else if (itemSon.name.indexOf('接口请求方式') != -1) { - this.dataView.children[indexView].children[0].children[ + this.dataView.children[indexView].children[indexViewSon].children[ indexSon ].note1 = this.dataForm.apiMethodType } else if ( @@ -403,7 +405,7 @@ export default { color: #333333; font-size: 22px; margin-bottom: 20px; - background: url('~@/assets/img/sj-jx.png') no-repeat; + background: url("~@/assets/img/sj-jx.png") no-repeat; background-position-x: 15px; } .multipleAdditionsClass { @@ -445,6 +447,14 @@ export default { align-items: center; padding: 10px; position: relative; + & > div { + -webkit-line-clamp: 5; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-box-orient: vertical; + word-break: break-all; + } & > div:first-child { margin-bottom: 10px; font-weight: bold; diff --git a/front/src/views/personalCenter/components/TheShelvesAbility.vue b/front/src/views/personalCenter/components/TheShelvesAbility.vue index ce2a5e67..2c4ea8e6 100644 --- a/front/src/views/personalCenter/components/TheShelvesAbility.vue +++ b/front/src/views/personalCenter/components/TheShelvesAbility.vue @@ -45,7 +45,7 @@