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

修改浏览公共资源

parent ddbd4770
...@@ -603,6 +603,30 @@ export const WorkSpaceRoute: AppRouteRecordRaw = { ...@@ -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 = { export const QualityRuleRoute: AppRouteRecordRaw = {
path: '/dataQuality', path: '/dataQuality',
...@@ -970,6 +994,7 @@ export const basicRoutes = [ ...@@ -970,6 +994,7 @@ export const basicRoutes = [
WorkSpaceRoute, WorkSpaceRoute,
CommonFileRoute, CommonFileRoute,
ModelRoute, ModelRoute,
PublicResourcesRoute,
DataSourceRoute, DataSourceRoute,
DataStandardRoute, DataStandardRoute,
kinshipParseRoute, kinshipParseRoute,
......
...@@ -77,4 +77,5 @@ const options2 = ref([ ...@@ -77,4 +77,5 @@ const options2 = ref([
}, },
]) ])
</script> </script>
...@@ -4,113 +4,125 @@ ...@@ -4,113 +4,125 @@
<a-input-search <a-input-search
v-model:value="value" v-model:value="value"
placeholder="" placeholder=""
style="width: 700px;" style="width: 700px"
@search="onSearch" @search="onSearch"
/> />
<Icon class="iconClass1" icon="mdi:funnel"/> <Icon class="iconClass1" icon="mdi:funnel" />
<Icon class="iconClass2" icon="ant-design:folder-open-outlined"/> <Icon class="iconClass2" icon="ant-design:folder-open-outlined" @click="handleClick" />
</div> </div>
<div class="centent2"> <div class="centent2">
<Dropdown :trigger="['click']"> <Dropdown :trigger="['click']">
<span class="centent2-1" @click.prevent> <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> </span>
<template #overlay> <template #overlay>
<Menu> <Menu>
<template v-for="(item, index) in List" :key="item.title"> <template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children"> <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)"> <MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span> <span>{{ item1.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</SubMenu> </SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else> <MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span> <span>{{ item.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</Menu> </Menu>
</template> </template>
</Dropdown> </Dropdown>
<Dropdown :trigger="['click']"> <Dropdown :trigger="['click']">
<span @click.prevent style="margin-right: 20px;color: rgb(146, 153, 167);font-size: 13px"> <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"/> 所有编目<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span> </span>
<template #overlay> <template #overlay>
<Menu> <Menu>
<template v-for="(item, index) in List" :key="item.title"> <template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children"> <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)"> <MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span> <span>{{ item1.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</SubMenu> </SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else> <MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span> <span>{{ item.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</Menu> </Menu>
</template> </template>
</Dropdown> </Dropdown>
<Dropdown :trigger="['click']"> <Dropdown :trigger="['click']">
<span @click.prevent style="margin-right: 20px;color: rgb(146, 153, 167);font-size: 13px"> <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"/> 所有机构<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span> </span>
<template #overlay> <template #overlay>
<Menu> <Menu>
<template v-for="(item, index) in List" :key="item.title"> <template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children"> <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)"> <MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span> <span>{{ item1.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</SubMenu> </SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else> <MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span> <span>{{ item.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</Menu> </Menu>
</template> </template>
</Dropdown> </Dropdown>
<Dropdown :trigger="['click']"> <Dropdown :trigger="['click']">
<span @click.prevent style="margin-right: 20px;color: rgb(146, 153, 167);font-size: 13px"> <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"/> 所有标签<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span> </span>
<template #overlay> <template #overlay>
<Menu> <Menu>
<template v-for="(item, index) in List" :key="item.title"> <template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children"> <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)"> <MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span> <span>{{ item1.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</SubMenu> </SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else> <MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span> <span>{{ item.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</Menu> </Menu>
</template> </template>
</Dropdown> </Dropdown>
<Dropdown :trigger="['click']"> <Dropdown :trigger="['click']">
<span @click.prevent style="color: rgb(146, 153, 167);font-size: 13px"> <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"/> 所有发布时间<Icon
icon="ant-design:caret-down-filled"
style="font-size: 12px; margin-left: 2px"
/>
</span> </span>
<template #overlay> <template #overlay>
<Menu> <Menu>
<template v-for="(item, index) in List" :key="item.title"> <template v-for="(item, index) in List" :key="item.title">
<SubMenu :title="item.name" v-if="item.children"> <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)"> <MenuItem @click="handleTaskModel(item1)">
<span>{{item1.name}}</span> <span>{{ item1.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</SubMenu> </SubMenu>
<MenuItem @click="handleTaskModel(item)" v-else> <MenuItem @click="handleTaskModel(item)" v-else>
<span>{{item.name}}</span> <span>{{ item.name }}</span>
</MenuItem> </MenuItem>
</template> </template>
</Menu> </Menu>
...@@ -129,18 +141,18 @@ ...@@ -129,18 +141,18 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue'; import { ref } from 'vue';
import ResourceStatistics from './ResourceStatistics.vue'; import ResourceStatistics from './ResourceStatistics.vue';
import VisitSource from './VisitSource.vue'; import VisitSource from './VisitSource.vue';
import PopularResources from './PopularResources.vue'; import PopularResources from './PopularResources.vue';
import MyProcess from './MyProcess.vue'; import MyProcess from './MyProcess.vue';
import { Tag, Card,Dropdown,Menu, MenuItem,SubMenu } from 'ant-design-vue'; import { Dropdown, Menu, MenuItem, SubMenu } from 'ant-design-vue';
import StatisticalChart from './StatisticalChart.vue' import StatisticalChart from './StatisticalChart.vue';
import Icon from "@/components/Icon/Icon.vue"; import Icon from '@/components/Icon/Icon.vue';
import { DownOutlined } from '@ant-design/icons-vue'; import { router } from '@/router';
const loading = ref(false); const loading = ref(false);
const List = ref([ const List = ref([
{ {
name: '新建任务1', name: '新建任务1',
title: '新建任务1', title: '新建任务1',
...@@ -153,7 +165,7 @@ const List = ref([ ...@@ -153,7 +165,7 @@ const List = ref([
name: '22222', name: '22222',
title: '新建任务', title: '新建任务',
}, },
] ],
}, },
{ {
name: '新建任务2', name: '新建任务2',
...@@ -173,40 +185,45 @@ const List = ref([ ...@@ -173,40 +185,45 @@ const List = ref([
}, },
{ {
name: '新建任务6', name: '新建任务6',
},
]);
function handleClick() {
router.push({
path: '/overviewMallResources/publicResources',
});
} }
]) setTimeout(() => {
setTimeout(() => {
loading.value = false; loading.value = false;
}, 1500); }, 1500);
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.centent1{ .centent1 {
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-bottom: 20px; margin-bottom: 20px;
.iconClass1{ .iconClass1 {
font-size: 20px; font-size: 20px;
color: rgb(27, 148, 243); color: rgb(27, 148, 243);
margin-left: 5px; margin-left: 5px;
margin-right: 5px margin-right: 5px;
}
.iconClass2 {
font-size: 20px;
} }
.iconClass2{
font-size: 20px
} }
} .centent2 {
.centent2{
display: flex; display: flex;
justify-content: center; justify-content: center;
margin-top: 10px; margin-top: 10px;
margin-bottom: 20px; margin-bottom: 20px;
.centent2-1{ .centent2-1 {
margin-right: 20px; margin-right: 20px;
color: rgb(146, 153, 167); 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> </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