hi-ucs/front/src/views/home/DetailsPageconetent.vue

1762 lines
51 KiB
Vue
Raw Normal View History

2022-06-14 09:32:49 +08:00
<template>
2022-06-21 18:26:40 +08:00
<!-- 青岛 -->
<div class="details-pageconetent" v-if="whoShow1 && whoShow1.itShowQingDao">
<home-header></home-header>
2022-06-25 13:45:26 +08:00
<div class="details-pageconetent-left" v-if="Cardsname != '基础设施'">
2022-06-21 18:26:40 +08:00
<detailsPageconetentTree />
</div>
2022-06-25 13:45:26 +08:00
<div class="details-pageconetent-left" v-else>
<detailsPageInfrastructureTree />
</div>
<div class="top" v-if="Cardsname != '知识库' && Cardsname != '基础设施'">
2022-06-21 18:26:40 +08:00
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
backgroundSize: 'cover',
}"
></span>
2022-06-21 18:26:40 +08:00
<span>{{ item.name }}</span>
</div>
</div>
2022-06-22 16:18:12 +08:00
<div class="resultListSearchInput-father">
2022-06-21 18:26:40 +08:00
<div class="resultListSearchInput-son">
模糊搜索
2022-07-15 17:52:31 +08:00
<a-input-search
v-model:value="searchValue"
placeholder="请输入关键词"
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
2022-06-21 18:26:40 +08:00
<button class="button-reset" @click="chongzhi()">重置</button>
2022-07-18 17:26:18 +08:00
<button
v-if="Cardsname == '应用资源'"
class="button-reset"
@click="applyAll()"
style="margin-left: 0.1rem"
>
全部申请
</button>
2022-06-21 18:26:40 +08:00
<div class="hengxian"></div>
</div>
</div>
<div class="top-content-father" :key="listKey">
2022-07-15 17:52:31 +08:00
<template
v-if="
Cardsname == '组件服务' ||
Cardsname == '应用资源' ||
Cardsname == ''
"
>
2022-06-21 18:26:40 +08:00
<div class="top-content-son">
2022-07-15 17:52:31 +08:00
<div
v-for="(item, index) in ListContent.records"
:key="index"
class="top-content"
>
2022-06-21 18:26:40 +08:00
<span class="top-content-title">
{{ item.name }}
</span>
2022-07-15 17:52:31 +08:00
<div
class="leixingsumfather"
:class="!item.shrinkFlag ? 'shrink' : ''"
>
<div
v-for="(item2, index2) in item.typeList"
:key="index2"
class="leixingsum"
>
<a-checkable-tag
:checked="
item.selectedTags &&
item.selectedTags.indexOf(item2.dict_label) !== -1
"
@change="
(checked) => handleChange(item2, checked, item.name)
"
>
2022-06-21 18:26:40 +08:00
{{ item2.dict_label }}
</a-checkable-tag>
</div>
</div>
2022-07-15 17:52:31 +08:00
<div
class="shrinkTag"
v-if="item.showShrink"
:key="item.shrinkFlag"
>
<up-outlined
v-show="!item.shrinkFlag"
@click="changeShrink(item.name)"
/>
<down-outlined
v-show="item.shrinkFlag"
@click="changeShrink(item.name)"
/>
2022-06-21 18:26:40 +08:00
</div>
</div>
2022-07-18 17:26:18 +08:00
<!-- <div
2022-07-18 14:43:24 +08:00
class="top-content"
v-if="Cardsname == '组件服务' || Cardsname == '应用资源'"
>
2022-06-21 18:26:40 +08:00
<span class="top-content-title">共享条件</span>
<div class="leixingsumfather">
<div class="leixingsum">
2022-07-15 17:52:31 +08:00
<a-checkable-tag
:checked="tagFlag == '申请'"
@change="() => chagneTag('申请')"
>
2022-06-21 18:26:40 +08:00
申请
</a-checkable-tag>
2022-07-07 17:38:13 +08:00
</div>
<div class="leixingsum">
2022-06-21 18:26:40 +08:00
<a-checkable-tag
:checked="tagFlag == '免批申请'"
@change="() => chagneTag('免批申请')"
>
2022-07-15 17:52:31 +08:00
免批
2022-06-21 18:26:40 +08:00
</a-checkable-tag>
</div>
</div>
2022-07-18 17:26:18 +08:00
</div> -->
2022-06-21 18:26:40 +08:00
</div>
</template>
</div>
2022-07-15 17:52:31 +08:00
<searchResultList
v-show="resourceList.data && resourceList.data.length > 0"
:key="listKey2"
:resourceList="resourceList"
:resourceTotal="resourceTotal"
:select-cardsname="Cardsname"
/>
2022-06-21 18:26:40 +08:00
<div class="pagination">
2022-07-15 17:52:31 +08:00
<a-pagination
v-if="resourceList.data && resourceList.data.length > 0"
v-model:current="currentPage"
v-model:pageSize="currentPageSize"
show-size-changer
show-less-items
show-quick-jumper
:total="resourceTotal"
:page-size-options="pageSizeOptions"
@change="pageChange"
@showSizeChange="onShowSizeChange"
/>
2022-06-21 18:26:40 +08:00
</div>
2022-07-15 17:52:31 +08:00
<div
v-if="resourceList.data && resourceList.data.length <= 0"
style="margin-top: 2rem"
>
2022-06-22 16:18:12 +08:00
<a-empty />
2022-06-21 18:26:40 +08:00
</div>
</div>
2022-06-25 13:45:26 +08:00
<div class="top" v-else-if="Cardsname === '基础设施'">
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
backgroundSize: 'cover',
}"
></span>
2022-06-25 13:45:26 +08:00
<span>{{ item.name }}</span>
</div>
</div>
<div class="top-content-father">
<infrastructurePage />
</div>
</div>
2022-06-21 18:26:40 +08:00
<div class="top" v-else>
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
backgroundSize: 'cover',
}"
></span>
2022-06-21 18:26:40 +08:00
<span>{{ item.name }}</span>
</div>
</div>
<div class="resultListSearchInput-father" style="background: unset">
<div class="resultListSearchInput-son">
模糊搜索
2022-07-15 17:52:31 +08:00
<a-input-search
v-model:value="searchValue"
placeholder="请输入关键词"
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
2022-06-21 18:26:40 +08:00
<button class="button-reset" @click="chongzhi()">重置</button>
</div>
</div>
2022-07-15 17:52:31 +08:00
<KnowledgeBase
:resourceList="resourceList"
:resourceTotal="resourceTotal"
></KnowledgeBase>
2022-06-21 18:26:40 +08:00
</div>
<div class="talk-monitor" @click="openMonitor">
<a-tooltip>
<template #title>问答机器人</template>
<i></i>
</a-tooltip>
</div>
</div>
<!-- 西海岸 -->
2022-07-15 17:52:31 +08:00
<div
class="details-pageconetent"
v-else-if="whoShow1 && whoShow1.itShowXiHaiAn"
>
2022-06-21 18:26:40 +08:00
<home-header></home-header>
<div class="details-pageconetent-left">
<detailsPageconetentTree />
</div>
<div class="top" v-if="Cardsname != '知识库'">
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
}"
></span>
2022-06-21 18:26:40 +08:00
<span>{{ item.name }}</span>
</div>
</div>
<!-- 搜索框 -->
<div class="resultListSearchInput-father">
<div class="resultListSearchInput-son">
模糊搜索
2022-07-15 17:52:31 +08:00
<a-input-search
v-model:value="searchValue"
placeholder="请输入关键词"
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
2022-06-21 18:26:40 +08:00
<button class="button-reset" @click="chongzhi()">重置</button>
<div class="hengxian"></div>
</div>
</div>
<!-- 分类 -->
<div class="top-content-father" :key="listKey">
2022-07-15 17:52:31 +08:00
<template
v-if="
Cardsname == '组件服务' ||
Cardsname == '应用资源' ||
Cardsname == ''
"
>
2022-06-21 18:26:40 +08:00
<div class="top-content-son">
2022-07-15 17:52:31 +08:00
<div
v-for="(item, index) in ListContent.records"
:key="index"
class="top-content"
>
2022-06-21 18:26:40 +08:00
<span class="top-content-title">
{{ item.name }}
</span>
2022-07-15 17:52:31 +08:00
<div
class="leixingsumfather"
:class="!item.shrinkFlag ? 'shrink' : ''"
>
<div
v-for="(item2, index2) in item.typeList"
:key="index2"
class="leixingsum"
>
<a-checkable-tag
:checked="
item.selectedTags &&
item.selectedTags.indexOf(item2.dict_label) !== -1
"
@change="
(checked) => handleChange(item2, checked, item.name)
"
>
2022-06-21 18:26:40 +08:00
{{ item2.dict_label }}
</a-checkable-tag>
</div>
</div>
2022-07-15 17:52:31 +08:00
<div
class="shrinkTag"
v-if="item.showShrink"
:key="item.shrinkFlag"
>
<up-outlined
v-show="!item.shrinkFlag"
@click="changeShrink(item.name)"
/>
<down-outlined
v-show="item.shrinkFlag"
@click="changeShrink(item.name)"
/>
2022-06-21 18:26:40 +08:00
</div>
</div>
2022-07-18 17:26:18 +08:00
<!-- <div class="top-content" v-if="Cardsname == '组件服务'">
2022-06-21 18:26:40 +08:00
<span class="top-content-title">共享条件</span>
<div class="leixingsumfather">
<div class="leixingsum">
2022-07-15 17:52:31 +08:00
<a-checkable-tag
:checked="tagFlag == '申请'"
@change="() => chagneTag('申请')"
>
2022-06-21 18:26:40 +08:00
申请
</a-checkable-tag>
2022-07-07 17:38:13 +08:00
</div>
<div class="leixingsum">
2022-06-21 18:26:40 +08:00
<a-checkable-tag
:checked="tagFlag == '免批申请'"
@change="() => chagneTag('免批申请')"
>
免批申请
</a-checkable-tag>
</div>
</div>
2022-07-18 17:26:18 +08:00
</div> -->
2022-06-21 18:26:40 +08:00
</div>
</template>
</div>
<!-- 中心内容 -->
2022-07-15 17:52:31 +08:00
<searchResultList
v-show="resourceList.data && resourceList.data.length > 0"
:key="listKey2"
:resourceList="resourceList"
:resourceTotal="resourceTotal"
:select-cardsname="Cardsname"
/>
2022-06-21 18:26:40 +08:00
<!-- 分页 -->
<div class="pagination">
2022-07-15 17:52:31 +08:00
<a-pagination
v-if="resourceList.data && resourceList.data.length > 0"
v-model:current="currentPage"
v-model:pageSize="currentPageSize"
show-size-changer
show-less-items
show-quick-jumper
:total="resourceTotal"
:page-size-options="pageSizeOptions"
@change="pageChange"
@showSizeChange="onShowSizeChange"
/>
2022-06-21 18:26:40 +08:00
</div>
2022-07-15 17:52:31 +08:00
<div
v-if="resourceList.data && resourceList.data.length <= 0"
style="margin-top: 200px"
>
2022-06-21 18:26:40 +08:00
<a-empty />
</div>
</div>
<div class="top" v-else>
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
}"
></span>
2022-06-21 18:26:40 +08:00
<span>{{ item.name }}</span>
</div>
</div>
<div class="resultListSearchInput-father" style="background: unset">
<div class="resultListSearchInput-son">
模糊搜索
2022-07-15 17:52:31 +08:00
<a-input-search
v-model:value="searchValue"
placeholder="请输入关键词"
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
2022-06-21 18:26:40 +08:00
<button class="button-reset" @click="chongzhi()">重置</button>
</div>
</div>
2022-07-15 17:52:31 +08:00
<KnowledgeBase
:resourceList="resourceList"
:resourceTotal="resourceTotal"
></KnowledgeBase>
2022-06-21 18:26:40 +08:00
</div>
<div class="talk-monitor" @click="openMonitor">
<a-tooltip>
<template #title>问答机器人</template>
<i></i>
</a-tooltip>
</div>
</div>
<!-- 包头 -->
2022-07-15 17:52:31 +08:00
<div
class="details-pageconetent"
v-else-if="whoShow1 && whoShow1.itShowBaoTou"
>
2022-06-14 09:32:49 +08:00
<home-header></home-header>
<div class="details-pageconetent-left">
<detailsPageconetentTree />
</div>
2022-06-21 15:10:21 +08:00
<div class="top" v-if="Cardsname != '知识库' && Cardsname != '数据资源'">
2022-06-14 09:32:49 +08:00
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
backgroundSize: 'cover',
}"
></span>
2022-06-14 09:32:49 +08:00
<span>{{ item.name }}</span>
</div>
</div>
2022-07-15 17:52:31 +08:00
<div
v-show="Cardsname !== '数据资源'"
class="resultListSearchInput-father"
>
2022-06-14 09:32:49 +08:00
<div class="resultListSearchInput-son">
模糊搜索
2022-07-15 17:52:31 +08:00
<a-input-search
v-model:value="searchValue"
placeholder="请输入关键词"
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
2022-06-14 09:32:49 +08:00
<button class="button-reset" @click="chongzhi()">重置</button>
<div class="hengxian"></div>
</div>
</div>
<div class="top-content-father" :key="listKey">
2022-07-15 17:52:31 +08:00
<template
v-if="
Cardsname == '组件服务' ||
Cardsname == '应用资源' ||
Cardsname == ''
"
>
2022-06-14 09:32:49 +08:00
<div class="top-content-son">
2022-07-15 17:52:31 +08:00
<div
v-for="(item, index) in ListContent.records"
:key="index"
class="top-content"
>
2022-06-14 09:32:49 +08:00
<span class="top-content-title">
{{ item.name }}
</span>
2022-07-15 17:52:31 +08:00
<div
class="leixingsumfather"
:class="!item.shrinkFlag ? 'shrink' : ''"
>
<div
v-for="(item2, index2) in item.typeList"
:key="index2"
class="leixingsum"
>
<a-checkable-tag
:checked="
item.selectedTags &&
item.selectedTags.indexOf(item2.dict_label) !== -1
"
@change="
(checked) => handleChange(item2, checked, item.name)
"
>
2022-06-14 09:32:49 +08:00
{{ item2.dict_label }}
</a-checkable-tag>
</div>
</div>
2022-07-15 17:52:31 +08:00
<div
class="shrinkTag"
v-if="item.showShrink"
:key="item.shrinkFlag"
>
<up-outlined
v-show="!item.shrinkFlag"
@click="changeShrink(item.name)"
/>
<down-outlined
v-show="item.shrinkFlag"
@click="changeShrink(item.name)"
/>
2022-06-14 09:32:49 +08:00
</div>
</div>
2022-07-18 17:26:18 +08:00
<!-- <div class="top-content" v-if="Cardsname == '组件服务'">
2022-06-14 09:32:49 +08:00
<span class="top-content-title">共享条件</span>
<div class="leixingsumfather">
<div class="leixingsum">
2022-07-15 17:52:31 +08:00
<a-checkable-tag
:checked="tagFlag == '申请'"
@change="() => chagneTag('申请')"
>
2022-06-14 09:32:49 +08:00
申请
</a-checkable-tag>
2022-07-07 17:38:13 +08:00
</div>
<div class="leixingsum">
2022-06-14 09:32:49 +08:00
<a-checkable-tag
:checked="tagFlag == '免批申请'"
@change="() => chagneTag('免批申请')"
>
免批申请
</a-checkable-tag>
</div>
</div>
2022-07-18 17:26:18 +08:00
</div> -->
2022-06-14 09:32:49 +08:00
</div>
</template>
</div>
2022-07-15 17:52:31 +08:00
<searchResultList
v-show="resourceList.data && resourceList.data.length"
:key="listKey2"
:resourceList="resourceList"
:resourceTotal="resourceTotal"
:select-cardsname="Cardsname"
/>
2022-06-14 09:32:49 +08:00
<div class="pagination">
2022-07-15 17:52:31 +08:00
<a-pagination
v-if="resourceList.data && resourceList.data.length > 0"
v-model:current="currentPage"
v-model:pageSize="currentPageSize"
show-size-changer
show-less-items
show-quick-jumper
:total="resourceTotal"
:page-size-options="pageSizeOptions"
@change="pageChange"
@showSizeChange="onShowSizeChange"
/>
2022-06-14 09:32:49 +08:00
</div>
2022-06-21 18:26:40 +08:00
<div class="shujuziyuan" v-if="Cardsname == '数据资源'">
2022-06-14 09:32:49 +08:00
<div class="yunziyuan">
<div class="yunziyuan-title">
<div class="tupian"></div>
2022-07-15 17:52:31 +08:00
<div
class="title"
@click="dianjitiaozhaun('青岛市政务资源管理平台')"
>
2022-06-21 18:26:40 +08:00
青岛市政务资源管理平台{{ dataShowdev }}
2022-06-14 09:32:49 +08:00
</div>
</div>
<div class="keyongziyuan">
<div v-for="item in shujuziyuanqingkuang" :key="item">
<div>{{ item.name }}</div>
<div>{{ item.value }}</div>
{{ item.danwei }}
</div>
</div>
<div class="shuoming">
说明数据资源目前通过青岛市政务信息网进行申请
</div>
</div>
2022-06-21 18:26:40 +08:00
</div>
2022-07-15 17:52:31 +08:00
<div
v-if="resourceList.data && resourceList.data.length <= 0"
style="margin-top: 2rem"
>
2022-06-22 16:18:12 +08:00
<a-empty v-if="!(Cardsname == '数据资源')" />
2022-06-14 09:32:49 +08:00
</div>
</div>
2022-06-21 15:10:21 +08:00
<div class="top" v-else-if="Cardsname == '数据资源'">
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
backgroundSize: 'cover',
}"
></span>
2022-06-21 15:10:21 +08:00
<span>{{ item.name }}</span>
</div>
</div>
<details-page-resource></details-page-resource>
</div>
2022-06-14 09:32:49 +08:00
<div class="top" v-else>
<div class="top-title">
2022-07-15 17:52:31 +08:00
<div
v-for="item in titleName"
:key="item.name"
:class="item.name === Cardsname ? 'sel' : ''"
@click="changeCards(item.name)"
>
<span
class="photo"
:style="{
backgroundImage: `url(${item.photo}) `,
backgroundSize: 'cover',
}"
></span>
2022-06-14 09:32:49 +08:00
<span>{{ item.name }}</span>
</div>
</div>
<div class="resultListSearchInput-father" style="background: unset">
<div class="resultListSearchInput-son">
模糊搜索
2022-07-15 17:52:31 +08:00
<a-input-search
v-model:value="searchValue"
placeholder="请输入关键词"
enter-button="搜索"
size="large"
@search="getAppResources"
@change="onSearch"
class="resultListSearchInput"
/>
2022-06-14 09:32:49 +08:00
<button class="button-reset" @click="chongzhi()">重置</button>
</div>
</div>
2022-07-15 17:52:31 +08:00
<KnowledgeBase
:resourceList="resourceList"
:resourceTotal="resourceTotal"
></KnowledgeBase>
2022-06-14 09:32:49 +08:00
</div>
<!--<div class="talk-monitor" @click="openMonitor">
2022-06-14 09:32:49 +08:00
<a-tooltip>
<template #title>问答机器人</template>
<i></i>
</a-tooltip>
</div>-->
2022-06-14 09:32:49 +08:00
</div>
<home-footer></home-footer>
</template>
<script>
2022-07-15 17:52:31 +08:00
import HomeFooter from '@/views/newHome/components/Footer'
import mybus from '@/myplugins/mybus'
import { defineComponent, reactive, ref, toRefs, onMounted, watch } from 'vue'
import { UpOutlined, DownOutlined } from '@ant-design/icons-vue'
import {
selectDicStoreAll,
pageWithAttrs,
getDataResource,
getIntegrationServicesList,
} from '@/api/home.js'
import { getSgcList } from '@/api/personalCenter'
import { useRouter } from 'vue-router'
import HomeHeader from '@/views/home/components/header'
import detailsPageconetentTree from '@/views/home/detailsPageconetentTree.vue'
import searchResultList from '@/views/home/components/searchResultList.vue'
import KnowledgeBase from '@/views/home/components/KnowledgeBase.vue'
// 数据资源引用
import DetailsPageResource from '@/views/home/components/DetailsPageResource.vue'
// 基础设施引用
import infrastructurePage from '@/views/home/infrastructurePage.vue'
import detailsPageInfrastructureTree from '@/views/home/detailsPageInfrastructureTree.vue'
import { message } from 'ant-design-vue'
import {
titleNameArray,
keyongziyuanqingkaungArray,
shujuziyuanqingkuangArray,
} from './constantData/showData.js'
export default defineComponent({
setup() {
const titleName = ref(titleNameArray)
const openMonitor = () => {
window.open('http://www.qingdao.gov.cn:8083/ghwd/znwdqd/index.html')
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
// 模糊查询
const keyongziyuanqingkaung = ref(keyongziyuanqingkaungArray)
const shujuziyuanqingkuang = ref(shujuziyuanqingkuangArray)
// 西海岸数据资源页
// const dataShowbt = ref(whoShow.itshow)
// 青岛数据资源页
const whoShow1 = ref(whoShow)
// 分页
const loading = ref(true)
const currentPage = ref(1)
const currentPageSize = ref(5)
const pageSizeOptions = ref(['5', '10', '20', '50'])
const router = useRouter()
const select = router.currentRoute.value.query.select
const str = router.currentRoute.value.query.str
const searchValue = ref(str)
let tecHnosphere = router.currentRoute.value.query.tecHnosphere
let appLiCation = router.currentRoute.value.query.appLiCation
const Cardsname = ref(select)
// 刷新筛选条件组件
let listKey = ref(0)
// 刷新筛选列表信息组件
const listKey2 = ref(0)
// 储存筛选条件状态
const state = reactive({
selectedTags: [],
diyici: [],
})
// 查询参数
const paramsGetResources = {
districtId: '',
deptIds: [],
pageNum: 1,
pageSize: currentPageSize.value,
type: Cardsname.value,
name: '',
infoList: [],
orderField: 'total', // total 综合 visits 访问量 applyCount 申请量 score 评分 collectCount 收藏量
orderType: 'DESC', // ASC 升序 DESC 降序
}
2022-07-15 17:52:31 +08:00
// 查询
const onSearch = () => {
loading.value = true
paramsGetResources.name = searchValue.value
currentPage.value = 1
}
// 免批
const tagFlag = ref('')
// 视频资源
const stateTags = ref(['在线', '离线'])
const selStateTags = ref([])
const handleChangeStateTag = (tag, checked) => {
loading.value = true
paramsGetResources.pageNum = 1
currentPage.value = 1
paramsGetResources.infoList = paramsGetResources.infoList.filter(
(item) => item.attrType !== 'status'
)
if (checked) {
selStateTags.value = [tag]
paramsGetResources.infoList.push({
attrType: 'status',
attrValue: tag == '在线' ? 1 : 0,
})
} else {
selStateTags.value = selStateTags.value.filter((t) => t !== tag)
}
getAppResources()
console.log(tag, checked)
}
const selBqTags = ref([])
const handleChangeBqTags = (tag, checked) => {
loading.value = true
paramsGetResources.pageNum = 1
currentPage.value = 1
paramsGetResources.infoList = paramsGetResources.infoList.filter(
(item) => item.attrType !== 'labelName'
)
if (checked) {
selBqTags.value = [tag]
paramsGetResources.infoList.push({
attrType: 'labelName',
attrValue: tag,
})
} else {
selBqTags.value = selBqTags.value.filter((t) => t !== tag)
}
getAppResources()
}
const current = ref(5)
const chagneTag = (name) => {
paramsGetResources.pageNum = 1
currentPage.value = 1
if (tagFlag.value == name) {
tagFlag.value = ''
paramsGetResources.shareCondition = ''
} else {
tagFlag.value = name
paramsGetResources.shareCondition = name
}
listKey.value++
getAppResources()
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
// 重置数据
const chongzhi = () => {
loading.value = true
// 重置模糊查字段
searchValue.value = ''
paramsGetResources.name = searchValue.value
// 重置筛选条件
ListContent.records.forEach((val) => {
val.selectedTags = []
})
// 分页
currentPage.value = 1
currentPageSize.value = 5
// 重置查询条件
paramsGetResources.districtId = ''
paramsGetResources.deptIds = []
paramsGetResources.pageNum = 1
paramsGetResources.pageSize = 5
paramsGetResources.name = ''
paramsGetResources.shareCondition = ''
paramsGetResources.infoList = []
paramsGetResources.orderField = 'total'
paramsGetResources.orderType = 'DESC'
mybus.emit('chongzhi')
getAppResources()
}
2022-07-15 17:52:31 +08:00
//跳转链接
function dianjitiaozhaun(name) {
switch (name) {
case '青岛市政务资源管理平台':
window.open('http://15.72.158.81/web/root/homepage.aspx')
console.log('name', name)
break
case '青岛市视频资源管理平台':
window.open('http://15.72.183.88:8760/yzy/main')
console.log('name', name)
break
}
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
// 点击筛选条件回调
const handleChange = (tag, checked, name) => {
loading.value = true
paramsGetResources.pageNum = 1
currentPage.value = 1
console.log('点击筛选条件=================>', tag, checked, name)
ListContent.records.forEach((val) => {
if (val.name === name) {
paramsGetResources.infoList = paramsGetResources.infoList.filter(
(item) => item.attrType !== name
2022-06-14 09:32:49 +08:00
)
2022-07-15 17:52:31 +08:00
if (val.selectedTags.indexOf(tag.dict_label) == -1) {
val.selectedTags = [tag.dict_label]
paramsGetResources.infoList.push({
attrType: name,
attrValue: tag.dict_label,
})
} else {
val.selectedTags.splice(
val.selectedTags.indexOf(tag.dict_label),
1
)
}
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
})
listKey.value++
getAppResources()
}
2022-06-14 09:32:49 +08:00
const getNewList = () => {
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
const params = {
topCategoryName: Cardsname.value,
}
selectDicStoreAll(params).then((res) => {
console.log('selectDicStoreAll============>', res)
const { data } = res.data
ListContent.records = []
ListContent.records = data
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
mybus.emit('getDeptList')
ListContent.records.forEach((val) => {
val.selectedTags = []
if (val.name == '应用领域' && appLiCation) {
val.selectedTags[0] = []
val.selectedTags[0] = appLiCation
paramsGetResources.infoList.push({
attrType: '应用领域',
attrValue: appLiCation,
})
if (searchValue.value) {
paramsGetResources.name = searchValue.value
}
pageWithAttrs(paramsGetResources).then((res) => {
resourceList.data = []
resourceList.data = res.data.data.records || []
resourceTotal.value = res.data.data.total || ''
})
}
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
if (val.name == '技术领域' && tecHnosphere) {
val.selectedTags[1] = tecHnosphere
paramsGetResources.infoList.push({
attrType: '技术领域',
attrValue: tecHnosphere,
})
if (searchValue.value) {
paramsGetResources.name = searchValue.value
}
pageWithAttrs(paramsGetResources).then((res) => {
resourceList.data = []
resourceList.data = res.data.data.records || []
resourceTotal.value = res.data.data.total || ''
})
console.log('paramsGetResources', paramsGetResources)
}
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
2022-07-08 17:25:37 +08:00
if (val.typeList && val.typeList.length > 8) {
2022-06-14 09:32:49 +08:00
val.showShrink = true
val.shrinkFlag = true
}
})
listKey.value++
listKey2.value++
})
console.log('selectDicStoreAll', ListContent)
}
// 筛选条件
let ListContent = reactive({
records: [],
})
const resourceList = reactive({ data: [] })
const videoList = reactive({ data: [] })
const resourceTotal = ref('')
2022-06-29 11:37:47 +08:00
const getAppResources = (switchIndex) => {
//switchIndex这个参数是下面的分页传过来的参数
2022-06-14 09:32:49 +08:00
paramsGetResources.name = searchValue.value
paramsGetResources.type = Cardsname.value
2022-06-22 16:18:12 +08:00
console.log(
'执行getAppResources====================》',
paramsGetResources
)
if (
!whoShow1.value.itShowBaoTou &&
paramsGetResources.type === '数据资源'
) {
2022-06-29 11:37:47 +08:00
if (switchIndex != '分页查询') {
paramsGetResources.pageNum = 1
}
let dataResourceParams = {
2022-07-05 17:35:48 +08:00
serviceName: paramsGetResources.name || '', //资源名称
2022-06-22 16:30:07 +08:00
orderField: whoShow1.value.itShowQingDao
? paramsGetResources.orderField == 'applyCount'
? 'syqk'
: 'fbrq'
: paramsGetResources.orderField == 'applyCount'
? 'requestCount'
: 'createTime', //排序字段
2022-07-15 17:52:31 +08:00
orderType: paramsGetResources.orderType.toLowerCase(), //排序方式descasc
pageNum: paramsGetResources.pageNum, //页码
pageSize: paramsGetResources.pageSize, //分页大小
}
2022-07-15 17:52:31 +08:00
getDataResource(dataResourceParams).then((res) => {
if (whoShow1.value.itShowQingDao) {
res.data.data.data.forEach((val) => {
val.id = val.guid // id
val.name = val.zyname // 名字
val.sjlCount = val.sjcczl // 数据量
val.applyCount = val.syqk // 申请量
val.deptName = val.TGBM // 部门
val.createDate = val.fbrq // 发布时间
})
resourceList.data = res.data.data.data || []
resourceTotal.value = res.data.data.rows || ''
loading.value = false
} else if (whoShow1.value.itShowXiHaiAn) {
res.data.data.list.forEach((val) => {
val.id = val.serviceId // id
val.name = val.serviceName // 名字
val.sjlCount = val.requestQuantity // 数据量
val.applyCount = val.requestCount // 申请量
val.deptName = val.departmentName // 部门
val.createTime = val.createTime.split('.')[0]
val.createDate = val.createTime // 发布时间
})
resourceList.data = res.data.data.list || []
resourceTotal.value = res.data.data.total || ''
loading.value = false
}
})
} else if (paramsGetResources.type !== '数据资源') {
if (switchIndex != '分页查询') {
paramsGetResources.pageNum = 1
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
pageWithAttrs(paramsGetResources).then((res) => {
console.log('查询列表============>', resourceList, res.data.data)
resourceList.data = []
videoList.data = []
if (Cardsname.value === '基础设施') {
resourceList.data = res.data.data.records || []
resourceTotal.value = res.data.data.total || ''
loading.value = false
} else {
resourceTotal.value = res.data.data.total || ''
getShoppingCartList(res.data.data.records)
}
})
}
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
let shoppingCartList = ref([])
// 获取申购车列表
const getShoppingCartList = (list) => {
getSgcList({
pageNum: 1,
pageSize: 500,
name: '',
type: '',
}).then((res) => {
console.log('申购车列表================>', res.data.data.records)
shoppingCartList.value = res.data.data.records
list.map((item) => {
item.isInShoppingCart = false
item.isInShoppingCart = shoppingCartList.value.some((item2) => {
return item.id === item2.resourceId
})
2022-06-14 09:32:49 +08:00
})
2022-07-15 17:52:31 +08:00
console.log('经过过滤后的列表信息', list)
resourceList.data = list
})
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
mybus.on('paramsGetResources', (ids) => {
if (ids && ids.length > 0) {
paramsGetResources.deptIds = ids
} else {
delete paramsGetResources.deptIds
}
getAppResources()
console.log('paramsGetResources', paramsGetResources)
})
mybus.on('changePage', (page) => {
paramsGetResources.pageNum = page
console.log('changePage', paramsGetResources.pageNum)
getAppResources('分页查询')
console.log('paramsGetResources', paramsGetResources)
})
mybus.on('changeSelcted', () => {
getAppResources()
})
mybus.on('changeInfo', (info) => {
paramsGetResources.pageNum = 1
console.log('paramsGetResources.infoList', paramsGetResources.infoList)
paramsGetResources.infoList = paramsGetResources.infoList.filter(
(item) => item.attrType !== '文件类型'
)
if (info) {
paramsGetResources.infoList.push(info)
}
getAppResources()
console.log('paramsGetResources', paramsGetResources)
})
mybus.on('refresh', () => {
paramsGetResources.pageNum = 1
currentPage.value = 1
getAppResources()
})
mybus.on('changeCondition', (condition) => {
// orderField: 'total' total 综合 visits 访问量 applyCount 申请量 score 评分 collectCount 收藏量
// orderType: 'ASC' ASC 升序 DESC 降序
paramsGetResources.orderField = condition.orderField
paramsGetResources.orderType = condition.orderType
getAppResources()
console.log('paramsGetResources', paramsGetResources)
})
const pageChange = (val) => {
console.log(val)
loading.value = true
currentPage.value = val
paramsGetResources.pageNum = val
let params = '分页查询' //判断是否是点击下面的分页的调用模糊查询方法还是点击搜索调用模糊查询方法
getAppResources(params)
2022-06-27 09:43:37 +08:00
}
2022-07-15 17:52:31 +08:00
onMounted(() => {
listKey2.value++
// 获取筛选条件
getNewList()
2022-07-15 17:52:31 +08:00
if (!tecHnosphere && !appLiCation) {
getAppResources()
}
})
2022-07-18 17:26:18 +08:00
// 全部申请
const applyAll = () => {
router.push({
path: '/apply',
query: {
applyAll: true,
},
})
}
2022-07-15 17:52:31 +08:00
// 分页
const onShowSizeChange = (current, pageSize) => {
currentPage.value = current
currentPageSize.value = pageSize
paramsGetResources.pageNum = current
paramsGetResources.pageSize = pageSize
console.log('执行onShowSizeChange', paramsGetResources)
getAppResources()
}
2022-07-15 17:52:31 +08:00
watch(currentPageSize, () => {
console.log('pageSize', currentPageSize.value)
})
2022-07-15 17:52:31 +08:00
const changeShrink = (name) => {
ListContent.records.forEach((val) => {
if (val.name === name) {
console.log(val)
val.shrinkFlag = !val.shrinkFlag
}
})
2022-07-15 17:52:31 +08:00
}
const changeCards = (name) => {
resourceList.data = []
videoList.data = []
resourceTotal.value = ''
router.currentRoute.value.query.tecHnosphere = ''
router.currentRoute.value.query.appLiCation = ''
tecHnosphere = router.currentRoute.value.query.tecHnosphere
appLiCation = router.currentRoute.value.query.appLiCation
let newQuery = JSON.parse(
JSON.stringify(router.currentRoute.value.query)
)
Cardsname.value = name
console.log(
'更改前url中的select=====================>',
router.currentRoute.value.query.select
)
newQuery.select = Cardsname.value
router
.replace({
query: newQuery,
})
.then(() => {
console.log(
'更改后url中的select=====================>',
router.currentRoute.value.query.select
)
// router.currentRoute.value.query.select
tagFlag.value = false
chongzhi()
getNewList()
})
}
// 监听地址栏变化
window.addEventListener('hashchange', () => {
location.reload()
console.log('URL发生变化了')
})
return {
listKey,
ListContent,
searchValue,
currentPage,
...toRefs(state),
changeCards,
handleChange,
resourceList,
videoList,
resourceTotal,
pageChange,
listKey2,
Cardsname,
getNewList,
getAppResources,
chongzhi,
onSearch,
onShowSizeChange,
currentPageSize,
pageSizeOptions,
changeShrink,
titleName,
keyongziyuanqingkaung,
shujuziyuanqingkuang,
dianjitiaozhaun,
chagneTag,
tagFlag,
current,
openMonitor,
stateTags,
selStateTags,
handleChangeStateTag,
// bqTags,
selBqTags,
handleChangeBqTags,
loading,
getShoppingCartList,
whoShow1,
2022-07-18 17:26:18 +08:00
applyAll,
2022-07-15 17:52:31 +08:00
}
},
components: {
HomeHeader,
HomeFooter,
detailsPageconetentTree,
searchResultList,
UpOutlined,
DownOutlined,
KnowledgeBase,
// VideoCameraOutlined,
// VideoSurveillance,
DetailsPageResource,
infrastructurePage,
detailsPageInfrastructureTree,
},
beforeUnmount() {
mybus.off('selectCardsitem')
mybus.off('paramsGetResources')
mybus.off('changeCondition')
mybus.off('refresh')
mybus.off('changePage')
mybus.off('changeInfo')
},
})
</script>
<style lang="less" scoped>
2022-07-15 17:52:31 +08:00
.resultListSearchInput-father {
background: #f3f5f9;
padding: 0.2rem;
// padding-left: 0.2rem;
// padding-top: 0.2rem;
.resultListSearchInput-son {
background: #fff;
padding: 0.2rem 0.2rem 0rem 0.3rem;
.hengxian {
width: 100%;
height: 0.01rem;
background: rgba(150, 144, 144, 0.3);
margin-top: 0.2rem;
}
2022-06-27 09:43:37 +08:00
}
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
.resultListSearchInput {
margin-left: 0.1rem;
2022-07-15 17:52:31 +08:00
:deep(.ant-input) {
width: 4rem;
height: 0.36rem;
background: #fff;
border-radius: 0.04rem;
}
:deep(.ant-input-search-button) {
width: 0.8rem;
height: 0.36rem;
background: #0087ff;
border-radius: 0.04rem !important;
font-size: 0.14rem;
font-weight: 400;
color: #fff;
line-height: 0.34rem;
margin-left: 0.1rem;
}
:deep(.ant-input-group-addon) {
left: 0 !important;
}
}
2022-07-15 17:52:31 +08:00
.button-reset {
border: 0;
outline: none;
width: 0.8rem;
height: 0.36rem;
2022-07-15 17:52:31 +08:00
background: #e1edfa;
border-radius: 0.04rem;
2022-06-16 12:11:58 +08:00
font-size: 0.14rem;
2022-06-14 09:32:49 +08:00
font-weight: 400;
2022-07-15 17:52:31 +08:00
color: #0087ff;
2022-06-16 12:11:58 +08:00
line-height: 0.34rem;
2022-07-15 17:52:31 +08:00
margin-left: 2.5rem;
cursor: pointer;
}
2022-07-15 17:52:31 +08:00
.details-pageconetent {
height: 100%;
width: 100%;
display: flex;
2022-07-15 17:52:31 +08:00
justify-content: center;
align-items: center;
margin-top: 0.67rem;
position: relative;
background: rgba(245, 243, 243, 0.3);
.details-pageconetent-left {
max-height: 6.9rem;
position: absolute;
width: 2.5rem;
top: 0.17rem;
left: 2.5rem;
margin-right: 0.17rem;
overflow: auto;
}
2022-07-15 17:52:31 +08:00
.top {
min-height: 7.2rem;
position: relative;
width: 11.5rem;
display: flex;
padding-top: 0.2rem;
flex-direction: column;
font-size: 0.16rem;
justify-content: left;
margin-left: 2.5rem;
background: #f3f5f9;
2022-07-15 17:52:31 +08:00
.pagination {
background: #f3f5f9;
padding-bottom: 0.6rem;
}
2022-07-15 17:52:31 +08:00
.jichusheshi {
height: 4.45rem;
2022-07-15 17:52:31 +08:00
.yunziyuan {
width: 100%;
position: relative;
2022-07-15 17:52:31 +08:00
.shuoming {
position: absolute;
right: 0.2rem;
top: 0.15rem;
font-size: 0.12rem;
}
2022-07-15 17:52:31 +08:00
.yunziyuan-title {
display: flex;
align-items: center;
2022-07-15 17:52:31 +08:00
.tupian {
}
2022-07-15 17:52:31 +08:00
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
}
2022-07-15 17:52:31 +08:00
.fenlei {
display: flex;
margin-left: 0.2rem;
margin-right: 0.3rem;
justify-content: space-between;
}
2022-07-15 17:52:31 +08:00
.keyongziyuan {
2022-06-27 09:43:37 +08:00
display: flex;
2022-07-15 17:52:31 +08:00
justify-content: space-between;
margin-left: 0.3rem;
margin-right: 0.3rem;
2022-07-15 17:52:31 +08:00
div {
display: flex;
div:last-child {
font-weight: 600;
}
2022-06-27 09:43:37 +08:00
}
2022-06-25 13:45:26 +08:00
}
}
2022-07-15 17:52:31 +08:00
.yunziyuan > div {
margin-bottom: 0.1rem;
}
2022-07-15 17:52:31 +08:00
.shipin {
width: 100%;
2022-07-15 17:52:31 +08:00
.shipin-title {
display: flex;
align-items: center;
2022-07-15 17:52:31 +08:00
.tupian {
}
2022-07-15 17:52:31 +08:00
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
2022-06-25 13:45:26 +08:00
}
2022-07-15 17:52:31 +08:00
.fenlei {
display: flex;
margin-left: 0.2rem;
2022-07-15 17:52:31 +08:00
div {
margin-right: 0.6rem;
}
2022-07-15 17:52:31 +08:00
.shuzi {
font-weight: 600;
}
}
2022-06-27 09:43:37 +08:00
}
2022-07-15 17:52:31 +08:00
.shipin > div {
margin-bottom: 0.1rem;
}
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
.jichusheshi > div {
padding-top: 0.1rem;
border-radius: 0.04rem;
margin-bottom: 0.2rem;
padding-bottom: 0.4rem;
}
2022-07-15 17:52:31 +08:00
.shujuziyuan {
display: flex;
flex-direction: column;
justify-content: center;
padding-top: 0.4rem;
2022-07-15 17:52:31 +08:00
.yunziyuan {
width: 100%;
position: relative;
2022-07-15 17:52:31 +08:00
.shuoming {
position: absolute;
right: 0.2rem;
top: 0.15rem;
font-size: 0.12rem;
}
2022-07-15 17:52:31 +08:00
.yunziyuan-title {
display: flex;
align-items: center;
margin-left: 0.2rem;
2022-07-15 17:52:31 +08:00
.tupian {
}
2022-07-15 17:52:31 +08:00
.title {
margin-left: 0.1rem;
font-weight: 600;
text-decoration: underline;
cursor: pointer;
}
2022-06-24 19:47:00 +08:00
}
2022-07-15 17:52:31 +08:00
.fenlei {
display: flex;
margin-left: 0.2rem;
margin-right: 0.3rem;
justify-content: space-between;
}
2022-07-15 17:52:31 +08:00
.keyongziyuan {
2022-06-24 19:47:00 +08:00
display: flex;
2022-07-15 17:52:31 +08:00
justify-content: space-between;
margin-left: 0.3rem;
margin-right: 0.3rem;
2022-07-15 17:52:31 +08:00
div {
display: flex;
div:last-child {
font-weight: 600;
}
2022-06-14 09:32:49 +08:00
}
}
}
2022-07-15 17:52:31 +08:00
.yunziyuan > div {
margin-bottom: 0.1rem;
}
}
2022-07-15 17:52:31 +08:00
.shujuziyuan > div {
background: #eaf4ff;
padding-top: 0.1rem;
border-radius: 0.04rem;
margin-bottom: 0.2rem;
padding-bottom: 0.4rem;
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
.top-title {
2022-06-14 09:32:49 +08:00
display: flex;
2022-07-15 17:52:31 +08:00
justify-content: space-between;
2022-06-14 09:32:49 +08:00
align-items: center;
2022-07-15 17:52:31 +08:00
font-size: 0.2rem;
font-family: 'Alibaba PuHuiTi';
color: #000000;
line-height: 0.34rem;
2022-07-15 17:52:31 +08:00
.photo {
display: inline-block;
height: 0.44rem;
width: 0.44rem;
margin-right: 0.1rem;
}
2022-07-15 17:52:31 +08:00
div {
margin: 0 0.2rem;
padding: 0 0.1rem;
cursor: pointer;
display: flex;
align-items: center;
}
2022-07-15 17:52:31 +08:00
div:hover {
color: #0087ff;
}
2022-07-15 17:52:31 +08:00
.sel {
font-weight: 600;
color: #0087ff;
border-bottom: 0.02rem solid #0087ff;
}
}
2022-07-15 17:52:31 +08:00
.top-content-father {
width: 100%;
padding: 0 0.2rem 0.2rem 0.2rem;
background: #f3f5f9;
margin-bottom: 0.2rem;
2022-07-15 17:52:31 +08:00
.top-content-son {
background: #fff;
padding: 0.2rem 0;
2022-06-24 19:47:00 +08:00
}
2022-07-15 17:52:31 +08:00
.top-content {
display: flex;
margin-top: 0rem;
2022-07-15 17:52:31 +08:00
span:nth-child(1) {
display: inline-block;
position: relative;
line-height: 0.3614rem;
white-space: normal;
text-align: center;
vertical-align: middle;
}
2022-07-15 17:52:31 +08:00
.leixingsumfather {
width: 8.1rem;
display: inline-block;
height: 0.3014rem;
overflow: hidden;
}
2022-07-15 17:52:31 +08:00
.leixingsumfather2 {
width: 9.2rem;
2022-06-24 19:47:00 +08:00
}
2022-07-15 17:52:31 +08:00
.leixingsum {
display: inline-block;
cursor: pointer;
2022-06-14 09:32:49 +08:00
text-align: center;
2022-07-15 17:52:31 +08:00
margin-top: 0.05rem;
.ant-tag-checkable {
width: 0.83rem;
height: 0.25rem;
display: flex;
justify-content: center;
align-items: center;
padding-left: 0.05rem;
padding-right: 0.05rem;
float: left;
margin: 0 0.15rem;
font-family: 'AlibabaPuHuiTiR';
font-size: 0.14rem;
color: #333333;
font-weight: 500;
text-align: center;
line-height: 0.14rem;
}
:deep(.ant-tag-checkable-checked) {
margin-left: 0.15rem;
margin-right: 0.15rem;
text-align: center;
}
.ant-tag-checkable:active,
.ant-tag-checkable-checked {
width: 0.85rem;
font-family: 'Alibaba PuHuiTi';
font-weight: 500;
background-color: #0087ff;
color: #ffffff;
border-radius: 0.16rem;
}
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
.active {
font-family: Alibaba PuHuiTi;
2022-06-14 09:32:49 +08:00
font-weight: 500;
background-color: #0087ff;
color: #ffffff;
}
}
2022-07-15 17:52:31 +08:00
.top-content:nth-child(1) {
margin-top: 0rem !important;
2022-06-14 09:32:49 +08:00
}
}
}
}
2022-07-15 17:52:31 +08:00
.shrinkTag {
width: 0.5rem;
display: flex;
justify-content: center;
align-items: flex-end;
margin-bottom: 0.05rem;
2022-07-15 17:52:31 +08:00
span {
cursor: pointer;
}
2022-06-27 09:43:37 +08:00
}
2022-07-15 17:52:31 +08:00
.shrink {
height: unset !important;
overflow: unset !important;
}
2022-07-15 17:52:31 +08:00
.talk-monitor {
position: fixed;
bottom: 0.5rem;
right: 0.1rem;
z-index: 9999;
cursor: pointer;
2022-07-15 17:52:31 +08:00
i {
width: 0.64rem;
height: 0.64rem;
2022-06-25 13:45:26 +08:00
display: inline-block;
2022-07-15 17:52:31 +08:00
background: url('~@/assets/home/icon-talk.png');
background-size: cover;
2022-06-25 13:45:26 +08:00
}
2022-07-15 17:52:31 +08:00
}
2022-07-15 17:52:31 +08:00
.top-content-father {
width: 10.87rem;
padding-left: 0.2rem;
2022-07-15 17:52:31 +08:00
// margin-bottom: .2rem;
.top-content {
display: flex;
margin-top: 0.23rem;
2022-07-15 17:52:31 +08:00
span:nth-child(1) {
display: inline-block;
position: relative;
width: 0.68rem;
font-weight: 600;
white-space: normal;
2022-06-14 09:32:49 +08:00
text-align: center;
2022-07-15 17:52:31 +08:00
vertical-align: middle;
font-size: 0.16rem;
margin-left: 0.3rem;
2022-06-24 19:47:00 +08:00
}
2022-07-15 17:52:31 +08:00
// .top-content-title {
// top: -0.2rem;
// }
.leixingsumfather {
width: 7.7rem;
display: inline-block;
height: 0.3014rem;
overflow: hidden;
// width: 7.18rem;
}
.leixingsum {
width: 0.93rem;
display: inline-block;
cursor: pointer;
2022-06-14 09:32:49 +08:00
text-align: center;
2022-07-15 17:52:31 +08:00
margin-top: 0.05rem;
// margin-bottom: .1rem;
.ant-tag-checkable {
width: 0.85rem;
height: 0.25rem;
display: flex;
justify-content: center;
align-items: center;
padding-left: 0.05rem;
padding-right: 0.05rem;
float: left;
margin: 0 0.15rem;
font-family: 'AlibabaPuHuiTiR';
font-size: 0.14rem;
color: #333333;
font-weight: 500;
text-align: center;
line-height: 0.14rem;
}
:deep(.ant-tag-checkable-checked) {
// width: .67rem;
margin-left: 0.15rem;
margin-right: 0.15rem;
text-align: center;
}
.ant-tag-checkable:active,
.ant-tag-checkable-checked {
width: 0.85rem;
font-family: 'Alibaba PuHuiTi';
font-weight: 500;
background-color: #0087ff;
color: #ffffff;
border-radius: 0.16rem;
}
2022-06-14 09:32:49 +08:00
}
2022-07-15 17:52:31 +08:00
.active {
font-family: Alibaba PuHuiTi;
2022-06-14 09:32:49 +08:00
font-weight: 500;
background-color: #0087ff;
color: #ffffff;
}
}
2022-07-15 17:52:31 +08:00
.top-content:nth-child(1) {
margin-top: 0.41rem !important;
2022-06-14 09:32:49 +08:00
}
}
2022-07-15 17:52:31 +08:00
:deep(.ant-card-grid) {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-webkit-line-clamp: 1;
2022-06-14 09:32:49 +08:00
}
</style>