提交 3d422d59 authored 作者: quanlili's avatar quanlili

词云特效

上级 3e605c5d
import Vue from 'vue'
import Router from 'vue-router'
const _import = require('./_import_' + process.env.NODE_ENV)
// in development-env not use lazy-loading, because lazy-loading too many pages will cause webpack hot update too slow. so only in production use lazy-loading;
// detail: https://panjiachen.github.io/vue-element-admin-site/#/lazy-loading
Vue.use(Router)
/* Layout */
import Layout from '../views/layout/Layout'
/** note: submenu only apppear when children.length>=1
* detail see https://panjiachen.github.io/vue-element-admin-site/#/router-and-nav?id=sidebar
**/
/**
* hidden: true if `hidden:true` will not show in the sidebar(default is false)
* alwaysShow: true if set true, will always show the root menu, whatever its child routes length
* if not set alwaysShow, only more than one route under the children
* it will becomes nested mode, otherwise not show the root menu
* redirect: noredirect if `redirect:noredirect` will no redirct in the breadcrumb
* name:'router-name' the name is used by <keep-alive> (must set!!!)
* meta : {
roles: ['admin','editor'] will control the page roles (you can set multiple roles)
title: 'title' the name show in submenu and breadcrumb (recommend set)
icon: 'svg-name' the icon show in the sidebar,
noCache: true if true ,the page will no be cached(default is false)
}
**/
export const constantRouterMap = [{
path: '/login',
component: _import('login/index'),
hidden: true
},
{
path: '/welcome',
component: Layout,
hidden: true,
children: [{
path: '/',
component: _import('login/welcome'),
hidden: true
}
]
},
{
path: '/authredirect',
component: _import('login/authredirect'),
hidden: true
},
{
path: '/404',
component: _import('errorPage/404'),
hidden: true
},
{
path: '/401',
component: _import('errorPage/401'),
hidden: true
}
]
export default new Router({
scrollBehavior: () => ({
y: 0
}),
routes: constantRouterMap
})
export const asyncRouterMap = [{
path: '/',
component: Layout,
redirect: '/'
},
{
path: '/database',
component: Layout,
redirect: '/database/yizhu',
alwaysShow: true,
meta: {
title: '数据管理',
icon: 'icon-projectDatabase',
routerIds: ['15']
},
children: [ {
path: 'book',
component: _import('database/book/index'),
name: 'book',
meta: {
title: '图书',
routerIds: ['1502']
}
}, {
path: 'book/create_book',
component: _import('database/book/create_book'),
name: 'create_book',
meta: {
title: '新增图书',
routerIds: ['1502']
},
hidden: true
}, {
path: 'article',
component: _import('database/article/index'),
name: 'article',
meta: {
title: '文章',
routerIds: ['1503']
}
}, {
path: 'article/edit_article',
component: _import('database/article/edit_article'),
name: 'create',
meta: {
title: '新增文章',
routerIds: ['1503']
},
hidden: true
}, {
path: 'picture',
component: _import('database/picture/index'),
name: 'picture',
meta: {
title: '图片',
routerIds: ['1516']
}
}, {
path: 'picture/create',
component: _import('database/picture/create'),
name: 'create',
meta: {
title: '图片文章',
routerIds: ['1516']
},
hidden: true
}, {
path: 'video',
component: _import('database/video/index'),
name: 'video',
meta: {
title: '视频',
routerIds: ['1517']
}
}, {
path: 'video/create_video',
component: _import('database/video/create_video'),
name: 'create_video',
meta: {
title: '新增视频',
routerIds: ['1517']
},
hidden: true
}, {
path: 'audio',
component: _import('database/audio/index'),
name: 'audio',
meta: {
title: '音频',
routerIds: ['1518']
},
}, {
path: 'audio/create_audio',
component: _import('database/audio/create_audio'),
name: 'create_audio',
meta: {
title: '新增音频',
routerIds: ['1518']
},
hidden: true
}, {
path: 'accessory',
component: _import('database/accessory/index'),
name: 'accessory',
meta: {
title: '附件',
routerIds: ['1520']
},
}, {
path: 'accessory/create',
component: _import('database/accessory/create'),
name: 'create',
meta: {
title: '新增附件',
routerIds: ['1520']
},
hidden: true
}, {
path: 'doctor',
component: _import('database/doctor/index'),
name: 'doctor',
meta: {
title: '医家',
routerIds: ['1501']
}
}, {
path: 'doctor/create_doctor',
component: _import('database/doctor/create_doctor'),
name: 'create_doctor',
meta: {
title: '新增医家',
routerIds: ['1501']
},
hidden: true
}, {
path: 'recommend/content',
component: _import('database/recommend/content'),
name: 'content',
meta: {
title: '推荐内容',
routerIds: ['1501']
},
hidden: true
}, {
path: 'pdf',
component: _import('database/pdf/index'),
name: 'pdf',
meta: {
title: 'PDF素材',
routerIds: ['1519']
},
}, {
path: 'pdf/details',
component: _import('database/pdf/details'),
name: 'details',
meta: {
title: '查看PDF素材',
routerIds: ['1519']
},
hidden: true
}]
},
{
path: '/orders_management',
component: Layout,
redirect: '/orders_management/order',
alwaysShow: true,
meta: {
title: '订单管理',
icon: 'icon-projectOrder',
routerIds: ['16']
},
children: [{
path: 'order',
component: _import('orders_management/order/index'),
name: 'order',
meta: {
title: '订单管理',
routerIds: ['1601']
}
}, {
hidden: true,
path: 'order/order_processing',
component: _import('orders_management/order/order_processing'),
name: 'order_processing',
meta: {
title: '订单处理',
routerIds: ['1601']
}
},
]
},
{
path: '/marketmanage',
component: Layout,
redirect: '/marketmanage/prepaid_card',
alwaysShow: true,
meta: {
title: '营销管理',
icon: 'icon-projectMarketing',
routerIds: ['06']
},
children: [{
path: 'activity',
component: _import('marketmanage/activity/index'),
name: 'activity',
meta: {
title: '促销活动',
routerIds: ['1701']
}
},
{
path: 'activity/create',
component: _import('marketmanage/activity/create'),
name: 'create',
meta: {
title: '新增活动',
routerIds: ['1701']
},
hidden: true
},
{
path: 'activity/content',
component: _import('marketmanage/activity/content'),
name: 'content',
meta: {
title: '促销活动内容',
routerIds: ['1701']
},
hidden: true
},
]
},
{
path: '/societymanage',
component: Layout,
redirect: '/societymanage/resource',
alwaysShow: true,
meta: {
title: '社群管理',
icon: 'icon-projectAssociation',
routerIds: ['14']
},
children: [{
path: 'resource',
component: _import('societymanage/resource/index'),
name: 'resource',
meta: {
title: '资源评论',
routerIds: ['1401']
}
}, {
path: 'resource/review',
component: _import('societymanage/resource/review'),
name: 'review',
meta: {
title: '评论详情',
routerIds: ['1401']
},
hidden: true
}]
},
{
path: '/membermanage',
component: Layout,
redirect: '/membermanage/person_member',
alwaysShow: true,
meta: {
title: '会员管理',
icon: 'icon-projectMember',
routerIds: ['07']
},
children: [{
path: 'person_member',
component: _import('membermanage/person_member/index'),
name: 'person_member',
meta: {
title: '个人会员管理',
routerIds: ['0701']
}
}, {
hidden: true,
path: 'person_member/balance_check',
component: _import('membermanage/person_member/balance_check'),
props: {
accountMember: 'str'
},
name: 'balance_check',
meta: {
title: '查询消费记录',
routerIds: ['0701']
}
}, {
hidden: true,
path: 'person_member/score_check',
component: _import('membermanage/person_member/score_check'),
props: {
accountMember: 'str'
},
name: 'score_check',
meta: {
title: '查询积分',
routerIds: ['0701']
}
}, {
path: 'oranization_code',
component: _import('membermanage/oranization_code'),
name: 'oranization_code',
meta: {
title: '机构码管理',
routerIds: ['0703']
}
}, {
path: 'oranization_member',
component: _import('membermanage/oranization_member'),
name: 'oranization_member',
meta: {
title: '机构会员管理',
routerIds: ['0704']
}
}, {
path: 'mail',
component: _import('membermanage/mail'),
name: 'mail',
meta: {
title: '站内信管理',
routerIds: ['0705']
}
}, {
path: 'member_login',
component: _import('membermanage/member_login'),
name: 'member_login',
meta: {
title: '会员登录记录',
routerIds: ['0706']
}
}, {
path: 'mirroring',
component: _import('membermanage/mirroring'),
name: 'mirroring',
meta: {
title: '镜像库管理',
routerIds: ['0707']
}
}
]
},
{
path: '/authorizationmanage',
component: Layout,
redirect: '/authorizationmanage/department_management',
alwaysShow: true,
meta: {
title: '权限管理',
icon: 'icon-projectAuthority',
routerIds: ['08']
},
children: [{
path: 'department_management',
component: _import('authorizationmanage/department_management'),
name: 'department_management',
meta: {
title: '部门管理',
routerIds: ['0806']
}
}, {
path: 'role_management',
component: _import('authorizationmanage/role_management'),
name: 'role_management',
meta: {
title: '角色管理',
routerIds: ['0802']
}
}, {
path: 'user_management',
component: _import('authorizationmanage/user_management'),
name: 'user_management',
meta: {
title: '用户管理',
routerIds: ['0801']
}
}, {
path: 'module_management',
component: _import('authorizationmanage/module_management'),
name: 'module_management',
meta: {
title: '模块管理',
routerIds: ['0804']
}
}, {
path: 'button_management',
component: _import('authorizationmanage/button_management'),
name: 'button_management',
meta: {
title: '按钮管理',
routerIds: ['0805']
}
}]
},
{
path: '/system',
component: Layout,
redirect: '/system/site_param',
alwaysShow: true,
meta: {
title: '系统管理',
icon: 'icon-projectComponent',
routerIds: ['09']
},
children: [{
path: 'siteparam',
component: _import('system/site_param/index'),
name: 'siteparam',
meta: {
title: '网站参数设置',
routerIds: ['0909']
}
}, {
path: 'system_security',
component: _import('system/system_security'),
name: 'system_security',
meta: {
title: '系统安全设置',
routerIds: ['0910']
}
}, {
path: 'data_dictionary',
component: _import('system/data_dictionary'),
name: 'data_dictionary',
meta: {
title: '数据字典管理',
routerIds: ['0904']
}
}, {
path: 'systemlog',
component: _import('system/systemlog'),
name: 'systemlog',
meta: {
title: '系统日志管理',
routerIds: ['0908']
}
}, {
path: 'update_search',
component: _import('system/update_search'),
name: 'update_search',
meta: {
title: '更新索引',
routerIds: ['0911']
}
}
]
}, {
path: '*',
redirect: '/404',
hidden: true
}
]
\ No newline at end of file
......@@ -310,3 +310,30 @@
// font-weight:normal;
// }
// }
$color:#bdd2f6;
.circle-ripple {
background-color:$color;
width: 72%;
height: 400px;
font-size: 12px;
border-radius: 50%;
position: absolute;
top:50%;
left:50%;
transform: translate(-50%, -50%);
animation: ripple 0.7s linear infinite;
}
@keyframes ripple {
0% {
box-shadow: 0 0 0 0 rgba($color, 0.3),
0 0 0 1em rgba($color, 0.3),
0 0 0 3em rgba($color, 0.3),
// 0 0 0 5em rgba($color, 0.3);
}
100% {
box-shadow: 0 0 0 1em rgba($color, 0.3),
0 0 0 3em rgba($color, 0.3),
0 0 0 5em rgba($color, 0),
// 0 0 0 8em rgba($color, 0);
}
}
\ No newline at end of file
......@@ -188,7 +188,8 @@
<h2 v-else-if="entityTypeFlag == 3">>地点关键词</h2>
<h2 v-else-if="entityTypeFlag == 2">>组织机构关键词</h2>
<h2 v-else>>时间实体关系</h2>
<div>
<div style="position: relative;">
<div class="circle-ripple"></div>
<div id="myChart"></div>
</div>
</section>
......@@ -683,6 +684,7 @@ export default {
//重点:云彩图片的base64码
maskImage.src = require('../../../assets/img/yuan_icon.png');
let option = {
backgroundColor:'rgba(0,0,0,0)',
title: {
text: '',
link: ''
......@@ -1007,7 +1009,7 @@ export default {
&:nth-of-type(2) {
margin-left:24px;
}
div {
div:not(.circle-ripple) {
width:100%;
height:520px;
border:1px solid #ECEFF2;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论