diff --git a/src/utils/validate.js b/src/utils/validate.js index 396200d..a84b466 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -7,7 +7,7 @@ * @returns {Boolean} */ export function validText(str) { - console.info(str) + if (str.trim().length < 1) { return false } diff --git a/src/views/bi_onecom/majorHazardSources/info.vue b/src/views/bi_onecom/majorHazardSources/info.vue index b73bdc1..e97670e 100644 --- a/src/views/bi_onecom/majorHazardSources/info.vue +++ b/src/views/bi_onecom/majorHazardSources/info.vue @@ -368,7 +368,7 @@ export default { this.listLoading = false this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID = data.pd.MAJORDANGERSOURCE_DISPOSAL_ID this.disposal.DISPOSAL_TIME = data.pd.DISPOSAL_TIME - console.info(this.disposal) + // this.dialogFormEdit = false // this.hasDisposal = false }).catch((e) => { @@ -414,7 +414,7 @@ export default { this.uploadDisposalAfterFile() this.listLoading = true this.disposal.DISPOSAL_STATUS = '1' - console.info(this.disposal) + requestFN( '/majordangersourcedisposal/' + methodName, this.disposal @@ -423,7 +423,6 @@ export default { this.dialogFormEdit = false this.hasDisposal = false this.resetDisposal() - console.info(this.disposal) this.timer = setInterval(this.handleTimerOperation, 5000) }).catch((e) => { this.listLoading = false @@ -443,7 +442,7 @@ export default { } } // formData.append('FFILE', this.disposal.disposalBeforeFile) - console.info(this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID) + formData.append('FOREIGN_KEY', this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID) formData.append('TYPE', 20) this.uploadFileSubmit(formData, '处置前照片上传完成') @@ -457,7 +456,7 @@ export default { } } // formData.append('FFILE', this.disposal.disposalAfterFile) - console.info(this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID) + formData.append('FOREIGN_KEY', this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID) formData.append('TYPE', 21) this.uploadFileSubmit(formData, '处置后照片上传完成') @@ -467,7 +466,7 @@ export default { '/imgfiles/add', formData ).then((data) => { - console.info(str) + }).catch((e) => { }) }, diff --git a/src/views/check/checklist/components/recording.vue b/src/views/check/checklist/components/recording.vue index 0075a76..41ed6bb 100644 --- a/src/views/check/checklist/components/recording.vue +++ b/src/views/check/checklist/components/recording.vue @@ -496,9 +496,6 @@ export default { if (this.isClearRectificationor) { this.hiddenForm.RECTIFICATIONOR = '' } - - console.info(this.isClearRectificationor) - console.info(this.hiddenForm.RECTIFICATIONOR) this.getReUserList(newVal) this.isClearRectificationor = true } diff --git a/src/views/map/dialog/electricity.vue b/src/views/map/dialog/electricity.vue index b1e8bcc..e5c8440 100644 --- a/src/views/map/dialog/electricity.vue +++ b/src/views/map/dialog/electricity.vue @@ -230,7 +230,7 @@ export default { this.measuresList = data.measuresList this.gasList = data.gasList this.otherProtectiveMeasures = this.validStr(this.info.OTHER_PROTECTIVE_MEASURES.replace(/;_;/g, '')) ? this.info.OTHER_PROTECTIVE_MEASURES.split(';_;') : [] - console.info(this.otherProtectiveMeasures) + if (!this.info.WORK_OPERATOR_ID) { this.$set(this.info, 'WORK_OPERATOR_ID', []) } else { diff --git a/src/views/map/dialog/mkGateMachine.vue b/src/views/map/dialog/mkGateMachine.vue index 3891d41..9e05898 100644 --- a/src/views/map/dialog/mkGateMachine.vue +++ b/src/views/map/dialog/mkGateMachine.vue @@ -267,7 +267,6 @@ export default { ).then((data) => { this.recordAllList = data.recordAllList this.carRecordAllList = data.carRecordAllList - console.info( this.CODE ) this.$forceUpdate() }).catch((e) => { }) diff --git a/src/views/map/dialog/peoplePositionCfdD.vue b/src/views/map/dialog/peoplePositionCfdD.vue index 584a23e..7d26c71 100644 --- a/src/views/map/dialog/peoplePositionCfdD.vue +++ b/src/views/map/dialog/peoplePositionCfdD.vue @@ -126,7 +126,7 @@ export default { this.ImgList = data.ImgList this.measuresList = data.varList this.gongdanList = data.data - console.info(this.gongdanList) + }).catch((e) => { }) } diff --git a/src/views/map/dialog/peoplePositionNine.vue b/src/views/map/dialog/peoplePositionNine.vue index b164217..c145e1a 100644 --- a/src/views/map/dialog/peoplePositionNine.vue +++ b/src/views/map/dialog/peoplePositionNine.vue @@ -105,7 +105,6 @@ export default { this.ImgList = data.ImgList this.measuresList = data.varList this.gongdanList = data.data - console.info(this.gongdanList) }).catch((e) => { }) } diff --git a/src/views/map/dialog/zhong_da_info.vue b/src/views/map/dialog/zhong_da_info.vue index fb277d0..d579779 100644 --- a/src/views/map/dialog/zhong_da_info.vue +++ b/src/views/map/dialog/zhong_da_info.vue @@ -279,7 +279,7 @@ export default { this.listLoading = false this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID = data.pd.MAJORDANGERSOURCE_DISPOSAL_ID this.disposal.DISPOSAL_TIME = data.pd.DISPOSAL_TIME - console.info(this.disposal) + // this.dialogFormEdit = false // this.hasDisposal = false }).catch((e) => { @@ -325,7 +325,7 @@ export default { this.uploadDisposalAfterFile() this.listLoading = true this.disposal.DISPOSAL_STATUS = '1' - console.info(this.disposal) + requestFN( '/majordangersourcedisposal/' + methodName, this.disposal @@ -334,7 +334,7 @@ export default { this.dialogFormEdit = false this.hasDisposal = false this.resetDisposal() - console.info(this.disposal) + this.timer = setInterval(this.handleTimerOperation, 5000) }).catch((e) => { this.listLoading = false @@ -354,7 +354,7 @@ export default { } } // formData.append('FFILE', this.disposal.disposalBeforeFile) - console.info(this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID) + formData.append('FOREIGN_KEY', this.disposal.MAJORDANGERSOURCE_DISPOSAL_ID) formData.append('TYPE', 20) this.uploadFileSubmit(formData, '处置前照片上传完成') diff --git a/src/views/safetyenvironmental/inspected/components/list.vue b/src/views/safetyenvironmental/inspected/components/list.vue index 2427552..322bab4 100644 --- a/src/views/safetyenvironmental/inspected/components/list.vue +++ b/src/views/safetyenvironmental/inspected/components/list.vue @@ -347,10 +347,10 @@ export default { }, // 完成 subCanvas(img64) { - console.info('img64:' + img64) + this.form.INSPECTED_SITEUSER_SIGN_IMG = img64 this.$set(this.form, 'INSPECTED_SITEUSER_SIGN_TIME', formatDate(new Date(), 'YYYY-MM-DD HH:mm')) - console.info(this.form) + this.dialogWriteSign = false },