diff --git a/src/components/process-control-new.js b/src/components/process-control-new.js new file mode 100644 index 0000000..86255c5 --- /dev/null +++ b/src/components/process-control-new.js @@ -0,0 +1,199 @@ +Vue.component("process-control-new", { + template: ` +
+
+
+ +
{{'0'+(i+1)}}
+
+
+ {{item.label}} +
+
+
{{item.left_title}}:{{item.left_data}}{{item.left_unit}}
+
{{item.right_title}}:{{item.right_data}}{{item.right_unit}}
+
+
+
+
+
+ `, + props: { + active: { + type: Number + } + }, + data() { + return { + chooseProcessControlMenu: 0, + processControlData:[ + { + number:1, + label:'取样送检', + left_title:'取样数', + left_data:0, + left_unit:'次', + right_title:'报告返回率', + right_data:0, + right_unit:'%', + url: "/weixin/screen/toQualityQYSJ" + }, + { + number:2, + label:'标养室监测', + left_title:'当前温度', + left_data:0, + left_unit:'℃', + right_title:'当前湿度', + right_data:0, + right_unit:'%RH', + url: "/weixin/screen/toQualityBYSJC" + }, + { + number:3, + label:'混凝土强度监测', + left_title:'成熟度', + left_data:0, + left_unit:'°C*小时', + right_title:'当前温度', + right_data:0, + right_unit:'℃', + url: "/weixin/screen/toQualityHNTJC" + }, +/* { + number:4, + label:'过程验收', + left_title:'验收次数', + left_data:0, + left_unit:'次', + right_title:'合格率', + right_data:0, + right_unit:'%', + url: "/weixin/screen/toQualityGCYS" + },*/ + { + number:5, + label:'举牌验收', + left_title:'验收次数', + left_data:0, + left_unit:'次', + right_title:'合格率', + right_data:0, + right_unit:'%', + url: "/weixin/screen/toQualityJPYS" + }, + { + number:6, + label:'实测实量', + left_title:'验收次数', + left_data:0, + left_unit:'次', + right_title:'合格率', + right_data:0, + right_unit:'%', + }, + ] + } + }, + mounted() { + //this.getData() + //this.chooseProcessControlMenu = localStorage.getItem("chooseProcessControlMenu") + this.chooseProcessControlMenu="0" + this.processControlData=JSON.parse('[{"number":1,"label":"取样送检","left_title":"取样数","left_data":595,"left_unit":"次","right_title":"报告返回率","right_data":"100.00","right_unit":"%","url":"/weixin/screen/toQualityQYSJ"},{"number":2,"label":"标养室监测","left_title":"当前温度","left_data":19.1,"left_unit":"℃","right_title":"当前湿度","right_data":"98.50","right_unit":"%RH","url":"/weixin/screen/toQualityBYSJC"},{"number":3,"label":"混凝土强度监测","left_title":"成熟度","left_data":"39840.0","left_unit":"°C*小时","right_title":"当前温度","right_data":"22.40","right_unit":"℃","url":"/weixin/screen/toQualityHNTJC"},{"number":5,"label":"举牌验收","left_title":"验收次数","left_data":306,"left_unit":"次","right_title":"合格率","right_data":"100.00","right_unit":"%","url":"/weixin/screen/toQualityJPYS"},{"number":6,"label":"实测实量","left_title":"验收次数","left_data":0,"left_unit":"次","right_title":"合格率","right_data":0,"right_unit":"%"}]'); + }, + methods: { + getData(){ + axios.post("/api/getProcessControlCount",{ + dept_id:JSON.parse(localStorage.getItem("data")).dept_id , + project_id: JSON.parse(localStorage.getItem("data")).id + }).then(res => { + let data = res.data.data + this.processControlData = [ + { + number:1, + label:'取样送检', + left_title:'取样数', + left_data:data.samplingCount ? data.samplingCount.left_data : 0, + left_unit:'次', + right_title:'报告返回率', + right_data:data.samplingCount ? (data.samplingCount.right_data * 100 ).toFixed(2) : 0, + right_unit:'%', + url: "/weixin/screen/toQualityQYSJ" + }, + { + number:2, + label:'标养室监测', + left_title:'当前温度', + left_data:data.markingRoomCount ? data.markingRoomCount.left_data : 0, + left_unit:'℃', + right_title:'当前湿度', + right_data:data.markingRoomCount ?Number( data.markingRoomCount.right_data).toFixed(2) : 0, + right_unit:'%RH', + url: "/weixin/screen/toQualityBYSJC" + }, + { + number:3, + label:'混凝土强度监测', + left_title:'成熟度', + left_data:data.concreteCount ? data.concreteCount.left_data : 0, + left_unit:'°C*小时', + right_title:'当前温度', + right_data:data.concreteCount ? Number(data.concreteCount.right_data).toFixed(2) : 0, + right_unit:'℃', + url: "/weixin/screen/toQualityHNTJC" + }, + /* { + number:4, + label:'过程验收', + left_title:'验收次数', + left_data:data.courseReceivingCount ? data.courseReceivingCount.left_data : 0, + left_unit:'次', + right_title:'合格率', + right_data:data.courseReceivingCount ? data.courseReceivingCount.right_data.toFixed(2) : 0, + right_unit:'%', + url: "/weixin/screen/toQualityGCYS" + },*/ + { + number:5, + label:'举牌验收', + left_title:'验收次数', + left_data:data.raisingCount ? data.raisingCount.left_data : 0, + left_unit:'次', + right_title:'合格率', + right_data:data.raisingCount ? (data.raisingCount.right_data * 100).toFixed(2) : 0, + right_unit:'%', + url: "/weixin/screen/toQualityJPYS" + }, + { + number:6, + label:'实测实量', + left_title:'验收次数', + left_data:data.measuredQuantityCount ? data.measuredQuantityCount.left_data : 0, + left_unit:'次', + right_title:'合格率', + right_data:data.measuredQuantityCount ? data.measuredQuantityCount.right_data.toFixed(2) : 0, + right_unit:'%', + }, + ] + }) + }, + onProcessControl(n, top ,url) { + return; + if (url) { + localStorage.setItem("chooseProcessControlMenu", n) + let chooseMenu = { + mainMenu:4, + itemMenu:top, + } + localStorage.setItem("chooseMenu",JSON.stringify(chooseMenu)); + // 跳转页面 + location.href = url + } + } + }, + watch: {}, + +}) diff --git a/src/components/quality-objectives.js b/src/components/quality-objectives.js index ebbae80..888c790 100644 --- a/src/components/quality-objectives.js +++ b/src/components/quality-objectives.js @@ -24,11 +24,16 @@ Vue.component("quality-objectives", { return { //质量目标 qualityTargetData:[ - // { - // title:'创优目标', - // text:'获得陕西省“双优”工地,创AAA级国家安全文明标准化工地', - // images:'/images/quality_target_1.png', - // } + { + title:'创优目标', + text:'获得陕西省“双优”工地,创AAA级国家安全文明标准化工地', + images:'images/quality_target_2.png', + }, + { + title:'质量管理目标', + text:'确保"西安市建筑工程雁塔杯"奖,力争"长安杯"奖。', + images:'images/quality_target_1.png', + } ], } }, @@ -36,10 +41,11 @@ Vue.component("quality-objectives", { let that = this let url1 = "http://127.0.0.1:9004/system/qualityTarget/list1" let url2 = "https://szh.makalu.cc/system/qualityTarget/list1" - $.post(url2,{},res => { - that.qualityTargetData = res[JSON.parse(localStorage.getItem("data1")).id] + //$.post(url2,{},res => { + //that.qualityTargetData = res[JSON.parse(localStorage.getItem("data1")).id] //console.log(that.qualityTargetData[JSON.parse(localStorage.getItem("data1")).id]); - }) + //}) + //that.qualityTargetData=JSON.parse('[{"searchValue":null,"createBy":null,"createTime":"2023-07-22 17:58:28","updateBy":null,"updateTime":"2023-07-22 17:58:28","remark":null,"params":{},"id":7,"projectId":"","title":"质量管理目标","text":"确保"西安市建筑工程雁塔杯"奖,力争"长安杯"奖。","images":"https://szh.makalu.cc/images/quality_target_2.png","delFlag":"0","updateUserId":"297","createUserId":"297","projectName":null,"deptId":null,"projectList":null}]'); }, methods: { diff --git a/src/components/screen-select.js b/src/components/screen-select.js index 00b80eb..3455cab 100644 --- a/src/components/screen-select.js +++ b/src/components/screen-select.js @@ -1,8 +1,13 @@ -import Vue from 'vue' +/** + * 顶部header + */ Vue.component("screen-select", { template: `
-
+
+ +
+
@@ -16,8 +21,12 @@ Vue.component("screen-select", { data:{ type:Array }, - val:{ - type:[String,Number,Object] + def:{ + type:Object + }, + type:{ + type:Number, + default:0 } }, data() { @@ -27,7 +36,9 @@ Vue.component("screen-select", { } }, mounted(){ - + if(this.def){ + this.value = this.def.text + } }, methods: { clickSelectInput(){ @@ -43,10 +54,8 @@ Vue.component("screen-select", { } }, watch:{ - val:{ - hander(){ - this.value=this.val||''; - }, + def:function (n,o) { + this.value = n.text } } diff --git a/src/pages/quality/concreteStrength.vue b/src/pages/quality/concreteStrength.vue index 5c87c24..2d7e3e6 100644 --- a/src/pages/quality/concreteStrength.vue +++ b/src/pages/quality/concreteStrength.vue @@ -2,36 +2,262 @@
- - + + + + + + - - - + + + +
+
+ +
+
+
外置温度
+

{{ lastRunData.tempOut == undefined ? 0 : lastRunData.tempOut }}

+
+
+
+ +
+
+ +
+
+
内置温度
+

{{ lastRunData.tempIn == undefined ? 0 : lastRunData.tempIn }}

+
+
+
+ +
+
+ +
+
+
强度
+

{{ lastRunData.strong == undefined ? 0 : lastRunData.strong }} MPa

+
+
+
+ +
+
+ +
+
+
成熟度
+

{{ lastRunData.cooked == undefined ? 0 : lastRunData.cooked }}°C*小时

+
+
+
+
+
+ + + + + + + + +
+ +
+
+
+
当前设备
+
混凝土强度监测
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
设备名称: +
+
+ +
+
+ + + + + +
+ {{ lastChooseDevice.deviceStatus == 1 ? '离线' : '在线' }}
+
+
+
名称: +
混凝土监控设备-{{ lastChooseDevice.deviceId }}
+
安装位置:{{ lastChooseDevice.address }}
设备状态: +
+ {{ lastChooseDevice.deviceStatus == 1 ? '离线' : '在线' }}
+
设备编码:{{ lastChooseDevice.deviceId }}
更新时间:{{ lastChooseDevice.deviceUpdateTime }}
+
+
+
+
+
正在发生
+
+
+
+
+
{{ item.type }}
+
+
+ +
+
+
{{ item.content }} (正常范围:{{ item.threshold }})
+
{{ item.time }}
+
+
+
预警差值:{{ item.chaValue + }}
+
恢复时间:{{ item.recoveryTime }}
+
+
+
+ +
暂无数据
+
+
+
+
-
diff --git a/src/pages/quality/standardCuringRoom.vue b/src/pages/quality/standardCuringRoom.vue index 8461c14..413e007 100644 --- a/src/pages/quality/standardCuringRoom.vue +++ b/src/pages/quality/standardCuringRoom.vue @@ -2,40 +2,253 @@
- - + + + + + + + + +
+
+ +
+
+
当前温度
+

{{ lastRunData.temperature }}

+
+
+
+ +
+
+ +
+
+
标准温度
+

18-22

+
+
+
+ +
+
+ +
+
+
当前湿度
+

{{ lastRunData.humidity }} %RH

+
+
+
+ +
+
+ +
+
+
标准湿度
+

95%RH以上

+
+
+
+
+
+
+
近7天
+
近30天
+
+ +
- + +
+
近7天
+
近30天
+
+
+
+
+
+
当前设备
+
标养室监测
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
设备名称: +
+
+ +
+
+
在线
+
离线
+
+
+
名称: +
{{ lastChooseDevice.name }}
+
安装位置:
设备状态: +
无警告/在线
+
设备编码:{{ lastChooseDevice.deviceId }}
更新时间:{{ lastChooseDevice.create_time }}
+
+
+
+
+
正在发生
+
+
+
+
+
{{ item.type }}
+
+
+ +
+
+
{{ item.content }} (正常范围:{{ item.threshold }})
+
{{ item.time }}
+
+
+
预警差值:{{ item.chaValue}}
+
+
+
+ +
暂无数据
+
+
+
+
diff --git a/src/pages/safe/excavation.vue b/src/pages/safe/excavation.vue index 787ffb2..158c3b7 100644 --- a/src/pages/safe/excavation.vue +++ b/src/pages/safe/excavation.vue @@ -180,7 +180,7 @@
{{ + class="title-item" @click="selPoint = it">{{ it.name }}
@@ -270,7 +270,10 @@ - + +
+ +
@@ -283,11 +286,11 @@ import '@/components/module/module-one-1-2' import '@/components/module/module-one-2-1' import '@/components/classify-bar' import '@/components/trend-line-chart' - +import enginChart from '../engin/enginChart.vue' export default { //基坑 name: 'JhbigscreenExcavation', - + components: { enginChart }, data() { return { selPoint: {}, @@ -312,7 +315,7 @@ export default { btnNav: 1, CollWeiyiPointData: {}, CollWeiyiPointDataData: [], - + CollQingxiePointDataX: {}, CollQingxiePointDataXdData: [], @@ -349,11 +352,60 @@ export default { ratD: '0.23', ratM: 12, ratS: 'D' } }); - this.selPoint = this.pointData[0]; + this.selPoint = this.pointData[0]; this.init(); + this.initChart(); }, methods: { + initChart() { + + let opt2 = { + grid: { + left: 30, + right: 30, + top: 40, + bottom: 60 + }, + tooltip: { + trigger: 'axis', + axisPointer: { + type: 'shadow' + } + }, + color: ['#409eff'], + xAxis: { + type: 'category', + data: ["地表沉降","深层水平位移","立柱水平位移","临近道路路基沉降","边坡顶部水平位移","支撑轴力","围护桩顶部竖向位移","围护桩顶部水平位移"], + axisLabel: { + color: "#fff", + fontSize: 10, + interval: 0, rotate: 30 + } + }, + yAxis: { + type: 'value', + axisLabel: { + show: true, + color: "#fff" + } + }, + series: [ + { + + label: { + show: true, + color: '#82c9ff', + position: 'top', + }, + data: [100,120,240,100,120,130,140,100,190], + type: 'bar' + + } + ] + }; + this.$refs.chart1.init(opt2); + }, init() { this.warningTypeInterval = setInterval(this.automaticRollType, 5000); }, @@ -564,28 +616,34 @@ export default { .mon-point-title { color: #51b5ff; } - .mon-point-row{ + + .mon-point-row { line-height: 60px; - font-size:12px; - .sp-data{ + font-size: 12px; + + .sp-data { display: inline-block; - width:105px; + width: 105px; } - .sp-lbl{ + + .sp-lbl { display: inline-block; - width:110px; + width: 110px; } - .mon-arr{ - font-size:16px; + + .mon-arr { + font-size: 16px; font-weight: bold; - &.mon-arr-A{ - color:red; + + &.mon-arr-A { + color: red; } - &.mon-arr-D{ - color:green; + + &.mon-arr-D { + color: green; } } } - } + } }