From b371d510948807cbb4e2308cd9c9450d7ebf0d5a Mon Sep 17 00:00:00 2001 From: limingyu Date: Mon, 5 Feb 2024 16:09:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AB=AF=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E7=8E=AF=E4=BF=9D=E6=A3=80=E6=9F=A5=E7=A1=AE=E8=AE=A4=E6=97=B6?= =?UTF-8?q?=E9=80=80=E5=87=BA=E9=AA=8C=E8=AF=81=E5=B7=B2=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E3=80=81=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E9=80=80=E5=87=BA=E9=AA=8C=E8=AF=81=E4=B9=9F=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../information/info/components/corpEdit.vue | 33 +- .../confirmationperson/components/detail.vue | 6 +- .../inspection/components/add.vue | 11 +- .../inspection/components/edit.vue | 11 +- .../inspection/components/list.vue | 2 +- static/bi/index.html | 561 ++++++++---------- 6 files changed, 282 insertions(+), 342 deletions(-) diff --git a/src/views/corpInfo/information/info/components/corpEdit.vue b/src/views/corpInfo/information/info/components/corpEdit.vue index 7f87fc6..5a77c38 100644 --- a/src/views/corpInfo/information/info/components/corpEdit.vue +++ b/src/views/corpInfo/information/info/components/corpEdit.vue @@ -206,17 +206,17 @@ - - - - - - - - - - - + + + + + + + +
@@ -258,7 +258,7 @@
- + {{ form.FFILE.name }} @@ -1077,14 +1077,7 @@ export default { // map.addOverlay(marker) // 将标注添加到地图中 }, goBack() { - this.$confirm('确定要退出吗?', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.$parent.activeName = 'corpView' - }).catch(() => { - }) + this.$parent.activeName = 'corpView' }, handleChangeIMGFour(file, fileList) { const types = ['image/jpeg', 'image/jpg', 'image/png'] diff --git a/src/views/hidden/major/confirmationperson/components/detail.vue b/src/views/hidden/major/confirmationperson/components/detail.vue index 6257b4b..714d758 100644 --- a/src/views/hidden/major/confirmationperson/components/detail.vue +++ b/src/views/hidden/major/confirmationperson/components/detail.vue @@ -142,7 +142,7 @@ - + 整改期限 @@ -150,7 +150,7 @@ - + 整改负责人 @@ -175,7 +175,7 @@ 隐患确认人 {{ pd.conUserName }} - + 隐患确认时间 diff --git a/src/views/safetyenvironmental/inspection/components/add.vue b/src/views/safetyenvironmental/inspection/components/add.vue index 93ee2ed..37b6a8e 100644 --- a/src/views/safetyenvironmental/inspection/components/add.vue +++ b/src/views/safetyenvironmental/inspection/components/add.vue @@ -957,15 +957,8 @@ export default { }, goBack() { - this.$confirm('确定要退出吗', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.$parent.INSPECTION_ID = '' - this.$parent.activeName = 'List' - }).catch(() => { - }) + this.$parent.INSPECTION_ID = '' + this.$parent.activeName = 'List' }, // 获取整改人列表 getUserList(DEPARTMENT_ID) { diff --git a/src/views/safetyenvironmental/inspection/components/edit.vue b/src/views/safetyenvironmental/inspection/components/edit.vue index f09e271..c229158 100644 --- a/src/views/safetyenvironmental/inspection/components/edit.vue +++ b/src/views/safetyenvironmental/inspection/components/edit.vue @@ -964,15 +964,8 @@ export default { }, goBack() { - this.$confirm(('确定要退出吗?'), { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.$parent.INSPECTION_ID = '' - this.$parent.activeName = 'List' - }).catch(() => { - }) + this.$parent.INSPECTION_ID = '' + this.$parent.activeName = 'List' }, // 获取整改人列表 getUserList(DEPARTMENT_ID) { diff --git a/src/views/safetyenvironmental/inspection/components/list.vue b/src/views/safetyenvironmental/inspection/components/list.vue index 652549d..7d38400 100644 --- a/src/views/safetyenvironmental/inspection/components/list.vue +++ b/src/views/safetyenvironmental/inspection/components/list.vue @@ -149,7 +149,7 @@ 查看 流程图 - - @@ -142,39 +140,32 @@ 本年隐患 - -
-
- 待处理 -
-
- {{hdCount.yearUncheck}} -
+
+
+ 待处理
- - -
-
- 已处理 -
-
- {{hdCount.yearChecked}} -
+
+ {{hdCount.yearUncheck}}
- - - -
-
- 隐患整改率 -
-
+
+
+
+ 已处理 +
+
+ {{hdCount.yearChecked}} +
+
+
+
+ 隐患整改率 +
+
{{hdCount.yearTotal==0?0:((hdCount.yearChecked/hdCount.yearTotal*100).toFixed(2))}} - % -
+ %
- +
@@ -185,38 +176,32 @@ 本季隐患
- -
-
- 待处理 -
-
- {{hdCount.quarterUncheck}} -
+
+
+ 待处理
- - -
-
- 已处理 -
-
- {{hdCount.quarterChecked}} -
+
+ {{hdCount.quarterUncheck}}
- - -
-
- 隐患整改率 -
-
- {{hdCount.quarterTotal==0?0:((hdCount.quarterChecked/hdCount.quarterTotal*100).toFixed(2))}} - % -
+
+
+
+ 已处理
- +
+ {{hdCount.quarterChecked}} +
+
+
+
+ 隐患整改率 +
+
+ {{hdCount.quarterTotal==0?0:((hdCount.quarterChecked/hdCount.quarterTotal*100).toFixed(2))}} + % +
+
@@ -227,38 +212,32 @@ 本月隐患
- -
-
- 待处理 -
-
- {{hdCount.monthUncheck}} -
+
+
+ 待处理
- - -
-
- 已处理 -
-
- {{hdCount.monthChecked}} -
+
+ {{hdCount.monthUncheck}}
- - -
-
- 隐患整改率 -
-
- {{hdCount.monthTotal==0?0:((hdCount.monthChecked/hdCount.monthTotal*100).toFixed(2))}} - % -
+
+
+
+ 已处理
- +
+ {{hdCount.monthChecked}} +
+
+
+
+ 隐患整改率 +
+
+ {{hdCount.monthTotal==0?0:((hdCount.monthChecked/hdCount.monthTotal*100).toFixed(2))}} + % +
+
@@ -271,38 +250,32 @@ 本旬隐患
- -
-
- 待处理 -
-
- {{hdCount.xunUncheck}} -
+
+
+ 待处理
- - -
-
- 已处理 -
-
- {{hdCount.xunChecked}} -
+
+ {{hdCount.xunUncheck}}
- - -
-
- 隐患整改率 -
-
- {{hdCount.xunTotal==0?0:((hdCount.xunChecked/hdCount.xunTotal*100).toFixed(2))}} - % -
+
+
+
+ 已处理
- +
+ {{hdCount.xunChecked}} +
+
+
+
+ 隐患整改率 +
+
+ {{hdCount.xunTotal==0?0:((hdCount.xunChecked/hdCount.xunTotal*100).toFixed(2))}} + % +
+
@@ -313,38 +286,32 @@ 本周隐患
- -
-
- 待处理 -
-
- {{hdCount.weekUncheck}} -
+
+
+ 待处理
- - -
-
- 已处理 -
-
- {{hdCount.weekChecked}} -
+
+ {{hdCount.weekUncheck}}
- - -
-
- 隐患整改率 -
-
- {{hdCount.weekTotal==0?0:((hdCount.weekChecked/hdCount.weekTotal*100).toFixed(2))}} - % -
+
+
+
+ 已处理
- +
+ {{hdCount.weekChecked}} +
+
+
+
+ 隐患整改率 +
+
+ {{hdCount.weekTotal==0?0:((hdCount.weekChecked/hdCount.weekTotal*100).toFixed(2))}} + % +
+
@@ -355,38 +322,32 @@ 本日隐患
- -
-
- 待处理 -
-
- {{hdCount.dayUncheck}} -
+
+
+ 待处理
- - -
-
- 已处理 -
-
- {{hdCount.dayChecked}} -
+
+ {{hdCount.dayUncheck}}
- - -
-
- 隐患整改率 -
-
- {{hdCount.dayTotal==0?0:((hdCount.dayChecked/hdCount.dayTotal*100).toFixed(2))}} - % -
+
+
+
+ 已处理
- +
+ {{hdCount.dayChecked}} +
+
+
+
+ 隐患整改率 +
+
+ {{hdCount.dayTotal==0?0:((hdCount.dayChecked/hdCount.dayTotal*100).toFixed(2))}} + % +
+
@@ -1860,135 +1821,135 @@ var vm = new Vue({ }, 2000) }) // 周检查 - // $.ajax({ - // xhrFields: { - // withCredentials: true - // }, - // type: 'POST', - // url: config.httpurl + 'checkrecord/goBiListCount', - // data: { - // COUNTTYPE: 'week', - // tm: new Date().getTime() - // }, - // dataType: 'json', - // success: function(data) { - // if (data.result == 'success') { - // _this.listCountWeek = data.all - // vm.$forceUpdate() // 强制刷新 - // } else if (data.result == 'exception') { - // showException('系统首页', '数据异常') // 显示异常 - // } - // } - // }).done().fail(function() { - // swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') - // setTimeout(function() { - // window.location.href = config.weburl + '#/login' - // }, 2000) - // }) + $.ajax({ + xhrFields: { + withCredentials: true + }, + type: 'POST', + url: config.httpurl + 'checkrecord/goBiListCount', + data: { + COUNTTYPE: 'week', + tm: new Date().getTime() + }, + dataType: 'json', + success: function(data) { + if (data.result == 'success') { + _this.listCountWeek = data.all + vm.$forceUpdate() // 强制刷新 + } else if (data.result == 'exception') { + showException('系统首页', '数据异常') // 显示异常 + } + } + }).done().fail(function() { + swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') + setTimeout(function() { + window.location.href = config.weburl + '#/login' + }, 2000) + }) // 旬检查 - // $.ajax({ - // xhrFields: { - // withCredentials: true - // }, - // type: 'POST', - // url: config.httpurl + 'checkrecord/goBiListCount', - // data: { - // COUNTTYPE: 'xun', - // tm: new Date().getTime() - // }, - // dataType: 'json', - // success: function(data) { - // if (data.result == 'success') { - // _this.listCountXun = data.all - // vm.$forceUpdate() // 强制刷新 - // } else if (data.result == 'exception') { - // showException('系统首页', '数据异常') // 显示异常 - // } - // } - // }).done().fail(function() { - // swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') - // setTimeout(function() { - // window.location.href = config.weburl + '#/login' - // }, 2000) - // }) + $.ajax({ + xhrFields: { + withCredentials: true + }, + type: 'POST', + url: config.httpurl + 'checkrecord/goBiListCount', + data: { + COUNTTYPE: 'xun', + tm: new Date().getTime() + }, + dataType: 'json', + success: function(data) { + if (data.result == 'success') { + _this.listCountXun = data.all + vm.$forceUpdate() // 强制刷新 + } else if (data.result == 'exception') { + showException('系统首页', '数据异常') // 显示异常 + } + } + }).done().fail(function() { + swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') + setTimeout(function() { + window.location.href = config.weburl + '#/login' + }, 2000) + }) // 月检查 - // $.ajax({ - // xhrFields: { - // withCredentials: true - // }, - // type: 'POST', - // url: config.httpurl + 'checkrecord/goBiListCount', - // data: { - // COUNTTYPE: 'month', - // tm: new Date().getTime() - // }, - // dataType: 'json', - // success: function(data) { - // if (data.result == 'success') { - // _this.listCountMonth = data.all - // vm.$forceUpdate() // 强制刷新 - // } else if (data.result == 'exception') { - // showException('系统首页', '数据异常') // 显示异常 - // } - // } - // }).done().fail(function() { - // swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') - // setTimeout(function() { - // window.location.href = config.weburl + '#/login' - // }, 2000) - // }) + $.ajax({ + xhrFields: { + withCredentials: true + }, + type: 'POST', + url: config.httpurl + 'checkrecord/goBiListCount', + data: { + COUNTTYPE: 'month', + tm: new Date().getTime() + }, + dataType: 'json', + success: function(data) { + if (data.result == 'success') { + _this.listCountMonth = data.all + vm.$forceUpdate() // 强制刷新 + } else if (data.result == 'exception') { + showException('系统首页', '数据异常') // 显示异常 + } + } + }).done().fail(function() { + swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') + setTimeout(function() { + window.location.href = config.weburl + '#/login' + }, 2000) + }) // 季检查 - // $.ajax({ - // xhrFields: { - // withCredentials: true - // }, - // type: 'POST', - // url: config.httpurl + 'checkrecord/goBiListCount', - // data: { - // COUNTTYPE: 'quarter', - // tm: new Date().getTime() - // }, - // dataType: 'json', - // success: function(data) { - // if (data.result == 'success') { - // _this.listCountQuarter = data.all - // vm.$forceUpdate() // 强制刷新 - // } else if (data.result == 'exception') { - // showException('系统首页', '数据异常') // 显示异常 - // } - // } - // }).done().fail(function() { - // swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') - // setTimeout(function() { - // window.location.href = config.weburl + '#/login' - // }, 2000) - // }) + $.ajax({ + xhrFields: { + withCredentials: true + }, + type: 'POST', + url: config.httpurl + 'checkrecord/goBiListCount', + data: { + COUNTTYPE: 'quarter', + tm: new Date().getTime() + }, + dataType: 'json', + success: function(data) { + if (data.result == 'success') { + _this.listCountQuarter = data.all + vm.$forceUpdate() // 强制刷新 + } else if (data.result == 'exception') { + showException('系统首页', '数据异常') // 显示异常 + } + } + }).done().fail(function() { + swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') + setTimeout(function() { + window.location.href = config.weburl + '#/login' + }, 2000) + }) // 年检查 - // $.ajax({ - // xhrFields: { - // withCredentials: true - // }, - // type: 'POST', - // url: config.httpurl + 'checkrecord/goBiListCount', - // data: { - // COUNTTYPE: 'year', - // tm: new Date().getTime() - // }, - // dataType: 'json', - // success: function(data) { - // if (data.result == 'success') { - // _this.listCountYear = data.all - // vm.$forceUpdate() // 强制刷新 - // } else if (data.result == 'exception') { - // showException('系统首页', '数据异常') // 显示异常 - // } - // } - // }).done().fail(function() { - // swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') - // setTimeout(function() { - // window.location.href = config.weburl + '#/login' - // }, 2000) - // }) + $.ajax({ + xhrFields: { + withCredentials: true + }, + type: 'POST', + url: config.httpurl + 'checkrecord/goBiListCount', + data: { + COUNTTYPE: 'year', + tm: new Date().getTime() + }, + dataType: 'json', + success: function(data) { + if (data.result == 'success') { + _this.listCountYear = data.all + vm.$forceUpdate() // 强制刷新 + } else if (data.result == 'exception') { + showException('系统首页', '数据异常') // 显示异常 + } + } + }).done().fail(function() { + swal('登录失效!', '请求服务器无响应,稍后再试', 'warning') + setTimeout(function() { + window.location.href = config.weburl + '#/login' + }, 2000) + }) }, // 退出系统