v2.1版本 1.隐藏了1.0版本的侧边栏跳转 2.增加信息记录版功能(暂未涉及后端动态修改)
This commit is contained in:
parent
31aa58b14e
commit
8c26881885
|
@ -14,6 +14,9 @@
|
|||
@select="handleSelect"
|
||||
>
|
||||
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
|
||||
|
||||
|
||||
|
||||
<el-submenu index="4">
|
||||
<item title="文件管理2.0" />
|
||||
<el-menu-item-group>
|
||||
|
@ -24,6 +27,9 @@
|
|||
|
||||
</el-menu-item-group>
|
||||
</el-submenu>
|
||||
<el-menu-item index="/platformData" >
|
||||
<item icon="el-icon-data-analysis" title="平台信息记录板"/>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/userManage" v-if="isRoot">
|
||||
<item icon="el-icon-setting" title="用户管理"/>
|
||||
</el-menu-item>
|
||||
|
@ -81,11 +87,11 @@ export default {
|
|||
// 导航栏页面更改
|
||||
handleSelect(key, keyPath) {
|
||||
|
||||
if (key!=="/userManage" && key!=="/fileList"){
|
||||
if (key!=="/userManage" && key!=="/fileList" && key !== "/platformData"){
|
||||
console.log(key)
|
||||
pageUtils.openPage(this.$router,"/fileListV2/"+ key)
|
||||
|
||||
}else if (key =="/userManage"){
|
||||
}else if (key =="/userManage" || key == "/platformData"){
|
||||
pageUtils.openPage(this.$router,key)
|
||||
|
||||
}
|
||||
|
|
|
@ -47,7 +47,8 @@ export const constantRoutes = [
|
|||
{
|
||||
path: '/',
|
||||
component: Layout,
|
||||
redirect: '/fileList',
|
||||
redirect: '/fileListV2/1',
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
path: 'fileList',
|
||||
|
@ -61,6 +62,7 @@ export const constantRoutes = [
|
|||
{
|
||||
path: '/',
|
||||
component: Layout,
|
||||
redirect: '/fileListV2/1',
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
|
@ -85,6 +87,19 @@ export const constantRoutes = [
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path:'/',
|
||||
component: Layout,
|
||||
hidden: true,
|
||||
children: [
|
||||
{
|
||||
path: "platformData",
|
||||
name: 'PlatformData',
|
||||
component:() => import("@/views/platformData/PlatformData"),
|
||||
meta: {title: '平台信息记录板',icon: 'el-icon-setting'}
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/example',
|
||||
// component: Layout,
|
||||
|
|
|
@ -146,7 +146,7 @@ export default {
|
|||
localStorage.setItem("role", res.auth[0].authority);
|
||||
this.loading = true
|
||||
Message.success("登录成功")
|
||||
pageUtils.openPage(this.$router,"/fileList"); //跳转至主页
|
||||
pageUtils.openPage(this.$router,"/fileListV2/1"); //跳转至主页
|
||||
}
|
||||
// Cookies.set("token", res.data.token); // 放置token到Cookie
|
||||
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
<template>
|
||||
<div class="app-container">
|
||||
<el-table
|
||||
:data="tableData"
|
||||
border
|
||||
style="width: 100%">
|
||||
<el-table-column
|
||||
prop="serviceName"
|
||||
label="服务/工具名称"
|
||||
width="180">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="peopleName"
|
||||
label="负责人/经办人"
|
||||
width="190">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="date"
|
||||
label="购买时间/续费时间">
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PlatformData',
|
||||
data(){
|
||||
return{
|
||||
tableData:[
|
||||
{
|
||||
serviceName: "敏感词敏感图过滤服务-百度云",
|
||||
peopleName:"明军老师账号-启磊续费",
|
||||
date:"2022年12月22日续费(1年 图片,敏感词各五十万次调用)"
|
||||
},
|
||||
{
|
||||
serviceName: "实名认证服务-网易易盾",
|
||||
peopleName:"启磊",
|
||||
date:"2022年7月底购买"
|
||||
},
|
||||
{
|
||||
serviceName: "SSL证书",
|
||||
peopleName:"明军老师",
|
||||
date:"2022年6月29日颁发"
|
||||
},
|
||||
{
|
||||
serviceName: "短信服务-云片网",
|
||||
peopleName:"公共邮箱账号-明军老师续费",
|
||||
date:"2022年09月续费1000元"
|
||||
},
|
||||
{
|
||||
serviceName: "微信小程序认证",
|
||||
peopleName:"维昊",
|
||||
date:"2022年09月07日提交认证"
|
||||
},
|
||||
{
|
||||
serviceName: "微信公众号",
|
||||
peopleName:"苛萱账号-明军老师续费",
|
||||
date:"2022年04月12日提交认证"
|
||||
},
|
||||
{
|
||||
serviceName: "sca工具",
|
||||
peopleName:"维昊",
|
||||
date:"-"
|
||||
},
|
||||
{
|
||||
serviceName: "华为云服务器",
|
||||
peopleName:"明军老师",
|
||||
date:"-"
|
||||
},
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue