diff --git a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
index a6e1e698..1530a160 100644
--- a/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
+++ b/back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
@@ -45,7 +45,7 @@
- 提交
+ 提交
@@ -146,7 +146,8 @@ export default {
// }
})
},
- agreeOrNot: debounce(function () {
+ agreeOrNot: debounce(function (data) {
+ console.log(data)
if (this.agreeOrList === '同意') {
console.log('this.dataForm.taskId', this.taskId)
const params = qs.stringify({
@@ -201,7 +202,34 @@ export default {
})
})
}
- }, 1000, { leading: true, trailing: false })
+ this.tabRemoveHandle(data)
+ }, 1000, { leading: true, trailing: false }),
+ tabRemoveHandle (tabName) {
+ console.log(tabName, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
+ if (tabName === 'home') {
+ return false
+ }
+ this.$store.state.contentTabs = this.$store.state.contentTabs.filter(
+ (item) => item.name !== tabName
+ )
+ if (this.$store.state.contentTabs.length <= 0) {
+ this.$store.state.sidebarMenuActiveName =
+ this.$store.state.contentTabsActiveName = 'home'
+ return false
+ }
+ // 当前选中tab被删除
+ if (tabName === this.$store.state.contentTabsActiveName) {
+ const tab =
+ this.$store.state.contentTabs[
+ this.$store.state.contentTabs.length - 1
+ ]
+ this.$router.push({
+ name: /^iframe_.+/.test(tab.name) ? 'iframe' : tab.name,
+ params: { ...tab.params },
+ query: { ...tab.query }
+ })
+ }
+ }
}
}
diff --git a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue
index 9d123dbd..9203d616 100644
--- a/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue
+++ b/front/src/views/capacityOnTheShelf/DevelopmentComponents.vue
@@ -27,6 +27,7 @@
:refData="refData"
:dataFrom="dataFrom"
:videoList="videoList"
+ :imgList="imgList"
:externalField="[
'组件名称',
'组件描述',
@@ -54,7 +55,6 @@
:dataFrom="dataFrom"
:fileList="fileList"
:fileList2="fileList2"
- :imgList="imgList"
:configure="bs"
>
diff --git a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
index 46c5daae..f8035e4a 100644
--- a/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
+++ b/front/src/views/capacityOnTheShelf/components/PutOnTheShelf.vue
@@ -775,256 +775,259 @@
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue
index 0f3ee737..cfa20a0b 100644
--- a/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue
+++ b/front/src/views/detailsAll/components/Developer/DeveloperNavigation.vue
@@ -89,6 +89,7 @@
list.value = []
props.dataList.infoList.map((item) => {
if (
+ item.attrType === '功能介绍' ||
item.attrType === '常见问题' ||
item.attrType === '应用案例' ||
item.attrType === '应用场景'
@@ -101,6 +102,7 @@
}
})
list.value.unshift('关联应用')
+ list.value.push('使用方式')
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {