修改首页 选择数据类型样式 , 修改 全局搜索逻辑
This commit is contained in:
parent
d9186e3ac8
commit
d1e6b9acd7
|
@ -1100,6 +1100,16 @@
|
||||||
getCountByFuzzyQuery(searchValue.value || '').then((res) => {
|
getCountByFuzzyQuery(searchValue.value || '').then((res) => {
|
||||||
console.log('全局搜索==========》', res.data.data)
|
console.log('全局搜索==========》', res.data.data)
|
||||||
globalData.data = res.data.data
|
globalData.data = res.data.data
|
||||||
|
let mapFlag = true
|
||||||
|
res.data.data.map((val) => {
|
||||||
|
if (mapFlag && val.count != 0) {
|
||||||
|
mapFlag = false
|
||||||
|
changeCards(val.type)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (!mapFlag) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (paramsGetResources.type == '基础设施') {
|
if (paramsGetResources.type == '基础设施') {
|
||||||
console.log('camera1', camera.value)
|
console.log('camera1', camera.value)
|
||||||
camera.value.getCamera(true, searchValue.value)
|
camera.value.getCamera(true, searchValue.value)
|
||||||
|
@ -1238,6 +1248,7 @@
|
||||||
val.applyCount = val.syqk // 申请量
|
val.applyCount = val.syqk // 申请量
|
||||||
val.deptName = val.TGBM // 部门
|
val.deptName = val.TGBM // 部门
|
||||||
val.createDate = val.fbrq // 发布时间
|
val.createDate = val.fbrq // 发布时间
|
||||||
|
val.description = val.xgxt // 描述
|
||||||
})
|
})
|
||||||
resourceList.data = res.data.data.data || []
|
resourceList.data = res.data.data.data || []
|
||||||
resourceTotal.value = res.data.data.rows || ''
|
resourceTotal.value = res.data.data.rows || ''
|
||||||
|
@ -1334,6 +1345,7 @@
|
||||||
val.applyCount = val.syqk // 申请量
|
val.applyCount = val.syqk // 申请量
|
||||||
val.deptName = val.TGBM // 部门
|
val.deptName = val.TGBM // 部门
|
||||||
val.createDate = val.fbrq // 发布时间
|
val.createDate = val.fbrq // 发布时间
|
||||||
|
val.description = val.xgxt // 描述
|
||||||
})
|
})
|
||||||
resourceList.data = res.data.data.data || []
|
resourceList.data = res.data.data.data || []
|
||||||
resourceTotal.value = res.data.data.rows || ''
|
resourceTotal.value = res.data.data.rows || ''
|
||||||
|
|
|
@ -135,6 +135,7 @@
|
||||||
val.applyCount = val.syqk // 申请量
|
val.applyCount = val.syqk // 申请量
|
||||||
val.deptName = val.TGBM // 部门
|
val.deptName = val.TGBM // 部门
|
||||||
val.createDate = val.fbrq // 发布时间
|
val.createDate = val.fbrq // 发布时间
|
||||||
|
val.description = val.xgxt // 描述
|
||||||
})
|
})
|
||||||
obj.value = res.data.data.data || []
|
obj.value = res.data.data.data || []
|
||||||
object.sjNum = res.data.data.rows
|
object.sjNum = res.data.data.rows
|
||||||
|
@ -291,7 +292,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.capability-convergence {
|
.capability-convergence {
|
||||||
height: 7.2rem;
|
height: 7.2rem;
|
||||||
background: url('~@/assets/newHome/Convergence-bg.png') no-repeat;
|
background: url('~@/assets/newHome/Convergence-bg.png') no-repeat;
|
||||||
background-size: 100%;
|
background-size: 100%;
|
||||||
|
@ -399,5 +400,5 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -167,7 +167,7 @@
|
||||||
'数据资源',
|
'数据资源',
|
||||||
'知识库',
|
'知识库',
|
||||||
])
|
])
|
||||||
const select = ref('组件服务')
|
const select = ref(whoShow.itShowQingDao ? '' : '组件服务')
|
||||||
let applicationDataList = ref([])
|
let applicationDataList = ref([])
|
||||||
let technosphereDataList = ref([])
|
let technosphereDataList = ref([])
|
||||||
const fabubumen = ref([
|
const fabubumen = ref([
|
||||||
|
@ -326,31 +326,35 @@
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0 0.1rem;
|
margin: 0 0.1rem;
|
||||||
font-size: 0.18rem;
|
font-size: 0.18rem;
|
||||||
background: linear-gradient(
|
// background: linear-gradient(
|
||||||
to right,
|
// to right,
|
||||||
rgba(68, 107, 164, 0.4) 0%,
|
// rgba(68, 107, 164, 0.4) 0%,
|
||||||
rgba(68, 107, 164, 0) 100%
|
// rgba(68, 107, 164, 0) 100%
|
||||||
);
|
// );
|
||||||
color: white;
|
color: white;
|
||||||
border-left: 0.02rem solid rgb(108, 147, 204);
|
// border-left: 0.02rem solid rgb(108, 147, 204);
|
||||||
}
|
}
|
||||||
span:nth-of-type(1) {
|
span:nth-of-type(1) {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
span:hover {
|
// span:hover {
|
||||||
background: linear-gradient(
|
// background: linear-gradient(
|
||||||
to right,
|
// to right,
|
||||||
rgba(68, 107, 164, 0.5) 0%,
|
// rgba(68, 107, 164, 0.5) 0%,
|
||||||
rgba(68, 107, 164, 0.1) 100%
|
// rgba(68, 107, 164, 0.1) 100%
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
.select {
|
.select {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
to right,
|
to bottom,
|
||||||
rgba(68, 107, 164, 0.8) 0%,
|
rgba(255, 255, 255, 0.6) 0%,
|
||||||
rgba(68, 107, 164, 0.4) 100%
|
rgba(61, 122, 214, 0.8) 20%,
|
||||||
|
rgb(50, 116, 215) 50%,
|
||||||
|
rgba(61, 122, 214, 0.8) 80%,
|
||||||
|
rgba(255, 255, 255, 0.6) 100%
|
||||||
) !important;
|
) !important;
|
||||||
border-left: 0.02rem solid #fff;
|
border-radius: 0.5rem;
|
||||||
|
// border-left: 0.02rem solid #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.bottom {
|
.bottom {
|
||||||
|
|
Loading…
Reference in New Issue