Merge branch 'hi-ucs-dev' of http://192.168.124.50:80/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
gongjiale 2022-11-18 16:38:51 +08:00
commit 1ae34481d7
5 changed files with 89 additions and 32 deletions

View File

@ -2,7 +2,7 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2022-04-01 19:19:40 * @Date: 2022-04-01 19:19:40
* @LastEditors: Light * @LastEditors: Light
* @LastEditTime: 2022-11-18 09:16:13 * @LastEditTime: 2022-11-18 14:09:20
* @Description: 告诉大家这是什么 * @Description: 告诉大家这是什么
*/ */
import request from '@/utils/request' import request from '@/utils/request'
@ -526,10 +526,10 @@ export function getGisByArea(data) {
data, data,
}) })
} }
export function getPolicyCloudService(params) { export function getPolicyCloudService(data) {
return request({ return request({
url: '/resource/getPolicyCloudService', url: '/resource/getPolicyCloudService',
method: 'get', method: 'post',
params, data,
}) })
} }

View File

@ -1,5 +1,4 @@
<template> <template>
itShowQingDao
<!-- 青岛 --> <!-- 青岛 -->
<div class="details-pageconetent" v-if="whoShow1 && whoShow1.itShowQingDao"> <div class="details-pageconetent" v-if="whoShow1 && whoShow1.itShowQingDao">
<home-header></home-header> <home-header></home-header>
@ -305,7 +304,7 @@
<div class="details-pageconetent-left" v-if="Cardsname != '基础设施'"> <div class="details-pageconetent-left" v-if="Cardsname != '基础设施'">
<detailsPageconetentTree /> <detailsPageconetentTree />
</div> </div>
<div class="details-pageconetent-left" style="left:0.16rem" v-else> <div class="details-pageconetent-left" style="left: 0.16rem" v-else>
<detailsPageInfrastructureTreeXha /> <detailsPageInfrastructureTreeXha />
</div> </div>
<div class="top" v-if="Cardsname != '知识库' && Cardsname != '基础设施'"> <div class="top" v-if="Cardsname != '知识库' && Cardsname != '基础设施'">
@ -436,7 +435,11 @@
<a-empty /> <a-empty />
</div> </div>
</div> </div>
<div class="top" style="width: 13.5rem;margin-left:0" v-else-if="Cardsname === '基础设施'"> <div
class="top"
style="width: 13.5rem; margin-left: 0"
v-else-if="Cardsname === '基础设施'"
>
<div class="top-title"> <div class="top-title">
<div <div
v-for="item in titleName" v-for="item in titleName"
@ -507,6 +510,9 @@
:resourceTotal="resourceTotal" :resourceTotal="resourceTotal"
></KnowledgeBase> ></KnowledgeBase>
</div> </div>
<div v-if="Cardsname == '基础设施'">
<infrastructureApplication></infrastructureApplication>
</div>
<div class="talk-monitor" @click="openMonitor"> <div class="talk-monitor" @click="openMonitor">
<a-tooltip> <a-tooltip>
<template #title>问答机器人</template> <template #title>问答机器人</template>
@ -778,6 +784,7 @@
import infrastructurePageXha from '@/views/home/infrastructurePageXha.vue' import infrastructurePageXha from '@/views/home/infrastructurePageXha.vue'
import detailsPageInfrastructureTree from '@/views/home/detailsPageInfrastructureTree.vue' import detailsPageInfrastructureTree from '@/views/home/detailsPageInfrastructureTree.vue'
import detailsPageInfrastructureTreeXha from '@/views/home/detailsPageInfrastructureTreeXha.vue' import detailsPageInfrastructureTreeXha from '@/views/home/detailsPageInfrastructureTreeXha.vue'
import infrastructureApplication from '@/views/home/infrastructureApplication.vue'
import { DETAIL_PAGE_CONTENT_DEFAULT_TAB } from '@/global/GlobalConfig.js' import { DETAIL_PAGE_CONTENT_DEFAULT_TAB } from '@/global/GlobalConfig.js'
import { useStore } from 'vuex' import { useStore } from 'vuex'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
@ -803,7 +810,7 @@
const handleAdd = (value) => { const handleAdd = (value) => {
flag.value = value flag.value = value
} }
    const titleName=ref([]) const titleName = ref([])
const openMonitor = () => { const openMonitor = () => {
window.open('http://www.qingdao.gov.cn:8083/ghwd/znwdqd/index.html') window.open('http://www.qingdao.gov.cn:8083/ghwd/znwdqd/index.html')
} }
@ -904,15 +911,14 @@
name: '', name: '',
}) })
// 西 // 西
 const setTitle = () => { const setTitle = () => {
        let  title = titleNameArray let title = titleNameArray
        let whoShow1 = ref(whoShow) let whoShow1 = ref(whoShow)
      if( whoShow1 && whoShow1.value.itShowXiHaiAn){ if (whoShow1 && whoShow1.value.itShowXiHaiAn) {
        title[0] = title.splice(2, 1, title[0])[0]; title[0] = title.splice(2, 1, title[0])[0]
      }
      } titleName.value = title
      titleName.value=title }
      }
