Commit 14cb4be6 authored by 罗林杰's avatar 罗林杰

修改浏览公共资源

parent ddbd4770
......@@ -603,6 +603,30 @@ export const WorkSpaceRoute: AppRouteRecordRaw = {
],
};
/**浏览公共资源*/
export const PublicResourcesRoute: AppRouteRecordRaw = {
path: '/overviewMallResources',
name: 'OverviewMallResources',
component: LAYOUT,
meta: {
title: '商城资源概览',
icon: '',
hidden: true,
currentActiveMenu: '/OverviewMallResources',
},
children: [
{
path: 'publicResources',
name: 'PublicResources',
component: () => import('@/views/OverviewMallResources/publicResources/index.vue'),
meta: {
title: '浏览公共资源',
icon: '',
},
},
],
};
/**质量规则*/
export const QualityRuleRoute: AppRouteRecordRaw = {
path: '/dataQuality',
......@@ -970,6 +994,7 @@ export const basicRoutes = [
WorkSpaceRoute,
CommonFileRoute,
ModelRoute,
PublicResourcesRoute,
DataSourceRoute,
DataStandardRoute,
kinshipParseRoute,
......
......@@ -77,4 +77,5 @@ const options2 = ref([
},
])
</script>
......@@ -4,113 +4,125 @@
<a-input-search
v-model:value="value"
placeholder=""
style="width: 700px;"
style="width: 700px"
@search="onSearch"
/>
<Icon class="iconClass1" icon="mdi:funnel"/>
<Icon class="iconClass2" icon="ant-design:folder-open-outlined"/>
<Icon class="iconClass1" icon="mdi:funnel" />
<Icon class="iconClass2" icon="ant-design:folder-open-outlined" @click="handleClick" />
</div>
<div class="centent2">
<Dropdown :trigger="['click']">
<span class="centent2-1" @click.prevent>
所有资源类型<Icon icon="ant-design:caret-down-filled" class="iconClass3"/>
所有资源类型<Icon icon="ant-design:caret-down-filled" class="iconClass3" />
</span>
<template #overlay>
<Menu>
<template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children">
<template v-for="(item1,index) in item.children">
<template v-for="(item1, index) in item.children">
<MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span>
<span>{{ item1.name }}</span>
</MenuItem>
</template>
</SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span>
<span>{{ item.name }}</span>
</MenuItem>
</template>
</Menu>
</template>
</Dropdown>
<Dropdown :trigger="['click']">
<span @click.prevent style="margin-right: 20px;color: rgb(146, 153, 167);font-size: 13px">
所有编目<Icon icon="ant-design:caret-down-filled" style="font-size: 12px;margin-left: 2px"/>
<span @click.prevent style="margin-right: 20px; color: rgb(146, 153, 167); font-size: 13px">
所有编目<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span>
<template #overlay>
<Menu>
<template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children">
<template v-for="(item1,index) in item.children">
<template v-for="(item1, index) in item.children">
<MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span>
<span>{{ item1.name }}</span>
</MenuItem>
</template>
</SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span>
<span>{{ item.name }}</span>
</MenuItem>
</template>
</Menu>
</template>
</Dropdown>
<Dropdown :trigger="['click']">
<span @click.prevent style="margin-right: 20px;color: rgb(146, 153, 167);font-size: 13px">
所有机构<Icon icon="ant-design:caret-down-filled" style="font-size: 12px;margin-left: 2px"/>
<span @click.prevent style="margin-right: 20px; color: rgb(146, 153, 167); font-size: 13px">
所有机构<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span>
<template #overlay>
<Menu>
<template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children">
<template v-for="(item1,index) in item.children">
<template v-for="(item1, index) in item.children">
<MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span>
<span>{{ item1.name }}</span>
</MenuItem>
</template>
</SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span>
<span>{{ item.name }}</span>
</MenuItem>
</template>
</Menu>
</template>
</Dropdown>
<Dropdown :trigger="['click']">
<span @click.prevent style="margin-right: 20px;color: rgb(146, 153, 167);font-size: 13px">
所有标签<Icon icon="ant-design:caret-down-filled" style="font-size: 12px;margin-left: 2px"/>
<span @click.prevent style="margin-right: 20px; color: rgb(146, 153, 167); font-size: 13px">
所有标签<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span>
<template #overlay>
<Menu>
<template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children">
<template v-for="(item1,index) in item.children">
<template v-for="(item1, index) in item.children">
<MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span>
<span>{{ item1.name }}</span>
</MenuItem>
</template>
</SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span>
<span>{{ item.name }}</span>
</MenuItem>
</template>
</Menu>
</template>
</Dropdown>
<Dropdown :trigger="['click']">
<span @click.prevent style="color: rgb(146, 153, 167);font-size: 13px">
所有发布时间<Icon icon="ant-design:caret-down-filled" style="font-size: 12px;margin-left: 2px"/>
<span @click.prevent style="color: rgb(146, 153, 167); font-size: 13px">
所有发布时间<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span>
<template #overlay>
<Menu>
<template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children">
<template v-for="(item1,index) in item.children">
<template v-for="(item1, index) in item.children">
<MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span>
<span>{{ item1.name }}</span>
</MenuItem>
</template>
</SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span>
<span>{{ item.name }}</span>
</MenuItem>
</template>
</Menu>
......@@ -129,18 +141,18 @@
</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import ResourceStatistics from './ResourceStatistics.vue';
import VisitSource from './VisitSource.vue';
import PopularResources from './PopularResources.vue';
import MyProcess from './MyProcess.vue';
import { Tag, Card,Dropdown,Menu, MenuItem,SubMenu } from 'ant-design-vue';
import StatisticalChart from './StatisticalChart.vue'
import Icon from "@/components/Icon/Icon.vue";
import { DownOutlined } from '@ant-design/icons-vue';
import { ref } from 'vue';
import ResourceStatistics from './ResourceStatistics.vue';
import VisitSource from './VisitSource.vue';
import PopularResources from './PopularResources.vue';
import MyProcess from './MyProcess.vue';
import { Dropdown, Menu, MenuItem, SubMenu } from 'ant-design-vue';
import StatisticalChart from './StatisticalChart.vue';
import Icon from '@/components/Icon/Icon.vue';
import { router } from '@/router';
const loading = ref(false);
const List = ref([
const loading = ref(false);
const List = ref([
{
name: '新建任务1',
title: '新建任务1',
......@@ -153,7 +165,7 @@ const List = ref([
name: '22222',
title: '新建任务',
},
]
],
},
{
name: '新建任务2',
......@@ -173,40 +185,45 @@ const List = ref([
},
{
name: '新建任务6',
},
]);
function handleClick() {
router.push({
path: '/overviewMallResources/publicResources',
});
}
])
setTimeout(() => {
setTimeout(() => {
loading.value = false;
}, 1500);
}, 1500);
</script>
<style lang="less" scoped>
.centent1{
.centent1 {
display: flex;
justify-content: center;
margin-bottom: 20px;
.iconClass1{
.iconClass1 {
font-size: 20px;
color: rgb(27, 148, 243);
margin-left: 5px;
margin-right: 5px
margin-right: 5px;
}
.iconClass2 {
font-size: 20px;
}
.iconClass2{
font-size: 20px
}
}
.centent2{
.centent2 {
display: flex;
justify-content: center;
margin-top: 10px;
margin-bottom: 20px;
.centent2-1{
.centent2-1 {
margin-right: 20px;
color: rgb(146, 153, 167);
font-size: 13px
font-size: 13px;
}
}
.iconClass3 {
font-size: 12px;
margin-left: 2px;
}
}
.iconClass3{
font-size: 12px;margin-left: 2px
}
</style>
import { BasicColumn } from '@/components/Table';
export const Columns: BasicColumn[] = [
{
title: '名称',
dataIndex: 'title',
},
{
title: '部门',
dataIndex: 'dept',
},
{
title: '标签',
dataIndex: 'label',
},
{
title: '描述',
dataIndex: 'description',
},
{
title: '创建人',
dataIndex: 'createdBy',
},
{
title: '创建时间',
dataIndex: 'createdTime',
},
{
title: '浏览次数',
dataIndex: 'view',
},
{
title: '推送次数',
dataIndex: 'edit',
},
{
title: '共享类型',
dataIndex: 'isShare',
slots: { customRender: 'isShare' },
},
];
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment