update 首页-快捷入口

This commit is contained in:
danshihao
2023-12-27 15:17:06 +08:00
parent 83e7d90b2b
commit 1c5357aafd
41 changed files with 98 additions and 7 deletions
+15 -1
View File
@@ -28,6 +28,16 @@ const getOverseasStandardList = (params) => postAction('/laws/standard/overseas/
// 企标的高级搜索,查询列表数据
const getEnterStandardList = (params) => postAction('/laws/standard/enterprise/getCommonPageNoPermissions', params)
// 快捷入口-显示模块列表
const getQuickEntryModuleList = (params) => getAction('/home/lawsHomeQuickAccess/queryMenuList', params)
// 快捷入口可选列表
const getQuickEntryList = (params) => getAction('/home/lawsHomeQuickAccess/queryPermissionMenuList', params)
// 快捷入口-保存显示模块列表
const saveQuickEntryModuleList = (params) => postAction('/home/lawsHomeQuickAccess/saveMenu', params)
// 待办任务-列表
const getTodoList = (params) => getAction('/home/lawsHomeBacklogTask/queryBacklogTaskList', params)
export {
getSearchHistoryData,
deleteSearchHistoryById,
@@ -41,5 +51,9 @@ export {
getEnterStandardQuery,
getDomesticStandardList,
getOverseasStandardList,
getEnterStandardList
getEnterStandardList,
getQuickEntryModuleList,
getQuickEntryList,
saveQuickEntryModuleList,
getTodoList
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1017 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

+18
View File
@@ -26,5 +26,23 @@ module.exports = {
releaseDate: '发布日期',
materialDate: '实施日期',
standardStatus: '标准状态'
},
// 快捷入口
quickEnter: {
quickEnter: '快捷入口',
menuManage: '菜单管理',
custom: '自定义',
optionModules: '可选模块',
personalDisplayModule: '个人展示模块',
itemUnit: '项',
itemsUnit: '项',
listEmpty: '列表为空',
pleaseEnterSearchContent: '请输入搜索内容',
maxSelectedNine: '最多选择9个模块'
},
// 待办任务
todoTask: {
todoTask: '待办任务',
more: '更多'
}
}
+18
View File
@@ -26,5 +26,23 @@ module.exports = {
releaseDate: '发布日期',
materialDate: '实施日期',
standardStatus: '标准状态'
},
// 快捷入口
quickEnter: {
quickEnter: '快捷入口',
menuManage: '菜单管理',
custom: '自定义',
optionModules: '可选模块',
personalDisplayModule: '个人展示模块',
itemUnit: '项',
itemsUnit: '项',
listEmpty: '列表为空',
pleaseEnterSearchContent: '请输入搜索内容',
maxSelectedNine: '最多选择9个模块'
},
// 待办任务
todoTask: {
todoTask: '待办任务',
more: '更多'
}
}
+47 -6
View File
@@ -7,7 +7,7 @@
</div>
<div class="content-wrapper">
<div class="content-div" v-for="item in dataSource" :key="item.id" @click="handleTo(item.url)">
<img class="icon-img" :src="item.src" alt=''>
<img class="icon-img" :src="item.src" :alt="item.name" v-if="item.src">
<!--<i class="iconfont" :class="'icon-' + 'shengchanliuchengguanli'"></i>-->
<a-tooltip placement="top">
<template slot="title">{{item.name}}</template>
@@ -27,6 +27,48 @@
<script>
import MenuManageModal from '@views/dashboard/modules/MenuManageModal'
import { getQuickEntryModuleList } from '@api/dashboard'
// 菜单名 --> 图标名
const map = [
{ name: '专项项目库', srcName: 'project-library' },
{ name: '企业标准', srcName: 'enterprise-standard' },
{ name: '企标复审计划', srcName: 'standard-review-plan' },
{ name: '企标宣贯', srcName: 'standard-promotion' },
{ name: '企标稽查', srcName: 'standard-audit' },
{ name: '企标级别映射', srcName: 'standard-level-mapping' },
{ name: '企标计划', srcName: 'standard-plan' },
{ name: '企标评审会记录', srcName: 'standard-review-minutes' },
{ name: '内部工作组', srcName: 'internal-working-group' },
{ name: '动态消息', srcName: 'dynamic-message' },
{ name: '友情链接管理', srcName: 'friend-link-management' },
{ name: '国内标准', srcName: 'domestic-standards' },
{ name: '已发分享', srcName: 'shared-items' },
{ name: '已收分享', srcName: 'received-shares' },
{ name: '征求意见', srcName: 'soliciting-opinions' },
{ name: '我的收藏', srcName: 'my-favorites' },
{ name: '我的消息', srcName: 'my-messages' },
{ name: '数据字典', srcName: 'data-dictionary' },
{ name: '文档拆分', srcName: 'document-splitting' },
{ name: '新建流程', srcName: 'new-process' },
{ name: '新旧拆分单对比', srcName: 'new-old-split-comparison' },
{ name: '未符合项', srcName: 'non-compliance-items' },
{ name: '标准化活动', srcName: 'standardization-activities' },
{ name: '标准预警', srcName: 'standard-warning' },
{ name: '标签管理', srcName: 'tag-management' },
{ name: '流程中心', srcName: 'process-center' },
{ name: '流程配置', srcName: 'process-configuration' },
{ name: '浏览记录', srcName: 'browsing-history' },
{ name: '海外标准', srcName: 'overseas-standards' },
{ name: '用户中心', srcName: 'user-center' },
{ name: '联络人管理', srcName: 'contact-management' },
{ name: '自定义对比', srcName: 'custom-comparison' },
{ name: '角色中心', srcName: 'role-center' },
{ name: '资料中心', srcName: 'resource-center' },
{ name: '车型项目库', srcName: 'vehicle-project-library' },
{ name: '部门管理', srcName: 'department-management' },
{ name: '问答库', srcName: 'questions-answers-library' }
]
export default {
name: 'QuickEnterCard',
components: { MenuManageModal },
@@ -55,11 +97,10 @@ export default {
if (res.success) {
const data = res.result || []
this.dataSource = data.map(item => {
try {
item.src = require(`@/assets/image/dashboard/${item.name}.png`)
} catch (e) {
console.log(e)
item.src = ''
// 如果能找到菜单名,就用对应图标
const findMap = map.find(m => m.name === item.name)
if (findMap) {
item.src = require(`@/assets/image/dashboard/${findMap.srcName}.png`)
}
return item
})