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

This commit is contained in:
wuhongjian 2022-06-14 13:59:37 +08:00
commit 8058b17c08
6 changed files with 114 additions and 105 deletions

View File

@ -36,7 +36,7 @@
</svg>
<!-- <a-avatar shape="square" size="large" /> -->
</a-badge>
<a-badge :count="mynoticeNum" style="margin-left: .2rem">
<a-badge :count="mynoticeNum" style="margin-left: 0.2rem">
<svg
t="1654051054113"
class="icon2"
@ -253,7 +253,7 @@
src: url('~@/assets/newHome/font/header-typeface.ttf');
}
.home-header {
height: .64rem;
height: 0.64rem;
width: 100%;
display: flex;
justify-content: center;
@ -265,17 +265,17 @@
top: 0;
div {
color: #fff;
font-size: .16rem;
font-size: 0.16rem;
}
.name {
font-size: .22rem;
font-size: 0.22rem;
font-family: header-typeface;
margin-right: .2rem;
margin-right: 0.2rem;
}
.nav {
width: 1.2rem;
height: .64rem;
line-height: .64rem;
height: 0.64rem;
line-height: 0.64rem;
text-align: center;
}
.nav:hover {
@ -289,31 +289,31 @@
}
.info {
width: 2rem;
margin-left: .2rem;
margin-left: 0.2rem;
display: flex;
justify-content: center;
.img {
width: .3rem;
height: .3rem;
border-radius: .1rem;
width: 0.3rem;
height: 0.3rem;
border-radius: 0.1rem;
background: url('~@/assets/newHome/user.png') no-repeat;
background-size: 100%;
}
span {
height: .3rem;
line-height: .3rem;
margin-left: .08rem;
margin-right: .06rem;
font-size: .16rem;
height: 0.3rem;
line-height: 0.3rem;
margin-left: 0.08rem;
margin-right: 0.06rem;
font-size: 0.16rem;
}
.name {
max-width: .75rem;
max-width: 0.75rem;
overflow: hidden;
}
.out {
cursor: pointer;
padding: 0 .16rem;
border-left: .01rem solid #666;
padding: 0 0.16rem;
border-left: 0.01rem solid #666;
}
}
}
@ -358,9 +358,9 @@
width: 2.5rem;
height: 3rem;
background: #eee;
border-radius: .05rem;
border-radius: 0.05rem;
position: absolute;
top: .45rem;
top: 0.45rem;
right: 3.1rem;
overflow-y: scroll;
}
@ -368,13 +368,13 @@
display: none;
}
:deep(.ant-list-item) {
border-bottom: .01rem solid #ccc;
border-bottom: 0.01rem solid #ccc;
}
:deep(.ant-list-item-meta-title) {
display: flex;
justify-content: space-around;
align-items: center;
padding: 0 .05rem;
padding: 0 0.05rem;
a {
width: 1.5rem;
// ...
@ -383,13 +383,13 @@
white-space: nowrap;
}
button {
width: .7rem;
height: .25rem;
width: 0.7rem;
height: 0.25rem;
display: flex;
justify-content: center;
align-items: center;
span {
font-size: .1rem;
font-size: 0.1rem;
}
}
}

View File

@ -116,7 +116,7 @@
src: url('~@/assets/newHome/font/header-typeface.ttf');
}
.home-header {
height: .64rem;
height: 0.64rem;
width: 100%;
display: flex;
justify-content: center;
@ -127,17 +127,17 @@
z-index: 1000;
div {
color: #fff;
font-size: .16rem;
font-size: 0.16rem;
}
.name {
font-size: .22rem;
font-size: 0.22rem;
font-family: header-typeface;
margin-right: .2rem;
margin-right: 0.2rem;
}
.nav {
width: 1.44rem;
height: .64rem;
line-height: .64rem;
height: 0.64rem;
line-height: 0.64rem;
text-align: center;
}
.nav:hover {
@ -151,31 +151,31 @@
}
.info {
width: 2rem;
margin-left: .2rem;
margin-left: 0.2rem;
display: flex;
justify-content: center;
.img {
width: .3rem;
height: .3rem;
border-radius: .1rem;
width: 0.3rem;
height: 0.3rem;
border-radius: 0.1rem;
background: url('~@/assets/newHome/user.png') no-repeat;
background-size: 100%;
}
span {
height: .3rem;
line-height: .3rem;
margin-left: .08rem;
margin-right: .06rem;
font-size: .16rem;
height: 0.3rem;
line-height: 0.3rem;
margin-left: 0.08rem;
margin-right: 0.06rem;
font-size: 0.16rem;
}
.name {
max-width: .75rem;
max-width: 0.75rem;
overflow: hidden;
}
.out {
cursor: pointer;
padding: 0 .16rem;
border-left: .01rem solid #666;
padding: 0 0.16rem;
border-left: 0.01rem solid #666;
}
}
}

