Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev

# Conflicts:
#	back/src/views/modules/myAgent/demo/ability-resource-shelf.vue
This commit is contained in:
851673013@qq.com 2022-07-18 11:00:07 +08:00
commit 351518f849
5 changed files with 273 additions and 240 deletions

View File

@ -229,9 +229,6 @@ export default {
) )
} }
}) })
console.log(this.dataView)
console.log(this.dataForm)
debugger
} else { } else {
const componentType = this.dataForm.infoList.filter( const componentType = this.dataForm.infoList.filter(
(item) => item.attrType === '组件类型' (item) => item.attrType === '组件类型'

View File

@ -50,14 +50,17 @@
v-model="inputNo" v-model="inputNo"
placeholder="请输入退回意见" placeholder="请输入退回意见"
></el-input> ></el-input>
<el-button class="inputBule" @click="agreeOrNot">提交</el-button> <el-button
class="inputBule"
@click.native="agreeOrNot($store.state.contentTabsActiveName)"
>提交</el-button
>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import processModule from '@/mixins/process-module'
import ResourcesAndServices from './ResourcesAndServices.vue' import ResourcesAndServices from './ResourcesAndServices.vue'
import debounce from 'lodash/debounce' import debounce from 'lodash/debounce'
import qs from 'qs' import qs from 'qs'
@ -150,7 +153,8 @@ export default {
}) })
}, },
agreeOrNot: debounce( agreeOrNot: debounce(
function () { function (data) {
console.log(data)
if (this.agreeOrList === '同意') { if (this.agreeOrList === '同意') {
console.log('this.dataForm.taskId', this.taskId) console.log('this.dataForm.taskId', this.taskId)
const params = qs.stringify({ const params = qs.stringify({
@ -210,10 +214,37 @@ export default {
}) })
}) })
} }
this.tabRemoveHandle(data)
}, },
1000, 1000,
{ leading: true, trailing: false } { 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 }
})
}
}
} }
} }
</script> </script>

View File

@ -27,6 +27,7 @@
:refData="refData" :refData="refData"
:dataFrom="dataFrom" :dataFrom="dataFrom"
:videoList="videoList" :videoList="videoList"
:imgList="imgList"
:externalField="[ :externalField="[
'组件名称', '组件名称',
'组件描述', '组件描述',
@ -54,7 +55,6 @@
:dataFrom="dataFrom" :dataFrom="dataFrom"
:fileList="fileList" :fileList="fileList"
:fileList2="fileList2" :fileList2="fileList2"
:imgList="imgList"
:configure="bs" :configure="bs"
></put-on-the-shelf> ></put-on-the-shelf>
</div> </div>

View File

@ -1027,4 +1027,7 @@
:deep(.ant-transfer-list-header .ant-checkbox-wrapper) { :deep(.ant-transfer-list-header .ant-checkbox-wrapper) {
display: none !important; display: none !important;
} }
:deep(.ant-upload-list-item-name) {
width: 100px;
}
</style> </style>

View File

@ -89,6 +89,7 @@
list.value = [] list.value = []
props.dataList.infoList.map((item) => { props.dataList.infoList.map((item) => {
if ( if (
item.attrType === '功能介绍' ||
item.attrType === '常见问题' || item.attrType === '常见问题' ||
item.attrType === '应用案例' || item.attrType === '应用案例' ||
item.attrType === '应用场景' item.attrType === '应用场景'
@ -101,6 +102,7 @@
} }
}) })
list.value.unshift('关联应用') list.value.unshift('关联应用')
list.value.push('使用方式')
navList.value.forEach((item) => { navList.value.forEach((item) => {
console.log(item) console.log(item)
if (list.value.indexOf(item.name) > -1) { if (list.value.indexOf(item.name) > -1) {