能力上架整合
This commit is contained in:
parent
98a17a8dd3
commit
17721d0c42
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-13 10:22:27
|
* @Date: 2022-06-13 10:22:27
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-06-14 11:06:06
|
* @LastEditTime: 2022-06-20 09:59:01
|
||||||
* @Description: 算法上架
|
* @Description: 算法上架
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -22,7 +22,35 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="vue-box">
|
<div class="vue-box">
|
||||||
<algorithm-essential-information
|
<put-on-the-shelf
|
||||||
|
v-if="showView === '基本信息' && refData.name"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:videoList="videoList"
|
||||||
|
:externalField="['算法名称', '算法描述', '共享条件', '共享类型']"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<put-on-the-shelf
|
||||||
|
v-else-if="showView === '算法优势'"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:configure="sfys"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<put-on-the-shelf
|
||||||
|
v-else-if="showView === '应用场景'"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:configure="yycj"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<put-on-the-shelf
|
||||||
|
v-else-if="showView === '部署与使用'"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:fileList="fileList"
|
||||||
|
:imgList="imgList"
|
||||||
|
:externalField="['接口服务', '接口请求方式']"
|
||||||
|
:configure="bs"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<!-- <algorithm-essential-information
|
||||||
v-if="showView === '基本信息' && refData.name"
|
v-if="showView === '基本信息' && refData.name"
|
||||||
:refData="refData"
|
:refData="refData"
|
||||||
:dataFrom="dataFrom"
|
:dataFrom="dataFrom"
|
||||||
|
@ -37,14 +65,19 @@
|
||||||
v-else-if="showView === '应用场景'"
|
v-else-if="showView === '应用场景'"
|
||||||
:refData="refData"
|
:refData="refData"
|
||||||
:dataFrom="dataFrom"
|
:dataFrom="dataFrom"
|
||||||
></algorithm-scenarios>
|
></algorithm-scenarios> -->
|
||||||
<algorithm-deployment-use
|
<!-- <algorithm-scenarios
|
||||||
|
v-else-if="showView === '应用场景'"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
></algorithm-scenarios> -->
|
||||||
|
<!-- <algorithm-deployment-use
|
||||||
v-else-if="showView === '部署与使用'"
|
v-else-if="showView === '部署与使用'"
|
||||||
:refData="refData"
|
:refData="refData"
|
||||||
:dataFrom="dataFrom"
|
:dataFrom="dataFrom"
|
||||||
:fileList="fileList"
|
:fileList="fileList"
|
||||||
:imgList="imgList"
|
:imgList="imgList"
|
||||||
></algorithm-deployment-use>
|
></algorithm-deployment-use> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="btn" :class="showView === '基本信息' ? 'first' : ''">
|
<div class="btn" :class="showView === '基本信息' ? 'first' : ''">
|
||||||
<button v-show="showView !== '基本信息'" @click="back()">上一步</button>
|
<button v-show="showView !== '基本信息'" @click="back()">上一步</button>
|
||||||
|
@ -57,10 +90,11 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import AlgorithmEssentialInformation from '@/views/capacityOnTheShelf/components/AlgorithmEssentialInformation.vue'
|
// import AlgorithmEssentialInformation from '@/views/capacityOnTheShelf/components/AlgorithmEssentialInformation.vue'
|
||||||
import AlgorithmAdvantage from '@/views/capacityOnTheShelf/components/AlgorithmAdvantage.vue'
|
// import AlgorithmAdvantage from '@/views/capacityOnTheShelf/components/AlgorithmAdvantage.vue'
|
||||||
import AlgorithmScenarios from '@/views/capacityOnTheShelf/components/AlgorithmScenarios.vue'
|
// import AlgorithmScenarios from '@/views/capacityOnTheShelf/components/AlgorithmScenarios.vue'
|
||||||
import AlgorithmDeploymentUse from '@/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue'
|
import PutOnTheShelf from '@/views/capacityOnTheShelf/components/PutOnTheShelf.vue'
|
||||||
|
// import AlgorithmDeploymentUse from '@/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.vue'
|
||||||
import { ref, onBeforeUnmount } from 'vue'
|
import { ref, onBeforeUnmount } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { getCategoryTree } from '@/api/personalCenter'
|
import { getCategoryTree } from '@/api/personalCenter'
|
||||||
|
@ -70,6 +104,94 @@
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const showView = ref('基本信息')
|
const showView = ref('基本信息')
|
||||||
|
const sfys = ref([
|
||||||
|
{
|
||||||
|
name: '算法优势',
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: '算法优势名称',
|
||||||
|
field: 'name',
|
||||||
|
type: 'input',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '算法优势描述',
|
||||||
|
field: 'desc',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
])
|
||||||
|
const yycj = ref([
|
||||||
|
{
|
||||||
|
name: '应用场景',
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: '应用场景名称',
|
||||||
|
field: 'name',
|
||||||
|
type: 'input',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '应用场景描述',
|
||||||
|
field: 'desc',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '应用场景图片',
|
||||||
|
field: 'img',
|
||||||
|
type: 'image',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
])
|
||||||
|
const bs = ref([
|
||||||
|
{
|
||||||
|
name: '计费标准信息',
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: '计费方式',
|
||||||
|
field: 'type',
|
||||||
|
type: 'radio',
|
||||||
|
options: ['一次性买断', '按调用次数', '按并发路数', '按年计费'],
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '计费标准',
|
||||||
|
field: 'price',
|
||||||
|
type: 'number',
|
||||||
|
company: '元',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '计费标准描述',
|
||||||
|
field: 'desc',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '常见问题',
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: '问题',
|
||||||
|
field: 'question',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '答复',
|
||||||
|
field: 'answer',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
])
|
||||||
const navList = ref([])
|
const navList = ref([])
|
||||||
const navList2 = ref([])
|
const navList2 = ref([])
|
||||||
const fileList = ref({})
|
const fileList = ref({})
|
||||||
|
@ -79,7 +201,13 @@
|
||||||
const refData = ref({})
|
const refData = ref({})
|
||||||
const submitFlag = ref(true)
|
const submitFlag = ref(true)
|
||||||
const dataFrom = ref({
|
const dataFrom = ref({
|
||||||
infoList: [],
|
infoList: [
|
||||||
|
{
|
||||||
|
attrType: '组件类型',
|
||||||
|
attrValue: '智能算法',
|
||||||
|
delFlag: 0,
|
||||||
|
},
|
||||||
|
],
|
||||||
delFlag: 0,
|
delFlag: 0,
|
||||||
type: '组件服务',
|
type: '组件服务',
|
||||||
deptId: '',
|
deptId: '',
|
||||||
|
@ -187,7 +315,6 @@
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
mybus.on('chageDataFrom', (obj) => {
|
mybus.on('chageDataFrom', (obj) => {
|
||||||
console.log(obj, dataFrom.value.infoList)
|
|
||||||
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
dataFrom.value.infoList = dataFrom.value.infoList.filter(
|
||||||
(item) => item.attrType !== obj.attrType
|
(item) => item.attrType !== obj.attrType
|
||||||
)
|
)
|
||||||
|
@ -195,6 +322,7 @@
|
||||||
obj.attrValue = ''
|
obj.attrValue = ''
|
||||||
}
|
}
|
||||||
dataFrom.value.infoList.push(obj)
|
dataFrom.value.infoList.push(obj)
|
||||||
|
console.log('数据变更=================》', obj, dataFrom.value.infoList)
|
||||||
})
|
})
|
||||||
mybus.on('chageFileList', (obj) => {
|
mybus.on('chageFileList', (obj) => {
|
||||||
fileList.value = obj
|
fileList.value = obj
|
||||||
|
@ -208,10 +336,10 @@
|
||||||
//datafrom外面数据
|
//datafrom外面数据
|
||||||
mybus.on('chageDataFromDwon', (obj) => {
|
mybus.on('chageDataFromDwon', (obj) => {
|
||||||
switch (obj.attrType) {
|
switch (obj.attrType) {
|
||||||
case '名称':
|
case '算法名称':
|
||||||
dataFrom.value.name = obj.attrValue
|
dataFrom.value.name = obj.attrValue
|
||||||
break
|
break
|
||||||
case '描述':
|
case '算法描述':
|
||||||
dataFrom.value.description = obj.attrValue
|
dataFrom.value.description = obj.attrValue
|
||||||
break
|
break
|
||||||
case '共享条件':
|
case '共享条件':
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-13 10:22:27
|
* @Date: 2022-06-13 10:22:27
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-06-15 17:55:02
|
* @LastEditTime: 2022-06-17 19:31:27
|
||||||
* @Description: 应用上架
|
* @Description: 应用上架
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -22,7 +22,34 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="vue-box">
|
<div class="vue-box">
|
||||||
<application-essential-information
|
<put-on-the-shelf
|
||||||
|
v-if="showView === '基本信息' && refData.name"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:videoList="videoList"
|
||||||
|
:imgList="imgList"
|
||||||
|
:externalField="['应用名称', '应用描述']"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<put-on-the-shelf
|
||||||
|
v-else-if="showView === '功能介绍'"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:configure="gnjs"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<put-on-the-shelf
|
||||||
|
v-else-if="showView === '关联组件'"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:configure="glzj"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<put-on-the-shelf
|
||||||
|
v-else-if="showView === '部署与应用'"
|
||||||
|
:refData="refData"
|
||||||
|
:dataFrom="dataFrom"
|
||||||
|
:externalField="['共享条件', '共享类型']"
|
||||||
|
:configure="bs"
|
||||||
|
></put-on-the-shelf>
|
||||||
|
<!-- <application-essential-information
|
||||||
v-if="showView === '基本信息' && refData.name"
|
v-if="showView === '基本信息' && refData.name"
|
||||||
:refData="refData"
|
:refData="refData"
|
||||||
:dataFrom="dataFrom"
|
:dataFrom="dataFrom"
|
||||||
|
@ -45,7 +72,7 @@
|
||||||
:dataFrom="dataFrom"
|
:dataFrom="dataFrom"
|
||||||
:fileList="fileList"
|
:fileList="fileList"
|
||||||
:imgList="imgList"
|
:imgList="imgList"
|
||||||
></application-deployment-use>
|
></application-deployment-use> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="btn" :class="showView === '基本信息' ? 'first' : ''">
|
<div class="btn" :class="showView === '基本信息' ? 'first' : ''">
|
||||||
<button v-show="showView !== '基本信息'" @click="back()">上一步</button>
|
<button v-show="showView !== '基本信息'" @click="back()">上一步</button>
|
||||||
|
@ -58,10 +85,11 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import ApplicationEssentialInformation from '@/views/capacityOnTheShelf/components/ApplicationEssentialInformation.vue'
|
// import ApplicationEssentialInformation from '@/views/capacityOnTheShelf/components/ApplicationEssentialInformation.vue'
|
||||||
import ApplicationFunctionIntroduction from '@/views/capacityOnTheShelf/components/ApplicationFunctionIntroduction.vue'
|
// import ApplicationFunctionIntroduction from '@/views/capacityOnTheShelf/components/ApplicationFunctionIntroduction.vue'
|
||||||
import ApplicationAssociatedComponents from '@/views/capacityOnTheShelf/components/ApplicationAssociatedComponents.vue'
|
// import ApplicationAssociatedComponents from '@/views/capacityOnTheShelf/components/ApplicationAssociatedComponents.vue'
|
||||||
import ApplicationDeploymentUse from '@/views/capacityOnTheShelf/components/ApplicationDeploymentUse.vue'
|
// import ApplicationDeploymentUse from '@/views/capacityOnTheShelf/components/ApplicationDeploymentUse.vue'
|
||||||
|
import PutOnTheShelf from '@/views/capacityOnTheShelf/components/PutOnTheShelf.vue'
|
||||||
import { ref, onBeforeUnmount } from 'vue'
|
import { ref, onBeforeUnmount } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { getCategoryTree } from '@/api/personalCenter'
|
import { getCategoryTree } from '@/api/personalCenter'
|
||||||
|
@ -85,6 +113,75 @@
|
||||||
type: '应用资源',
|
type: '应用资源',
|
||||||
deptId: '',
|
deptId: '',
|
||||||
})
|
})
|
||||||
|
const gnjs = ref([
|
||||||
|
{
|
||||||
|
name: '功能介绍',
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: '功能名称',
|
||||||
|
field: 'name',
|
||||||
|
type: 'input',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '功能描述',
|
||||||
|
field: 'desc',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '功能图片',
|
||||||
|
field: 'img',
|
||||||
|
type: 'image',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
])
|
||||||
|
const glzj = ref([
|
||||||
|
{
|
||||||
|
name: '关联组件',
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: '关联组件名称',
|
||||||
|
field: 'name',
|
||||||
|
type: 'input',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '关联组件描述',
|
||||||
|
field: 'desc',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '关联组件地址',
|
||||||
|
field: 'url',
|
||||||
|
type: 'input',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
])
|
||||||
|
const bs = ref([
|
||||||
|
{
|
||||||
|
name: '常见问题',
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
name: '问题',
|
||||||
|
field: 'question',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '答复',
|
||||||
|
field: 'answer',
|
||||||
|
type: 'textArea',
|
||||||
|
note1: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
])
|
||||||
getUser().then((res) => {
|
getUser().then((res) => {
|
||||||
dataFrom.value.deptId = res.data.data.deptId
|
dataFrom.value.deptId = res.data.data.deptId
|
||||||
})
|
})
|
||||||
|
@ -209,10 +306,10 @@
|
||||||
//datafrom外面数据
|
//datafrom外面数据
|
||||||
mybus.on('chageDataFromDwon', (obj) => {
|
mybus.on('chageDataFromDwon', (obj) => {
|
||||||
switch (obj.attrType) {
|
switch (obj.attrType) {
|
||||||
case '名称':
|
case '应用名称':
|
||||||
dataFrom.value.name = obj.attrValue
|
dataFrom.value.name = obj.attrValue
|
||||||
break
|
break
|
||||||
case '描述':
|
case '应用描述':
|
||||||
dataFrom.value.description = obj.attrValue
|
dataFrom.value.description = obj.attrValue
|
||||||
break
|
break
|
||||||
case '共享条件':
|
case '共享条件':
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-09 15:41:19
|
* @Date: 2022-06-09 15:41:19
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-06-17 11:15:33
|
* @LastEditTime: 2022-06-17 18:09:59
|
||||||
* @Description: 上传组件
|
* @Description: 上传组件
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
console.log('window.SITE_CONFIG.apiURL', window.SITE_CONFIG.apiURL)
|
console.log('window.SITE_CONFIG.apiURL', window.SITE_CONFIG.apiURL)
|
||||||
const apiURL = window.SITE_CONFIG.apiURL
|
const apiURL = window.SITE_CONFIG.apiURL
|
||||||
const fileList = ref([])
|
const fileList = ref([])
|
||||||
if (props.list.length > 0) {
|
if (props.list && props.list.length > 0) {
|
||||||
fileList.value = JSON.parse(JSON.stringify(props.list))
|
fileList.value = JSON.parse(JSON.stringify(props.list))
|
||||||
}
|
}
|
||||||
const beforeUpload = (file) => {
|
const beforeUpload = (file) => {
|
||||||
|
|
|
@ -170,14 +170,18 @@
|
||||||
if (!componentTypeValue.value || componentTypeValue.value == '') {
|
if (!componentTypeValue.value || componentTypeValue.value == '') {
|
||||||
message.error('请选择组件类型!')
|
message.error('请选择组件类型!')
|
||||||
return
|
return
|
||||||
} else if (componentTypeValue.value !== '智能算法') {
|
} else if (
|
||||||
message.error('功能开发中!')
|
componentTypeValue.value === '智能算法' ||
|
||||||
return
|
componentTypeValue.value === '开发组件' ||
|
||||||
} else {
|
componentTypeValue.value === '业务组件'
|
||||||
|
) {
|
||||||
snum.value = {
|
snum.value = {
|
||||||
abilityToType: abilityToTypeFunctionData.value,
|
abilityToType: abilityToTypeFunctionData.value,
|
||||||
componentTypeValue: componentTypeValue.value,
|
componentTypeValue: componentTypeValue.value,
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
message.error('功能开发中!')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
snum.value = {
|
snum.value = {
|
||||||
|
|
|
@ -284,14 +284,18 @@
|
||||||
if (!componentTypeValue.value || componentTypeValue.value == '') {
|
if (!componentTypeValue.value || componentTypeValue.value == '') {
|
||||||
message.error('请选择组件类型!')
|
message.error('请选择组件类型!')
|
||||||
return
|
return
|
||||||
} else if (componentTypeValue.value !== '智能算法') {
|
} else if (
|
||||||
message.error('功能开发中!')
|
componentTypeValue.value === '智能算法' ||
|
||||||
return
|
componentTypeValue.value === '开发组件' ||
|
||||||
} else {
|
componentTypeValue.value === '业务组件'
|
||||||
|
) {
|
||||||
snum.value = {
|
snum.value = {
|
||||||
abilityToType: abilityToTypeFunctionData.value,
|
abilityToType: abilityToTypeFunctionData.value,
|
||||||
componentTypeValue: componentTypeValue.value,
|
componentTypeValue: componentTypeValue.value,
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
message.error('功能开发中!')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
snum.value = {
|
snum.value = {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: hisense.liangjunhua
|
* @Author: hisense.liangjunhua
|
||||||
* @Date: 2022-06-01 17:49:38
|
* @Date: 2022-06-01 17:49:38
|
||||||
* @LastEditors: hisense.liangjunhua
|
* @LastEditors: hisense.liangjunhua
|
||||||
* @LastEditTime: 2022-06-14 11:30:30
|
* @LastEditTime: 2022-06-20 10:09:12
|
||||||
* @Description: 能力上架
|
* @Description: 能力上架
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
|
@ -10,12 +10,20 @@
|
||||||
<home-header></home-header>
|
<home-header></home-header>
|
||||||
<algorithm v-if="type === 'algorithm'"></algorithm>
|
<algorithm v-if="type === 'algorithm'"></algorithm>
|
||||||
<application v-else-if="type === 'application'"></application>
|
<application v-else-if="type === 'application'"></application>
|
||||||
|
<development-components
|
||||||
|
v-else-if="type === 'development-components'"
|
||||||
|
></development-components>
|
||||||
|
<business-component
|
||||||
|
v-else-if="type === 'business-component'"
|
||||||
|
></business-component>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import HomeHeader from '@/views/home/components/header'
|
import HomeHeader from '@/views/home/components/header'
|
||||||
import Algorithm from '@/views/capacityOnTheShelf/Algorithm'
|
import Algorithm from '@/views/capacityOnTheShelf/Algorithm'
|
||||||
import Application from '@/views/capacityOnTheShelf/Application'
|
import Application from '@/views/capacityOnTheShelf/Application'
|
||||||
|
import DevelopmentComponents from '@/views/capacityOnTheShelf/DevelopmentComponents'
|
||||||
|
import BusinessComponent from '@/views/capacityOnTheShelf/BusinessComponent'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
@ -28,6 +36,10 @@
|
||||||
router.currentRoute.value.query.componentTypeValue
|
router.currentRoute.value.query.componentTypeValue
|
||||||
if (componentTypeValue === '智能算法') {
|
if (componentTypeValue === '智能算法') {
|
||||||
type.value = 'algorithm'
|
type.value = 'algorithm'
|
||||||
|
} else if (componentTypeValue === '开发组件') {
|
||||||
|
type.value = 'development-components'
|
||||||
|
} else if (componentTypeValue === '业务组件') {
|
||||||
|
type.value = 'business-component'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window.sessionStorage.setItem('preview', JSON.stringify({}))
|
window.sessionStorage.setItem('preview', JSON.stringify({}))
|
||||||
|
|
Loading…
Reference in New Issue