diff --git a/src/api/problemmodify/index.js b/src/api/problemmodify/index.js
index 372dfde..69d8768 100644
--- a/src/api/problemmodify/index.js
+++ b/src/api/problemmodify/index.js
@@ -27,7 +27,6 @@ const safetySummaryByProject=(deptId,roleType)=>{
})
}
-
//质量整改-安全分类汇总(按项目)
const qualitySummaryByProject=(deptId,roleType)=>{
return request({
@@ -36,6 +35,17 @@ const qualitySummaryByProject=(deptId,roleType)=>{
})
}
-export default{
- safetySummary,qualitySummary,safetySummaryByProject,qualitySummaryByProject
+//项目监测预警查询,用于大屏项目概况
+const getMonitAndWarning=(deptId,projectId=0)=>{
+ return request({
+ url: `bgscreen/problemmodify/getMonitAndWarning?deptId=${deptId}&projectId=${projectId}`,
+ method: 'get'
+ })
+}
+
+
+
+
+export default{
+ safetySummary,qualitySummary,safetySummaryByProject,qualitySummaryByProject,getMonitAndWarning
}
diff --git a/src/pages/components/MonitAndWarning.vue b/src/pages/components/MonitAndWarning.vue
new file mode 100644
index 0000000..8d71fcd
--- /dev/null
+++ b/src/pages/components/MonitAndWarning.vue
@@ -0,0 +1,137 @@
+
+
+
+
+
今日预警数
+
{{ todayCnt }} 个
+
+
+
本周预警数
+
{{ weekCnt}} 个
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 68df46d..11fefd7 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -187,35 +187,7 @@
-
-
-
-
-
-
-
-
-
-
+
@@ -239,13 +211,15 @@ import indexDlg1 from './index/indexDlg1'
import indexDlg2 from './index/indexDlg2'
import indexDlg3 from './index/indexDlg3'
import indexMap from './index/map.vue'
+import MonitAndWarning from './components/MonitAndWarning.vue'
export default {
name: 'App',
components: {
indexDlg1,
indexDlg2,
indexDlg3,
- indexMap
+ indexMap,
+ MonitAndWarning
},
data() {
return {
@@ -445,30 +419,7 @@ export default {
//正在发生
warningInterval: undefined,
- forIndex: 0,
-
- //预警类型
- warningType: [
- {
- name: 'AI预警',
- data: 0,
- total: 0
- }, {
- name: '安全预警',
- data: 1,
- total: 5
- }, {
- name: '质量预警',
- data: 2,
- total: 6
- }, {
- name: '环境预警',
- data: 3,
- total: 12
- },
- ],
- warningTypeInterval: undefined,
- warningTypeIndex: 0,
+ forIndex: 0,
projectCategory:[],
projectCategoryWidth:200,
deptInfo:{},
@@ -491,9 +442,10 @@ export default {
this.deptInfo=dept;
this.onClickoOverview(0)
this.qualityNavClick(0);
+
});
},
- methods: {
+ methods: {
qualityNavClick(n){
this.qualityNav=n;
if(n==0){
@@ -583,9 +535,7 @@ export default {
//重大节点预期预警
this.majorInterval = setInterval(this.timer, 5000);
//正在发生 定时器
- this.warningInterval = setInterval(this.automaticRoll, 5000);
- //预警类型 定时器
- this.warningTypeInterval = setInterval(this.automaticRollType, 5000);
+ this.warningInterval = setInterval(this.automaticRoll, 5000);
},
doPrjProcess(n, text) {
this.prjProcessNav = n;
@@ -836,21 +786,8 @@ export default {
}
},
- automaticRollType() {
- var height = window.$(".glr-login-number-max").innerHeight()
- if (window.$("#afootOverflowType").scrollTop() == height * this.warningType.length - window.$("#afootOverflowType").innerHeight()) {
- this.warningTypeIndex = 0
- } else {
- this.warningTypeIndex = this.warningTypeIndex + 1
- }
- window.$("#afootOverflowType").animate({ scrollTop: (height * this.warningTypeIndex) + 'px' })
- },
- listMinMouseoverType() {
- clearInterval(this.warningTypeInterval);
- },
- listMinMouseoutType() {
- this.warningTypeInterval = setInterval(this.automaticRollType, 5000);
- },
+
+
automaticRoll() {
var height = window.$(".afoot-con-for").innerHeight()
diff --git a/src/pages/projectDetail.vue b/src/pages/projectDetail.vue
index 41d2b75..c2b8b79 100644
--- a/src/pages/projectDetail.vue
+++ b/src/pages/projectDetail.vue
@@ -356,33 +356,7 @@
-
-
-
-
-
-
-
-
-
-
+
@@ -397,8 +371,11 @@ import '../components/module/module-one-1-2'
import '../components/background_video'
import '../components/header'
import '../components/staff-survey-chart'
-
+import MonitAndWarning from './components/MonitAndWarning.vue'
export default {
+ components:{
+ MonitAndWarning
+ },
data() {
return {
dept:null,