@ -177,8 +177,8 @@ export default {
|
||||
qualityManage: '质量管理',
|
||||
// sunRainTable: '晴雨表',
|
||||
devAlarm:'设备报警',
|
||||
rectificationQualityQuestion: '已整改安全问题',
|
||||
noRectificationQualityQuestion: '未整改安全问题',
|
||||
rectificationQualityQuestion: '已整改',
|
||||
noRectificationQualityQuestion: '未整改',
|
||||
alarmRecord: '报警列表',
|
||||
noData: '暂无数据',
|
||||
optionList:[
|
||||
|
||||
BIN
src/assets/images/dataBoard/bg.jpg
Normal file
|
After Width: | Height: | Size: 710 KiB |
BIN
src/assets/images/dataBoard/bgImg.png
Normal file
|
After Width: | Height: | Size: 998 KiB |
BIN
src/assets/images/dataBoard/dlzs.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
src/assets/images/dataBoard/hjjcs.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/images/dataBoard/hygl.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
src/assets/images/dataBoard/led_logo.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
src/assets/images/dataBoard/rygs1.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/images/dataBoard/rygs1_1.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/dataBoard/rygs2.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/images/dataBoard/rygs_botom.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
|
Before Width: | Height: | Size: 842 KiB After Width: | Height: | Size: 923 KiB |
BIN
src/assets/images/dataBoard/wisdomBuild/cim+1.png
Normal file
|
After Width: | Height: | Size: 842 KiB |
|
Before Width: | Height: | Size: 452 KiB After Width: | Height: | Size: 968 KiB |
BIN
src/assets/images/dataBoard/wisdomBuild/main1.png
Normal file
|
After Width: | Height: | Size: 452 KiB |
|
Before Width: | Height: | Size: 416 KiB After Width: | Height: | Size: 560 KiB |
BIN
src/assets/images/dataBoard/wisdomBuild/map1.jpg
Normal file
|
After Width: | Height: | Size: 416 KiB |
|
Before Width: | Height: | Size: 668 KiB After Width: | Height: | Size: 946 KiB |
BIN
src/assets/images/dataBoard/wisdomBuild/tab21.png
Normal file
|
After Width: | Height: | Size: 668 KiB |
BIN
src/assets/images/dataBoard/znsb.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
|
Before Width: | Height: | Size: 257 KiB After Width: | Height: | Size: 41 KiB |
BIN
src/assets/images/qualityManage/hygl2 (2).png
Normal file
|
After Width: | Height: | Size: 257 KiB |
|
Before Width: | Height: | Size: 694 KiB After Width: | Height: | Size: 570 KiB |
BIN
src/assets/images/qualityManage/hygl21.png
Normal file
|
After Width: | Height: | Size: 694 KiB |
BIN
src/assets/images/qualityManage/hygl3.png
Normal file
|
After Width: | Height: | Size: 988 KiB |
|
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
BIN
src/assets/images/zjbigScreen/binscreen1.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
@ -40,7 +40,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
|
||||
// axios.defaults.baseURL = 'http://124.71.178.44:100/'
|
||||
// tag: 本地
|
||||
axios.defaults.baseURL = 'http://192.168.34.125:6023/'; //本地 http/1.1
|
||||
axios.defaults.baseURL = 'http://139.9.66.234:8/'; //本地 http/1.1
|
||||
// axios.defaults.baseURL = 'http://120.196.217.6:7000/'; // 鹤洲
|
||||
// axios.defaults.baseURL = 'http://182.90.224.237:7000/'; // 广西
|
||||
// axios.defaults.baseURL = 'http://120.196.217.6:7000/' //鹤洲
|
||||
@ -73,6 +73,7 @@ else if (process.env.NODE_ENV == 'debug') {
|
||||
axios.defaults.baseURL = window.location.protocol + "//" + host + "/"
|
||||
// axios.defaults.baseURL = window.location.protocol + "//" + host.split(":")[0] + ":6023" + "/"
|
||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/';
|
||||
axios.defaults.baseURL = 'http://139.9.66.234:8/'
|
||||
// axios.defaults.baseURL = 'http://zhgd.loganwy.com/'
|
||||
}
|
||||
|
||||
|
||||
@ -1399,6 +1399,7 @@ const routes2 = [
|
||||
name: '数据看板',
|
||||
// component: resolve => require(['@/views/projectAdmin/dataBoardTwo/dataBoard.vue'], resolve),
|
||||
component: resolve => require(['@/views/projectAdmin/dataBoard/dataBoard.vue'], resolve),
|
||||
|
||||
children: [{
|
||||
path: 'index',
|
||||
name: '数据看板-首页概览',
|
||||
@ -1447,74 +1448,77 @@ const routes2 = [
|
||||
component: () => import('@/views/projectAdmin/dataBoard/AiAnalysis.vue'),
|
||||
}
|
||||
]
|
||||
// children: [{
|
||||
// path: 'index',
|
||||
// name: '数据看板-首页概览',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/index.vue'),
|
||||
// }, {
|
||||
// path: 'digitalSite',
|
||||
// name: '数据看板-数字工地',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/digitalSite'),
|
||||
// }, {
|
||||
// path: 'laborManage',
|
||||
// name: '数据看板-劳务管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/laborManage.vue'),
|
||||
// }, {
|
||||
// path: 'environment',
|
||||
// name: '数据看板-环境监测',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/environment.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'material',
|
||||
// name: '数据看板-材料管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/material.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'plan',
|
||||
// name: '数据看板-进度计划',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/plan.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'secure',
|
||||
// name: '数据看板-安全管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/secure.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'quality',
|
||||
// name: '数据看板-质量管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/quality.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'SixHundred',
|
||||
// name: '数据看板-六个百分百',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/AiAnalysisCopy.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'AiAnalysis',
|
||||
// name: '数据看板-AI数据分析',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/AiAnalysis.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'contractManage',
|
||||
// name: '数据看板-合约管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/contractManage.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'doublecManage',
|
||||
// name: '数据看板-双碳管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/doublecManage.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'bigScreen',
|
||||
// name: '数据看板-监控大屏',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/bigScreen.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'cimManage',
|
||||
// name: '数据看板-CIM+',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/cimManage.vue'),
|
||||
// }
|
||||
// ]
|
||||
|
||||
|
||||
// children: [{
|
||||
// path: 'index',
|
||||
// name: '数据看板-首页概览',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/index.vue'),
|
||||
// }, {
|
||||
// path: 'digitalSite',
|
||||
// name: '数据看板-数字工地',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/digitalSite'),
|
||||
// }, {
|
||||
// path: 'laborManage',
|
||||
// name: '数据看板-劳务管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/laborManage.vue'),
|
||||
// }, {
|
||||
// path: 'environment',
|
||||
// name: '数据看板-环境监测',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/environment.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'material',
|
||||
// name: '数据看板-材料管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/material.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'plan',
|
||||
// name: '数据看板-进度计划',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/plan.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'secure',
|
||||
// name: '数据看板-安全管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/secure.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'quality',
|
||||
// name: '数据看板-质量管理',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/quality.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'SixHundred',
|
||||
// name: '数据看板-六个百分百',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/AiAnalysisCopy.vue'),
|
||||
// },
|
||||
// {
|
||||
// path: 'AiAnalysis',
|
||||
// name: '数据看板-AI数据分析',
|
||||
// component: () => import('@/views/projectAdmin/dataBoardTwo/AiAnalysis.vue'),
|
||||
// },
|
||||
{
|
||||
path: 'contractManage',
|
||||
name: '数据看板-合约管理',
|
||||
component: () => import('@/views/projectAdmin/dataBoardTwo/contractManage.vue'),
|
||||
},
|
||||
{
|
||||
path: 'doublecManage',
|
||||
name: '数据看板-双碳管理',
|
||||
component: () => import('@/views/projectAdmin/dataBoardTwo/doublecManage.vue'),
|
||||
},
|
||||
{
|
||||
path: 'bigScreen',
|
||||
name: '数据看板-监控大屏',
|
||||
component: () => import('@/views/projectAdmin/dataBoardTwo/bigScreen.vue'),
|
||||
},
|
||||
{
|
||||
path: 'cimManage',
|
||||
name: '数据看板-CIM+',
|
||||
component: () => import('@/views/projectAdmin/dataBoardTwo/cimManage.vue'),
|
||||
}
|
||||
]
|
||||
|
||||
},
|
||||
{
|
||||
path: '/equipmentCenter/',
|
||||
|
||||
@ -1,193 +1,229 @@
|
||||
<template>
|
||||
<div class="fullHeight dataBoardPage" :class="{'dataBoardPage_blue':enabledProjectV2==3,'dataBoardPage_blue2':enabledProjectV2==4 ,'longguangBg':company=='longguang'}">
|
||||
<div class="headerBox">
|
||||
<p class="projectName">{{ $store.state.currentProDetail.projectName }}</p>
|
||||
<h1 class="title">
|
||||
<img v-if="headerLogo" style="width: auto;height: 30px;margin-right: 16px;" :src="headerLogo" />
|
||||
<span v-if="company != 'longguang'">
|
||||
<!-- 智慧工地云平台 -->
|
||||
{{$t('message.dataBoard.headerTitle')}}
|
||||
</span>
|
||||
<span v-else style="color:#fff;margin-top:15px">
|
||||
<!-- 龙光智慧工地平台 -->
|
||||
{{$t('message.dataBoard.headerTitle2')}}
|
||||
</span>
|
||||
<!-- {{ $t("message.carOverview.vehicleStatistics") }} -->
|
||||
</h1>
|
||||
<div class="headerDataBox">
|
||||
<div class="date">{{date}}</div>
|
||||
<div class="time">{{time}}</div>
|
||||
<div
|
||||
class="fullHeight dataBoardPage"
|
||||
:class="{
|
||||
dataBoardPage_blue: enabledProjectV2 == 3,
|
||||
dataBoardPage_blue2: enabledProjectV2 == 4,
|
||||
longguangBg: company == 'longguang',
|
||||
}"
|
||||
>
|
||||
<div class="headerBox">
|
||||
<img
|
||||
style="
|
||||
width: auto;
|
||||
height: 42px;
|
||||
width: auto;
|
||||
height: 42px;
|
||||
margin-left: 280px;
|
||||
margin-top: 12px;
|
||||
position: absolute;
|
||||
"
|
||||
src="@/assets/images/dataBoard/led_logo.png"
|
||||
alt=""
|
||||
/>
|
||||
<!-- <p class="projectName">{{ $store.state.currentProDetail.projectName }}</p> -->
|
||||
<h1 class="title">
|
||||
<img
|
||||
v-if="headerLogo"
|
||||
style="width: auto; height: 30px; margin-right: 16px"
|
||||
:src="headerLogo"
|
||||
/>
|
||||
|
||||
<!-- <div class="weatherBox"> -->
|
||||
<img class="weaImg" :src="weatherInfo.url" width="26" height="26" />
|
||||
<div class="tem">{{ weatherInfo.tem2 }} ~ {{ weatherInfo.tem1 }}</div>
|
||||
<div class="wea">{{ weatherInfo.wea }}</div>
|
||||
<!-- </div> -->
|
||||
<!-- <div style="text-align: center;"> -->
|
||||
<div class="win_speed">{{ weatherInfo.win_speed }}</div>
|
||||
<!-- <div>风力</div> -->
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
<span v-if="company != 'longguang'">
|
||||
<!-- 智慧工地云平台 -->
|
||||
<!-- {{ $t('message.dataBoard.headerTitle') }} -->
|
||||
<p>中建四局数字建造管控平台</p>
|
||||
<p style="font-size:24px">科创大厦项目</p>
|
||||
</span>
|
||||
<span v-else style="color: #fff; margin-top: 15px">
|
||||
<!-- 龙光智慧工地平台 -->
|
||||
{{ $t('message.dataBoard.headerTitle2') }}
|
||||
</span>
|
||||
<!-- {{ $t("message.carOverview.vehicleStatistics") }} -->
|
||||
</h1>
|
||||
<div class="headerDataBox">
|
||||
<div class="date">{{ date }}</div>
|
||||
<div class="time">{{ time }}</div>
|
||||
|
||||
<closePage></closePage>
|
||||
</div>
|
||||
<div class="leftLine" v-if="enabledProjectV2!=3"></div>
|
||||
<div class="rightLine" v-if="enabledProjectV2!=3"></div>
|
||||
<div class="bottomLine" v-if="enabledProjectV2!=3"></div>
|
||||
<div style="height: 40px" class="menuBox">
|
||||
<ul v-if="parameterUrl.COMPANY != 'longguang'" class="left">
|
||||
<li v-for="(item,index) in menuList" :key="index" :class="{'right':index > (menuList.length-1)/2,'active':$route.path==item.modulePath}" @click="menuClick(item,index)">{{item.moduleName}}</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="dataBoardContent">
|
||||
<router-view ></router-view>
|
||||
</div>
|
||||
<!-- <div class="weatherBox"> -->
|
||||
<img class="weaImg" :src="weatherInfo.url" width="26" height="26" />
|
||||
<div class="tem">{{ weatherInfo.tem2 }} ~ {{ weatherInfo.tem1 }}</div>
|
||||
<div class="wea">{{ weatherInfo.wea }}</div>
|
||||
<!-- </div> -->
|
||||
<!-- <div style="text-align: center;"> -->
|
||||
<div class="win_speed">{{ weatherInfo.win_speed }}</div>
|
||||
<!-- <div>风力</div> -->
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
|
||||
<closePage></closePage>
|
||||
</div>
|
||||
<div class="leftLine" v-if="enabledProjectV2 != 3"></div>
|
||||
<div class="rightLine" v-if="enabledProjectV2 != 3"></div>
|
||||
<div class="bottomLine" v-if="enabledProjectV2 != 3"></div>
|
||||
<div style="height: 40px" class="menuBox">
|
||||
<ul v-if="parameterUrl.COMPANY != 'longguang'" class="left">
|
||||
<li
|
||||
v-for="(item, index) in menuList"
|
||||
:key="index"
|
||||
:class="{
|
||||
right: index > (menuList.length - 1) / 2,
|
||||
active: $route.path == item.modulePath,
|
||||
}"
|
||||
@click="menuClick(item, index)"
|
||||
>
|
||||
{{ item.moduleName }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="dataBoardContent">
|
||||
<router-view></router-view>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
function GetRequest() {
|
||||
var url = decodeURI(window.location.href); //?id="123456"&Name="bicycle";
|
||||
var object = {};
|
||||
if(url.indexOf("?") != -1)//url中存在问号,也就说有参数。
|
||||
{
|
||||
var str = url.substr(url.indexOf("?")+1); //得到?后面的字符串
|
||||
var strs = str.split("&"); //将得到的参数分隔成数组[id="123456",Name="bicycle"];
|
||||
for(var i = 0; i < strs.length; i ++)
|
||||
{
|
||||
object[strs[i].split("=")[0]]=strs[i].split("=")[1]
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}//截取地址栏的参数
|
||||
function GetRequest() {
|
||||
var url = decodeURI(window.location.href); //?id="123456"&Name="bicycle";
|
||||
var object = {};
|
||||
if (url.indexOf("?") != -1)//url中存在问号,也就说有参数。
|
||||
{
|
||||
var str = url.substr(url.indexOf("?") + 1); //得到?后面的字符串
|
||||
var strs = str.split("&"); //将得到的参数分隔成数组[id="123456",Name="bicycle"];
|
||||
for (var i = 0; i < strs.length; i++) {
|
||||
object[strs[i].split("=")[0]] = strs[i].split("=")[1]
|
||||
}
|
||||
}
|
||||
return object;
|
||||
}//截取地址栏的参数
|
||||
import closePage from "@/components/closePage"
|
||||
import {
|
||||
getWeatherDataApi
|
||||
} from "@/assets/js/api/environmentManage";
|
||||
export default {
|
||||
components:{closePage},
|
||||
data(){
|
||||
return{
|
||||
menuIndex:0,
|
||||
menuList:[],
|
||||
enabledProjectV2:2,
|
||||
date:'',
|
||||
time:'',
|
||||
weatherInfo:{
|
||||
wea_img:'',
|
||||
tem1:'',tem2:'',
|
||||
wea:'',win_speed:'',url:'',
|
||||
cityName: ""
|
||||
},
|
||||
parameterUrl:'',
|
||||
headerLogo: ""
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.parameterUrl = GetRequest()
|
||||
// COMPANY: "longguang"
|
||||
this.company = COMPANY;
|
||||
console.log(GetRequest().COMPANY != 'longguang');
|
||||
},
|
||||
mounted(){
|
||||
if(localStorage.getItem('systemInfo')){
|
||||
this.headerLogo = JSON.parse(localStorage.getItem('systemInfo')).bigScreenLogo
|
||||
}
|
||||
components: { closePage },
|
||||
data() {
|
||||
return {
|
||||
menuIndex: 0,
|
||||
menuList: [],
|
||||
enabledProjectV2: 2,
|
||||
date: '',
|
||||
time: '',
|
||||
weatherInfo: {
|
||||
wea_img: '',
|
||||
tem1: '', tem2: '',
|
||||
wea: '', win_speed: '', url: '',
|
||||
cityName: ""
|
||||
},
|
||||
parameterUrl: '',
|
||||
headerLogo: ""
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.parameterUrl = GetRequest()
|
||||
// COMPANY: "longguang"
|
||||
this.company = COMPANY;
|
||||
console.log(GetRequest().COMPANY != 'longguang');
|
||||
},
|
||||
mounted() {
|
||||
if (localStorage.getItem('systemInfo')) {
|
||||
this.headerLogo = JSON.parse(localStorage.getItem('systemInfo')).bigScreenLogo
|
||||
}
|
||||
this.getTime()
|
||||
this.loadWeather()
|
||||
this.enabledProjectV2 = enabledProjectV2
|
||||
document.title = this.$store.state.currentProDetail.projectName + this.$t('message.dataBoard.dataBoard')
|
||||
this.getAllModule()
|
||||
},
|
||||
methods: {
|
||||
getTime() {
|
||||
var myDate = new Date(); //实例一个时间对象;
|
||||
this.date = myDate.getFullYear(); //获取系统的年;
|
||||
this.date += '-' + (myDate.getMonth() + 1); //获取系统月份,由于月份是从0开始计算,所以要加1
|
||||
this.date += '-' + myDate.getDate(); // 获取系统日,
|
||||
this.time = ' ' + myDate.getHours(); //获取系统时,
|
||||
this.time += ':' + myDate.getMinutes(); //分
|
||||
this.time += ':' + myDate.getSeconds(); //秒
|
||||
|
||||
setTimeout(() => {
|
||||
this.getTime()
|
||||
this.loadWeather()
|
||||
this.enabledProjectV2=enabledProjectV2
|
||||
document.title=this.$store.state.currentProDetail.projectName+this.$t('message.dataBoard.dataBoard')
|
||||
this.getAllModule()
|
||||
}, 1000);
|
||||
},
|
||||
methods:{
|
||||
getTime(){
|
||||
var myDate = new Date(); //实例一个时间对象;
|
||||
this.date=myDate.getFullYear(); //获取系统的年;
|
||||
this.date+='-'+(myDate.getMonth()+1); //获取系统月份,由于月份是从0开始计算,所以要加1
|
||||
this.date+='-'+myDate.getDate(); // 获取系统日,
|
||||
this.time=' '+myDate.getHours(); //获取系统时,
|
||||
this.time+=':'+myDate.getMinutes(); //分
|
||||
this.time+=':'+myDate.getSeconds(); //秒
|
||||
loadWeather() {
|
||||
var _this = this
|
||||
getWeatherDataApi({ cityid: this.$store.state.currentProDetail.cityCode }).then((res) => {
|
||||
var json = JSON.parse(res.result);
|
||||
console.log(json);
|
||||
this.weatherInfo = json.data[0]
|
||||
this.weatherInfo.url = require('@/assets/images/weather/' + this.weatherInfo.wea_img + '.png')
|
||||
});
|
||||
},
|
||||
getAllModule() {
|
||||
var half = this.$store.state.userInfo.menuAuthority.moduleList
|
||||
console.log(half)
|
||||
half.forEach(element => {
|
||||
console.log(element.moduleName)
|
||||
if (element.moduleType == 4) {
|
||||
console.log(element)
|
||||
this.menuList.push(element)
|
||||
}
|
||||
});
|
||||
},
|
||||
menuClick(item, index) {
|
||||
console.log('item', item)
|
||||
this.menuIndex = index;
|
||||
|
||||
setTimeout(() => {
|
||||
this.getTime()
|
||||
}, 1000);
|
||||
},
|
||||
loadWeather(){
|
||||
var _this = this
|
||||
getWeatherDataApi({cityid:this.$store.state.currentProDetail.cityCode}).then((res) => {
|
||||
var json = JSON.parse(res.result);
|
||||
console.log(json);
|
||||
this.weatherInfo = json.data[0]
|
||||
this.weatherInfo.url = require('@/assets/images/weather/'+this.weatherInfo.wea_img+'.png')
|
||||
});
|
||||
},
|
||||
getAllModule(){
|
||||
var half = this.$store.state.userInfo.menuAuthority.moduleList
|
||||
console.log(half)
|
||||
half.forEach(element => {
|
||||
console.log(element.moduleName)
|
||||
if(element.moduleType==4){
|
||||
console.log(element)
|
||||
this.menuList.push(element)
|
||||
}
|
||||
});
|
||||
},
|
||||
menuClick(item,index){
|
||||
console.log('item', item)
|
||||
this.menuIndex = index;
|
||||
if (item.modulePath.includes('http://') || item.modulePath.includes('https://')) {
|
||||
return window.open(item.modulePath)
|
||||
}
|
||||
|
||||
if (item.modulePath.includes('http://') || item.modulePath.includes('https://')) {
|
||||
return window.open(item.modulePath)
|
||||
}
|
||||
|
||||
if(item.moduleName == '智能安全帽') {
|
||||
let NodeRSA = require("node-rsa");
|
||||
//请求参数
|
||||
let params = JSON.stringify({
|
||||
// account: '妇幼保健院',
|
||||
account: this.$store.state.userInfo.account,
|
||||
page_flag: 3,
|
||||
});
|
||||
//公钥
|
||||
const pubKey = `
|
||||
if (item.moduleName == '智能安全帽') {
|
||||
let NodeRSA = require("node-rsa");
|
||||
//请求参数
|
||||
let params = JSON.stringify({
|
||||
// account: '妇幼保健院',
|
||||
account: this.$store.state.userInfo.account,
|
||||
page_flag: 3,
|
||||
});
|
||||
//公钥
|
||||
const pubKey = `
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDcmP0ug4NTHwW2oeHxheZjmYPDxVGFP770eECdLwRtaH0pPWvsXG6MSO/kCzgjEVEo1K1bvRxkkasQRu02fhI+gsZa8wvVeo3s4zJDA48Oj99JAXsx56/WN1RlNh+tsXcH9oQWy3gbX5cDkheuVZj8gsV7Ez59Ucj4e78zNJrUDwIDAQAB
|
||||
-----END PUBLIC KEY-----`;
|
||||
|
||||
var publicKey = new NodeRSA(pubKey);
|
||||
var async_key = publicKey.encrypt(params, 'base64')
|
||||
window.open("http://58.210.96.206:91/async_danzhou.html?async_key="+async_key)
|
||||
// window.location.href = "http://58.210.96.206:91/async_danzhou.html?async_key="+async_key;
|
||||
} else {
|
||||
this.$router.push(item.modulePath)
|
||||
}
|
||||
|
||||
}
|
||||
var publicKey = new NodeRSA(pubKey);
|
||||
var async_key = publicKey.encrypt(params, 'base64')
|
||||
window.open("http://58.210.96.206:91/async_danzhou.html?async_key=" + async_key)
|
||||
// window.location.href = "http://58.210.96.206:91/async_danzhou.html?async_key="+async_key;
|
||||
} else {
|
||||
this.$router.push(item.modulePath)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
@import url("./style.less");
|
||||
.headerDataBox{
|
||||
position: absolute;
|
||||
right: 100px;
|
||||
top:5px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 16px;
|
||||
// .time{
|
||||
// font-size: 22px;
|
||||
// }
|
||||
&>*{
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
.headerBox{
|
||||
.title{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
@import url('./style.less');
|
||||
.headerDataBox {
|
||||
position: absolute;
|
||||
right: 100px;
|
||||
top: 5px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 16px;
|
||||
// .time{
|
||||
// font-size: 22px;
|
||||
// }
|
||||
& > * {
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
.headerBox {
|
||||
.title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
.dataBoardPage{
|
||||
background-color: #040D15;
|
||||
// background-color: rgba(8,93,150, 1);
|
||||
background-image: url(../../../assets/images/dataBoard/bgImg.png);
|
||||
|
||||
position: relative;
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
}
|
||||
@ -88,7 +90,7 @@
|
||||
}
|
||||
}
|
||||
/deep/.blockBox{
|
||||
height: calc(33.33% - 25px);
|
||||
height: calc(33.33% - 100px);
|
||||
margin-bottom: 25px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
@ -269,7 +271,7 @@ background-image: url('../../../assets/images/dataBoard/blockBG2.png');
|
||||
|
||||
.top{
|
||||
height: 57%;
|
||||
background-image: url('../../../assets/images/dataBoard/centerTopBG.png');;
|
||||
// background-image: url('../../../assets/images/dataBoard/centerTopBG.png');
|
||||
background-size: 100% 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
@ -279,7 +281,7 @@ background-image: url('../../../assets/images/dataBoard/blockBG2.png');
|
||||
.bottom{
|
||||
margin: 10px 20px;
|
||||
height: calc(43% - 20px);
|
||||
background-image: url('../../../assets/images/dataBoard/centerBottomBG.png');
|
||||
// background-image: url('../../../assets/images/dataBoard/centerBottomBG.png');
|
||||
background-size: 100% 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
@ -372,10 +374,12 @@ background-image: url('../../../assets/images/dataBoard/blockBG2.png');
|
||||
.bottomInner{
|
||||
width: calc(100% - 60px);
|
||||
margin: 0 30px;
|
||||
margin-top: 130px;
|
||||
}
|
||||
.timeBox{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
// justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.timeInner{
|
||||
@ -581,6 +585,7 @@ background-image: url('../../../assets/images/dataBoard/blockBG2.png');
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
margin-top: 130px;
|
||||
}
|
||||
.top{
|
||||
height: 60%;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="imgbox">
|
||||
<img class="img" src="../../../assets/images/qualityManage/hygl.png" alt="">
|
||||
<img class="img" src="../../../assets/images/qualityManage/hygl3.png" alt="">
|
||||
|
||||
</div>
|
||||
<div class="imgbox" style="margin-top: 30px;">
|
||||
<!-- <div class="imgbox" style="margin-top: 30px;">
|
||||
<img src="../../../assets/images/qualityManage/hygl2.png" alt="">
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
1867
src/views/projectAdmin/dataBoardTwo/index copy.vue
Normal file
@ -88,7 +88,8 @@
|
||||
}
|
||||
}
|
||||
/deep/.blockBox{
|
||||
height: calc(33.33% - 25px);
|
||||
// height: calc(33.33% - 25px);
|
||||
height: calc(33.33% -100px);
|
||||
margin-bottom: 25px;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
@ -269,7 +270,7 @@ background-image: url('../../../assets/images/dataBoard/blockBG2.png');
|
||||
|
||||
.top{
|
||||
height: 57%;
|
||||
background-image: url('../../../assets/images/dataBoardTwo/top.png');;
|
||||
// background-image: url('../../../assets/images/dataBoardTwo/top.png');
|
||||
background-size: 100% 100%;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
@ -372,10 +373,11 @@ background-image: url('../../../assets/images/dataBoard/blockBG2.png');
|
||||
.bottomInner{
|
||||
width: calc(100% - 60px);
|
||||
margin: 0 30px;
|
||||
margin-top: 130px;
|
||||
}
|
||||
.timeBox{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.timeInner{
|
||||
@ -581,6 +583,7 @@ background-image: url('../../../assets/images/dataBoard/blockBG2.png');
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
.top{
|
||||
height: 60%;
|
||||
|
||||