修改首页 选择数据类型样式 , 修改 全局搜索逻辑

This commit is contained in:
a0049873 2022-08-23 16:51:41 +08:00
parent d9186e3ac8
commit d1e6b9acd7
3 changed files with 135 additions and 118 deletions

View File

@ -1100,6 +1100,16 @@
getCountByFuzzyQuery(searchValue.value || '').then((res) => {
console.log('全局搜索==========》', 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 == '基础设施') {
console.log('camera1', camera.value)
camera.value.getCamera(true, searchValue.value)
@ -1238,6 +1248,7 @@
val.applyCount = val.syqk //
val.deptName = val.TGBM //
val.createDate = val.fbrq //
val.description = val.xgxt //
})
resourceList.data = res.data.data.data || []
resourceTotal.value = res.data.data.rows || ''
@ -1334,6 +1345,7 @@
val.applyCount = val.syqk //
val.deptName = val.TGBM //
val.createDate = val.fbrq //
val.description = val.xgxt //
})
resourceList.data = res.data.data.data || []
resourceTotal.value = res.data.data.rows || ''

View File

@ -135,6 +135,7 @@
val.applyCount = val.syqk //
val.deptName = val.TGBM //
val.createDate = val.fbrq //
val.description = val.xgxt //
})
obj.value = res.data.data.data || []
object.sjNum = res.data.data.rows

View File

@ -167,7 +167,7 @@
'数据资源',
'知识库',
])
const select = ref('组件服务')
const select = ref(whoShow.itShowQingDao ? '' : '组件服务')
let applicationDataList = ref([])
let technosphereDataList = ref([])
const fabubumen = ref([
@ -326,31 +326,35 @@
text-align: center;
margin: 0 0.1rem;
font-size: 0.18rem;
background: linear-gradient(
to right,
rgba(68, 107, 164, 0.4) 0%,
rgba(68, 107, 164, 0) 100%
);
// background: linear-gradient(
// to right,
// rgba(68, 107, 164, 0.4) 0%,
// rgba(68, 107, 164, 0) 100%
// );
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) {
margin-left: 0;
}
span:hover {
background: linear-gradient(
to right,
rgba(68, 107, 164, 0.5) 0%,
rgba(68, 107, 164, 0.1) 100%
);
}
// span:hover {
// background: linear-gradient(
// to right,
// rgba(68, 107, 164, 0.5) 0%,
// rgba(68, 107, 164, 0.1) 100%
// );
// }
.select {
background: linear-gradient(
to right,
rgba(68, 107, 164, 0.8) 0%,
rgba(68, 107, 164, 0.4) 100%
to bottom,
rgba(255, 255, 255, 0.6) 0%,
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;
border-left: 0.02rem solid #fff;
border-radius: 0.5rem;
// border-left: 0.02rem solid #fff;
}
}
.bottom {