Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
V3-TailingPond-xiadian
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
Kimber
V3-TailingPond-xiadian
Commits
c11d5a97
Commit
c11d5a97
authored
Mar 17, 2023
by
ym
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'aaa'
parent
9191eb75
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
237 additions
and
92 deletions
+237
-92
chartTemplates - 副本.js
src/assets/js/chartTemplates - 副本.js
+0
-0
httpApi.js
src/assets/js/httpApi.js
+103
-81
index.vue
src/views/aqrf/safePersonnel/index.vue
+125
-0
login.vue
src/views/system/user/login.vue
+9
-11
No files found.
src/assets/js/chartTemplates - 副本.js
View file @
c11d5a97
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/assets/js/httpApi.js
View file @
c11d5a97
...
...
@@ -512,7 +512,7 @@ var reqApis = function(){
"
sensorname
"
:{
name
:
"
设备名称
"
},
"
sensorid
"
:{
name
:
"
设备ID
"
},
"
lenth
"
:{
name
:
"
长度(m)
"
},
"
safeheight
"
:{
name
:
"
坡
度(度)
"
},
"
safeheight
"
:{
name
:
"
坡
比
"
},
"
angle
"
:{
name
:
"
高程(m)
"
},
"
time
"
:{
name
:
"
监测时间
"
,
form
:
0
,
type
:
"
tableFormat
"
,
tableFormat
:
function
(
val
){
return
Tools
.
Dates
.
format
.
call
(
new
Date
(
val
),
'
yyyy-MM-dd HH:mm:ss
'
)
...
...
@@ -1472,7 +1472,7 @@ var reqApis = function(){
"
sensorname
"
:{
name
:
"
设备名称
"
},
"
sensorid
"
:{
name
:
"
设备ID
"
},
"
svalue
"
:{
name
:
"
监测值
"
,
must
:
true
,
type
:
'
tableFormat
'
,
tableFormat
:
function
(
val
){
return
val
+
this
.
Danwei
return
val
+
this
.
Danwei
}},
"
state
"
:{
name
:
"
是否报警
"
,
type
:
'
select
'
,},
"
time
"
:{
name
:
"
监测时间
"
,
form
:
0
,
type
:
"
tableFormat
"
,
tableFormat
:
function
(
val
){
...
...
@@ -1552,6 +1552,86 @@ var reqApis = function(){
},
},
},
aqrf
:{
safePersonnel
:{
name
:
'
安全人员信息
'
,
Dict
:{
baseInfo
:{
"
name
"
:{
name
:
"
姓名
"
,
must
:
true
},
"
dept
"
:{
name
:
"
部门
"
},
"
job
"
:{
name
:
"
职务
"
},
"
phone
"
:{
name
:
"
手机
"
},
"
mail
"
:{
name
:
"
邮箱
"
},
"
sex
"
:{
name
:
"
姓别
"
},
},
selectList
:{
sensorid
:
function
(){
return
reqApi
.
sensorListByCode
({
code
:
3
}).
then
(
function
(
res
){
return
res
.
body
||
[]
});
},
monitorType
:
function
(){
return
reqPublic
(
'
/dic/artificial/jczxList
'
,
'
get
'
,
{
code
:
3
}).
then
(
function
(
res
){
return
res
.
body
||
[];
});
},
state
:
function
(){
return
reqApi
.
getDictDeviceStatus
({}).
then
(
function
(
res
){
return
res
.
body
||
[]
});
},
},
},
config
:{
formWidth
:
'
840px
'
,
labelWidth
:
'
120
'
,
operWidth
:
'
180
'
,
title
:
'
安全人员
'
,
warningLine
:
'
double
'
,
buttons
:[
{
'
fn
'
:
'
toEdit
'
,
'
type
'
:
'
primary
'
,
'
icon
'
:
'
el-icon-edit
'
,
'
callback
'
:
function
(
item
){
item
=
Object
.
assign
({},
item
);
reqApi
.
common
.
toEdit
.
call
(
this
.
$parent
,
item
);
}},
{
'
fn
'
:
'
toDelete
'
,
'
type
'
:
'
danger
'
,
'
icon
'
:
'
el-icon-delete
'
,
'
callback
'
:
function
(
item
){
reqApi
.
common
.
toDelete
.
call
(
this
.
$parent
,
item
);
}}
],
otherBtn
:[
{
fn
:
'
toAdd
'
,
type
:
'
primary
'
,
icon
:
'
el-icon-plus
'
,
name
:
'
安全人员信息
'
,
'
callback
'
:
function
(){
reqApi
.
common
.
toAdd
.
call
(
this
);
}}
],
rightBtn
:[
{
type
:
'
primary
'
,
icon
:
'
el-icon-refresh
'
,
name
:
'
刷新
'
,
'
callback
'
:
function
(){
this
.
loadData
()
}},
],
search
:[
{
'
type
'
:
'
string
'
,
'
name
'
:
'
姓名
'
,
'
word
'
:
'
name
'
,
'
mode
'
:
0
,
'
width
'
:
'
180px
'
,
'
clear
'
:
function
(){
this
.
loadData
()
}},
{
'
type
'
:
'
button
'
,
'
label
'
:
'
搜索
'
,
'
width
'
:
'
140px
'
,
'
icon
'
:
'
el-icon-search
'
,
'
click
'
:
function
(
e
){
// 设置展示条件
//var partTableStatus = ~~this.form.query.monitorType;
//this.Dict.baseInfo["jcvalue"].table = partTableStatus;
//this.Dict.baseInfo["jctime"].table = partTableStatus;
this
.
table
.
page
=
1
;
this
.
loadData
()
}},
],
},
created
:
function
(){
var
baseInfo
=
this
.
Dict
.
baseInfo
;
baseInfo
[
"
jcvalue
"
].
table
=
0
;
baseInfo
[
"
jctime
"
].
table
=
0
;
baseInfo
[
"
difference
"
].
table
=
0
;
},
request
:
function
(
type
,
param
){
return
reqPublic
(
'
tab/csafe/csafepeople
'
,
type
,
param
)
},
},
},
personMonitor
:{
// 人工监测
monitorPoints
:{
// 监测点
name
:
'
监测点
'
,
...
...
@@ -1635,6 +1715,9 @@ var reqApis = function(){
"
precision
"
:{
name
:
"
精度
"
,
type
:
'
text
'
,
style
:
'
display:flex;width:100%;
'
,},
"
value
"
:{
name
:
"
人工监测值
"
,
must
:
true
},
"
time
"
:{
name
:
"
添加时间
"
,
must
:
true
,
type
:
'
datetime
'
,
format
:
'
yyyy-MM-dd HH:mm:ss
'
},
"
sjvalue
"
:{
name
:
"
数据监测值
"
,
type
:
'
text
'
,
style
:
'
display:flex;width:100%;
'
,},
"
sjtime
"
:{
name
:
"
数据监测时间
"
,
type
:
'
text
'
,
style
:
'
display:flex;width:100%;
'
,},
"
difference
"
:{
name
:
"
数据监测差异
"
,
type
:
'
text
'
,
style
:
'
display:flex;width:100%;
'
,},
},
selectList
:{
point_id
:
function
(){
...
...
@@ -1677,6 +1760,9 @@ var reqApis = function(){
}}
],
rightBtn
:[
{
type
:
'
warning
'
,
icon
:
'
el-icon-document
'
,
name
:
'
导出
'
,
'
callback
'
:
function
(){
reqApi
.
common
.
toExports
.
call
(
this
);
}},
],
search
:[
{
'
type
'
:
'
select
'
,
'
name
'
:
'
设备
'
,
'
word
'
:
'
point_id
'
,
'
mode
'
:
1
,
'
width
'
:
'
160px
'
,
key
:
'
jcdname
'
,
val
:
'
id
'
,
'
clear
'
:
function
(){
...
...
@@ -1688,6 +1774,7 @@ var reqApis = function(){
{
'
type
'
:
'
select
'
,
'
name
'
:
'
监测人
'
,
'
word
'
:
'
jc_man
'
,
'
mode
'
:
1
,
'
width
'
:
'
160px
'
,
key
:
'
jc_man
'
,
val
:
'
jc_man
'
,
'
clear
'
:
function
(){
this
.
loadData
()
}},
{
'
type
'
:
'
datetimerange
'
,
'
defaultTime
'
:[
'
00:00:00
'
,
'
23:59:59
'
],
'
name
'
:
'
日期范围
'
,
'
word
'
:
'
daterange
'
,
'
mode
'
:
0
,
'
width
'
:
'
380px
'
,
format
:
'
yyyy-MM-dd HH:mm:ss
'
},
{
'
type
'
:
'
button
'
,
'
label
'
:
'
搜索
'
,
'
width
'
:
'
140px
'
,
'
icon
'
:
'
el-icon-search
'
,
'
click
'
:
function
(
e
){
this
.
table
.
page
=
1
;
this
.
loadData
()
...
...
@@ -1697,6 +1784,9 @@ var reqApis = function(){
request
:
function
(
type
,
param
){
return
reqPublic
(
'
artificial/data
'
,
type
,
param
)
},
download
:
function
(
param
){
return
reqPublic
(
'
/artificial/data/download
'
,
'
get
'
,
param
,
{
responseType
:
'
blob
'
})
},
},
},
personInspection
:{
// 人工巡检
...
...
@@ -1722,6 +1812,11 @@ var reqApis = function(){
item
=
Object
.
assign
({},
item
);
reqApi
.
common
.
toEdit
.
call
(
this
.
$parent
,
item
);
}},
{
'
fn
'
:
'
toDelete
'
,
'
type
'
:
'
danger
'
,
'
icon
'
:
'
el-icon-delete
'
,
'
callback
'
:
function
(
item
)
{
reqApi
.
common
.
toDelete
.
call
(
this
.
$parent
,
item
);
}
}
],
otherBtn
:[
{
fn
:
'
toAdd
'
,
type
:
'
primary
'
,
icon
:
'
el-icon-plus
'
,
name
:
'
添加检查项
'
,
'
callback
'
:
function
(){
...
...
@@ -1774,6 +1869,11 @@ var reqApis = function(){
item
=
Object
.
assign
({},
item
);
reqApi
.
common
.
toEdit
.
call
(
this
.
$parent
,
item
);
}},
{
'
fn
'
:
'
toDelete
'
,
'
type
'
:
'
danger
'
,
'
icon
'
:
'
el-icon-delete
'
,
'
callback
'
:
function
(
item
)
{
reqApi
.
common
.
toDelete
.
call
(
this
.
$parent
,
item
);
}
}
],
otherBtn
:[
{
fn
:
'
toAdd
'
,
type
:
'
primary
'
,
icon
:
'
el-icon-plus
'
,
name
:
'
添加检查类型
'
,
'
callback
'
:
function
(){
...
...
@@ -2313,7 +2413,6 @@ var reqApis = function(){
"
supervisorylevel
"
:{
name
:
"
工程监理单位资质等级
"
,
table
:
0
},
"
safetycheckunit
"
:{
name
:
"
安全验收评价单位
"
,
table
:
0
},
"
safetychecklevel
"
:{
name
:
"
安全验收评价单位资质
"
,
table
:
0
},
"
safetyacceptancetime
"
:{
name
:
"
安全设施竣工验收时间
"
,
type
:
"
date
"
,
table
:
0
},
"
safetyevaluationunit
"
:{
name
:
"
安全现状评价单位
"
,
table
:
0
},
"
safetyevaluationlevel
"
:{
name
:
"
安全现状评价单位资质等级
"
,
table
:
0
},
...
...
@@ -2944,84 +3043,7 @@ var reqApis = function(){
return
reqApi
.
common
.
requstEdge
(
'
post
'
,
'
tab/back
'
,
param
);
},
},
safePersonnel
:{
name
:
'
安全人员信息
'
,
Dict
:{
baseInfo
:{
"
name
"
:{
name
:
"
姓名
"
,
must
:
true
},
"
dept
"
:{
name
:
"
部门
"
},
"
job
"
:{
name
:
"
职务
"
},
"
phone
"
:{
name
:
"
手机
"
},
"
mail
"
:{
name
:
"
邮箱
"
},
"
sex
"
:{
name
:
"
姓别
"
},
},
selectList
:{
sensorid
:
function
(){
return
reqApi
.
sensorListByCode
({
code
:
3
}).
then
(
function
(
res
){
return
res
.
body
||
[]
});
},
monitorType
:
function
(){
return
reqPublic
(
'
/dic/artificial/jczxList
'
,
'
get
'
,
{
code
:
3
}).
then
(
function
(
res
){
return
res
.
body
||
[];
});
},
state
:
function
(){
return
reqApi
.
getDictDeviceStatus
({}).
then
(
function
(
res
){
return
res
.
body
||
[]
});
},
},
},
config
:{
formWidth
:
'
840px
'
,
labelWidth
:
'
120
'
,
operWidth
:
'
180
'
,
title
:
'
安全人员
'
,
warningLine
:
'
double
'
,
buttons
:[
{
'
fn
'
:
'
toEdit
'
,
'
type
'
:
'
primary
'
,
'
icon
'
:
'
el-icon-edit
'
,
'
callback
'
:
function
(
item
){
item
=
Object
.
assign
({},
item
);
reqApi
.
common
.
toEdit
.
call
(
this
.
$parent
,
item
);
}},
{
'
fn
'
:
'
toDelete
'
,
'
type
'
:
'
danger
'
,
'
icon
'
:
'
el-icon-delete
'
,
'
callback
'
:
function
(
item
){
reqApi
.
common
.
toDelete
.
call
(
this
.
$parent
,
item
);
}}
],
otherBtn
:[
{
fn
:
'
toAdd
'
,
type
:
'
primary
'
,
icon
:
'
el-icon-plus
'
,
name
:
'
安全人员信息
'
,
'
callback
'
:
function
(){
reqApi
.
common
.
toAdd
.
call
(
this
);
}}
],
rightBtn
:[
{
type
:
'
primary
'
,
icon
:
'
el-icon-refresh
'
,
name
:
'
刷新
'
,
'
callback
'
:
function
(){
this
.
loadData
()
}},
],
search
:[
{
'
type
'
:
'
string
'
,
'
name
'
:
'
姓名
'
,
'
word
'
:
'
name
'
,
'
mode
'
:
0
,
'
width
'
:
'
180px
'
,
'
clear
'
:
function
(){
this
.
loadData
()
}},
{
'
type
'
:
'
button
'
,
'
label
'
:
'
搜索
'
,
'
width
'
:
'
140px
'
,
'
icon
'
:
'
el-icon-search
'
,
'
click
'
:
function
(
e
){
// 设置展示条件
//var partTableStatus = ~~this.form.query.monitorType;
//this.Dict.baseInfo["jcvalue"].table = partTableStatus;
//this.Dict.baseInfo["jctime"].table = partTableStatus;
this
.
table
.
page
=
1
;
this
.
loadData
()
}},
],
},
created
:
function
(){
var
baseInfo
=
this
.
Dict
.
baseInfo
;
baseInfo
[
"
jcvalue
"
].
table
=
0
;
baseInfo
[
"
jctime
"
].
table
=
0
;
baseInfo
[
"
difference
"
].
table
=
0
;
},
request
:
function
(
type
,
param
){
return
reqPublic
(
'
tab/csafe/csafepeople
'
,
type
,
param
)
},
},
},
};
};
...
...
src/views/aqrf/safePersonnel/index.vue
0 → 100644
View file @
c11d5a97
<
template
>
<div
class=
"common-page qyzz page-t1"
>
<div
class=
"option page-row"
>
<!--工具栏-->
<table-filter
ref=
"filter"
:form=
"form"
:Dict=
"Dict"
:rules=
"rules"
:config=
"form.config"
:loadData=
"loadData"
/>
</div>
<div
class=
"panel-bottom page-row"
>
<div
class=
"ctin-box"
>
<div
class=
"content-within"
>
<div
class=
"content-fix"
>
<div
class=
"toolbar"
>
<template
v-for=
"(item, key) in form.config.otherBtn"
>
<el-button
size=
"mini"
:type=
"item.type"
:icon=
"item.icon"
@
click=
"item.callback.call(_self, $event)"
>
{{
item
.
name
}}
</el-button>
</
template
>
</div>
<!-- 表格渲染 -->
<cu-table
ref=
"cuTable"
:table=
"table"
:Dict=
"Dict"
:config=
"form.config"
:loadData=
"loadData"
/>
</div>
</div>
</div>
</div>
<!-- 表单渲染 -->
<cu-form
ref=
"cuForm"
:form=
"form"
:Dict=
"Dict"
:rules=
"rules"
:submit=
"submitForm"
:cancel=
"cancelForm"
:watchKeys=
"['paperfilename']"
/>
</div>
</template>
<
script
>
import
{
reqApi
,
Config
}
from
'
@/assets/js/httpApi.js
'
;
import
{
Tools
}
from
'
@/assets/js/common.js
'
;
import
DateRangePicker
from
'
@/components/DateRangePicker
'
;
import
TableFilter
from
'
@/components/TableFilter
'
;
import
cuForm
from
'
@/components/cuForm
'
;
import
cuTable
from
'
@/components/cuTable
'
;
export
default
{
name
:
'
Dashboard
'
,
components
:
{
DateRangePicker
,
TableFilter
,
cuForm
,
cuTable
},
data
()
{
return
{
Dict
:{
selectList
:[]},
table
:{
page
:
1
,
size
:
10
,
total
:
0
,
loading
:
false
,
dataList
:[],
},
rules
:
{},
form
:
{
title
:
''
,
visible
:
false
,
reqType
:
'
add
'
,
historyDialog
:
false
,
status
:{
cu
:
0
},
query
:{},
search
:{},
item
:{},
file
:
0
,
config
:{},
},
}
},
mounted
()
{
var
that
=
this
;
// 获取基本信息
this
.
pageApi
=
Config
.
getModuleInfo
(
this
);
this
.
Dict
=
this
.
pageApi
.
Dict
;
this
.
form
.
search
=
this
.
Dict
.
search
;
this
.
form
.
config
=
this
.
pageApi
.
config
;
this
.
rules
=
reqApi
.
getRules
(
this
.
Dict
.
baseInfo
)
||
(
this
.
Dict
.
rules
||
{});
this
.
$nextTick
(()
=>
{
this
.
loadData
();
});
// 获取选择列表字典
var
selectList
=
this
.
Dict
.
selectList
;
Tools
.
asyncLoop
.
call
(
this
,
selectList
,
function
(
key
,
value
,
next
){
if
(
typeof
value
===
'
function
'
){
value
.
call
(
this
.
Dict
).
then
(
function
(
res
){
selectList
[
key
]
=
res
;
next
();
})
}
else
{
next
();
};
});
},
methods
:
{
loadData
()
{
var
searchItem
=
reqApi
.
common
.
getSearchParam
(
this
.
form
);
reqApi
.
common
.
getRequst
.
call
(
this
,
searchItem
);
},
cancelForm
(){
this
.
form
.
visible
=
false
;
},
submitForm
(
form
,
item
){
reqApi
.
common
.
submitForm
.
call
(
this
,
form
,
item
);
},
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scope
>
.qyzz
{
}
</
style
>
src/views/system/user/login.vue
View file @
c11d5a97
<
template
>
<div
class=
"login"
:style=
"'background-image:url('+ Background +');'"
>
<div
class=
"headder"
>
<h2>
尾矿库数据在线监测系统
</h2>
<h4>
ONLINE MONITORING SYSTEM FOR TAILINGS POND DATA
</h4>
<!--
<h2>
边坡数据在线监测系统
</h2>
<h4>
ONLINE MONITORING SYSTEM FOR SIDE SLOPE DATA
</h4>
-->
<h2>
道士沟尾矿库在线安全监测系统
</h2>
<h4>
ONLINE SAFETY MONITORING SYSTEM OF DAOSHIGOU TAILINGS POND
</h4>
</div>
<div
class=
"logo-place"
>
<div
class=
"logo-title"
>
登录窗口
</div>
<h3
class=
"subtitle"
>
欢迎登录
后台
系统
</h3>
<h3
class=
"subtitle"
>
欢迎登录系统
</h3>
<div
class=
"ctn-place"
>
<div
class=
"inbox-range"
>
<div
class=
"ctn-fix"
>
...
...
@@ -23,7 +21,7 @@
<svg-icon
slot=
"prefix"
icon-class=
"password"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-form-item>
<!--
<!--
<el-form-item
prop=
"code"
>
<el-input
v-model=
"loginForm.code"
auto-complete=
"off"
placeholder=
"验证码"
style=
"width: 63%"
@
keyup.enter.native=
"handleLogin"
>
<svg-icon
slot=
"prefix"
icon-class=
"validCode"
class=
"el-input__icon input-icon"
/>
...
...
@@ -197,7 +195,7 @@ export default {
.login
{
display
:flex
;
justify-content
:center
;
align-items
:center
;
flex-direction
:column
;
height
:
100%
;
background-size
:cover
;
position
:relative
;
.headder
{
margin-bottom
:
.48rem
;
text-align
:center
;
h2
,
h4
{
...
...
@@ -216,7 +214,7 @@ export default {
.ctn-place
{
position
:absolute
;
top
:
1
.61rem
;
right
:
.06rem
;
height
:auto
;
width
:
4
.79rem
;
flex
:
1
;
display
:flex
;
.inbox-range
{
flex
:
1
;
.ctn-fix
{
width
:
3
.8rem
;
margin
:
0
auto
;}
...
...
@@ -237,7 +235,7 @@ export default {
.el-form-item__content
{
line-height
:
.58rem
;
}
.el-form-item
{
margin-bottom
:
.25rem
;
&
:last-child
{
margin-bottom
:
0
}
...
...
@@ -245,7 +243,7 @@ export default {
}
}
}
.logo-title
{
position
:absolute
;
top
:
.15rem
;
left
:
0
;
height
:auto
;
width
:
100%
;
text-align
:center
;
cursor
:default
;
font-size
:
.26rem
;
line-height
:
1
;
letter-spacing
:
10px
;
color
:
rgb
(
56
,
230
,
255
);
text-shadow
:
0px
0px
2px
rgb
(
56
230
255
);
}
...
...
@@ -253,7 +251,7 @@ export default {
position
:absolute
;
top
:
.91rem
;
left
:
0
;
height
:auto
;
width
:
100%
;
text-align
:center
;
cursor
:default
;
font-size
:
.34rem
;
line-height
:
1
;
letter-spacing
:
10px
;
color
:
#b1edf8
;
}
}
.login-code
{
width
:
33%
;
display
:
inline-block
;
...
...
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