Browse Source

2023-7-5

master
guoxing 2 years ago
parent
commit
d48c61c092
  1. 4
      src/layout/components/Navbar.vue
  2. 160
      src/layout/components/Sidebar/index.vue
  3. 2
      src/layout/index.vue
  4. 26
      src/views/login/login.vue

4
src/layout/components/Navbar.vue

@ -1,7 +1,7 @@
<template>
<div>
<div class="navbar">
<p class="breadcrumb-container"><img src="@/assets/loginImg/cyf_logo.jpg" style="width: 45px;height: 45px;margin-right: 10px;"/>醇油坊进销存管理平台</p>
<p class="breadcrumb-container"><img src="@/assets/loginImg/logo.png" style="width: 45px;height: 45px;margin-right: 10px;"/>汇融云仓贷后监管平台</p>
<!-- <h3 class="breadcrumb-container">汇融银行供应链贷后监管平台</h3> -->
<div class="right-menu">
<!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>-->
@ -11,7 +11,7 @@
<span class="backToHome" @click="logout"><i class="el-icon-back"></i>返回首页</span>
</div>
</div>
<el-footer class="footer" height="40px">Copyright © {{ year }} 醇油坊进销存管理平台 All Rights Reserved</el-footer>
<el-footer class="footer" height="40px">Copyright © {{ year }} 汇融云仓贷后监管平台 All Rights Reserved</el-footer>
</div>
</template>

160
src/layout/components/Sidebar/index.vue

@ -48,7 +48,7 @@ export default {
component: "supervise",
meta: {
icon: "el-icon-menu",
title: "库房登记",
title: "库房管理",
},
name: "",
path: "/supervise",
@ -90,7 +90,7 @@ export default {
component: "inventory",
meta: {
icon: "el-icon-menu",
title: "库存管理",
title: "数据报表",
},
name: "",
path: "/inventory",
@ -137,157 +137,79 @@ export default {
},
],
},
{
alwaysShow: true,
component: "baseInfo",
meta: {
icon: "el-icon-menu",
title: "基础信息",
},
name: "",
path: "/baseInfo",
children: [
{
alwaysShow: true,
component: "index",
meta: {
icon: "el-icon-help",
title: "物料类型",
},
name: "/baseInfo/materialType",
path: "/baseInfo/materialType",
},
{
alwaysShow: true,
component: "index",
meta: {
icon: "el-icon-help",
title: "物料信息",
},
name: "/baseInfo/materialInfo",
path: "/baseInfo/materialInfo",
},
{
alwaysShow: true,
component: "index",
meta: {
icon: "el-icon-help",
title: "原油类型",
},
name: "/baseInfo/oilType",
path: "/baseInfo/oilType",
},
{
alwaysShow: true,
component: "index",
meta: {
icon: "el-icon-help",
title: "油罐信息",
},
name: "/baseInfo/oilTank",
path: "/baseInfo/oilTank",
},
{
alwaysShow: true,
component: "index",
meta: {
icon: "el-icon-help",
title: "流量仪器",
},
name: "/baseInfo/flowInstrument",
path: "/baseInfo/flowInstrument",
},
{
alwaysShow: true,
component: "index",
meta: {
icon: "el-icon-help",
title: "供应商信息",
},
name: "/baseInfo/supplier",
path: "/baseInfo/supplier",
},
],
},
// {
// alwaysShow: true,
// component: 'index',
// meta: {
// icon: "el-icon-menu",
// title: ""
// },
// name: "/rawMaterialType/index",
// path: "/rawMaterialType/index"
// }, {
// alwaysShow: true,
// component: 'index',
// component: "baseInfo",
// meta: {
// icon: "el-icon-menu",
// title: ""
// title: "",
// },
// name: "/rawMaterialInfo/index",
// path: "/rawMaterialInfo/index"
// }, {
// name: "",
// path: "/baseInfo",
// children: [
// {
// alwaysShow: true,
// component: 'index',
// component: "index",
// meta: {
// icon: "el-icon-menu",
// title: ""
// icon: "el-icon-help",
// title: "",
// },
// name: "/oilType/index",
// path: "/oilType/index"
// name: "/baseInfo/materialType",
// path: "/baseInfo/materialType",
// },
// {
// alwaysShow: true,
// component: 'index',
// component: "index",
// meta: {
// icon: "el-icon-menu",
// title: ""
// icon: "el-icon-help",
// title: "",
// },
// name: "/oilTank/index",
// path: "/oilTank/index"
// name: "/baseInfo/materialInfo",
// path: "/baseInfo/materialInfo",
// },
// {
// alwaysShow: true,
// component: 'index',
// component: "index",
// meta: {
// icon: "el-icon-menu",
// title: ""
// icon: "el-icon-help",
// title: "",
// },
// name: "/flowInstrument/index",
// path: "/flowInstrument/index"
// name: "/baseInfo/oilType",
// path: "/baseInfo/oilType",
// },
// {
// alwaysShow: true,
// component: 'index',
// component: "index",
// meta: {
// icon: "el-icon-menu",
// title: ""
// icon: "el-icon-help",
// title: "",
// },
// name: "/oilTypeInAndOutBound/index",
// path: "/oilTypeInAndOutBound/index"
// name: "/baseInfo/oilTank",
// path: "/baseInfo/oilTank",
// },
// {
// alwaysShow: true,
// component: 'index',
// component: "index",
// meta: {
// icon: "el-icon-menu",
// title: ""
// icon: "el-icon-help",
// title: "",
// },
// name: "/rawMaterialInAndOutBound/index",
// path: "/rawMaterialInAndOutBound/index"
// name: "/baseInfo/flowInstrument",
// path: "/baseInfo/flowInstrument",
// },
// {
// alwaysShow: true,
// component: 'index',
// component: "index",
// meta: {
// icon: "el-icon-menu",
// title: ""
// icon: "el-icon-help",
// title: "",
// },
// name: "/project/index",
// path: "/project/index"
// name: "/baseInfo/supplier",
// path: "/baseInfo/supplier",
// },
// ],
// },
],
};
},

