Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
diya
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
diya
Commits
763cfd7b
Commit
763cfd7b
authored
Jan 24, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页init
parent
c9af9e2f
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
485 additions
and
118 deletions
+485
-118
.env.development
.env.development
+2
-2
.env.production
.env.production
+1
-1
.env.staging
.env.staging
+1
-1
README.en.md
README.en.md
+1
-1
home.js
src/api/home.js
+39
-0
Navbar.vue
src/layout/components/Navbar.vue
+33
-34
Logo.vue
src/layout/components/Sidebar/Logo.vue
+1
-1
index.vue
src/views/bigScreen/index.vue
+1
-1
index.vue
src/views/index.vue
+402
-73
login.vue
src/views/login.vue
+1
-1
register.vue
src/views/register.vue
+1
-1
vue.config.js
vue.config.js
+2
-2
No files found.
.env.development
View file @
763cfd7b
# 页面标题
VUE_APP_TITLE =
边坡结构稳定性监测系统
VUE_APP_TITLE =
井工矿地压动态在线监测及预警系统
# 开发环境配置
ENV = 'development'
#
边坡结构稳定性监测系统
/开发环境
#
井工矿地压动态在线监测及预警系统
/开发环境
VUE_APP_BASE_API = '/dev-api'
#VUE_APP_BASE_API = '/prod-api'
...
...
.env.production
View file @
763cfd7b
# 页面标题
VUE_APP_TITLE =
边坡结构稳定性监测系统
VUE_APP_TITLE =
井工矿地压动态在线监测及预警系统
# 生产环境配置
ENV = 'production'
...
...
.env.staging
View file @
763cfd7b
# 页面标题
VUE_APP_TITLE =
边坡结构稳定性监测系统
VUE_APP_TITLE =
井工矿地压动态在线监测及预警系统
NODE_ENV = production
...
...
README.en.md
View file @
763cfd7b
#
边坡结构稳定性监测系统
#
井工矿地压动态在线监测及预警系统
#### 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**
}
...
...
src/api/home.js
0 → 100644
View file @
763cfd7b
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
src/layout/components/Navbar.vue
View file @
763cfd7b
...
...
@@ -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
:
"
确定
"
,
...
...
src/layout/components/Sidebar/Logo.vue
View file @
763cfd7b
...
...
@@ -68,7 +68,7 @@ export default {
},
data
()
{
return
{
title
:
"
边坡结构稳定性监测系统
"
,
title
:
"
井工矿地压动态在线监测及预警系统
"
,
logo
:
logoImg
,
};
},
...
...
src/views/bigScreen/index.vue
View file @
763cfd7b
...
...
@@ -433,7 +433,7 @@ Highcharts3D(Highcharts);
export
default
{
data
()
{
return
{
screenTitle
:
"
边坡结构稳定性监测系统
"
,
screenTitle
:
"
井工矿地压动态在线监测及预警系统
"
,
nowDate
:
"
2023-01-01
"
,
nowTime
:
"
23:59:59
"
,
jxlEquipno
:
19
,
...
...
src/views/index.vue
View file @
763cfd7b
This diff is collapsed.
Click to expand it.
src/views/login.vue
View file @
763cfd7b
<
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"
>
...
...
src/views/register.vue
View file @
763cfd7b
...
...
@@ -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"
...
...
vue.config.js
View file @
763cfd7b
...
...
@@ -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
// 端口
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment