第一步

This commit is contained in:
gongjiale 2022-11-10 15:44:34 +08:00
parent 8c682e819d
commit 8c3c47a434
11 changed files with 2219 additions and 2146 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

View File

@ -7,17 +7,19 @@
--> -->
<template> <template>
<div class="box"> <div class="box">
<div class="header">能力上架申请</div> <!-- <div class="header">能力上架申请</div> -->
<div class="top"> <div class="top">
<div <div
v-for="(nav, index) in navList" v-for="(nav, index) in navList"
:key="nav" :key="nav"
:class="[index <= navList2.indexOf(showView) ? 'finish' : '']" :class="[index <= navList2.indexOf(showView) ? 'finish' : 'ff']"
> >
<div class="wai">
<span class="bg-box"> <span class="bg-box">
<span>{{ index + 1 }}</span> <span>{{ index + 1 }}</span>
</span> </span>
<span>{{ nav.name }}</span> <span class="bg-name">{{ nav.name }}</span>
</div>
<div class="line" v-if="index !== navList.length - 1"></div> <div class="line" v-if="index !== navList.length - 1"></div>
</div> </div>
</div> </div>
@ -79,37 +81,10 @@
:required="required" :required="required"
:notFilled="notFilled" :notFilled="notFilled"
></put-on-the-shelf> ></put-on-the-shelf>
<!-- <algorithm-essential-information
v-if="showView === '基本信息' && refData.name"
:refData="refData"
:dataFrom="dataFrom"
:videoList="videoList"
></algorithm-essential-information>
<algorithm-advantage
v-else-if="showView === '算法优势'"
:refData="refData"
:dataFrom="dataFrom"
></algorithm-advantage>
<algorithm-scenarios
v-else-if="showView === '应用场景'"
:refData="refData"
:dataFrom="dataFrom"
></algorithm-scenarios> -->
<!-- <algorithm-scenarios
v-else-if="showView === '应用场景'"
:refData="refData"
:dataFrom="dataFrom"
></algorithm-scenarios> -->
<!-- <algorithm-deployment-use
v-else-if="showView === '部署与使用'"
:refData="refData"
:dataFrom="dataFrom"
:fileList="fileList"
:imgList="imgList"
></algorithm-deployment-use> -->
</div> </div>
<div class="btn" :class="showView === '基本信息' ? 'first' : ''"> <div class="btn" :class="showView === '基本信息' ? 'first' : ''">
<button @click="close()">取消</button>
<a-popconfirm <a-popconfirm
v-if=" v-if="
showView == '算法优势' && showView == '算法优势' &&
@ -251,34 +226,35 @@
> >
<button>提交</button> <button>提交</button>
</a-popconfirm> </a-popconfirm>
<button v-else-if="showView === '部署与使用'" @click="submit()"> <button v-else-if="服务商联系电话 === '部署与使用'" @click="submit()">
提交 提交
</button> </button>
<button @click="close()">取消</button>
</div> </div>
</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 PutOnTheShelf from '@/views/capacityOnTheShelf/components/PutOnTheShelf.vue' import PutOnTheShelf from '@/views/capacityOnTheShelf/components/PutOnTheShelf.vue'
// import AlgorithmDeploymentUse from '@/views/capacityOnTheShelf/components/AlgorithmDeploymentUse.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'
import { shangjiainsert, shangjiaapply } from '@/api/personalCenter' import { shangjiainsert, shangjiaapply } from '@/api/personalCenter'
import { import {
getUser, getUser,
getUserInfo, getUserInfo,
selectOne, selectOne,
updateRes, updateRes,
relaunch, relaunch,
} from '@/api/home' } from '@/api/home'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
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([ const sfys = ref([
{ {
name: '算法优势', name: '算法优势',
list: [ list: [
@ -296,8 +272,8 @@
}, },
], ],
}, },
]) ])
const yycj = ref([ const yycj = ref([
{ {
name: '应用场景', name: '应用场景',
list: [ list: [
@ -321,8 +297,8 @@
}, },
], ],
}, },
]) ])
const bs = ref([ const bs = ref([
{ {
name: '计费标准信息', name: '计费标准信息',
list: [ list: [
@ -365,19 +341,19 @@
}, },
], ],
}, },
]) ])
let shiyongshouce = ref({}) let shiyongshouce = ref({})
const navList = ref([]) const navList = ref([])
const navList2 = ref([]) const navList2 = ref([])
const fileList = ref({}) const fileList = ref({})
const packageList = ref({}) const packageList = ref({})
const accessoryList = ref({}) const accessoryList = ref({})
const imgList = ref({}) const imgList = ref({})
const videoList = ref({}) const videoList = ref({})
const data = ref({}) const data = ref({})
const refData = ref({}) const refData = ref({})
const submitFlag = ref(true) const submitFlag = ref(true)
const dataFrom = ref({ const dataFrom = ref({
infoList: [ infoList: [
{ {
attrType: '组件类型', attrType: '组件类型',
@ -388,8 +364,8 @@
delFlag: 0, delFlag: 0,
type: '组件服务', type: '组件服务',
deptId: '', deptId: '',
}) })
const required = ref([ const required = ref([
'归属部门', '归属部门',
'部门联系人', '部门联系人',
'部门联系人电话', '部门联系人电话',
@ -406,15 +382,15 @@
'服务接口', '服务接口',
'接口请求方式', '接口请求方式',
'算法类别', '算法类别',
]) ])
const notFilled = ref([]) const notFilled = ref([])
getUser().then((res) => { getUser().then((res) => {
dataFrom.value.deptId = res.data.data.deptId dataFrom.value.deptId = res.data.data.deptId
}) })
const close = () => { const close = () => {
window.close() window.close()
} }
const back = () => { const back = () => {
navList.value.forEach((val, index) => { navList.value.forEach((val, index) => {
if (val.key === showView.value && index > 0) { if (val.key === showView.value && index > 0) {
showView.value = navList2.value[index - 1] showView.value = navList2.value[index - 1]
@ -424,8 +400,8 @@
console.log('表单数据=============>', dataFrom.value) console.log('表单数据=============>', dataFrom.value)
} }
}) })
} }
const next = () => { const next = () => {
notFilled.value = [] notFilled.value = []
console.log(dataFrom.value, 'dataFrom.value.name') console.log(dataFrom.value, 'dataFrom.value.name')
if (!dataFrom.value.name) { if (!dataFrom.value.name) {
@ -447,18 +423,14 @@
notFilled.value.push('部门联系人电话') notFilled.value.push('部门联系人电话')
} }
if ( if (
!dataFrom.value.infoList.filter( !dataFrom.value.infoList.filter((val) => val.attrType === '算法类别')[0] ||
(val) => val.attrType === '算法类别'
)[0] ||
!dataFrom.value.infoList.filter((val) => val.attrType === '算法类别')[0] !dataFrom.value.infoList.filter((val) => val.attrType === '算法类别')[0]
.attrValue .attrValue
) { ) {
notFilled.value.push('算法类别') notFilled.value.push('算法类别')
} }
if ( if (
!dataFrom.value.infoList.filter( !dataFrom.value.infoList.filter((val) => val.attrType === '应用领域')[0] ||
(val) => val.attrType === '应用领域'
)[0] ||
!dataFrom.value.infoList.filter((val) => val.attrType === '应用领域')[0] !dataFrom.value.infoList.filter((val) => val.attrType === '应用领域')[0]
.attrValue .attrValue
) { ) {
@ -483,9 +455,9 @@
console.log('表单数据=============>', dataFrom.value, refData.value) console.log('表单数据=============>', dataFrom.value, refData.value)
} }
} }
} }
// //
const preview = () => { const preview = () => {
notFilled.value = [] notFilled.value = []
console.log(dataFrom.value, 'dataFrom.value.name') console.log(dataFrom.value, 'dataFrom.value.name')
if ( if (
@ -520,8 +492,8 @@
}) })
window.open(newpage.href, '_blank') window.open(newpage.href, '_blank')
} }
} }
const submit = () => { const submit = () => {
notFilled.value = [] notFilled.value = []
console.log(dataFrom.value, 'dataFrom.value.name') console.log(dataFrom.value, 'dataFrom.value.name')
if ( if (
@ -611,8 +583,8 @@
} }
} }
} }
} }
const init = () => { const init = () => {
getCategoryTree().then((res) => { getCategoryTree().then((res) => {
// console.clear() // console.clear()
res.data.data = res.data.data res.data.data = res.data.data
@ -728,16 +700,14 @@
} }
}) })
data.value = res.data.data.children data.value = res.data.data.children
refData.value = data.value.filter( refData.value = data.value.filter((item) => item.name === showView.value)[0]
(item) => item.name === showView.value
)[0]
console.log('所有编目结构==============>', data.value) console.log('所有编目结构==============>', data.value)
}) })
} }
const resourceId = router.currentRoute.value.query.id const resourceId = router.currentRoute.value.query.id
const taskId = router.currentRoute.value.query.taskId const taskId = router.currentRoute.value.query.taskId
const echoData = ref({}) const echoData = ref({})
if (resourceId) { if (resourceId) {
// //
selectOne(resourceId).then((res) => { selectOne(resourceId).then((res) => {
echoData.value = res.data.data echoData.value = res.data.data
@ -745,25 +715,25 @@
init() init()
// console.log('===================>', echoData.value) // console.log('===================>', echoData.value)
}) })
} else { } else {
init() init()
} }
// //
const refPutOnTheShelf = ref(null) const refPutOnTheShelf = ref(null)
const changeSfys = (type) => { const changeSfys = (type) => {
console.log(refPutOnTheShelf, sfys.value) console.log(refPutOnTheShelf, sfys.value)
refPutOnTheShelf.value.add('算法优势', true, type) refPutOnTheShelf.value.add('算法优势', true, type)
} }
const changeYycj = (type) => { const changeYycj = (type) => {
console.log(refPutOnTheShelf) console.log(refPutOnTheShelf)
refPutOnTheShelf.value.add('应用场景', true, type) refPutOnTheShelf.value.add('应用场景', true, type)
} }
const changeBs = (type) => { const changeBs = (type) => {
console.log(refPutOnTheShelf) console.log(refPutOnTheShelf)
refPutOnTheShelf.value.add('计费标准信息', true) refPutOnTheShelf.value.add('计费标准信息', true)
refPutOnTheShelf.value.add('常见问题', true, type) refPutOnTheShelf.value.add('常见问题', true, type)
} }
mybus.on('chageDataFrom', (obj) => { mybus.on('chageDataFrom', (obj) => {
if (obj.attrType == '技术文档' && obj.attrValue != null) { if (obj.attrType == '技术文档' && obj.attrValue != null) {
shiyongshouce.value = obj shiyongshouce.value = obj
} }
@ -782,24 +752,24 @@
}) })
} }
console.log('数据变更=================》', obj, dataFrom.value.infoList) console.log('数据变更=================》', obj, dataFrom.value.infoList)
}) })
mybus.on('chageFileList', (obj) => { mybus.on('chageFileList', (obj) => {
fileList.value = obj fileList.value = obj
}) })
mybus.on('chagePackageList', (obj) => { mybus.on('chagePackageList', (obj) => {
packageList.value = obj packageList.value = obj
}) })
mybus.on('chageAccessory', (obj) => { mybus.on('chageAccessory', (obj) => {
accessoryList.value = obj accessoryList.value = obj
}) })
mybus.on('chageImgList', (obj) => { mybus.on('chageImgList', (obj) => {
imgList.value = obj imgList.value = obj
}) })
mybus.on('chageVideoList', (obj) => { mybus.on('chageVideoList', (obj) => {
videoList.value = obj videoList.value = obj
}) })
//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
@ -833,8 +803,8 @@
break break
} }
// console.log('dataFrom.value', dataFrom.value) // console.log('dataFrom.value', dataFrom.value)
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {
mybus.off('chageDataFrom') mybus.off('chageDataFrom')
mybus.off('chageFileList') mybus.off('chageFileList')
mybus.off('chageImgList') mybus.off('chageImgList')
@ -842,13 +812,13 @@
mybus.off('chageVideoList') mybus.off('chageVideoList')
mybus.off('chagePackageList') mybus.off('chagePackageList')
mybus.off('chageAccessory') mybus.off('chageAccessory')
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.box { .box {
position: relative; position: relative;
top: 0.64rem; top: 0.64rem;
margin: 0.15rem 4rem; // margin: 0.15rem 3rem;
padding: 0.1rem; padding: 0.1rem;
background: #fff; background: #fff;
.header { .header {
@ -859,57 +829,87 @@
padding: 0 1rem; padding: 0 1rem;
} }
.top { .top {
margin: 0.1rem 0.2rem 0; font-size: 16px;
padding: 0.15rem 0.3rem; margin: 0.32px 0.4px 0;
background: #edf4fc; padding: 24px 24pxs;
display: flex;
justify-content: space-between;
div {
font-size: 0.18rem;
color: #999;
display: flex; display: flex;
justify-content: center; justify-content: center;
.ff {
color: #b3b3b3;
display: inline-flex;
justify-content: center;
align-items: center; align-items: center;
.wai {
margin-top: 14px;
.bg-box { .bg-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 0.45rem; width: 32px;
height: 0.45rem; height: 32px;
border-radius: 50%; border-radius: 50%;
border: 0.01rem solid rgb(214, 214, 214); // border: 0.01rem solid rgb(214, 214, 214);
margin-right: 0.1rem; margin: 0px 16px;
transition: all 0.3s ease; transition: all 0.3s ease;
span { span {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 0.3rem; width: 32px;
height: 0.3rem; height: 32px;
border-radius: 50%; border-radius: 50%;
border: 0.01rem solid #999; border: 1px solid #d9d9d9;
}
}
.bg-name {
color: #b3b3b3;
} }
} }
.line { .line {
margin-left: 0.1rem; // margin-left: 16px;
width: 1.3rem; width: 326px;
height: 0.01rem; height: 2px;
background: #999; background: #d9d9d9;
} }
} }
.finish { .finish {
color: #0087ff;
.bg-box {
background: #9ccefa;
color: #fff; color: #fff;
border: 0.01rem solid #9ccefa; display: inline-flex;
justify-content: center;
align-items: center;
.wai {
margin-top: 14px;
.bg-box {
display: flex;
justify-content: center;
align-items: center;
width: 32px;
height: 32px;
border-radius: 50%;
// border: 0.01rem solid rgb(214, 214, 214);
margin: 0px 16px;
transition: all 0.3s ease;
span { span {
background: #0087ff; background: #0058e1;
border: 0.01rem solid #0087ff; display: flex;
justify-content: center;
align-items: center;
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid solid #0058e1;
}
}
.bg-name {
color: #212121;
font-weight: bold;
} }
} }
.line { .line {
background: #0087ff; // margin-left: 16px;
width: 326px;
height: 2px;
background: #0058e1;
} }
} }
.btn { .btn {
@ -941,7 +941,7 @@
} }
} }
.first { .first {
justify-content: space-around; justify-content: center;
} }
} }
.btn { .btn {
@ -958,17 +958,27 @@
border: none; border: none;
border-radius: 0.06rem; border-radius: 0.06rem;
background: #0087ff; background: #0087ff;
margin-right:12px;
} }
button:nth-of-type(1) { button:nth-of-type(1) {
color: #0087ff; background: #0058e1;
background: #e1edfa; color:#ffffff;
width: 90px;
height: 32px;
border-radius: 2px;
border: 1px #0058e1 solid;
} }
button:nth-of-type(2) { button:nth-of-type(2) {
background: #01c5dc; width: 90px;
height: 32px;
background: #ffffff;
color:#0058e1;
border-radius: 2px;
border: 1px #0058e1 solid;
} }
} }
.first { .first {
justify-content: space-around; justify-content: center;
}
} }
}
</style> </style>

