Browse Source

智能生猪饲喂系统

zswxt
lzp 4 months ago
parent
commit
dbd9491f0b
  1. 4
      .env.development
  2. 2
      .env.production
  3. 2
      .env.staging
  4. 2
      package.json
  5. 21
      src/views/index.vue
  6. 2
      src/views/login.vue
  7. 2
      src/views/register.vue
  8. 2
      vue.config.js

4
.env.development

@ -1,10 +1,10 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 智能水温控制系统 VUE_APP_TITLE = 智能生猪饲喂系统
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'
# 智能水温控制系统/开发环境 # 智能生猪饲喂系统/开发环境
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = '/dev-api'
VUE_APP_IMG_URL = 'https://test.tall.wiki/commen/' VUE_APP_IMG_URL = 'https://test.tall.wiki/commen/'
VUE_APP_API_QZURL = 'https://test.tall.wiki/commen/' VUE_APP_API_QZURL = 'https://test.tall.wiki/commen/'

2
.env.production

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 智能水温控制系统 VUE_APP_TITLE = 智能生猪饲喂系统
# 生产环境配置 # 生产环境配置
NODE_ENV = 'production' NODE_ENV = 'production'

2
.env.staging

@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = 智能水温控制系统 VUE_APP_TITLE = 智能生猪饲喂系统
# 生产环境配置 # 生产环境配置
NODE_ENV = 'production' NODE_ENV = 'production'

2
package.json

@ -1,7 +1,7 @@
{ {
"name": "ruoyi", "name": "ruoyi",
"version": "3.8.9", "version": "3.8.9",
"description": "智能水温控制系统", "description": "智能生猪饲喂系统",
"author": "若依", "author": "若依",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

21
src/views/index.vue

@ -1,24 +1,17 @@
<template> <template>
<div style="padding: 16px;min-height: calc(100vh - 84px);display: flex; justify-content: center;align-items: center;"> <div style="padding: 16px;min-height: calc(100vh - 84px);display: flex; justify-content: center;align-items: center;">
<div class="div-box"> <div class="div-box">
<div class="div-box-title"> 智能水温控制系统 </div> <div class="div-box-title"> 智能生猪饲喂系统 </div>
<div class="div-ul"> <div class="div-ul">
<div class="div-li"> <div class="div-li">
<div> <div>
<span>温度</span>22.2 <span>当前饲料重量</span>15kg
</div>
<div> <span>湿度</span>50%
</div> </div>
</div> </div>
<!-- ON开启 OFF关闭 --> <!-- ON开启 OFF关闭 -->
<div class="div-li"> <div class="div-li">
<div> <div>
<span>报警器</span> <span>电池状态</span>
<el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949">
</el-switch>
</div>
<div>
<span>加热器</span>
<el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949"> <el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949">
</el-switch> </el-switch>
</div> </div>
@ -110,10 +103,10 @@ export default {
} }
.div-ul { .div-ul {
.div-li>div:nth-of-type(1) { // .div-li>div:nth-of-type(1) {
border-right: 1px solid #ccc; // border-right: 1px solid #ccc;
margin-right: 16px; // margin-right: 16px;
} // }
.div-li { .div-li {
font-size: 18px; font-size: 18px;

2
src/views/login.vue

@ -8,7 +8,7 @@
> >
<h3 class="title" style="margin-bottom: 0"> <h3 class="title" style="margin-bottom: 0">
</h3> </h3>
<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"

2
src/views/register.vue

@ -6,7 +6,7 @@
:rules="registerRules" :rules="registerRules"
class="register-form" class="register-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="registerForm.username" v-model="registerForm.username"

2
vue.config.js

@ -8,7 +8,7 @@ function resolve(dir) {
const CompressionPlugin = require("compression-webpack-plugin"); const CompressionPlugin = require("compression-webpack-plugin");
const name = const name =
process.env.VUE_APP_TITLE || "智能水温控制系统"; // 网页标题 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…
Cancel
Save