Commit 298b7818 authored by Kimber's avatar Kimber

'update'

parent eaf0a8db
......@@ -442,7 +442,13 @@ var Tools = function(){
var link = document.createElement('a');
link.style.display = 'none';
link.href = url;
var fileName = name + '.' + suffix;
console.log('name ________________ ', name, '_________________', fileName);
link.setAttribute('download', fileName);
document.body.appendChild(link);
link.click();
......
......@@ -282,7 +282,7 @@ var reqApis = function () {
});
};
},
toExports: function (item) {
toExports: function (item, suffix) {
this.$confirm('您确认要导出该页数据吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
......@@ -298,7 +298,7 @@ var reqApis = function () {
this.pageApi.download(param).then((res) => {
loading.close();
var name = this.pageApi.name + '数据' + Tools.Dates.format('yyyy-MM-dd HH:mm:ss');
Tools.downloadFile(res, name, 'xlsx')
Tools.downloadFile(res, name, suffix || 'xlsx')
})
})
},
......@@ -450,6 +450,21 @@ var reqApis = function () {
otherBtn: [
],
rightBtn: [
{
type:'warning', icon:'el-icon-document', name:'导出日报表', 'callback':function(){
var loading = this.$loading({
lock: true,
text: '请稍后.....',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
this.pageApi.download1({}).then((res) => {
loading.close();
var name = Tools.Dates.format('yyyy-MM-dd')+ ' GNSS日报表';
Tools.downloadFile(res, name, 'docx')
})
}
},
{
type: 'primary', icon: 'el-icon-refresh', name: '刷新', 'callback': function () {
this.loadData()
......@@ -519,6 +534,9 @@ var reqApis = function () {
download: function (param) {
return reqPublic('data/mp/download', 'get', param, { responseType: 'blob' })
},
download1: function (param) {
return reqPublic('data/mp/downloadWord', 'get', param, { responseType: 'blob' })
},
},
},
gt: { // 干滩
......@@ -2554,7 +2572,7 @@ var reqApis = function () {
},
system: {
pondManage: { // 尾矿库管理
pondManage: { // 边坡管理
Dict: {
baseInfo: {
"province": {
......@@ -2583,11 +2601,11 @@ var reqApis = function () {
Dict.codeSplitJoint(fitem);
}
},
"tailingno": { name: "尾矿库编号", must: true, form: 0 },
"tailingname": { name: "尾矿库名称", must: true },
"tailingno": { name: "边坡编号", must: true, form: 0 },
"tailingname": { name: "边坡名称", must: true },
"risk_entrance": { name: "风险大屏入口", type: 'select' },
"address": {
name: "尾矿库地址", /* must:true, */disabled: true, type: 'map', style: "display:flex",
name: "边坡地址", /* must:true, */disabled: true, type: 'map', style: "display:flex",
mapConfig: {
options: {
zoom: 6,
......@@ -2656,7 +2674,7 @@ var reqApis = function () {
"securityofficertel": { name: "安全负责人电话", must: true },
"designheight": { name: "设计总坝高(m)", table: 0, must: true },
"stackheight": { name: "现状总坝高(m)", table: 0, must: true },
"defaults": { name: "默认尾矿库", type: 'select' },
"defaults": { name: "默认边坡", type: 'select' },
"unifcreditcode": { name: "企业统一信用码", table: 0, placeholder: '(gb 32100-2015)' },
"unitname": { name: "管理单位", table: 0 },
"unitadress": { name: "企业所在地", table: 0 },
......@@ -2679,7 +2697,7 @@ var reqApis = function () {
"safetypermitno": { name: "安全生产许可证", table: 0 },
"safetypermitdate": { name: "安全生产许可证有效期", type: "date", table: 0 },
"safetypermitunit": { name: "安全生产许可证发证机关", table: 0 },
"storetypeno": { name: "尾矿库类型", type: 'select', table: 0 },
"storetypeno": { name: "边坡类型", type: 'select', table: 0 },
"designlevel": { name: "设计等级", type: 'select', table: 0 },
"grade": { name: "现状等级", type: 'select', table: 0 },
"plancapability": { name: "设计库容(万立方米)", table: 0 },
......@@ -2689,7 +2707,7 @@ var reqApis = function () {
"floodmethod": { name: "库外排洪型式", table: 0 },
"floodfacilitydischarge": { name: "排洪设施泄流量(立方米/秒)", table: 0 },
"waterarea": { name: "汇水面积(平方公里)", table: 0 },
"area": { name: "尾矿库面积(平方公里)", table: 0 },
"area": { name: "边坡面积(平方公里)", table: 0 },
"floodcontrolstandard": { name: "设计防洪标准(年)", table: 0 },
"damtype": { name: "初期坝类型", type: 'select', table: 0 },
"initialdamtype": { name: "初期坝坝型", type: 'select', table: 0 },
......@@ -2813,7 +2831,7 @@ var reqApis = function () {
formWidth: '840px',
labelWidth: '120',
operWidth: '180',
title: '尾矿库',
title: '边坡',
buttons: [ // tableBtn
//{'fn':'', 'type':'success', 'icon':'el-icon-more'},
{
......@@ -2860,7 +2878,7 @@ var reqApis = function () {
],
otherBtn: [
{
'type': 'primary', 'icon': 'el-icon-plus', 'name': '添加尾矿库', 'callback': function () {
'type': 'primary', 'icon': 'el-icon-plus', 'name': '添加边坡', 'callback': function () {
reqApi.common.toAdd.call(this);
// 地图
......@@ -2871,7 +2889,7 @@ var reqApis = function () {
],
search: [
{
'type': 'string', 'name': '尾矿库名称', 'word': 'tailingname', 'mode': 0, 'width': '200px', 'clear': function () {
'type': 'string', 'name': '边坡名称', 'word': 'tailingname', 'mode': 0, 'width': '200px', 'clear': function () {
this.loadData()
}
},
......@@ -2960,7 +2978,7 @@ var reqApis = function () {
},
},
},
//"tailingid":{name:"所属尾矿库", type:'select', must:true, table:0},
//"tailingid":{name:"所属边坡", type:'select', must:true, table:0},
"longitude": { name: "经度", table: 0, form: 0 },
"latitude": { name: "纬度", table: 0, form: 0 },
"installheight": { name: "安装高度", table: 0 },
......
......@@ -53,7 +53,7 @@ export default {
display:flex;justify-content:center;background-color:#fff;line-height:2;
&:after{
color:#888;display:inline-block;font-weight:bold;
content:'© ⋅ 技术支持:威海晶合数字矿山技术有限公司';
content:'© ⋅ 技术支持:山东天地寰宇信息科技有限公司';
}
}
</style>
......
......@@ -91,7 +91,7 @@ export default {
reqApi.common.requstEdge('get', 'tab/tailpondinfor/dryinfo', {}).then(function(res){
var body = res.body || {};
var tailingname = body.tailingname;
//self.pondName = tailingname.indexOf('尾矿库') > -1 ? tailingname : (tailingname||'') + '尾矿库';
//self.pondName = tailingname.indexOf('边坡') > -1 ? tailingname : (tailingname||'') + '边坡';
self.pondName = tailingname;
self.risk_entrance = body.risk_entrance;
self.d3_screnn = !body.d3_screnn;
......
......@@ -2,7 +2,7 @@ module.exports = {
/**
* @description 网站标题
*/
title: '尾矿库安全监测系统',
title: '边坡安全监测系统',
/**
* @description 是否显示 tagsView
*/
......
......@@ -6,7 +6,7 @@
<div class="b_0">
<header>
<div class="b1_a">
<h1>尾矿库数据风险预警监控平台</h1>
<h1>边坡数据风险预警监控平台</h1>
</div>
<div class="b1_b">
<a href="/dashboard">返回</a>
......@@ -50,10 +50,10 @@
</div>
</div>
<div class="b2_a2" id="b2_a2">
<div class="b2a_2a text-abs"><a class="">尾矿库风险等级</a></div>
<div class="b2a_2a text-abs"><a class="">边坡风险等级</a></div>
<div class="b2a_2b text-abs"><a class="">在线监测</a></div>
<div class="b2a_2c text-abs"><a class="">实时监测</a></div>
<div class="b2a_2d text-abs"><a class="">尾矿库安全</a></div>
<div class="b2a_2d text-abs"><a class="">边坡安全</a></div>
</div>
<div class="b2_a3 abs-flex">
<div class="flex-disf panle-seat">
......@@ -227,7 +227,7 @@ export default {
var scrollMsg = this.$el.querySelector("#scrollMsg");
var listBox = scrollMsg.firstElementChild.firstElementChild;
var risk = this.getHighAlarmLevel(body);
listBox.innerHTML = '<li><h5><i></i>尾矿库风险等级</h5><span class="level'+(risk.level)+'">'+risk.text+'</span></li>';
listBox.innerHTML = '<li><h5><i></i>边坡风险等级</h5><span class="level'+(risk.level)+'">'+risk.text+'</span></li>';
Tools.singleViewSeamlessScroll(scrollMsg);
......
......@@ -7,9 +7,9 @@
/>
<div class="b_0">
<ul>
<li><span>尾矿库名称:</span><span>{{unitInfo.tailingname}}</span></li>
<li><span>尾矿库编号:</span><span>{{unitInfo.tailingno}}</span></li>
<li><span>尾矿库地址:</span><span>{{unitInfo.address}}</span></li>
<li><span>边坡名称:</span><span>{{unitInfo.tailingname}}</span></li>
<li><span>边坡编号:</span><span>{{unitInfo.tailingno}}</span></li>
<li><span>边坡地址:</span><span>{{unitInfo.address}}</span></li>
<li><span>值班电话:</span><span>{{unitInfo.ondutytel}}</span></li>
<li><span>安全负责人姓名:</span><span>{{unitInfo.securityofficer}}</span></li>
<li><span>安全负责人电话:</span><span>{{unitInfo.securityofficertel}}</span></li>
......@@ -147,7 +147,7 @@ export default {
var index = extData.index, tagMarker = cmap.getTargetMarker();
var unitItem = self.UnitList[index];
if(tagMarker !== e.target){
// 请求切换尾矿库接口
// 请求切换边坡接口
self.pageApi.switchPond({tailingno:unitItem.tailingno}).then((res)=>{
if(res.code === 200){
// 重置中心点
......@@ -318,7 +318,7 @@ export default {
//background-image:-webkit-linear-gradient(top, #8fe9ff, #3d8aff);
background-image:-webkit-linear-gradient(top,#8affe1,#4193ff);
-webkit-background-clip:text;-webkit-text-fill-color:transparent;
content:'© ⋅ 技术支持:威海晶合数字矿山技术有限公司';
content:'© ⋅ 技术支持:山东天地寰宇信息科技有限公司';
}
img{display:none !important;}
}
......
......@@ -7,9 +7,9 @@
/>
<div class="b_0">
<ul>
<li><span>尾矿库名称:</span><span>{{unitInfo.tailingname}}</span></li>
<li><span>尾矿库编号:</span><span>{{unitInfo.tailingno}}</span></li>
<li><span>尾矿库地址:</span><span>{{unitInfo.address}}</span></li>
<li><span>边坡名称:</span><span>{{unitInfo.tailingname}}</span></li>
<li><span>边坡编号:</span><span>{{unitInfo.tailingno}}</span></li>
<li><span>边坡地址:</span><span>{{unitInfo.address}}</span></li>
<li><span>值班电话:</span><span>{{unitInfo.ondutytel}}</span></li>
<li><span>安全负责人姓名:</span><span>{{unitInfo.securityofficer}}</span></li>
<li><span>安全负责人电话:</span><span>{{unitInfo.securityofficertel}}</span></li>
......@@ -181,7 +181,7 @@ export default {
var index = extData.index, tagMarker = cmap.getTargetMarker();
var unitItem = self.UnitList[index];
if(tagMarker !== e.target){
// 请求切换尾矿库接口
// 请求切换边坡接口
self.pageApi.switchPond({tailingno:unitItem.tailingno}).then((res)=>{
if(res.code === 200){
// 重置中心点
......@@ -443,7 +443,7 @@ export default {
//background-image:-webkit-linear-gradient(top, #8fe9ff, #3d8aff);
background-image:-webkit-linear-gradient(top,#8affe1,#4193ff);
-webkit-background-clip:text;-webkit-text-fill-color:transparent;
content:'© ⋅ 技术支持:威海晶合数字矿山技术有限公司';
content:'© ⋅ 技术支持:山东天地寰宇信息科技有限公司';
}
img{display:none !important;}
}
......
......@@ -548,7 +548,7 @@ export default {
},
// 删除背景图片
deleteBg(e){
this.$confirm('确定要删除尾矿库图片吗?', '提示', {
this.$confirm('确定要删除边坡图片吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
......@@ -661,7 +661,7 @@ export default {
min-width:40%;padding:.50rem;border:1px dashed rgba(0, 0, 0, 0.1);background-color:rgba(0, 0, 0, 0.05);z-index:0;
text-align:center;cursor:pointer;color:#999;
&:before{display:block;font-size:.54rem;}
&:after{display:block;content:"上传尾矿库全景图片";margin-top:20px;line-height:22px;}
&:after{display:block;content:"上传边坡全景图片";margin-top:20px;line-height:22px;}
}
&.show{display:flex;}
}
......
......@@ -133,12 +133,12 @@
/>
</el-select>
</el-form-item>
<el-form-item style="margin-bottom: 0;" label="尾矿库" prop="ponds" v-if="form.username !== 'admin'">
<el-form-item style="margin-bottom: 0;" label="边坡" prop="ponds" v-if="form.username !== 'admin'">
<el-select
v-model="pondDatas"
style="width: 437px"
multiple
placeholder="请选择尾矿库"
placeholder="请选择边坡"
@remove-tag="deletePonds"
@change="changePonds"
>
......@@ -324,7 +324,7 @@ export default {
}
this.getRoleLevel()
this.getJobs()
// 获取尾矿库列表和权限
// 获取边坡列表和权限
this.getUserOnPonds({username:form.username}, form);
form.enabled = form.enabled.toString()
},
......@@ -488,7 +488,7 @@ export default {
}).catch(() => { })
},
// 获取尾矿库列表
// 获取边坡列表
getUserOnPonds(param, form) {
getUserOnPonds(param).then(res => {
var self = this;
......
......@@ -2,7 +2,7 @@
<div class="login" >
<div class="login-ctn">
<div class="headder">
<h2>尾矿库数据在线监测系统</h2>
<h2>边坡数据在线监测系统</h2>
<h4>ONLINE MONITORING SYSTEM FOR TAILINGS POND DATA</h4>
</div>
<div class="logo-place">
......@@ -51,7 +51,7 @@
<span v-html="$store.state.settings.footerTxt" />
<span></span>
<!-- <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a> -->
<span class="">技术支持:威海晶合数字矿山技术有限公司</span>
<span class="">技术支持:山东天地寰宇信息科技有限公司</span>
</div>
</div>
......
<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>
<!-- <h2>边坡数据在线监测系统</h2>
<h4>ONLINE MONITORING SYSTEM FOR SIDE SLOPE DATA</h4> -->
......@@ -49,7 +49,7 @@
<span v-html="$store.state.settings.footerTxt" />
<span></span>
<!-- <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a> -->
<span class="">技术支持:威海晶合数字矿山技术有限公司</span>
<span class="">技术支持:山东天地寰宇信息科技有限公司</span>
</div>
</div>
</template>
......
<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>
<!-- <h2>边坡数据在线监测系统</h2>
<h4>ONLINE MONITORING SYSTEM FOR SIDE SLOPE DATA</h4> -->
......@@ -49,7 +49,7 @@
<span v-html="$store.state.settings.footerTxt" />
<span></span>
<!-- <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a> -->
<span class="">技术支持:威海晶合数字矿山技术有限公司</span>
<span class="">技术支持:山东天地寰宇信息科技有限公司</span>
</div>
</div>
</template>
......
<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">
......@@ -47,7 +47,7 @@
<span v-html="$store.state.settings.footerTxt" />
<span></span>
<!-- <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a> -->
<span class="">技术支持:威海晶合数字矿山技术有限公司</span>
<span class="">技术支持:山东天地寰宇信息科技有限公司</span>
</div>
</div>
</template>
......
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