2
src/layout/index.vue

@ -11,7 +11,7 @@
<div class="main-container">
<div class="home-box">
<a href="javascript:window.opener=null;window.open('','_self');window.close();" class="text-center">平台首页</a>
<a href="javascript:void(0);" class="text-center">醇油坊</a>
<a href="javascript:void(0);" class="text-center">光伏</a>
</div>
<sidebar class="sidebar-container" />
<!--菜单-->

26
src/views/login/login.vue

@ -92,24 +92,24 @@
methods: {
login() {
doLogin(this.loginForm).then((response) => {
if (response.code == 200) {
console.log(" response", response)
// doLogin(this.loginForm).then((response) => {
// if (response.code == 200) {
// console.log(" response", response)
this.$router.push({
path: '/index'
})
this.loading = false
this.getUserInfo(response.data.loginId)
window.sessionStorage.setItem('tokenName', response.data.tokenName)
window.sessionStorage.setItem('tokenValue', response.data.tokenValue)
// this.loading = false
// this.getUserInfo(response.data.loginId)
// window.sessionStorage.setItem('tokenName', response.data.tokenName)
// window.sessionStorage.setItem('tokenValue', response.data.tokenValue)
console.log(" tokenName", response.data.tokenName)
console.log(" tokenValue", response.data.tokenValue)
}
// console.log(" tokenName", response.data.tokenName)
// console.log(" tokenValue", response.data.tokenValue)
// }
}).catch(() => {
this.loading = false
})
// }).catch(() => {
// this.loading = false
// })
// this.loading = true
// this.loginForm.verifyCode = data.verifyCode

Loading…
Cancel
Save