From 3fc268b8cddeabf8d10659cfd96b25daac8043d5 Mon Sep 17 00:00:00 2001 From: sliang <1589399930@qq.com> Date: Sat, 23 Mar 2024 18:54:35 +0800 Subject: [PATCH] commit --- .../constructionQuality/earlyWarningRecord.js | 11 ++- .../api/towerDetection/earlyWarningRecord.js | 4 +- .../earlyWarningsRecord/index.vue | 85 ++++++++++++++++--- .../qualityRecord/index.vue | 58 ++++++------- .../earlyWarningRecord/index.vue | 25 +++--- .../towerDetection/towerRecord/index.vue | 6 +- ah-jjzhgd-web/vue.config.js | 4 +- 7 files changed, 129 insertions(+), 64 deletions(-) diff --git a/ah-jjzhgd-web/src/api/constructionQuality/earlyWarningRecord.js b/ah-jjzhgd-web/src/api/constructionQuality/earlyWarningRecord.js index a19ffea..03a2e3d 100644 --- a/ah-jjzhgd-web/src/api/constructionQuality/earlyWarningRecord.js +++ b/ah-jjzhgd-web/src/api/constructionQuality/earlyWarningRecord.js @@ -17,6 +17,15 @@ return request({ }) } +function updEarly(data) { + return request({ + url: '/background/constructionQuality/earlyWarningRecord/updEarly', + method: 'post', + data + }) +} + + export { - getEarlyWarningRecordLists,exportProject + getEarlyWarningRecordLists,exportProject,updEarly } \ No newline at end of file diff --git a/ah-jjzhgd-web/src/api/towerDetection/earlyWarningRecord.js b/ah-jjzhgd-web/src/api/towerDetection/earlyWarningRecord.js index c5f6a74..a1776ee 100644 --- a/ah-jjzhgd-web/src/api/towerDetection/earlyWarningRecord.js +++ b/ah-jjzhgd-web/src/api/towerDetection/earlyWarningRecord.js @@ -2,7 +2,7 @@ import request from '@/utils/request' function getEarlyWarningRecordLists(data) { return request({ - url: '/background/towerDetection/towerRecord/getTowerRecordLists', + url: '/background/towerDetection/earlyWarningRecord/getEarlyWarningRecordLists', method: 'get', params: data }) @@ -10,7 +10,7 @@ function getEarlyWarningRecordLists(data) { function exportProject(data) { return request({ - url: '/background/towerDetection/towerRecord/exportProData', + url: '/background/towerDetection/earlyWarningRecord/exportProData', method: 'get', responseType: 'blob', data diff --git a/ah-jjzhgd-web/src/views/constructionQuality/earlyWarningsRecord/index.vue b/ah-jjzhgd-web/src/views/constructionQuality/earlyWarningsRecord/index.vue index 00cf6e3..812f341 100644 --- a/ah-jjzhgd-web/src/views/constructionQuality/earlyWarningsRecord/index.vue +++ b/ah-jjzhgd-web/src/views/constructionQuality/earlyWarningsRecord/index.vue @@ -1,14 +1,14 @@ - - + + + + + + + + + + + + + + + 预警正确 + 预警错误 + + + + + + 取 消 + 确 定 + + + @@ -58,12 +91,13 @@ import waves from '@/directive/waves' import { - getEarlyWarningRecordLists,exportProject + getEarlyWarningRecordLists,exportProject,updEarly } from '@/api/constructionQuality/earlyWarningRecord' import _ from 'lodash/fp' import { downloadFile } from '@/utils/download' + import Pagination from '@/components/Pagination' export default { - // components: { Pagination, BuildSelect, ProcessTable }, + components: { Pagination}, directives: { waves }, data() { return { @@ -73,7 +107,7 @@ listQuery: { pageNum: 1, pageSize: 10, - keyWord: '' + date: '' }, tableHeight: 650, showReviewer: false, @@ -83,6 +117,11 @@ dialogPvVisible: false, completeModalVisible: false, processModalVisible: false, + dialogVisible:false, + ruleForm:{ + status:'1', + }, + warnId:'' } }, created() { @@ -110,6 +149,26 @@ downloadFile({ fileName: ' 预警记录.xlsx', fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' }) }) }, + + getEarly(row){ + console.log(row) + this.dialogVisible = true + this.warnId = row.warnId; + }, + + getAdd(){ + this.ruleForm.warnId= this.warnId; + updEarly(this.ruleForm).then(response => { + this.$message({ + showClose: true, + message: response.msg, + type: 'success', + duration: 2000 + }) + this.dialogVisible = false + this.getList() + }) + } } } diff --git a/ah-jjzhgd-web/src/views/constructionQuality/qualityRecord/index.vue b/ah-jjzhgd-web/src/views/constructionQuality/qualityRecord/index.vue index 47c61bc..1bc0d7a 100644 --- a/ah-jjzhgd-web/src/views/constructionQuality/qualityRecord/index.vue +++ b/ah-jjzhgd-web/src/views/constructionQuality/qualityRecord/index.vue @@ -1,14 +1,24 @@ - - - - - - - + + + + + + + { - downloadFile({ fileName: ' 检测记录.xlsx', fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' }) + downloadFile({ fileName: ' 质量检测记录.xlsx', fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' }) }) }, } diff --git a/ah-jjzhgd-web/src/views/towerDetection/earlyWarningRecord/index.vue b/ah-jjzhgd-web/src/views/towerDetection/earlyWarningRecord/index.vue index 6f441fe..3193918 100644 --- a/ah-jjzhgd-web/src/views/towerDetection/earlyWarningRecord/index.vue +++ b/ah-jjzhgd-web/src/views/towerDetection/earlyWarningRecord/index.vue @@ -1,14 +1,14 @@ - - + +
- +