From 89915ce805ca72bc3afcf6ee538edad607fbe8e0 Mon Sep 17 00:00:00 2001 From: limingyu Date: Wed, 31 Jan 2024 10:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug12702=E3=80=8113770?= =?UTF-8?q?=E3=80=8113714=E3=80=8113580=E3=80=8112922=E3=80=8112994?= =?UTF-8?q?=E3=80=8113119=E3=80=8113407?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../information/info/components/corpEdit.vue | 30 +- .../firefighting/device/components/list.vue | 33 ++ .../blindboard/blindboard/components/list.vue | 4 +- .../blindboard/pigeonhole/components/list.vue | 4 +- .../breakground/components/list.vue | 4 +- .../pigeonhole/components/list.vue | 4 +- .../confinedspace/components/list.vue | 4 +- .../pigeonhole/components/list.vue | 4 +- .../electricity/components/list.vue | 4 +- .../pigeonhole/components/list.vue | 4 +- .../confirmationperson/components/detail.vue | 9 +- src/views/hiddenApi/publicMethod/list.vue | 11 +- .../hidden/components/record-list.vue | 30 +- .../outsourced/components/edit.vue | 50 ++ src/views/map/dialog/outSourceInfo.vue | 4 + src/views/risk/riskunit/components/list.vue | 14 +- .../inspection/components/add.vue | 11 +- .../inspection/components/edit.vue | 11 +- .../inspection/components/list.vue | 2 +- .../specialType/corpFgs/components/list.vue | 2 +- src/views/xgf/flow/components/list.vue | 2 +- src/views/xgf/flowApply/components/list.vue | 2 +- src/views/xgf/flowList/components/list.vue | 2 +- static/bi/index.html | 561 ++++++++++-------- 24 files changed, 494 insertions(+), 312 deletions(-) diff --git a/src/views/corpInfo/information/info/components/corpEdit.vue b/src/views/corpInfo/information/info/components/corpEdit.vue index 5a77c38..ad3dd3a 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,6 +1077,12 @@ export default { // map.addOverlay(marker) // 将标注添加到地图中 }, goBack() { + this.$confirm('确定要退出吗?', { + + }).then(() => { + + }).catch(() => { + }) this.$parent.activeName = 'corpView' }, handleChangeIMGFour(file, fileList) { diff --git a/src/views/firefighting/device/components/list.vue b/src/views/firefighting/device/components/list.vue index 0d51e7f..09cc403 100644 --- a/src/views/firefighting/device/components/list.vue +++ b/src/views/firefighting/device/components/list.vue @@ -45,6 +45,9 @@ 导入 + + 导出数据 + @@ -166,6 +169,7 @@ export default { directives: { waves }, data() { return { + config: config, addBtnType: true, listLoading: true, add: false, @@ -454,6 +458,35 @@ export default { this.listLoading = false }) this.listLoading = false + }, + // 导出数据 + exportData() { + this.$confirm('确定要导出到excel吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + console.log('开始') + this.listLoading = false + let pageData = '' + if (this.keySelect.FIRE_REGION_ID) { + pageData += '&FIRE_REGION_ID=' + this.keySelect.FIRE_REGION_ID + } + if (this.keySelect.FIRE_DEVICE_TYPE_ID) { + pageData += '&FIRE_DEVICE_TYPE_ID=' + this.keySelect.FIRE_DEVICE_TYPE_ID + } + if (this.keySelect.FIRE_POINT_NAME) { + pageData += '&FIRE_POINT_NAME=' + this.keySelect.FIRE_POINT_NAME + } + if (this.keySelect.FIRE_DEVICE_CODE) { + pageData += '&FIRE_DEVICE_CODE=' + this.keySelect.FIRE_DEVICE_CODE + } + window.open(this.config.httpurl + 'fireDevice/excelAll?' + pageData) + }).catch(() => { + console.log('报错') + this.listLoading = false + }) + this.listLoading = false } } } diff --git a/src/views/gf/blindboard/blindboard/components/list.vue b/src/views/gf/blindboard/blindboard/components/list.vue index 2b73239..167acab 100644 --- a/src/views/gf/blindboard/blindboard/components/list.vue +++ b/src/views/gf/blindboard/blindboard/components/list.vue @@ -162,7 +162,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -177,7 +177,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/gf/blindboard/pigeonhole/components/list.vue b/src/views/gf/blindboard/pigeonhole/components/list.vue index 879478a..9f3c799 100644 --- a/src/views/gf/blindboard/pigeonhole/components/list.vue +++ b/src/views/gf/blindboard/pigeonhole/components/list.vue @@ -83,7 +83,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -98,7 +98,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/gf/breakground/breakground/components/list.vue b/src/views/gf/breakground/breakground/components/list.vue index 44a017f..a5574cd 100644 --- a/src/views/gf/breakground/breakground/components/list.vue +++ b/src/views/gf/breakground/breakground/components/list.vue @@ -186,7 +186,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -201,7 +201,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/gf/breakground/pigeonhole/components/list.vue b/src/views/gf/breakground/pigeonhole/components/list.vue index fb3d845..bba737c 100644 --- a/src/views/gf/breakground/pigeonhole/components/list.vue +++ b/src/views/gf/breakground/pigeonhole/components/list.vue @@ -90,7 +90,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -105,7 +105,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/gf/confinedspace/confinedspace/components/list.vue b/src/views/gf/confinedspace/confinedspace/components/list.vue index ebe97d3..084d7f1 100644 --- a/src/views/gf/confinedspace/confinedspace/components/list.vue +++ b/src/views/gf/confinedspace/confinedspace/components/list.vue @@ -155,7 +155,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -171,7 +171,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/gf/confinedspace/pigeonhole/components/list.vue b/src/views/gf/confinedspace/pigeonhole/components/list.vue index caa3564..5a0834f 100644 --- a/src/views/gf/confinedspace/pigeonhole/components/list.vue +++ b/src/views/gf/confinedspace/pigeonhole/components/list.vue @@ -71,7 +71,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -86,7 +86,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/gf/electricity/electricity/components/list.vue b/src/views/gf/electricity/electricity/components/list.vue index 81e26c1..177696c 100644 --- a/src/views/gf/electricity/electricity/components/list.vue +++ b/src/views/gf/electricity/electricity/components/list.vue @@ -159,7 +159,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -174,7 +174,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/gf/electricity/pigeonhole/components/list.vue b/src/views/gf/electricity/pigeonhole/components/list.vue index 32444a2..7ba64f6 100644 --- a/src/views/gf/electricity/pigeonhole/components/list.vue +++ b/src/views/gf/electricity/pigeonhole/components/list.vue @@ -74,7 +74,7 @@ export default { edit: false, listQuery: { page: 1, - limit: 10 + limit: 20 }, total: 0, KEYWORDS: '', @@ -89,7 +89,7 @@ export default { replyVarList: [], // REPLY replyListQuery: { page: 1, - limit: 10 + limit: 20 }, replyTotal: 0, dialogFormHuifuShow: false, diff --git a/src/views/hidden/major/confirmationperson/components/detail.vue b/src/views/hidden/major/confirmationperson/components/detail.vue index 66ab231..6257b4b 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 }} - + 隐患确认时间 @@ -635,6 +635,9 @@ export default { } else { this.pd.STATE = '-2' } + if (this.HIDDENLEVEL == 'hiddenLevel1001') { // 忽略隐患 + this.pd.STATE = '5' + } if (this.pd.RECTIFICATIONDEPT == undefined) { this.pd.RECTIFICATIONDEPT = '' } diff --git a/src/views/hiddenApi/publicMethod/list.vue b/src/views/hiddenApi/publicMethod/list.vue index 36431e6..6d1ab62 100644 --- a/src/views/hiddenApi/publicMethod/list.vue +++ b/src/views/hiddenApi/publicMethod/list.vue @@ -62,16 +62,13 @@ - + collapse-tags + clearable/> @@ -297,7 +294,7 @@ export default { { ID: '16', NAME: '确认打回' }, { ID: '10', NAME: '验收打回' } ], - defaultProps: { value: 'id', children: 'nodes', label: 'name' }, + defaultProps: { value: 'id', children: 'nodes', label: 'name', multiple: true, emitPath: false }, pickerOptions0: { disabledDate(time) { return time.getTime() < Date.now() - 8.64e6 } }, hiddenlevelList: [], // 隐患级别 hiddenPartList: [], // 隐患部位, diff --git a/src/views/keyprojects/hidden/components/record-list.vue b/src/views/keyprojects/hidden/components/record-list.vue index f239c3d..3b2604e 100644 --- a/src/views/keyprojects/hidden/components/record-list.vue +++ b/src/views/keyprojects/hidden/components/record-list.vue @@ -15,6 +15,13 @@ + + + + + + + @@ -110,6 +117,7 @@ export default { total: 0, KEYWORDS: '', ISCHECK: '', + SOURCE: '', varList: [], sourceState: { 1: 'AI报警', @@ -117,6 +125,24 @@ export default { 4: '安全环保检查(监管端)', 5: '安全环保检查(企业端)' }, + sourceStateList: [ + { + value: '1', + label: 'AI报警(监管端)' + }, + { + value: '2', + label: 'AI报警(企业端)' + }, + { + value: '4', + label: '安全环保检查(监管端)' + }, + { + value: '5', + label: '安全环保检查(企业端)' + } + ], state: { 1: '未整改', 2: '已整改', @@ -139,6 +165,7 @@ export default { goKeyReset() { this.KEYWORDS = '' this.ISCHECK = '' + this.SOURCE = '' this.getQuery() }, // 获取列表 @@ -149,7 +176,8 @@ export default { { KEYWORDS: this.KEYWORDS, OUTSOURCED_ID: this.$parent.OUTSOURCED_ID, - ISCHECK: this.ISCHECK + ISCHECK: this.ISCHECK, + SOURCE: this.SOURCE } ).then((data) => { this.listLoading = false diff --git a/src/views/keyprojects/outsourced/components/edit.vue b/src/views/keyprojects/outsourced/components/edit.vue index aa768eb..ee84432 100644 --- a/src/views/keyprojects/outsourced/components/edit.vue +++ b/src/views/keyprojects/outsourced/components/edit.vue @@ -56,6 +56,7 @@ @@ -257,6 +260,7 @@ export default { directives: { waves }, data() { return { + updateValue: true, selectUsers: [], // 防止报错,参数无用 chooseUserList: [], punishThePerson: [], @@ -1199,6 +1203,52 @@ export default { // resolve() }).catch((e) => { }) + }, + // 将树节点的子节点全部添加到数组中 + pullSelectedNodes(selectedItems) { + if (selectedItems.nodes && selectedItems.nodes.length > 0) { + for (let i = 0; i < selectedItems.nodes.length; i++) { + if (!this.form.INVOLVING_CORPS_DEPART_ID.includes(selectedItems.nodes[i].id)) { + this.form.INVOLVING_CORPS_DEPART_ID.push(selectedItems.nodes[i].id) + } + this.pullSelectedNodes(selectedItems.nodes[i]) + } + } + }, + // 选择项时触发的事件 + handleSelect(selectedItems) { + // 选择父节点时同时勾选全部子节点 + if (!this.form.INVOLVING_CORPS_DEPART_ID.includes(selectedItems.id)) { + this.form.INVOLVING_CORPS_DEPART_ID.push(selectedItems.id) + } + this.pullSelectedNodes(selectedItems) + this.onClick() + }, + // 将选中项的子节点全部移除 + removeSelectedNodes(selectedItems) { + if (selectedItems.nodes && selectedItems.nodes.length > 0) { + for (let i = 0; i < selectedItems.nodes.length; i++) { + if (this.form.INVOLVING_CORPS_DEPART_ID.includes(selectedItems.nodes[i].id)) { + this.form.INVOLVING_CORPS_DEPART_ID.splice(this.form.INVOLVING_CORPS_DEPART_ID.indexOf(selectedItems.nodes[i].id), 1) + } + this.removeSelectedNodes(selectedItems.nodes[i]) + } + } + }, + // 移除选中项时触发的事件 + handleRemove(selectedItems) { + // 移除选中项时同时移除全部子节点 + if (this.form.INVOLVING_CORPS_DEPART_ID.includes(selectedItems.id)) { + this.form.INVOLVING_CORPS_DEPART_ID.splice(this.form.INVOLVING_CORPS_DEPART_ID.indexOf(selectedItems.id), 1) + } + this.removeSelectedNodes(selectedItems) + this.onClick() + }, + onClick() { + this.updateValue = false + this.$nextTick(() => { + this.updateValue = true + }) } } } diff --git a/src/views/map/dialog/outSourceInfo.vue b/src/views/map/dialog/outSourceInfo.vue index 417c973..224088b 100644 --- a/src/views/map/dialog/outSourceInfo.vue +++ b/src/views/map/dialog/outSourceInfo.vue @@ -76,6 +76,10 @@ 结束申请中 + + 具体位置 + {{ pd.LOCATION }} + 安全管理协议{{ index + 1 }} {{ item.FILE_NAME }} diff --git a/src/views/risk/riskunit/components/list.vue b/src/views/risk/riskunit/components/list.vue index a7c99ea..c104dcb 100644 --- a/src/views/risk/riskunit/components/list.vue +++ b/src/views/risk/riskunit/components/list.vue @@ -277,9 +277,17 @@ export default { '/riskunit/' + this.dialogType, this.form ).then((data) => { - this.listLoading = false - this.dialogFormEdit = false - this.getList() + if (data.result == 'success') { + this.listLoading = false + this.dialogFormEdit = false + this.getList() + } else { + this.$message({ + message: data.exception, + type: 'error' + }) + this.listLoading = false + } }).catch((e) => { this.listLoading = false }) diff --git a/src/views/safetyenvironmental/inspection/components/add.vue b/src/views/safetyenvironmental/inspection/components/add.vue index 37b6a8e..93ee2ed 100644 --- a/src/views/safetyenvironmental/inspection/components/add.vue +++ b/src/views/safetyenvironmental/inspection/components/add.vue @@ -957,8 +957,15 @@ export default { }, goBack() { - this.$parent.INSPECTION_ID = '' - this.$parent.activeName = 'List' + this.$confirm('确定要退出吗', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.INSPECTION_ID = '' + this.$parent.activeName = 'List' + }).catch(() => { + }) }, // 获取整改人列表 getUserList(DEPARTMENT_ID) { diff --git a/src/views/safetyenvironmental/inspection/components/edit.vue b/src/views/safetyenvironmental/inspection/components/edit.vue index c229158..f09e271 100644 --- a/src/views/safetyenvironmental/inspection/components/edit.vue +++ b/src/views/safetyenvironmental/inspection/components/edit.vue @@ -964,8 +964,15 @@ export default { }, goBack() { - this.$parent.INSPECTION_ID = '' - this.$parent.activeName = 'List' + this.$confirm(('确定要退出吗?'), { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$parent.INSPECTION_ID = '' + this.$parent.activeName = 'List' + }).catch(() => { + }) }, // 获取整改人列表 getUserList(DEPARTMENT_ID) { diff --git a/src/views/safetyenvironmental/inspection/components/list.vue b/src/views/safetyenvironmental/inspection/components/list.vue index 7d38400..652549d 100644 --- a/src/views/safetyenvironmental/inspection/components/list.vue +++ b/src/views/safetyenvironmental/inspection/components/list.vue @@ -149,7 +149,7 @@ 查看 流程图 + + @@ -140,32 +142,39 @@ 本年隐患 -
-
- 待处理 + +
+
+ 待处理 +
+
+ {{hdCount.yearUncheck}} +
-
- {{hdCount.yearUncheck}} + + +
+
+ 已处理 +
+
+ {{hdCount.yearChecked}} +
-
-
-
- 已处理 -
-
- {{hdCount.yearChecked}} -
-
-
-
- 隐患整改率 -
-
+ + + +
+
+ 隐患整改率 +
+
{{hdCount.yearTotal==0?0:((hdCount.yearChecked/hdCount.yearTotal*100).toFixed(2))}} - % + % +
-
+
@@ -176,32 +185,38 @@ 本季隐患
-
-
- 待处理 + +
+
+ 待处理 +
+
+ {{hdCount.quarterUncheck}} +
-
- {{hdCount.quarterUncheck}} + + +
+
+ 已处理 +
+
+ {{hdCount.quarterChecked}} +
-
-
-
- 已处理 + + +
+
+ 隐患整改率 +
+
+ {{hdCount.quarterTotal==0?0:((hdCount.quarterChecked/hdCount.quarterTotal*100).toFixed(2))}} + % +
-
- {{hdCount.quarterChecked}} -
-
-
-
- 隐患整改率 -
-
- {{hdCount.quarterTotal==0?0:((hdCount.quarterChecked/hdCount.quarterTotal*100).toFixed(2))}} - % -
-
+
@@ -212,32 +227,38 @@ 本月隐患
-
-
- 待处理 + +
+
+ 待处理 +
+
+ {{hdCount.monthUncheck}} +
-
- {{hdCount.monthUncheck}} + + +
+
+ 已处理 +
+
+ {{hdCount.monthChecked}} +
-
-
-
- 已处理 + + +
+
+ 隐患整改率 +
+
+ {{hdCount.monthTotal==0?0:((hdCount.monthChecked/hdCount.monthTotal*100).toFixed(2))}} + % +
-
- {{hdCount.monthChecked}} -
-
-
-
- 隐患整改率 -
-
- {{hdCount.monthTotal==0?0:((hdCount.monthChecked/hdCount.monthTotal*100).toFixed(2))}} - % -
-
+
@@ -250,32 +271,38 @@ 本旬隐患
-
-
- 待处理 + +
+
+ 待处理 +
+
+ {{hdCount.xunUncheck}} +
-
- {{hdCount.xunUncheck}} + + +
+
+ 已处理 +
+
+ {{hdCount.xunChecked}} +
-
-
-
- 已处理 + + +
+
+ 隐患整改率 +
+
+ {{hdCount.xunTotal==0?0:((hdCount.xunChecked/hdCount.xunTotal*100).toFixed(2))}} + % +
-
- {{hdCount.xunChecked}} -
-
-
-
- 隐患整改率 -
-
- {{hdCount.xunTotal==0?0:((hdCount.xunChecked/hdCount.xunTotal*100).toFixed(2))}} - % -
-
+
@@ -286,32 +313,38 @@ 本周隐患
-
-
- 待处理 + +
+
+ 待处理 +
+
+ {{hdCount.weekUncheck}} +
-
- {{hdCount.weekUncheck}} + + +
+
+ 已处理 +
+
+ {{hdCount.weekChecked}} +
-
-
-
- 已处理 + + +
+
+ 隐患整改率 +
+
+ {{hdCount.weekTotal==0?0:((hdCount.weekChecked/hdCount.weekTotal*100).toFixed(2))}} + % +
-
- {{hdCount.weekChecked}} -
-
-
-
- 隐患整改率 -
-
- {{hdCount.weekTotal==0?0:((hdCount.weekChecked/hdCount.weekTotal*100).toFixed(2))}} - % -
-
+
@@ -322,32 +355,38 @@ 本日隐患
-
-
- 待处理 + +
+
+ 待处理 +
+
+ {{hdCount.dayUncheck}} +
-
- {{hdCount.dayUncheck}} + + +
+
+ 已处理 +
+
+ {{hdCount.dayChecked}} +
-
-
-
- 已处理 + + +
+
+ 隐患整改率 +
+
+ {{hdCount.dayTotal==0?0:((hdCount.dayChecked/hdCount.dayTotal*100).toFixed(2))}} + % +
-
- {{hdCount.dayChecked}} -
-
-
-
- 隐患整改率 -
-
- {{hdCount.dayTotal==0?0:((hdCount.dayChecked/hdCount.dayTotal*100).toFixed(2))}} - % -
-
+
@@ -1821,135 +1860,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) + // }) }, // 退出系统