Commit 763cfd7b authored by xinzhedeai's avatar xinzhedeai

首页init

parent c9af9e2f
# 页面标题
VUE_APP_TITLE = 边坡结构稳定性监测系统
VUE_APP_TITLE = 井工矿地压动态在线监测及预警系统
# 开发环境配置
ENV = 'development'
# 边坡结构稳定性监测系统/开发环境
# 井工矿地压动态在线监测及预警系统 /开发环境
VUE_APP_BASE_API = '/dev-api'
#VUE_APP_BASE_API = '/prod-api'
......
# 页面标题
VUE_APP_TITLE = 边坡结构稳定性监测系统
VUE_APP_TITLE = 井工矿地压动态在线监测及预警系统
# 生产环境配置
ENV = 'production'
......
# 页面标题
VUE_APP_TITLE = 边坡结构稳定性监测系统
VUE_APP_TITLE = 井工矿地压动态在线监测及预警系统
NODE_ENV = production
......
# 边坡结构稳定性监测系统
# 井工矿地压动态在线监测及预警系统
#### 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**}
......
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 @@
<ruo-yi-git id="ruoyi-git" class="right-menu-item hover-effect" />
</el-tooltip> -->
<span class="mode" @click.stop="modeChange">
<!-- <span class="mode" @click.stop="modeChange">
<span v-if="mode === 1">日常模式</span>
<span v-if="mode === 2">紧急模式</span>
</span>
</span> -->
<el-tooltip content="数据大屏" effect="light" placement="bottom">
<!-- <el-tooltip content="数据大屏" effect="light" placement="bottom">
<i
class="bigscreen el-icon-data-analysis right-menu-item hover-effect"
@click.stop="toBigscreen"
></i>
<!-- <ruo-yi-doc id="ruoyi-doc" class="right-menu-item hover-effect" /> -->
</el-tooltip>
</el-tooltip> -->
<!-- <el-tooltip
content="大屏"
effect="light"
......@@ -81,7 +80,7 @@ import SizeSelect from "@/components/SizeSelect";
import Search from "@/components/HeaderSearch";
import RuoYiGit from "@/components/RuoYi/Git";
import RuoYiDoc from "@/components/RuoYi/Doc";
import { modelChangeConfig, modelConfig } from "@/api/lclApi/lclapi";
// import { modelChangeConfig, modelConfig } from "@/api/lclApi/lclapi";
export default {
data() {
return {
......@@ -118,36 +117,36 @@ export default {
},
},
mounted() {
this.$nextTick(this.getMode());
// this.$nextTick(this.getMode());
},
methods: {
getMode() {
modelConfig().then((res) => {
if (res && res.code === 200) {
this.mode = res.data;
}
});
},
modeChange() {
if (this.mode === 1) {
modelChangeConfig({ model: 2 }).then((res) => {
if (res && res.code === 200) {
this.$modal.msgSuccess("模式切换成功");
this.getMode();
}
});
} else if (this.mode === 2) {
modelChangeConfig({ model: 1 }).then((res) => {
if (res && res.code === 200) {
this.$modal.msgSuccess("模式切换成功");
this.getMode();
}
});
}
},
toggleSideBar() {
this.$store.dispatch("app/toggleSideBar");
},
// getMode() {
// modelConfig().then((res) => {
// if (res && res.code === 200) {
// this.mode = res.data;
// }
// });
// },
// modeChange() {
// if (this.mode === 1) {
// modelChangeConfig({ model: 2 }).then((res) => {
// if (res && res.code === 200) {
// this.$modal.msgSuccess("模式切换成功");
// this.getMode();
// }
// });
// } else if (this.mode === 2) {
// modelChangeConfig({ model: 1 }).then((res) => {
// if (res && res.code === 200) {
// this.$modal.msgSuccess("模式切换成功");
// this.getMode();
// }
// });
// }
// },
// toggleSideBar() {
// this.$store.dispatch("app/toggleSideBar");
// },
async logout() {
this.$confirm("确定注销并退出系统吗?", "提示", {
confirmButtonText: "确定",
......
......@@ -68,7 +68,7 @@ export default {
},
data() {
return {
title: "边坡结构稳定性监测系统",
title: "井工矿地压动态在线监测及预警系统 ",
logo: logoImg,
};
},
......
......@@ -433,7 +433,7 @@ Highcharts3D(Highcharts);
export default {
data() {
return {
screenTitle: "边坡结构稳定性监测系统",
screenTitle: "井工矿地压动态在线监测及预警系统 ",
nowDate: "2023-01-01",
nowTime: "23:59:59",
jxlEquipno: 19,
......
This diff is collapsed.
<template>
<div class="login" :style="'background-image:url(' + Background + ');'">
<div class="headder">
<h2>边坡结构稳定性监测系统</h2>
<h2>井工矿地压动态在线监测及预警系统 </h2>
<!-- <h4>ONLINE MONITORING SYSTEM FOR TAILINGS POND DATA</h4> -->
</div>
<div class="logo-place">
......
......@@ -6,7 +6,7 @@
:rules="registerRules"
class="register-form"
>
<h3 class="title">边坡结构稳定性监测系统</h3>
<h3 class="title">井工矿地压动态在线监测及预警系统 </h3>
<el-form-item prop="username">
<el-input
v-model="registerForm.username"
......
......@@ -7,8 +7,8 @@ function resolve(dir) {
const CompressionPlugin = require('compression-webpack-plugin')
// const name = process.env.VUE_APP_TITLE || '边坡结构稳定性监测系统' // 网页标题
const name = '边坡结构稳定性监测系统' // 网页标题
// const name = process.env.VUE_APP_TITLE || '井工矿地压动态在线监测及预警系统 ' // 网页标题
const name = '井工矿地压动态在线监测及预警系统 ' // 网页标题
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