框架样式修改
This commit is contained in:
parent
475eea21b9
commit
261b667016
|
|
@ -1,5 +1,5 @@
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 智慧食堂
|
VUE_APP_TITLE = 智慧食堂系统
|
||||||
|
|
||||||
# 开发环境配置
|
# 开发环境配置
|
||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 智慧食堂
|
VUE_APP_TITLE = 智慧食堂系统
|
||||||
|
|
||||||
# 生产环境配置
|
# 生产环境配置
|
||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# 页面标题
|
# 页面标题
|
||||||
VUE_APP_TITLE = 智慧食堂
|
VUE_APP_TITLE = 智慧食堂系统
|
||||||
|
|
||||||
NODE_ENV = production
|
NODE_ENV = production
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "bonus",
|
"name": "bonus",
|
||||||
"version": "3.6.4",
|
"version": "3.6.4",
|
||||||
"description": "智慧食堂",
|
"description": "智慧食堂系统",
|
||||||
"author": "博诺思",
|
"author": "博诺思",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,10 @@
|
||||||
>
|
>
|
||||||
<template v-for="(item, index) in topMenus">
|
<template v-for="(item, index) in topMenus">
|
||||||
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber" style="background: transparent;">
|
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber" style="background: transparent;">
|
||||||
<svg-icon v-if="item.meta && item.meta.icon && item.meta.icon !== '#'" :icon-class="item.meta.icon"/>
|
<div style="width: 100px;text-align: center;height: 20px;">
|
||||||
{{ item.meta.title }}
|
<svg-icon v-if="item.meta && item.meta.icon && item.meta.icon !== '#'" :icon-class="item.meta.icon" style="height: 40px;width: 40px;"/>
|
||||||
|
</div>
|
||||||
|
<div style="width: 100px;text-align: center;height: 40px;font-size: 18px;">{{ item.meta.title }}</div>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<!-- <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav"/> -->
|
<!-- <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav"/> -->
|
||||||
<div style="position: absolute;left: 0;top: 20px;width: 15%;">
|
<div style="position: absolute;left: 0;top: 20px;width: 15%;">
|
||||||
<router-link key="collapse" class="sidebar-logo-link" to="/">
|
<router-link key="collapse" class="sidebar-logo-link" to="/">
|
||||||
<div style="height: 40px;width: 40px;background: #fff;border-radius: 50%;margin-right: 20px;display: flex;align-items: center;justify-content: center;">
|
<div style="height: 42px;width: 42px;background: #fff;border-radius: 50%;margin-right: 20px;display: flex;align-items: center;justify-content: center;">
|
||||||
<img :src="logo" class="sidebar-logo" />
|
<img :src="logo" class="sidebar-logo" />
|
||||||
</div>
|
</div>
|
||||||
<h1 class="sidebar-title">{{ title }} </h1>
|
<h1 class="sidebar-title">{{ title }} </h1>
|
||||||
|
|
@ -121,7 +121,7 @@ export default {
|
||||||
height: 84px;
|
height: 84px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: #026559;
|
background: #006F68;
|
||||||
box-shadow: 0 1px 4px rgba(0,21,41,.08);
|
box-shadow: 0 1px 4px rgba(0,21,41,.08);
|
||||||
|
|
||||||
.hamburger-container {
|
.hamburger-container {
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ export const constantRoutes = [
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'index',
|
path: 'index',
|
||||||
component: () => import('@/views/index_v1'),
|
component: () => import('@/views/index'),
|
||||||
name: 'Index',
|
name: 'Index',
|
||||||
meta: { title: '首页', icon: 'dashboard', affix: true }
|
meta: { title: '首页', icon: 'dashboard', affix: true }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="app-container home">
|
<div class="app-container home">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :sm="24" :lg="12" style="padding-left: 20px">
|
<el-col :sm="24" :lg="12" style="padding-left: 20px">
|
||||||
<h2>智慧食堂</h2>
|
<h2>智慧食堂系统</h2>
|
||||||
<p>
|
<p>
|
||||||
<b>当前版本:</b> <span>v{{ version }}</span>
|
<b>当前版本:</b> <span>v{{ version }}</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xs="24" :sm="24" :md="12" :lg="8">
|
<!-- <el-col :xs="24" :sm="24" :md="12" :lg="8">
|
||||||
<el-card class="update-log">
|
<el-card class="update-log">
|
||||||
<div slot="header" class="clearfix">
|
<div slot="header" class="clearfix">
|
||||||
<span>更新日志</span>
|
<span>更新日志</span>
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
</el-card>
|
</el-card>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -136,10 +136,12 @@ export default {
|
||||||
$_sidebarResizeHandler(e) {
|
$_sidebarResizeHandler(e) {
|
||||||
if (e.propertyName === 'width') {
|
if (e.propertyName === 'width') {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
this.myCharts1.resize();
|
setTimeout(() => {
|
||||||
this.myCharts2.resize();
|
this.myCharts1.resize();
|
||||||
this.myCharts3.resize();
|
this.myCharts2.resize();
|
||||||
this.myCharts4.resize();
|
this.myCharts3.resize();
|
||||||
|
this.myCharts4.resize();
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getTopData(){
|
getTopData(){
|
||||||
|
|
@ -269,10 +271,6 @@ export default {
|
||||||
};
|
};
|
||||||
this.myCharts1 = echarts.init(document.querySelector('#lineChartOne'));
|
this.myCharts1 = echarts.init(document.querySelector('#lineChartOne'));
|
||||||
this.myCharts1.setOption(option)
|
this.myCharts1.setOption(option)
|
||||||
// 根据页面大小自动响应图表大小
|
|
||||||
// window.addEventListener("resize1", function () {
|
|
||||||
// this.myCharts1.resize();
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
changType2(e){
|
changType2(e){
|
||||||
|
|
@ -397,11 +395,6 @@ export default {
|
||||||
};
|
};
|
||||||
this.myCharts2 = echarts.init(document.querySelector('#lineChartTwo'));
|
this.myCharts2 = echarts.init(document.querySelector('#lineChartTwo'));
|
||||||
this.myCharts2.setOption(option)
|
this.myCharts2.setOption(option)
|
||||||
|
|
||||||
// // 根据页面大小自动响应图表大小
|
|
||||||
// window.addEventListener("resize2", function () {
|
|
||||||
// myCharts2.resize();
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
InitEChartsThree() {
|
InitEChartsThree() {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
||||||
<h3 class="title">智慧食堂</h3>
|
<h3 class="title">智慧食堂系统</h3>
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="loginForm.username"
|
v-model="loginForm.username"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<div class="login-form" style="width: 450px;">
|
<div class="login-form" style="width: 450px;">
|
||||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" >
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" >
|
||||||
<h3 class="title">智慧食堂</h3>
|
<h3 class="title">智慧食堂系统</h3>
|
||||||
<template v-if="loginMethod === 'password'">
|
<template v-if="loginMethod === 'password'">
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="register">
|
<div class="register">
|
||||||
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
|
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
|
||||||
<h3 class="title">智慧食堂</h3>
|
<h3 class="title">智慧食堂系统</h3>
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号">
|
<el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号">
|
||||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="register">
|
<div class="register">
|
||||||
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
|
<el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
|
||||||
<h3 class="title">智慧食堂</h3>
|
<h3 class="title">智慧食堂系统</h3>
|
||||||
|
|
||||||
<el-form-item prop="nickName">
|
<el-form-item prop="nickName">
|
||||||
<el-input v-model="registerForm.nickName" type="text" auto-complete="off" placeholder="请输入姓名">
|
<el-input v-model="registerForm.nickName" type="text" auto-complete="off" placeholder="请输入姓名">
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ function resolve(dir) {
|
||||||
|
|
||||||
const CompressionPlugin = require('compression-webpack-plugin')
|
const CompressionPlugin = require('compression-webpack-plugin')
|
||||||
|
|
||||||
const name = process.env.VUE_APP_TITLE || '智慧食堂' // 网页标题
|
const name = process.env.VUE_APP_TITLE || '智慧食堂系统' // 网页标题
|
||||||
|
|
||||||
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue