diff --git a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue index 776dc574..92c363dd 100644 --- a/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue +++ b/back/src/views/modules/myAgent/demo/ResourcesAndServices.vue @@ -2,7 +2,7 @@
-
{{ item.name }}
+
{{ itemson.name }} @@ -21,7 +21,14 @@ :label=" itemsonson.type != ' multipleAdditions' ? itemsonson.name : '' " - v-show="!(itemsonson.name==='平台地址'|| itemsonson.name==='SDK安装包' || itemsonson.name==='接口请求方式' || itemsonson.name==='服务接口')" + v-show=" + !( + itemsonson.name === '平台地址' || + itemsonson.name === 'SDK安装包' || + itemsonson.name === '接口请求方式' || + itemsonson.name === '服务接口' + ) + " >
- -
{{ - multipleAdditionsItem.question || - multipleAdditionsItem.type || - multipleAdditionsItem.name - }}
+ +
+ {{ + multipleAdditionsItem.question || + multipleAdditionsItem.type || + multipleAdditionsItem.name + }} +
- {{ - multipleAdditionsItem.question || - multipleAdditionsItem.type || - multipleAdditionsItem.name - }} -
+ {{ + multipleAdditionsItem.question || + multipleAdditionsItem.type || + multipleAdditionsItem.name + }} +
-
{{ - multipleAdditionsItem.answer || - multipleAdditionsItem.price || - multipleAdditionsItem.img - }}
+
+ {{ + multipleAdditionsItem.answer || + multipleAdditionsItem.price || + multipleAdditionsItem.img + }} +
- {{ - multipleAdditionsItem.answer || - multipleAdditionsItem.price || - multipleAdditionsItem.img - }} -
+ {{ + multipleAdditionsItem.answer || + multipleAdditionsItem.price || + multipleAdditionsItem.img + }} +
{{ multipleAdditionsItem.desc }}
@@ -78,9 +89,9 @@
{{ itemsonson.note1 }}
+ v-model="itemsonson.note1" + disabled="disabled" + >
-
-
+
-
+
-
+
{ // console.log('itemSon', itemSon) if (itemSon.name.indexOf('描述') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.description + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.description } else if (itemSon.name.indexOf('名称') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.name + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.name } else if (itemSon.name.indexOf('能力类型') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.type + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.type } else if (itemSon.name.indexOf('共享条件') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.shareCondition + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.shareCondition } else if (itemSon.name === '部门联系人') { console.log('itemSon.name', itemSon.name) - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.deptContacts + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.deptContacts } else if (itemSon.name.indexOf('属部门') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.unit + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.unit } else if (itemSon.name === '部门联系人电话') { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.deptPhone + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.deptPhone } else if ( itemSon.name === '关联组件信息' && item.attrType === '关联组件信息' @@ -300,42 +325,42 @@ export default { itemViewSon.children.map((itemSon, indexSon) => { console.log('itemSon', itemSon) if (itemSon.name.indexOf('描述') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.description + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.description } else if (itemSon.name.indexOf('名称') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.name + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.name } else if (itemSon.name.indexOf('共享条件') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.shareCondition + 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.shareMode + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.shareMode } else if (itemSon.name.indexOf('共享类型') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.shareType + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.shareType } else if (itemSon.name === '部门联系人') { console.log('itemSon.name', itemSon.name) - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.deptContacts + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.deptContacts } else if (itemSon.name.indexOf('属部门') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.unit + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.unit } else if (itemSon.name === '部门联系人电话') { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.deptPhone + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.deptPhone } else if (itemSon.name.indexOf('接口请求方式') != -1) { - this.dataView.children[indexView].children[indexViewSon].children[ - indexSon - ].note1 = this.dataForm.apiMethodType + this.dataView.children[indexView].children[ + indexViewSon + ].children[indexSon].note1 = this.dataForm.apiMethodType } else if ( itemSon.name === '来源应用' && item.attrType === '来源应用' @@ -375,11 +400,11 @@ export default { this.dataView ) // 智能算法-使用方式-3种方式联动 - this.dataView.children.map(val => { + this.dataView.children.map((val) => { if (val.name === '部署与使用') { - val.children.map(val => { + val.children.map((val) => { if (val.name === '使用方式') { - val.children.map(val => { + val.children.map((val) => { if (val.name === '使用方式') { if (val.note1 === 'SDK') { this.showSDK = true @@ -482,7 +507,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 {