Browse Source

智能粮仓数据监测

lcsj
lzp 4 months ago
parent
commit
48ebb62226
  1. 4
      .env.development
  2. 2
      .env.production
  3. 2
      .env.staging
  4. 2
      package.json
  5. 20
      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": {

20
src/views/index.vue

@ -1,7 +1,7 @@
<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>
@ -15,15 +15,27 @@
<div> <div>
<span>CO</span>5PPM <span>CO</span>5PPM
</div> </div>
<div>
<span>光照</span>350
</div>
</div>
<div class="div-li">
<div> <div>
<span>预警</span> <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>
<div>
<span>阈值设定</span>30
<i class="el-icon-edit" style="color: rgb(64, 158, 255);margin-left: 4px;cursor: pointer;"
@click="handleSettings"></i>
</div>
</div> </div>
</div> </div>
<div class="div-tips"><span>阈值设定</span>30 <i class="el-icon-edit" <!-- <div class="div-tips">
style="color: rgb(64, 158, 255);margin-left: 4px;cursor: pointer;" @click="handleSettings"></i></div> <span>阈值设定</span>30 <i class="el-icon-edit" style="color: rgb(64, 158, 255);margin-left: 4px;cursor: pointer;"
@click="handleSettings"></i>
</div> -->
</div> </div>
<!-- 添加或修改公告对话框 --> <!-- 添加或修改公告对话框 -->
<el-dialog title="阈值设定" :visible.sync="open" width="780px" append-to-body> <el-dialog title="阈值设定" :visible.sync="open" width="780px" append-to-body>
@ -74,7 +86,7 @@ export default {
// this.$message.success(''); // this.$message.success('');
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm: function() { submitForm: function () {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
updateNotice(this.form).then(response => { updateNotice(this.form).then(response => {

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