View File

@ -1,57 +1,5 @@
<template> <template>
<div class="work-dynamics"> <div class="work-dynamics">
<!-- <div class="title">
<div>工作动态</div>
<div class="title-son"></div>
</div>
<div class="content" v-if="dataList && dataList.length > 0">
<div v-for="(item, index) in dataList" :key="item">
<div class="content-one" v-if="index % 2 == 0">
<div class="one">
<a-image
style="text-align: center"
alt="暂无图片"
:src="item.imageUrl"
:fallback="imgSrc"
/>
</div>
<div class="content-miaoshui">
<div class="content-miaoshui-title">{{ item.title }}</div>
<div class="content-miaoshui-content">
{{ item.content }}
</div>
<div class="shijain">
<div>{{ item.createDate }}发布</div>
<div class="shijain-content-bootom" @click="selectOne(item.id)">
查看详情
</div>
</div>
</div>
</div>
<div class="content-one" v-else>
<div class="content-miaoshui">
<div class="content-miaoshui-title">{{ item.title }}</div>
<div class="content-miaoshui-content">
{{ item.content }}
</div>
</div>
<div class="one">
<a-image alt="暂无图片" :src="item.imageUrl" :fallback="imgSrc" />
<div class="shijain">
<div>{{ item.createDate }}发布</div>
<div class="shijain-content-bootom" @click="selectOne(item.id)">
查看详情
</div>
</div>
</div>
</div>
</div>
</div>
<a-empty v-else></a-empty>
<div class="bottom" @click="jumpPage()">
查看更多
<span class="gengduo"></span>
</div> -->
<div class="fixedmount"> <div class="fixedmount">
<div @click="applyResource()"> <div @click="applyResource()">
<p></p> <p></p>
@ -67,12 +15,14 @@
<!-- <a-button type="primary" >Open Modal</a-button> --> <!-- <a-button type="primary" >Open Modal</a-button> -->
<a-modal <a-modal
v-model:visible="visible" v-model:visible="visible"
@ok="handleOk"
class="shangjia-class" class="shangjia-class"
@cancel="handlecancel"
> >
<div class="ant-modal-title" id="vcDialogTitle1"> <div class="ant-modal-title" id="vcDialogTitle1">
<div class="showBg"></div> <!-- <div class="showBg"></div> -->
能力上架申请 能力上架申请
</div> </div>
<div class="ability-to-type"> <div class="ability-to-type">
@ -92,52 +42,19 @@
</div> </div>
</div> </div>
</div> </div>
<div <div
class="component-type" class="ability-to-type"
v-if="abilityToTypeFunctionData == '组件服务'" v-if="abilityToTypeFunctionData == '组件服务'"
> >
<div class="title">组件类型选择</div> <div class="title">组件类型选择</div>
<div class="component-type-content">
<!-- <a-checkbox-group
v-model:value="value1"
name="checkboxgroup"
:options="componentType"
/> -->
<a-radio-group v-model:value="componentTypeValue">
<a-radio
@click="componentTypeValueFunction(item)"
v-for="item in componentType"
:key="item"
:value="item"
>
{{ item }}
</a-radio>
</a-radio-group>
</div>
</div>
</a-modal>
</div>
<!-- <div @click="showAbilitySquare">
<p></p>
<p>能力广场</p>
<a-modal
v-model:visible="visibleAbilitySquare"
@ok="handleOkAbilitySquare"
class="shangjia-class"
@cancel="handlecancelAbilitySquare"
>
<div class="ant-modal-title" id="vcDialogTitle1">
<div class="showBg"></div>
能力广场目录
</div>
<div class="ability-to-type">
<div class="ability-to-type-content"> <div class="ability-to-type-content">
<div <div
v-for="item in abilitySquare" v-for="item in componentType"
:key="item" :key="item"
@click="abilitySquareFunction(item)" @click="componentTypeValueFunction(item)"
:class=" :class="
abilitySquareFunctionData == item componentTypeValue == item
? 'ability-to-type-down' ? 'ability-to-type-down'
: '' : ''
" "
@ -146,66 +63,74 @@
</div> </div>
</div> </div>
</div> </div>
<template v-slot:footer>
<a-button class="shenqing" @click="handleOk">申请</a-button>
<a-button class="quxiao" @click="handlecancel">取消</a-button>
</template>
</a-modal> </a-modal>
</div> --> </div>
</div> </div>
</div> </div>
</template> </template>
<script setup> <script setup>
import { gongZuoZhuangTai } from '@/api/home.js' import { gongZuoZhuangTai } from '@/api/home.js'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { ref, watch } from 'vue' import { ref, watch } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useStore } from 'vuex' import { useStore } from 'vuex'
const store = useStore() const store = useStore()
const router = useRouter() const router = useRouter()
const imgSrc = ref(require('@/assets/newHome/zw.png')) const imgSrc = ref(require('@/assets/newHome/zw.png'))
let dataList = ref([]) let dataList = ref([])
// let tupain = ref([ // let tupain = ref([
// require('../../../assets/newHome/one.png'), // require('../../../assets/newHome/one.png'),
// require('../../../assets/newHome/two.png'), // require('../../../assets/newHome/two.png'),
// require('../../../assets/newHome/three.png'), // require('../../../assets/newHome/three.png'),
// require('../../../assets/newHome/four.png'), // require('../../../assets/newHome/four.png'),
// ]) // ])
// //
function handlecancel() { function handlecancel() {
abilityToTypeFunctionData.value = '组件服务' abilityToTypeFunctionData.value = '组件服务'
componentTypeValue.value = '' componentTypeValue.value = ''
} }
let abilityToTypeFunctionData = ref('组件服务') let abilityToTypeFunctionData = ref('组件服务')
function abilityToTypeFunction(item) { function abilityToTypeFunction(item) {
abilityToTypeFunctionData.value = item abilityToTypeFunctionData.value = item
} }
let abilityToType = ref(['组件服务', '应用资源'])
let abilitySquare = ref(['智能算法', '图层服务', '应用资源']) let abilityToType = ref(['组件服务', '应用资源'])
let componentType = ref([ let abilitySquare = ref(['智能算法', '图层服务', '应用资源'])
let componentType = ref([
'智能算法', '智能算法',
'图层服务', '图层服务',
'开发组件', '开发组件',
// '', // '',
'业务组件', '业务组件',
// '', // '',
]) ])
const visible = ref(false) const visible = ref(false)
const showModal = () => { const showModal = () => {
visible.value = true visible.value = true
} }
// 广 // 广
const visibleAbilitySquare = ref(false) const visibleAbilitySquare = ref(false)
const showAbilitySquare = () => { const showAbilitySquare = () => {
visibleAbilitySquare.value = true visibleAbilitySquare.value = true
} }
let componentTypeValueOld = ref('') let componentTypeValueOld = ref('')
function componentTypeValueFunction(item) { function componentTypeValueFunction(item) {
componentTypeValue.value = item
if (componentTypeValueOld.value != item) { if (componentTypeValueOld.value != item) {
componentTypeValue.value = item componentTypeValue.value = item
componentTypeValueOld.value = item componentTypeValueOld.value = item
} else { } else {
componentTypeValue.value = '' componentTypeValue.value = ''
} }
} }
let componentTypeValue = ref('') let componentTypeValue = ref('')
const handleOk = (e) => { const handleOk = (e) => {
let snum = ref({}) let snum = ref({})
if (abilityToTypeFunctionData.value == '组件服务') { if (abilityToTypeFunctionData.value == '组件服务') {
if (!componentTypeValue.value || componentTypeValue.value == '') { if (!componentTypeValue.value || componentTypeValue.value == '') {
@ -239,8 +164,8 @@
abilityToTypeFunctionData.value = '组件服务' abilityToTypeFunctionData.value = '组件服务'
componentTypeValue.value = '' componentTypeValue.value = ''
console.log(e) console.log(e)
} }
const getList = () => { const getList = () => {
const params = { const params = {
limit: 4, limit: 4,
page: 1, page: 1,
@ -252,36 +177,33 @@
console.log('item', dataList.value[index].imageUrl) console.log('item', dataList.value[index].imageUrl)
}) })
}) })
} }
const newpage = router.resolve({ const newpage = router.resolve({
path: '/addApplication', // path: '/addApplication', //
}) })
const toView = () => { const toView = () => {
window.open(newpage.href, '_blank') window.open(newpage.href, '_blank')
} }
// const toApply = () => { // const toApply = () => {
// window.open(applypage.href, '_blank') // window.open(applypage.href, '_blank')
// } // }
getList() getList()
// dataList.value.map((item, index) => { // dataList.value.map((item, index) => {
// dataList.value[index].tupian = tupain.value[index] // dataList.value[index].tupian = tupain.value[index]
// console.log('item', item, dataList.value) // console.log('item', item, dataList.value)
// }) // })
function jumpPage() { function jumpPage() {
// store // store
// store.commit('WorkDynList', { // store.commit('WorkDynList', {
// selectCardsnum: '', // selectCardsnum: '',
// }) // })
console.log( console.log('选中===================>', store.getters['home/selectCardsnum'])
'选中===================>',
store.getters['home/selectCardsnum']
)
// router.push({ path: '/DetailsPageconetent' }) // router.push({ path: '/DetailsPageconetent' })
router.push({ router.push({
path: '/WorkDynList', path: '/WorkDynList',
}) })
} }
const selectOne = (id) => { const selectOne = (id) => {
console.log('点击===============》', id) console.log('点击===============》', id)
router.push({ router.push({
path: '/WorkDynDetails', path: '/WorkDynDetails',
@ -289,12 +211,12 @@
id: id, id: id,
}, },
}) })
} }
watch(abilityToTypeFunctionData, () => { watch(abilityToTypeFunctionData, () => {
componentTypeValue.value = '' componentTypeValue.value = ''
}) })
// 广 // 广
const handleOkAbilitySquare = (e) => { const handleOkAbilitySquare = (e) => {
let snumSquare = ref({}) let snumSquare = ref({})
snumSquare.value = { snumSquare.value = {
abilityToType: abilitySquareFunctionData.value, abilityToType: abilitySquareFunctionData.value,
@ -307,15 +229,15 @@
console.log(e, abilitySquareFunctionData.value, 'hahhaha') console.log(e, abilitySquareFunctionData.value, 'hahhaha')
visibleAbilitySquare.value = false visibleAbilitySquare.value = false
abilitySquareFunctionData.value = '智能算法' abilitySquareFunctionData.value = '智能算法'
} }
let abilitySquareFunctionData = ref('智能算法') let abilitySquareFunctionData = ref('智能算法')
function abilitySquareFunction(item) { function abilitySquareFunction(item) {
abilitySquareFunctionData.value = item abilitySquareFunctionData.value = item
} }
function handlecancelAbilitySquare() { function handlecancelAbilitySquare() {
abilitySquareFunctionData.value = '智能算法' abilitySquareFunctionData.value = '智能算法'
} }
const applyResource = () => { const applyResource = () => {
console.log('点击===============》') console.log('点击===============》')
router.push({ router.push({
path: '/DetailsPageconetent', path: '/DetailsPageconetent',
@ -323,10 +245,10 @@
select: '基础设施', select: '基础设施',
}, },
}) })
} }
</script> </script>
<style lang="less"> <style lang="less">
.shangjia-class { .shangjia-class {
position: fixed; position: fixed;
left: 50%; left: 50%;
top: 50%; top: 50%;
@ -334,7 +256,33 @@
margin-top: -1.44rem; margin-top: -1.44rem;
font-size: 0.14rem; font-size: 0.14rem;
font-weight: 500; font-weight: 500;
.ant-modal-footer {
border: 0;
text-align: center;
margin-top: 24px;
padding-bottom: 24px;
.shenqing{
background: #0058e1;
color:#ffffff;
width: 90px;
height: 32px;
border-radius: 2px;
border: 1px #0058e1 solid;
}
.quxiao{
width: 90px;
height: 32px;
background: #ffffff;
color:#0058e1;
border-radius: 2px;
border: 1px #0058e1 solid;
}
}
.ant-modal-body {
padding: 0px !important;
}
.ant-radio-inner { .ant-radio-inner {
height: 0.16rem; height: 0.16rem;
width: 0.16rem; width: 0.16rem;
@ -346,17 +294,21 @@
background-position: center; background-position: center;
} }
.ant-modal-content { .ant-modal-content {
border-radius: 0.1rem; border-radius: 2px;
border: 1px #e6e9ed solid;
width: 690px;
box-shadow: 0px 4px 20px rgb(0, 0, 0, 0.5);
.ability-to-type, .ability-to-type,
.component-type { .component-type {
display: flex; display: flex;
margin-top: 0.2rem; margin-top: 24px;
margin-left: 24px;
.title { .title {
white-space: nowrap; white-space: nowrap;
margin-right: 0.2rem;
display: flex; display: flex;
align-items: center; align-items: center;
height: 0.26rem; height: 0.26rem;
font-size: 16px;
} }
.component-type-content { .component-type-content {
width: 100%; width: 100%;
@ -365,7 +317,7 @@
background: unset; background: unset;
.ant-radio-group { .ant-radio-group {
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: auto auto auto auto;
grid-gap: 0.15rem; grid-gap: 0.15rem;
} }
} }
@ -374,20 +326,26 @@
.ability-to-type { .ability-to-type {
.ability-to-type-content { .ability-to-type-content {
display: grid; display: grid;
grid-template-columns: 1fr 1fr 1fr; grid-template-columns: auto auto auto auto;
height: unset; height: unset;
border: unset; border: unset;
background: unset; background: unset;
margin-left: 20px;
div { div {
margin-right: 0.15rem; &:hover {
background: #0058e1;
cursor: pointer; cursor: pointer;
font-size: 0.14rem; color:#ffffff;
width: 0.9rem; }
height: 0.26rem; margin-right: 16px;
border-radius: 0.13rem; cursor: pointer;
color: #333333; font-size: 16px;
background: #f5f5f5; width: 90px;
border: 0.01rem #cccccc solid; height: 32px;
border-radius: 2px;
color: #0058e1;
background: #ffffff;
border: 1px #0058e1 solid;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -395,7 +353,7 @@
} }
.ability-to-type-down { .ability-to-type-down {
background: #0087ff; background: #0058e1;
color: #fff; color: #fff;
} }
} }
@ -405,15 +363,25 @@
.ant-modal-title { .ant-modal-title {
display: flex; display: flex;
align-items: center; align-items: center;
display: flex;
align-items: center;
margin: 0px 24px;
padding-top: 24px;
padding-bottom: 22px;
color: #212121;
font-weight: bold;
font-size: 20px;
border-bottom: 2px solid #ebeced;
} }
.ant-modal-footer { .ant-modal-footer {
border: 0; border: 0;
text-align: center; text-align: center;
padding-bottom: 0.2rem; padding-bottom: 0.2rem;
margin-top:50px;
button { button {
margin-right: 0.2rem; margin-right: 12px;
border-radius: 0.08rem; border-radius: 2px;
} }
} }
@ -425,10 +393,10 @@
background-position: center; background-position: center;
margin-right: 0.1rem; margin-right: 0.1rem;
} }
} }
</style> </style>
<style lang="less" scoped> <style lang="less" scoped>
.work-dynamics { .work-dynamics {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -445,9 +413,9 @@
border-radius: 0.01rem; border-radius: 0.01rem;
margin-top: 0.18rem; margin-top: 0.18rem;
} }
} }
.content { .content {
width: 13rem; width: 13rem;
height: 4.8rem; height: 4.8rem;
display: flex; display: flex;
@ -457,15 +425,15 @@
padding-top: 0.49rem; padding-top: 0.49rem;
} }
border: #eaedf2 0.01rem solid; border: #eaedf2 0.01rem solid;
} }
.content > div:hover { .content > div:hover {
border-radius: 0.02rem; border-radius: 0.02rem;
border: 0.01rem solid #0058e1; border: 0.01rem solid #0058e1;
box-shadow: 0rem 0.08rem 0.2rem rgba(0, 88, 225, 0.3); box-shadow: 0rem 0.08rem 0.2rem rgba(0, 88, 225, 0.3);
} }
.content-miaoshui { .content-miaoshui {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-top: 0.2rem; padding-top: 0.2rem;
@ -502,9 +470,9 @@
word-break: break-all; word-break: break-all;
cursor: pointer; cursor: pointer;
} }
} }
.shijain { .shijain {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -514,9 +482,9 @@
div:first-child { div:first-child {
margin-left: 0.16rem; margin-left: 0.16rem;
} }
} }
.shijain-content-bootom { .shijain-content-bootom {
margin-right: 0.16rem; margin-right: 0.16rem;
width: 0.8rem; width: 0.8rem;
height: 0.24rem; height: 0.24rem;
@ -524,18 +492,18 @@
border: 0.01rem solid #0058e1; border: 0.01rem solid #0058e1;
cursor: pointer; cursor: pointer;
color: #0058e1; color: #0058e1;
} }
.shijain-content-bootom:hover { .shijain-content-bootom:hover {
background: rgba(0, 88, 225, 0.3); background: rgba(0, 88, 225, 0.3);
} }
.content > div > div { .content > div > div {
height: 2.4rem; height: 2.4rem;
width: 100%; width: 100%;
} }
.one { .one {
height: 2.4rem; height: 2.4rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -558,9 +526,9 @@
width: 100%; width: 100%;
max-width: 2.98rem; max-width: 2.98rem;
} }
} }
.bottom { .bottom {
height: 0.24rem; height: 0.24rem;
font-size: 0.16rem; font-size: 0.16rem;
width: 1rem; width: 1rem;
@ -577,21 +545,21 @@
background: url('~@/assets/newHome/gd2.png') no-repeat; background: url('~@/assets/newHome/gd2.png') no-repeat;
background-position: center; background-position: center;
} }
} }
.bottom:hover { .bottom:hover {
border-radius: 0.02rem; border-radius: 0.02rem;
background-color: rgba(1, 102, 255, 0.1); background-color: rgba(1, 102, 255, 0.1);
} }
.content > div { .content > div {
height: 4.8rem; height: 4.8rem;
width: 3.1rem; width: 3.1rem;
margin-right: 0.1rem; margin-right: 0.1rem;
background: #f3f5f9; background: #f3f5f9;
} }
.fixedmount { .fixedmount {
height: 3rem; height: 3rem;
display: flex; display: flex;
position: fixed; position: fixed;
@ -601,9 +569,9 @@
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
.fixedmount div { .fixedmount div {
width: 0.96rem; width: 0.96rem;
height: 0.96rem; height: 0.96rem;
// border-radius: 0.04rem; // border-radius: 0.04rem;
@ -618,9 +586,9 @@
cursor: pointer; cursor: pointer;
// background: #e3edfc; // background: #e3edfc;
background: url('~@/assets/home/bg-right.png'); background: url('~@/assets/home/bg-right.png');
} }
.fixedmount div p:nth-child(2) { .fixedmount div p:nth-child(2) {
position: absolute; position: absolute;
bottom: 0rem; bottom: 0rem;
height: 0.2rem; height: 0.2rem;
@ -628,29 +596,29 @@
line-height: 0.2rem; line-height: 0.2rem;
color: #fff; color: #fff;
// margin-top: .08rem; // margin-top: .08rem;
} }
.fixedmount div:nth-child(1) p:nth-child(1) { .fixedmount div:nth-child(1) p:nth-child(1) {
height: 0.32rem; height: 0.32rem;
width: 0.32rem; width: 0.32rem;
//background: url('~@/assets/home/shenqing.png') no-repeat; //background: url('~@/assets/home/shenqing.png') no-repeat;
background: url('~@/assets/home/sq.png') no-repeat; background: url('~@/assets/home/sq.png') no-repeat;
background-size: contain; background-size: contain;
background-position: center; background-position: center;
} }
.fixedmount div:nth-child(2) p:nth-child(1) { .fixedmount div:nth-child(2) p:nth-child(1) {
height: 0.32rem; height: 0.32rem;
width: 0.32rem; width: 0.32rem;
background: url('~@/assets/home/xq.png') no-repeat; background: url('~@/assets/home/xq.png') no-repeat;
background-size: contain; background-size: contain;
background-position: center; background-position: center;
} }
.fixedmount div:nth-child(3) p:nth-child(1) { .fixedmount div:nth-child(3) p:nth-child(1) {
height: 0.32rem; height: 0.32rem;
width: 0.32rem; width: 0.32rem;
background: url('~@/assets/home/sj.png') no-repeat; background: url('~@/assets/home/sj.png') no-repeat;
background-size: 140% 126%; background-size: 140% 126%;
background-position: center; background-position: center;
} }
</style> </style>