View File

@ -118,6 +118,7 @@
</template>
<script setup>
import { gongZuoZhuangTai } from '@/api/home.js'
import { message } from 'ant-design-vue'
import { ref, watch } from 'vue'
import { useRouter } from 'vue-router'
import { useStore } from 'vuex'
@ -167,10 +168,18 @@
const handleOk = (e) => {
let snum = ref({})
if (abilityToTypeFunctionData.value == '组件服务') {
if (!componentTypeValue.value || componentTypeValue.value == '') {
message.error('请选择组件类型!')
return
} else if (componentTypeValue.value !== '智能算法') {
message.error('功能开发中!')
return
} else {
snum.value = {
abilityToType: abilityToTypeFunctionData.value,
componentTypeValue: componentTypeValue.value,
}
}
} else {
snum.value = {
abilityToType: abilityToTypeFunctionData.value,
@ -262,7 +271,6 @@
}
.ant-modal-content {
border-radius: 0.1rem;
.ability-to-type,
.component-type {
display: flex;
@ -322,7 +330,6 @@
border: 0;
text-align: center;
padding-bottom: 0.2rem;
button {
margin-right: 0.2rem;
border-radius: 0.08rem;
@ -346,7 +353,6 @@
align-items: center;
padding-bottom: 0.8rem;
padding-top: 0.78rem;
.title {
font-size: 0.3rem;
font-family: 'convergence-typeface';
@ -354,11 +360,7 @@
flex-direction: column;
align-items: center;
margin-bottom: 0.32rem;
.title-son {
width: 0.34rem;
height: 0.03rem;
background: #0058e1;
border-radius: 0.01rem;
margin-top: 0.18rem;
}
@ -369,14 +371,10 @@
height: 4.8rem;
display: flex;
padding-left: 0.2rem;
.content-empty {
height: 2.2rem;
padding-top: 0.49rem;
}
}
.content > div {
background: #f3f5f9;
border: #eaedf2 0.01rem solid;
}
@ -393,7 +391,6 @@
padding-top: 0.2rem;
align-items: center;
padding-bottom: 0.1rem;
.content-miaoshui-title {
padding-left: 0.05rem;
padding-right: 0.05rem;
@ -434,7 +431,6 @@
align-items: bottom;
margin-right: 0.16rem;
margin-left: 0.16rem;
div:first-child {
margin-left: 0.16rem;
}
@ -467,7 +463,6 @@
align-items: center;
background-size: 100%;
padding-top: 0.15rem;
.shijain {
margin-top: 0.2rem;
}

View File

@ -170,7 +170,10 @@
getTopCategory().then((res) => {
console.log('编目一级=============>', res.data)
res.data.data.forEach((val) => {
// tabList.value.push(val.name)
if (val.name == '应用资源' || val.name == '组件服务') {
tabList.value.push(val.name)
}
})
})
}

View File

@ -229,6 +229,7 @@
<script setup>
import { onMounted, reactive, ref } from 'vue'
import { useRouter } from 'vue-router'
import { message } from 'ant-design-vue'
// , reactive
import { wodepage, undercarriage } from '@/api/personalCenter'
import { getUserInfo } from '@/api/user'
@ -280,10 +281,18 @@
const handleOk = (e) => {
let snum = ref({})
if (abilityToTypeFunctionData.value == '组件服务') {
if (!componentTypeValue.value || componentTypeValue.value == '') {
message.error('请选择组件类型!')
return
} else if (componentTypeValue.value !== '智能算法') {
message.error('功能开发中!')
return
} else {
snum.value = {
abilityToType: abilityToTypeFunctionData.value,
componentTypeValue: componentTypeValue.value,
}
}
} else {
snum.value = {
abilityToType: abilityToTypeFunctionData.value,

View File

@ -11,7 +11,7 @@
/>
<a-button
type="primary"
style="width: 80px; height: 36px; margin-left: 10px"
style="width: 0.8rem; height: 0.36rem; margin-left: 0.1rem"
@click="clean"
>
重置
@ -62,7 +62,7 @@
width="50"
height="50"
v-if="item.delFlag == 4 || item.delFlag == 5"
style="position: absolute; top: 0; left: 100px"
style="position: absolute; top: 0; left: 1rem"
>
<path
d="M955.22053 256C813.82053 11.2 500.72053-72.6 255.92053 68.8S-72.67947 523.2 68.72053 768 523.22053 1096.6 768.02053 955.2c244.7-141.2 328.6-454.1 187.4-698.8 0-0.1-0.1-0.3-0.2-0.4zM762.02053 944.7c-239 138.1-544.8 56.2-682.9-182.8S22.92053 217.1 261.92053 79.1s544.8-56.2 682.9 182.8c137.9 239 56.1 544.6-182.8 682.8z"
@ -130,14 +130,14 @@
>
<a-button
type="primary"
style="width: 70px; height: 32px; margin-left: 10px"
style="width: 0.7rem; height: 0.32rem; margin-left: 0.1rem"
>
删除
</a-button>
</a-popconfirm>
<a-button
type="primary"
style="width: 70px; height: 32px; margin-left: 10px"
style="width: 0.7rem; height: 0.32rem; margin-left: 0.1rem"
@click="collection"
>
收藏
@ -151,7 +151,7 @@
</p>
<a-button
type="primary"
style="width: 100px; height: 32px; margin-left: 30px"
style="width: 1rem; height: 0.32rem; margin-left: 0.3rem"
@click="apply"
>
一键申请
@ -227,7 +227,9 @@
getTopCategory().then((res) => {
console.log('编目一级=============>', res.data)
res.data.data.forEach((val) => {
if (val.name == '应用资源' || val.name == '组件服务') {
tabList.value.push(val.name)
}
})
})
}
@ -431,23 +433,23 @@
</script>
<style lang="less" scoped>
.ant-list {
height: 540px;
height: 5.4rem;
overflow-y: scroll;
.ant-list-item-meta {
align-items: center;
:deep(.ant-list-item-meta-avatar) {
padding-left: 20px;
margin-right: 30px;
padding-left: 0.2rem;
margin-right: 0.3rem;
}
.time {
margin-left: 30px;
font-size: 12px;
margin-left: 0.3rem;
font-size: 0.12rem;
color: #ccc;
}
:deep(.ant-list-item-meta-description) {
max-height: 44px;
max-height: 0.44rem;
overflow: hidden;
margin-right: 10px;
margin-right: 0.1rem;
}
}
}
@ -455,12 +457,12 @@
width: 0 !important;
}
.bottom {
margin: 10px;
margin: 0.1rem;
display: flex;
justify-content: space-between;
align-items: center;
.left span {
margin-left: 10px;
margin-left: 0.1rem;
}
.right {
display: flex;
@ -469,63 +471,63 @@
color: #0087ff;
}
.num {
font-size: 20px;
font-size: 0.2rem;
}
button {
margin-bottom: 10px;
margin-bottom: 0.1rem;
}
}
}
.title {
font-size: 20px;
font-size: 0.2rem;
color: #000000;
font-family: 'Alibaba PuHuiTi';
font-weight: 500;
margin-top: 20px;
margin-left: 20px;
margin-top: 0.2rem;
margin-left: 0.2rem;
}
.sousuokuang {
margin: 10px 0px 21px 20px;
margin: 0.1rem 0rem 0.21rem 0.2rem;
.ant-input-search {
max-width: 490px;
max-width: 4.9rem;
}
:deep(.ant-input) {
width: 400px;
height: 36px;
font-size: 14px;
width: 4rem;
height: 0.36rem;
font-size: 0.14rem;
color: #b2b2b2;
background: #f5f5f5;
}
:deep(.ant-input-group-addon) {
display: inline-block;
margin-left: 10px;
margin-left: 0.1rem;
.ant-input-search-button {
width: 80px;
height: 36px;
border-radius: 4px;
font-size: 14px;
width: 0.8rem;
height: 0.36rem;
border-radius: 0.04rem;
font-size: 0.14rem;
}
}
}
.tab {
margin-top: 10px;
margin-left: 20px;
margin-bottom: 10px;
margin-top: 0.1rem;
margin-left: 0.2rem;
margin-bottom: 0.1rem;
display: flex;
font-size: 14px;
font-size: 0.14rem;
color: #999999;
div {
width: 70px;
height: 24px;
border: 1px solid #cccccc;
border-radius: 12px;
margin-left: 10px;
width: 0.7rem;
height: 0.24rem;
border: 0.01rem solid #cccccc;
border-radius: 0.12rem;
margin-left: 0.1rem;
text-align: center;
color: #666666;
cursor: pointer;
}
.tabclass {
border: 1px solid #0087ff;
border: 0.01rem solid #0087ff;
color: #0087ff;
}
}