Commit 763cfd7b authored by xinzhedeai's avatar xinzhedeai

首页init

parent c9af9e2f
# 页面标题 # 页面标题
VUE_APP_TITLE = 边坡结构稳定性监测系统 VUE_APP_TITLE = 井工矿地压动态在线监测及预警系统
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'
# 边坡结构稳定性监测系统/开发环境 # 井工矿地压动态在线监测及预警系统 /开发环境
VUE_APP_BASE_API = '/dev-api' VUE_APP_BASE_API = '/dev-api'
#VUE_APP_BASE_API = '/prod-api' #VUE_APP_BASE_API = '/prod-api'
......
# 页面标题 # 页面标题
VUE_APP_TITLE = 边坡结构稳定性监测系统 VUE_APP_TITLE = 井工矿地压动态在线监测及预警系统
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'
......
# 页面标题 # 页面标题
VUE_APP_TITLE = 边坡结构稳定性监测系统 VUE_APP_TITLE = 井工矿地压动态在线监测及预警系统
NODE_ENV = production NODE_ENV = production
......
# 边坡结构稳定性监测系统 # 井工矿地压动态在线监测及预警系统
#### Description #### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} {**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
......
import request from '@/utils/request'
export function getAlarmEquipment(params) {
return request({
// url: '/project/equipment/getAlarmEquipment',
// method: 'post',
url: '/project/equipment/getequipmentStatus',
method: 'get',
params
})
}
export function getAbnormalAlarm(params) {
return request({
url: '/project/equipment/getequipmentStatus',
method: 'get',
params
})
}
export function getEquipmentNo() {
return request({
url: '/project/substation/getNo',
method: 'post',
})
}
export function getEquipmenttype() {
return request({
url: '/project/equipment/getEquipmenttype',
method: 'post',
})
}
export function surDisplacementreal() {
return request({
url: '/slope/surDisplacement/real',
method: 'get',
})
}
\ No newline at end of file
...@@ -10,18 +10,17 @@ ...@@ -10,18 +10,17 @@
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" /> <ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
</el-tooltip> --> </el-tooltip> -->
<span class="mode" @click.stop="modeChange"> <!-- <span class="mode" @click.stop="modeChange">
<span v-if="mode === 1">日常模式</span> <span v-if="mode === 1">日常模式</span>
<span v-if="mode === 2">紧急模式</span> <span v-if="mode === 2">紧急模式</span>
</span> </span> -->
<el-tooltip content="数据大屏" effect="light" placement="bottom"> <!-- <el-tooltip content="数据大屏" effect="light" placement="bottom">
<i <i
class="bigscreen el-icon-data-analysis right-menu-item hover-effect" class="bigscreen el-icon-data-analysis right-menu-item hover-effect"
@click.stop="toBigscreen" @click.stop="toBigscreen"
></i> ></i>
<!-- <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" /> --> </el-tooltip> -->
</el-tooltip>
<!-- <el-tooltip <!-- <el-tooltip
content="大屏" content="大屏"
effect="light" effect="light"
...@@ -81,7 +80,7 @@ import SizeSelect from "@/components/SizeSelect"; ...@@ -81,7 +80,7 @@ import SizeSelect from "@/components/SizeSelect";
import Search from "@/components/HeaderSearch"; import Search from "@/components/HeaderSearch";
import RuoYiGit from "@/components/RuoYi/Git"; import RuoYiGit from "@/components/RuoYi/Git";
import RuoYiDoc from "@/components/RuoYi/Doc"; import RuoYiDoc from "@/components/RuoYi/Doc";
import { modelChangeConfig, modelConfig } from "@/api/lclApi/lclapi"; // import { modelChangeConfig, modelConfig } from "@/api/lclApi/lclapi";
export default { export default {
data() { data() {
return { return {
...@@ -118,36 +117,36 @@ export default { ...@@ -118,36 +117,36 @@ export default {
}, },
}, },
mounted() { mounted() {
this.$nextTick(this.getMode()); // this.$nextTick(this.getMode());
}, },
methods: { methods: {
getMode() { // getMode() {
modelConfig().then((res) => { // modelConfig().then((res) => {
if (res && res.code === 200) { // if (res && res.code === 200) {
this.mode = res.data; // this.mode = res.data;
} // }
}); // });
}, // },
modeChange() { // modeChange() {
if (this.mode === 1) { // if (this.mode === 1) {
modelChangeConfig({ model: 2 }).then((res) => { // modelChangeConfig({ model: 2 }).then((res) => {
if (res && res.code === 200) { // if (res && res.code === 200) {
this.$modal.msgSuccess("模式切换成功"); // this.$modal.msgSuccess("模式切换成功");
this.getMode(); // this.getMode();
} // }
}); // });
} else if (this.mode === 2) { // } else if (this.mode === 2) {
modelChangeConfig({ model: 1 }).then((res) => { // modelChangeConfig({ model: 1 }).then((res) => {
if (res && res.code === 200) { // if (res && res.code === 200) {
this.$modal.msgSuccess("模式切换成功"); // this.$modal.msgSuccess("模式切换成功");
this.getMode(); // this.getMode();
} // }
}); // });
} // }
}, // },
toggleSideBar() { // toggleSideBar() {
this.$store.dispatch("app/toggleSideBar"); // this.$store.dispatch("app/toggleSideBar");
}, // },
async logout() { async logout() {
this.$confirm("确定注销并退出系统吗?", "提示", { this.$confirm("确定注销并退出系统吗?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
......
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
}, },
data() { data() {
return { return {
title: "边坡结构稳定性监测系统", title: "井工矿地压动态在线监测及预警系统 ",
logo: logoImg, logo: logoImg,
}; };
}, },
......
...@@ -433,7 +433,7 @@ Highcharts3D(Highcharts); ...@@ -433,7 +433,7 @@ Highcharts3D(Highcharts);
export default { export default {
data() { data() {
return { return {
screenTitle: "边坡结构稳定性监测系统", screenTitle: "井工矿地压动态在线监测及预警系统 ",
nowDate: "2023-01-01", nowDate: "2023-01-01",
nowTime: "23:59:59", nowTime: "23:59:59",
jxlEquipno: 19, jxlEquipno: 19,
......
This diff is collapsed.
<template> <template>
<div class="login" :style="'background-image:url(' + Background + ');'"> <div class="login" :style="'background-image:url(' + Background + ');'">
<div class="headder"> <div class="headder">
<h2>边坡结构稳定性监测系统</h2> <h2>井工矿地压动态在线监测及预警系统 </h2>
<!-- <h4>ONLINE MONITORING SYSTEM FOR TAILINGS POND DATA</h4> --> <!-- <h4>ONLINE MONITORING SYSTEM FOR TAILINGS POND DATA</h4> -->
</div> </div>
<div class="logo-place"> <div class="logo-place">
......
...@@ -6,7 +6,7 @@ ...@@ -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"
......
...@@ -7,8 +7,8 @@ function resolve(dir) { ...@@ -7,8 +7,8 @@ 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 name = '边坡结构稳定性监测系统' // 网页标题 const name = '井工矿地压动态在线监测及预警系统 ' // 网页标题
const port = process.env.port || process.env.npm_config_port || 12100 // 端口 const port = process.env.port || process.env.npm_config_port || 12100 // 端口
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment