Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev
This commit is contained in:
commit
9f9ab46f28
|
@ -28,18 +28,19 @@
|
||||||
name: '组件展示',
|
name: '组件展示',
|
||||||
key: 'business-presentation',
|
key: 'business-presentation',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: '关联能力',
|
||||||
|
key: 'business-associated-ability',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: '功能介绍',
|
name: '功能介绍',
|
||||||
key: 'function-introduction',
|
key: 'function-introduction',
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: '应用场景',
|
name: '应用场景',
|
||||||
key: 'application-scenarios',
|
key: 'application-scenarios',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: '关联能力',
|
|
||||||
key: 'business-associated-ability',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: '应用案例',
|
name: '应用案例',
|
||||||
key: 'application-case',
|
key: 'application-case',
|
||||||
|
@ -68,6 +69,7 @@
|
||||||
list.value = []
|
list.value = []
|
||||||
let arr = [
|
let arr = [
|
||||||
'组件视频介绍',
|
'组件视频介绍',
|
||||||
|
'关联能力',
|
||||||
'功能介绍',
|
'功能介绍',
|
||||||
'应用场景',
|
'应用场景',
|
||||||
'应用案例',
|
'应用案例',
|
||||||
|
@ -117,6 +119,7 @@
|
||||||
list.value = []
|
list.value = []
|
||||||
let arr = [
|
let arr = [
|
||||||
'组件视频介绍',
|
'组件视频介绍',
|
||||||
|
'关联能力',
|
||||||
'功能介绍',
|
'功能介绍',
|
||||||
'应用场景',
|
'应用场景',
|
||||||
'应用案例',
|
'应用案例',
|
||||||
|
|
|
@ -115,6 +115,8 @@
|
||||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||||
dataFrom.value.content[0].link.value = props.dataList.apiUrl
|
dataFrom.value.content[0].link.value = props.dataList.apiUrl
|
||||||
dataFrom.value.content[0].facilitator.value = props.dataList.deptContacts
|
dataFrom.value.content[0].facilitator.value = props.dataList.deptContacts
|
||||||
|
dataFrom.value.content[0].people.value = props.dataList.deptContacts
|
||||||
|
dataFrom.value.content[0].phone.value = props.dataList.deptPhone
|
||||||
console.log('dataList', props.dataList)
|
console.log('dataList', props.dataList)
|
||||||
props.dataList.infoList.map((item) => {
|
props.dataList.infoList.map((item) => {
|
||||||
if (item.attrType === '组件地址') {
|
if (item.attrType === '组件地址') {
|
||||||
|
@ -139,6 +141,8 @@
|
||||||
} else {
|
} else {
|
||||||
dataFrom.value.content[0].link.value = val.apiUrl
|
dataFrom.value.content[0].link.value = val.apiUrl
|
||||||
dataFrom.value.content[0].facilitator.value = val.deptContacts
|
dataFrom.value.content[0].facilitator.value = val.deptContacts
|
||||||
|
dataFrom.value.content[0].people.value = val.deptContacts
|
||||||
|
dataFrom.value.content[0].phone.value = val.deptPhone
|
||||||
console.log('dataList', val)
|
console.log('dataList', val)
|
||||||
val.infoList.map((item) => {
|
val.infoList.map((item) => {
|
||||||
if (item.attrType === '组件地址') {
|
if (item.attrType === '组件地址') {
|
||||||
|
|
|
@ -34,14 +34,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom" v-if="props.dataList.id">
|
<div class="bottom" v-if="props.dataList.id">
|
||||||
<!-- <a-button type="primary" @click="toView()">
|
<a-button type="primary" @click="toView()">
|
||||||
<template #icon><form-outlined /></template>
|
<template #icon><form-outlined /></template>
|
||||||
申请使用
|
申请使用
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button type="primary" @click="addShoppingCart()">
|
<a-button type="primary" @click="addShoppingCart()">
|
||||||
<template #icon><shopping-cart-outlined /></template>
|
<template #icon><shopping-cart-outlined /></template>
|
||||||
加入购物车
|
加入购物车
|
||||||
</a-button> -->
|
</a-button>
|
||||||
<a-button type="primary" @click="goTOCollection()">收藏</a-button>
|
<a-button type="primary" @click="goTOCollection()">收藏</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,42 +49,42 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
// import { ShoppingCartOutlined } from '@ant-design/icons-vue'
|
import { FormOutlined, ShoppingCartOutlined } from '@ant-design/icons-vue'
|
||||||
import { defineProps, ref, watch } from 'vue'
|
import { defineProps, ref, watch } from 'vue'
|
||||||
import { scInsert } from '@/api/personalCenter'
|
import { scInsert } from '@/api/personalCenter'
|
||||||
// import { sgcInsert } from '@/api/home'
|
import { sgcInsert } from '@/api/home'
|
||||||
// import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
// import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
import { message } from 'ant-design-vue'
|
import { message } from 'ant-design-vue'
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
dataList: { type: Object, default: null },
|
dataList: { type: Object, default: null },
|
||||||
})
|
})
|
||||||
// const router = useRouter()
|
const router = useRouter()
|
||||||
const applicationArea = ref('')
|
const applicationArea = ref('')
|
||||||
// // 加入申购车
|
// 加入申购车
|
||||||
// const addShoppingCart = () => {
|
const addShoppingCart = () => {
|
||||||
// console.log('加入申购车==================>', props.dataList)
|
console.log('加入申购车==================>', props.dataList)
|
||||||
// sgcInsert({
|
sgcInsert({
|
||||||
// delFlag: '0',
|
delFlag: '0',
|
||||||
// resourceId: props.dataList.id,
|
resourceId: props.dataList.id,
|
||||||
// // userId: userId.value,
|
// userId: userId.value,
|
||||||
// }).then((res) => {
|
}).then((res) => {
|
||||||
// console.log(res)
|
console.log(res)
|
||||||
// message.success('添加申购车成功!')
|
message.success('添加申购车成功!')
|
||||||
// mybus.emit('getSgcNum')
|
mybus.emit('getSgcNum')
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// // 立即申请
|
// 立即申请
|
||||||
// function toView() {
|
function toView() {
|
||||||
// // window.open(newpage.href, '_blank')
|
// window.open(newpage.href, '_blank')
|
||||||
// router.push({
|
router.push({
|
||||||
// path: '/apply',
|
path: '/apply',
|
||||||
// query: {
|
query: {
|
||||||
// name: props.dataList.name,
|
name: props.dataList.name,
|
||||||
// resourceId: [props.dataList.id],
|
resourceId: [props.dataList.id],
|
||||||
// },
|
},
|
||||||
// })
|
})
|
||||||
// }
|
}
|
||||||
// 收藏
|
// 收藏
|
||||||
const goTOCollection = () => {
|
const goTOCollection = () => {
|
||||||
console.log('收藏===================》', props.dataList)
|
console.log('收藏===================》', props.dataList)
|
||||||
|
|
Loading…
Reference in New Issue