// //
const onSearch = () => { const onSearch = () => {
loading.value = true loading.value = true
@ -1751,7 +1757,7 @@
onMounted(() => { onMounted(() => {
// //
//西 //西
setTitle(); setTitle()
handleSetSearchData() handleSetSearchData()
listKey2.value++ listKey2.value++
// //

View File

@ -2,36 +2,59 @@
* @Author: Light * @Author: Light
* @Date: 2022-11-16 16:46:16 * @Date: 2022-11-16 16:46:16
* @LastEditors: Light * @LastEditors: Light
* @LastEditTime: 2022-11-17 09:46:45 * @LastEditTime: 2022-11-18 15:35:25
* @Description: 政务云资源列表 * @Description: 政务云资源列表
--> -->
<template> <template>
<div class="top"> <div class="top">
<div>检索结果60</div> <div>检索结果{{ props.governmentCloud.total }}</div>
<div> <div>
使用声明: 使用声明:
附加增值服务委办局单位可以根据自身需求按需采购由采购单位付费 附加增值服务委办局单位可以根据自身需求按需采购由采购单位付费
</div> </div>
</div> </div>
<div class="bottom"> <div
class="bottom"
v-for="(item, index) in props.governmentCloud.data"
:key="item.service_item_tier1 + index"
>
<div class="left"></div> <div class="left"></div>
<div class="right"> <div class="right">
<div class="title"> <div class="title">
<div> <div>
<div class="name">云主机</div> <div class="name">{{ item.service_item_tier1 }}</div>
<div class="type">基础服务</div> <div class="type">{{ item.service_type }}</div>
</div> </div>
<div>年份2022</div> <div>年份{{ item.year }}</div>
</div> </div>
<div class="text">云主机配置</div> <div class="text">{{ item.service_description }}</div>
<div class="info"> <div class="info">
<div>一级条目主机服务</div> <div>一级条目{{ item.service_item_tier2 }}</div>
<div>规格1H2G</div> <div>规格{{ item.specification }}</div>
</div> </div>
</div> </div>
</div> </div>
<a-pagination
v-model:current="current"
:pageSize="5"
:total="props.governmentCloud.total"
:showSizeChanger="false"
@change="changeCurrent"
show-less-items
/>
</template> </template>
<script setup></script> <script setup>
import { ref, defineProps, defineEmits } from 'vue'
const props = defineProps({
governmentCloud: { type: Object, default: null },
})
const emit = defineEmits(['getGovernmentCloud'])
const current = ref(props.governmentCloud.current)
const changeCurrent = (current) => {
console.log(current)
emit('getGovernmentCloud', current)
}
</script>
<style lang="less" scoped> <style lang="less" scoped>
.top { .top {
display: flex; display: flex;

View File

@ -0,0 +1,12 @@
<!--
* @Author: Light
* @Date: 2022-11-18 11:53:43
* @LastEditors: Light
* @LastEditTime: 2022-11-18 11:54:11
* @Description: 告诉大家这是什么
-->
<template>
<div>基础设施申请</div>
</template>
<script setup></script>
<style lang="less" scoped></style>

View File

@ -562,9 +562,13 @@
</div> </div>
<div <div
class="infrastructrue-table" class="infrastructrue-table"
:key="showKey"
v-if="!wrjFlag && selectType == '政务云资源'" v-if="!wrjFlag && selectType == '政务云资源'"
> >
<GovernmentCloudResources></GovernmentCloudResources> <GovernmentCloudResources
:governmentCloud="governmentCloud"
@getGovernmentCloud="getGovernmentCloud"
></GovernmentCloudResources>
</div> </div>
<!-- 西海岸-无人机单兵设备 --> <!-- 西海岸-无人机单兵设备 -->
<div class="infrastructrue-table" v-else-if="isXiHaiAn && wrjFlag"> <div class="infrastructrue-table" v-else-if="isXiHaiAn && wrjFlag">
@ -1553,6 +1557,7 @@
} }
const emits = defineEmits(['add']) const emits = defineEmits(['add'])
const selectType = ref('政务云资源') const selectType = ref('政务云资源')
const showKey = ref(0)
// //
let tableHeight = ref('600') let tableHeight = ref('600')
//tab //tab
@ -1667,6 +1672,7 @@
'PaaS服务', 'PaaS服务',
'安全服务', '安全服务',
'大数据服务', '大数据服务',
'运营服务',
'附加增值服务', '附加增值服务',
] ]
} else { } else {
@ -1783,7 +1789,9 @@
clickList.value[indexFather].content = [name] clickList.value[indexFather].content = [name]
} }
if (!isXiHaiAn) { if (!isXiHaiAn) {
getGovernmentCloud() getGovernmentCloud(1)
governmentCloud.current = 1
showKey.value++
} }
} }
// labelCode // labelCode
@ -2313,9 +2321,17 @@
} else { } else {
} }
} }
const getGovernmentCloud = () => { const governmentCloud = reactive({ data: [], total: 0, current: 1 })
getPolicyCloudService().then((res) => { const getGovernmentCloud = (page) => {
getPolicyCloudService({
limit: 5,
page: page || 1,
name: '',
type: clickList.value[1].content[0],
}).then((res) => {
console.log('获取政务云资源======》', res.data.data) console.log('获取政务云资源======》', res.data.data)
governmentCloud.data = res.data.data.list
governmentCloud.total = res.data.data.total
}) })
} }
// tab // tab