Commit c11d5a97 authored by ym's avatar ym

'aaa'

parent 9191eb75
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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')
......@@ -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)
},
},
},
};
};
......
<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>
<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">
......
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